UNPKG

spot-sdk-js

Version:

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

1,442 lines (1,242 loc) 42.6 kB
// source: bosdyn/api/robot_id.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_parameter_pb = require('../../bosdyn/api/parameter_pb.js'); goog.object.extend(proto, bosdyn_api_parameter_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.RobotId', null, global); goog.exportSymbol('proto.bosdyn.api.RobotIdRequest', null, global); goog.exportSymbol('proto.bosdyn.api.RobotIdResponse', null, global); goog.exportSymbol('proto.bosdyn.api.RobotSoftwareRelease', null, global); goog.exportSymbol('proto.bosdyn.api.SoftwareVersion', 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.RobotId = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.RobotId, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.RobotId.displayName = 'proto.bosdyn.api.RobotId'; } /** * 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.SoftwareVersion = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.SoftwareVersion, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.SoftwareVersion.displayName = 'proto.bosdyn.api.SoftwareVersion'; } /** * 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.RobotSoftwareRelease = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.RobotSoftwareRelease.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.RobotSoftwareRelease, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.RobotSoftwareRelease.displayName = 'proto.bosdyn.api.RobotSoftwareRelease'; } /** * 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.RobotIdRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.RobotIdRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.RobotIdRequest.displayName = 'proto.bosdyn.api.RobotIdRequest'; } /** * 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.RobotIdResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.RobotIdResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.RobotIdResponse.displayName = 'proto.bosdyn.api.RobotIdResponse'; } 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.RobotId.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.RobotId.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.RobotId} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.RobotId.toObject = function(includeInstance, msg) { var f, obj = { serialNumber: jspb.Message.getFieldWithDefault(msg, 1, ""), species: jspb.Message.getFieldWithDefault(msg, 2, ""), version: jspb.Message.getFieldWithDefault(msg, 3, ""), softwareRelease: (f = msg.getSoftwareRelease()) && proto.bosdyn.api.RobotSoftwareRelease.toObject(includeInstance, f), nickname: jspb.Message.getFieldWithDefault(msg, 5, ""), computerSerialNumber: jspb.Message.getFieldWithDefault(msg, 6, "") }; 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.RobotId} */ proto.bosdyn.api.RobotId.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.RobotId; return proto.bosdyn.api.RobotId.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.RobotId} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.RobotId} */ proto.bosdyn.api.RobotId.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setSerialNumber(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setSpecies(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setVersion(value); break; case 4: var value = new proto.bosdyn.api.RobotSoftwareRelease; reader.readMessage(value,proto.bosdyn.api.RobotSoftwareRelease.deserializeBinaryFromReader); msg.setSoftwareRelease(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setNickname(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setComputerSerialNumber(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.RobotId.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.RobotId.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.RobotId} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.RobotId.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSerialNumber(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getSpecies(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getVersion(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getSoftwareRelease(); if (f != null) { writer.writeMessage( 4, f, proto.bosdyn.api.RobotSoftwareRelease.serializeBinaryToWriter ); } f = message.getNickname(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getComputerSerialNumber(); if (f.length > 0) { writer.writeString( 6, f ); } }; /** * optional string serial_number = 1; * @return {string} */ proto.bosdyn.api.RobotId.prototype.getSerialNumber = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.RobotId} returns this */ proto.bosdyn.api.RobotId.prototype.setSerialNumber = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string species = 2; * @return {string} */ proto.bosdyn.api.RobotId.prototype.getSpecies = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.RobotId} returns this */ proto.bosdyn.api.RobotId.prototype.setSpecies = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string version = 3; * @return {string} */ proto.bosdyn.api.RobotId.prototype.getVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.RobotId} returns this */ proto.bosdyn.api.RobotId.prototype.setVersion = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional RobotSoftwareRelease software_release = 4; * @return {?proto.bosdyn.api.RobotSoftwareRelease} */ proto.bosdyn.api.RobotId.prototype.getSoftwareRelease = function() { return /** @type{?proto.bosdyn.api.RobotSoftwareRelease} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.RobotSoftwareRelease, 4)); }; /** * @param {?proto.bosdyn.api.RobotSoftwareRelease|undefined} value * @return {!proto.bosdyn.api.RobotId} returns this */ proto.bosdyn.api.RobotId.prototype.setSoftwareRelease = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.RobotId} returns this */ proto.bosdyn.api.RobotId.prototype.clearSoftwareRelease = function() { return this.setSoftwareRelease(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.RobotId.prototype.hasSoftwareRelease = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional string nickname = 5; * @return {string} */ proto.bosdyn.api.RobotId.prototype.getNickname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.RobotId} returns this */ proto.bosdyn.api.RobotId.prototype.setNickname = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional string computer_serial_number = 6; * @return {string} */ proto.bosdyn.api.RobotId.prototype.getComputerSerialNumber = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.RobotId} returns this */ proto.bosdyn.api.RobotId.prototype.setComputerSerialNumber = function(value) { return jspb.Message.setProto3StringField(this, 6, 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.SoftwareVersion.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.SoftwareVersion.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.SoftwareVersion} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.SoftwareVersion.toObject = function(includeInstance, msg) { var f, obj = { majorVersion: jspb.Message.getFieldWithDefault(msg, 1, 0), minorVersion: jspb.Message.getFieldWithDefault(msg, 2, 0), patchLevel: 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.SoftwareVersion} */ proto.bosdyn.api.SoftwareVersion.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.SoftwareVersion; return proto.bosdyn.api.SoftwareVersion.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.SoftwareVersion} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.SoftwareVersion} */ proto.bosdyn.api.SoftwareVersion.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readInt32()); msg.setMajorVersion(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); msg.setMinorVersion(value); break; case 3: var value = /** @type {number} */ (reader.readInt32()); msg.setPatchLevel(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.SoftwareVersion.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.SoftwareVersion.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.SoftwareVersion} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.SoftwareVersion.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMajorVersion(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getMinorVersion(); if (f !== 0) { writer.writeInt32( 2, f ); } f = message.getPatchLevel(); if (f !== 0) { writer.writeInt32( 3, f ); } }; /** * optional int32 major_version = 1; * @return {number} */ proto.bosdyn.api.SoftwareVersion.prototype.getMajorVersion = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.SoftwareVersion} returns this */ proto.bosdyn.api.SoftwareVersion.prototype.setMajorVersion = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional int32 minor_version = 2; * @return {number} */ proto.bosdyn.api.SoftwareVersion.prototype.getMinorVersion = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.SoftwareVersion} returns this */ proto.bosdyn.api.SoftwareVersion.prototype.setMinorVersion = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional int32 patch_level = 3; * @return {number} */ proto.bosdyn.api.SoftwareVersion.prototype.getPatchLevel = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.SoftwareVersion} returns this */ proto.bosdyn.api.SoftwareVersion.prototype.setPatchLevel = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.bosdyn.api.RobotSoftwareRelease.repeatedFields_ = [9]; 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.RobotSoftwareRelease.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.RobotSoftwareRelease.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.RobotSoftwareRelease} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.RobotSoftwareRelease.toObject = function(includeInstance, msg) { var f, obj = { version: (f = msg.getVersion()) && proto.bosdyn.api.SoftwareVersion.toObject(includeInstance, f), name: jspb.Message.getFieldWithDefault(msg, 2, ""), type: jspb.Message.getFieldWithDefault(msg, 3, ""), changesetDate: (f = msg.getChangesetDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), changeset: jspb.Message.getFieldWithDefault(msg, 5, ""), apiVersion: jspb.Message.getFieldWithDefault(msg, 6, ""), buildInformation: jspb.Message.getFieldWithDefault(msg, 7, ""), installDate: (f = msg.getInstallDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), parametersList: jspb.Message.toObjectList(msg.getParametersList(), bosdyn_api_parameter_pb.Parameter.toObject, includeInstance) }; 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.RobotSoftwareRelease} */ proto.bosdyn.api.RobotSoftwareRelease.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.RobotSoftwareRelease; return proto.bosdyn.api.RobotSoftwareRelease.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.RobotSoftwareRelease} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.RobotSoftwareRelease} */ proto.bosdyn.api.RobotSoftwareRelease.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.bosdyn.api.SoftwareVersion; reader.readMessage(value,proto.bosdyn.api.SoftwareVersion.deserializeBinaryFromReader); msg.setVersion(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setType(value); break; case 4: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setChangesetDate(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setChangeset(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setApiVersion(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setBuildInformation(value); break; case 8: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setInstallDate(value); break; case 9: var value = new bosdyn_api_parameter_pb.Parameter; reader.readMessage(value,bosdyn_api_parameter_pb.Parameter.deserializeBinaryFromReader); msg.addParameters(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.RobotSoftwareRelease.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.RobotSoftwareRelease} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.RobotSoftwareRelease.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getVersion(); if (f != null) { writer.writeMessage( 1, f, proto.bosdyn.api.SoftwareVersion.serializeBinaryToWriter ); } f = message.getName(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getType(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getChangesetDate(); if (f != null) { writer.writeMessage( 4, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getChangeset(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getApiVersion(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getBuildInformation(); if (f.length > 0) { writer.writeString( 7, f ); } f = message.getInstallDate(); if (f != null) { writer.writeMessage( 8, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getParametersList(); if (f.length > 0) { writer.writeRepeatedMessage( 9, f, bosdyn_api_parameter_pb.Parameter.serializeBinaryToWriter ); } }; /** * optional SoftwareVersion version = 1; * @return {?proto.bosdyn.api.SoftwareVersion} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.getVersion = function() { return /** @type{?proto.bosdyn.api.SoftwareVersion} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.SoftwareVersion, 1)); }; /** * @param {?proto.bosdyn.api.SoftwareVersion|undefined} value * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.setVersion = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.clearVersion = function() { return this.setVersion(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.hasVersion = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional string name = 2; * @return {string} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string type = 3; * @return {string} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional google.protobuf.Timestamp changeset_date = 4; * @return {?proto.google.protobuf.Timestamp} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.getChangesetDate = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.setChangesetDate = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.clearChangesetDate = function() { return this.setChangesetDate(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.hasChangesetDate = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional string changeset = 5; * @return {string} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.getChangeset = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.setChangeset = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional string api_version = 6; * @return {string} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.getApiVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.setApiVersion = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string build_information = 7; * @return {string} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.getBuildInformation = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.setBuildInformation = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * optional google.protobuf.Timestamp install_date = 8; * @return {?proto.google.protobuf.Timestamp} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.getInstallDate = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.setInstallDate = function(value) { return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.clearInstallDate = function() { return this.setInstallDate(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.hasInstallDate = function() { return jspb.Message.getField(this, 8) != null; }; /** * repeated Parameter parameters = 9; * @return {!Array<!proto.bosdyn.api.Parameter>} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.getParametersList = function() { return /** @type{!Array<!proto.bosdyn.api.Parameter>} */ ( jspb.Message.getRepeatedWrapperField(this, bosdyn_api_parameter_pb.Parameter, 9)); }; /** * @param {!Array<!proto.bosdyn.api.Parameter>} value * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.setParametersList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 9, value); }; /** * @param {!proto.bosdyn.api.Parameter=} opt_value * @param {number=} opt_index * @return {!proto.bosdyn.api.Parameter} */ proto.bosdyn.api.RobotSoftwareRelease.prototype.addParameters = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.bosdyn.api.Parameter, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.bosdyn.api.RobotSoftwareRelease} returns this */ proto.bosdyn.api.RobotSoftwareRelease.prototype.clearParametersList = function() { return this.setParametersList([]); }; 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.RobotIdRequest.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.RobotIdRequest.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.RobotIdRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.RobotIdRequest.toObject = function(includeInstance, msg) { var f, obj = { header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.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.RobotIdRequest} */ proto.bosdyn.api.RobotIdRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.RobotIdRequest; return proto.bosdyn.api.RobotIdRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.RobotIdRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.RobotIdRequest} */ proto.bosdyn.api.RobotIdRequest.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; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.RobotIdRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.RobotIdRequest.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.RobotIdRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.RobotIdRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHeader(); if (f != null) { writer.writeMessage( 1, f, bosdyn_api_header_pb.RequestHeader.serializeBinaryToWriter ); } }; /** * optional RequestHeader header = 1; * @return {?proto.bosdyn.api.RequestHeader} */ proto.bosdyn.api.RobotIdRequest.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.RobotIdRequest} returns this */ proto.bosdyn.api.RobotIdRequest.prototype.setHeader = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.RobotIdRequest} returns this */ proto.bosdyn.api.RobotIdRequest.prototype.clearHeader = function() { return this.setHeader(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.RobotIdRequest.prototype.hasHeader = function() { return jspb.Message.getField(this, 1) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved 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.RobotIdResponse.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.RobotIdResponse.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.RobotIdResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.RobotIdResponse.toObject = function(includeInstance, msg) { var f, obj = { header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f), robotId: (f = msg.getRobotId()) && proto.bosdyn.api.RobotId.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.RobotIdResponse} */ proto.bosdyn.api.RobotIdResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.RobotIdResponse; return proto.bosdyn.api.RobotIdResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.RobotIdResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.RobotIdResponse} */ proto.bosdyn.api.RobotIdResponse.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 proto.bosdyn.api.RobotId; reader.readMessage(value,proto.bosdyn.api.RobotId.deserializeBinaryFromReader); msg.setRobotId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.RobotIdResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.RobotIdResponse.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.RobotIdResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.RobotIdResponse.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.getRobotId(); if (f != null) { writer.writeMessage( 2, f, proto.bosdyn.api.RobotId.serializeBinaryToWriter ); } }; /** * optional ResponseHeader header = 1; * @return {?proto.bosdyn.api.ResponseHeader} */ proto.bosdyn.api.RobotIdResponse.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.RobotIdResponse} returns this */ proto.bosdyn.api.RobotIdResponse.prototype.setHeader = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.RobotIdResponse} returns this */ proto.bosdyn.api.RobotIdResponse.prototype.clearHeader = function() { return this.setHeader(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.RobotIdResponse.prototype.hasHeader = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional RobotId robot_id = 2; * @return {?proto.bosdyn.api.RobotId} */ proto.bosdyn.api.RobotIdResponse.prototype.getRobotId = function() { return /** @type{?proto.bosdyn.api.RobotId} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.RobotId, 2)); }; /** * @param {?proto.bosdyn.api.RobotId|undefined} value * @return {!proto.bosdyn.api.RobotIdResponse} returns this */ proto.bosdyn.api.RobotIdResponse.prototype.setRobotId = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.RobotIdResponse} returns this */ proto.bosdyn.api.RobotIdResponse.prototype.clearRobotId = function() { return this.setRobotId(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.RobotIdResponse.prototype.hasRobotId = function() { return jspb.Message.getField(this, 2) != null; }; goog.object.extend(exports, proto.bosdyn.api);