UNPKG

spot-sdk-js

Version:

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

1,501 lines (1,363 loc) 177 kB
// source: bosdyn/api/spot_cam/logging.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_spot_cam_camera_pb = require('../../../bosdyn/api/spot_cam/camera_pb.js'); goog.object.extend(proto, bosdyn_api_spot_cam_camera_pb); var bosdyn_api_header_pb = require('../../../bosdyn/api/header_pb.js'); goog.object.extend(proto, bosdyn_api_header_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_image_pb = require('../../../bosdyn/api/image_pb.js'); goog.object.extend(proto, bosdyn_api_image_pb); var bosdyn_api_geometry_pb = require('../../../bosdyn/api/geometry_pb.js'); goog.object.extend(proto, bosdyn_api_geometry_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.spot_cam.DebugRequest', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.DebugResponse', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.DeleteRequest', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.DeleteResponse', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.GetStatusRequest', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.GetStatusResponse', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.ListCamerasRequest', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.ListCamerasResponse', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.ListLogpointsRequest', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.ListLogpointsResponse', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.Logpoint', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.Logpoint.Calibration', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.Logpoint.ImageParams', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.Logpoint.LogStatus', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.Logpoint.QueueStatus', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.Logpoint.RecordType', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.RetrieveRawDataRequest', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.RetrieveRawDataResponse', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.RetrieveRequest', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.RetrieveResponse', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.SetPassphraseRequest', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.SetPassphraseResponse', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.StoreRequest', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.StoreResponse', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.TagRequest', null, global); goog.exportSymbol('proto.bosdyn.api.spot_cam.TagResponse', 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.spot_cam.Logpoint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.spot_cam.Logpoint.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.spot_cam.Logpoint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.Logpoint.displayName = 'proto.bosdyn.api.spot_cam.Logpoint'; } /** * 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.spot_cam.Logpoint.ImageParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.Logpoint.ImageParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.displayName = 'proto.bosdyn.api.spot_cam.Logpoint.ImageParams'; } /** * 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.spot_cam.Logpoint.Calibration = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.Logpoint.Calibration, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.displayName = 'proto.bosdyn.api.spot_cam.Logpoint.Calibration'; } /** * 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.spot_cam.DeleteRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.DeleteRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.DeleteRequest.displayName = 'proto.bosdyn.api.spot_cam.DeleteRequest'; } /** * 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.spot_cam.DeleteResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.DeleteResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.DeleteResponse.displayName = 'proto.bosdyn.api.spot_cam.DeleteResponse'; } /** * 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.spot_cam.GetStatusRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.GetStatusRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.GetStatusRequest.displayName = 'proto.bosdyn.api.spot_cam.GetStatusRequest'; } /** * 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.spot_cam.GetStatusResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.GetStatusResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.GetStatusResponse.displayName = 'proto.bosdyn.api.spot_cam.GetStatusResponse'; } /** * 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.spot_cam.RetrieveRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.RetrieveRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.RetrieveRequest.displayName = 'proto.bosdyn.api.spot_cam.RetrieveRequest'; } /** * 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.spot_cam.RetrieveResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.RetrieveResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.RetrieveResponse.displayName = 'proto.bosdyn.api.spot_cam.RetrieveResponse'; } /** * 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.spot_cam.RetrieveRawDataRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.RetrieveRawDataRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.RetrieveRawDataRequest.displayName = 'proto.bosdyn.api.spot_cam.RetrieveRawDataRequest'; } /** * 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.spot_cam.RetrieveRawDataResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.RetrieveRawDataResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.RetrieveRawDataResponse.displayName = 'proto.bosdyn.api.spot_cam.RetrieveRawDataResponse'; } /** * 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.spot_cam.StoreRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.StoreRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.StoreRequest.displayName = 'proto.bosdyn.api.spot_cam.StoreRequest'; } /** * 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.spot_cam.StoreResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.StoreResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.StoreResponse.displayName = 'proto.bosdyn.api.spot_cam.StoreResponse'; } /** * 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.spot_cam.TagRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.TagRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.TagRequest.displayName = 'proto.bosdyn.api.spot_cam.TagRequest'; } /** * 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.spot_cam.TagResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.TagResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.TagResponse.displayName = 'proto.bosdyn.api.spot_cam.TagResponse'; } /** * 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.spot_cam.ListCamerasRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.ListCamerasRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.ListCamerasRequest.displayName = 'proto.bosdyn.api.spot_cam.ListCamerasRequest'; } /** * 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.spot_cam.ListCamerasResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.spot_cam.ListCamerasResponse.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.spot_cam.ListCamerasResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.ListCamerasResponse.displayName = 'proto.bosdyn.api.spot_cam.ListCamerasResponse'; } /** * 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.spot_cam.ListLogpointsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.ListLogpointsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.ListLogpointsRequest.displayName = 'proto.bosdyn.api.spot_cam.ListLogpointsRequest'; } /** * 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.spot_cam.ListLogpointsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.spot_cam.ListLogpointsResponse.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.spot_cam.ListLogpointsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.ListLogpointsResponse.displayName = 'proto.bosdyn.api.spot_cam.ListLogpointsResponse'; } /** * 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.spot_cam.SetPassphraseRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.SetPassphraseRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.SetPassphraseRequest.displayName = 'proto.bosdyn.api.spot_cam.SetPassphraseRequest'; } /** * 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.spot_cam.SetPassphraseResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.SetPassphraseResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.SetPassphraseResponse.displayName = 'proto.bosdyn.api.spot_cam.SetPassphraseResponse'; } /** * 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.spot_cam.DebugRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.DebugRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.DebugRequest.displayName = 'proto.bosdyn.api.spot_cam.DebugRequest'; } /** * 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.spot_cam.DebugResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.spot_cam.DebugResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.spot_cam.DebugResponse.displayName = 'proto.bosdyn.api.spot_cam.DebugResponse'; } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.bosdyn.api.spot_cam.Logpoint.repeatedFields_ = [7]; 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.spot_cam.Logpoint.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.spot_cam.Logpoint.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.spot_cam.Logpoint} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.spot_cam.Logpoint.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), type: jspb.Message.getFieldWithDefault(msg, 2, 0), status: jspb.Message.getFieldWithDefault(msg, 3, 0), queueStatus: jspb.Message.getFieldWithDefault(msg, 8, 0), tag: jspb.Message.getFieldWithDefault(msg, 4, ""), timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), imageParams: (f = msg.getImageParams()) && proto.bosdyn.api.spot_cam.Logpoint.ImageParams.toObject(includeInstance, f), calibrationList: jspb.Message.toObjectList(msg.getCalibrationList(), proto.bosdyn.api.spot_cam.Logpoint.Calibration.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.spot_cam.Logpoint} */ proto.bosdyn.api.spot_cam.Logpoint.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.spot_cam.Logpoint; return proto.bosdyn.api.spot_cam.Logpoint.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.spot_cam.Logpoint} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.spot_cam.Logpoint} */ proto.bosdyn.api.spot_cam.Logpoint.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 2: var value = /** @type {!proto.bosdyn.api.spot_cam.Logpoint.RecordType} */ (reader.readEnum()); msg.setType(value); break; case 3: var value = /** @type {!proto.bosdyn.api.spot_cam.Logpoint.LogStatus} */ (reader.readEnum()); msg.setStatus(value); break; case 8: var value = /** @type {!proto.bosdyn.api.spot_cam.Logpoint.QueueStatus} */ (reader.readEnum()); msg.setQueueStatus(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setTag(value); break; case 5: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setTimestamp(value); break; case 6: var value = new proto.bosdyn.api.spot_cam.Logpoint.ImageParams; reader.readMessage(value,proto.bosdyn.api.spot_cam.Logpoint.ImageParams.deserializeBinaryFromReader); msg.setImageParams(value); break; case 7: var value = new proto.bosdyn.api.spot_cam.Logpoint.Calibration; reader.readMessage(value,proto.bosdyn.api.spot_cam.Logpoint.Calibration.deserializeBinaryFromReader); msg.addCalibration(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.spot_cam.Logpoint.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.spot_cam.Logpoint.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.spot_cam.Logpoint} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.spot_cam.Logpoint.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getType(); if (f !== 0.0) { writer.writeEnum( 2, f ); } f = message.getStatus(); if (f !== 0.0) { writer.writeEnum( 3, f ); } f = message.getQueueStatus(); if (f !== 0.0) { writer.writeEnum( 8, f ); } f = message.getTag(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getTimestamp(); if (f != null) { writer.writeMessage( 5, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getImageParams(); if (f != null) { writer.writeMessage( 6, f, proto.bosdyn.api.spot_cam.Logpoint.ImageParams.serializeBinaryToWriter ); } f = message.getCalibrationList(); if (f.length > 0) { writer.writeRepeatedMessage( 7, f, proto.bosdyn.api.spot_cam.Logpoint.Calibration.serializeBinaryToWriter ); } }; /** * @enum {number} */ proto.bosdyn.api.spot_cam.Logpoint.RecordType = { STILLIMAGE: 0 }; /** * @enum {number} */ proto.bosdyn.api.spot_cam.Logpoint.LogStatus = { FAILED: 0, QUEUED: 1, COMPLETE: 2, UNKNOWN: -1 }; /** * @enum {number} */ proto.bosdyn.api.spot_cam.Logpoint.QueueStatus = { QUEUED_UNKNOWN: 0, QUEUED_RENDER: 1, QUEUED_DISK: 2 }; 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.spot_cam.Logpoint.ImageParams.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.spot_cam.Logpoint.ImageParams.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.spot_cam.Logpoint.ImageParams} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.toObject = function(includeInstance, msg) { var f, obj = { width: jspb.Message.getFieldWithDefault(msg, 1, 0), height: jspb.Message.getFieldWithDefault(msg, 2, 0), format: 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.spot_cam.Logpoint.ImageParams} */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.spot_cam.Logpoint.ImageParams; return proto.bosdyn.api.spot_cam.Logpoint.ImageParams.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.spot_cam.Logpoint.ImageParams} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.spot_cam.Logpoint.ImageParams} */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.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.setWidth(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); msg.setHeight(value); break; case 3: var value = /** @type {!proto.bosdyn.api.Image.PixelFormat} */ (reader.readEnum()); msg.setFormat(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.spot_cam.Logpoint.ImageParams.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.spot_cam.Logpoint.ImageParams} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getWidth(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getHeight(); if (f !== 0) { writer.writeInt32( 2, f ); } f = message.getFormat(); if (f !== 0.0) { writer.writeEnum( 3, f ); } }; /** * optional int32 width = 1; * @return {number} */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.prototype.getWidth = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.spot_cam.Logpoint.ImageParams} returns this */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.prototype.setWidth = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional int32 height = 2; * @return {number} */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.prototype.getHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.spot_cam.Logpoint.ImageParams} returns this */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.prototype.setHeight = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional bosdyn.api.Image.PixelFormat format = 3; * @return {!proto.bosdyn.api.Image.PixelFormat} */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.prototype.getFormat = function() { return /** @type {!proto.bosdyn.api.Image.PixelFormat} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {!proto.bosdyn.api.Image.PixelFormat} value * @return {!proto.bosdyn.api.spot_cam.Logpoint.ImageParams} returns this */ proto.bosdyn.api.spot_cam.Logpoint.ImageParams.prototype.setFormat = 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.spot_cam.Logpoint.Calibration.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.spot_cam.Logpoint.Calibration.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.spot_cam.Logpoint.Calibration} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.toObject = function(includeInstance, msg) { var f, obj = { xoffset: jspb.Message.getFieldWithDefault(msg, 1, 0), yoffset: jspb.Message.getFieldWithDefault(msg, 2, 0), width: jspb.Message.getFieldWithDefault(msg, 3, 0), height: jspb.Message.getFieldWithDefault(msg, 4, 0), baseFrameName: jspb.Message.getFieldWithDefault(msg, 7, ""), baseTfromSensor: (f = msg.getBaseTfromSensor()) && bosdyn_api_geometry_pb.SE3Pose.toObject(includeInstance, f), baseTformSensor: (f = msg.getBaseTformSensor()) && bosdyn_api_geometry_pb.SE3Pose.toObject(includeInstance, f), intrinsics: (f = msg.getIntrinsics()) && bosdyn_api_spot_cam_camera_pb.Camera.PinholeIntrinsics.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.spot_cam.Logpoint.Calibration} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.spot_cam.Logpoint.Calibration; return proto.bosdyn.api.spot_cam.Logpoint.Calibration.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.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.setXoffset(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); msg.setYoffset(value); break; case 3: var value = /** @type {number} */ (reader.readInt32()); msg.setWidth(value); break; case 4: var value = /** @type {number} */ (reader.readInt32()); msg.setHeight(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setBaseFrameName(value); break; case 5: var value = new bosdyn_api_geometry_pb.SE3Pose; reader.readMessage(value,bosdyn_api_geometry_pb.SE3Pose.deserializeBinaryFromReader); msg.setBaseTfromSensor(value); break; case 8: var value = new bosdyn_api_geometry_pb.SE3Pose; reader.readMessage(value,bosdyn_api_geometry_pb.SE3Pose.deserializeBinaryFromReader); msg.setBaseTformSensor(value); break; case 6: var value = new bosdyn_api_spot_cam_camera_pb.Camera.PinholeIntrinsics; reader.readMessage(value,bosdyn_api_spot_cam_camera_pb.Camera.PinholeIntrinsics.deserializeBinaryFromReader); msg.setIntrinsics(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.spot_cam.Logpoint.Calibration.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.spot_cam.Logpoint.Calibration} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getXoffset(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getYoffset(); if (f !== 0) { writer.writeInt32( 2, f ); } f = message.getWidth(); if (f !== 0) { writer.writeInt32( 3, f ); } f = message.getHeight(); if (f !== 0) { writer.writeInt32( 4, f ); } f = message.getBaseFrameName(); if (f.length > 0) { writer.writeString( 7, f ); } f = message.getBaseTfromSensor(); if (f != null) { writer.writeMessage( 5, f, bosdyn_api_geometry_pb.SE3Pose.serializeBinaryToWriter ); } f = message.getBaseTformSensor(); if (f != null) { writer.writeMessage( 8, f, bosdyn_api_geometry_pb.SE3Pose.serializeBinaryToWriter ); } f = message.getIntrinsics(); if (f != null) { writer.writeMessage( 6, f, bosdyn_api_spot_cam_camera_pb.Camera.PinholeIntrinsics.serializeBinaryToWriter ); } }; /** * optional int32 xoffset = 1; * @return {number} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.getXoffset = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} returns this */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.setXoffset = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional int32 yoffset = 2; * @return {number} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.getYoffset = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} returns this */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.setYoffset = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional int32 width = 3; * @return {number} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.getWidth = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} returns this */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.setWidth = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional int32 height = 4; * @return {number} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.getHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} returns this */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.setHeight = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional string base_frame_name = 7; * @return {string} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.getBaseFrameName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} returns this */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.setBaseFrameName = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * optional bosdyn.api.SE3Pose base_tfrom_sensor = 5; * @return {?proto.bosdyn.api.SE3Pose} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.getBaseTfromSensor = function() { return /** @type{?proto.bosdyn.api.SE3Pose} */ ( jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.SE3Pose, 5)); }; /** * @param {?proto.bosdyn.api.SE3Pose|undefined} value * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} returns this */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.setBaseTfromSensor = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} returns this */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.clearBaseTfromSensor = function() { return this.setBaseTfromSensor(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.hasBaseTfromSensor = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional bosdyn.api.SE3Pose base_tform_sensor = 8; * @return {?proto.bosdyn.api.SE3Pose} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.getBaseTformSensor = function() { return /** @type{?proto.bosdyn.api.SE3Pose} */ ( jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.SE3Pose, 8)); }; /** * @param {?proto.bosdyn.api.SE3Pose|undefined} value * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} returns this */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.setBaseTformSensor = function(value) { return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} returns this */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.clearBaseTformSensor = function() { return this.setBaseTformSensor(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.hasBaseTformSensor = function() { return jspb.Message.getField(this, 8) != null; }; /** * optional Camera.PinholeIntrinsics intrinsics = 6; * @return {?proto.bosdyn.api.spot_cam.Camera.PinholeIntrinsics} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.getIntrinsics = function() { return /** @type{?proto.bosdyn.api.spot_cam.Camera.PinholeIntrinsics} */ ( jspb.Message.getWrapperField(this, bosdyn_api_spot_cam_camera_pb.Camera.PinholeIntrinsics, 6)); }; /** * @param {?proto.bosdyn.api.spot_cam.Camera.PinholeIntrinsics|undefined} value * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} returns this */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.setIntrinsics = function(value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.spot_cam.Logpoint.Calibration} returns this */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.clearIntrinsics = function() { return this.setIntrinsics(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.spot_cam.Logpoint.Calibration.prototype.hasIntrinsics = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional string name = 1; * @return {string} */ proto.bosdyn.api.spot_cam.Logpoint.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.spot_cam.Logpoint} returns this */ proto.bosdyn.api.spot_cam.Logpoint.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional RecordType type = 2; * @return {!proto.bosdyn.api.spot_cam.Logpoint.RecordType} */ proto.bosdyn.api.spot_cam.Logpoint.prototype.getType = function() { return /** @type {!proto.bosdyn.api.spot_cam.Logpoint.RecordType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {!proto.bosdyn.api.spot_cam.Logpoint.RecordType} value * @return {!proto.bosdyn.api.spot_cam.Logpoint} returns this */ proto.bosdyn.api.spot_cam.Logpoint.prototype.setType = function(value) { return jspb.Message.setProto3EnumField(this, 2, value); }; /** * optional LogStatus status = 3; * @return {!proto.bosdyn.api.spot_cam.Logpoint.LogStatus} */ proto.bosdyn.api.spot_cam.Logpoint.prototype.getStatus = function() { return /** @type {!proto.bosdyn.api.spot_cam.Logpoint.LogStatus} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {!proto.bosdyn.api.spot_cam.Logpoint.LogStatus} value * @return {!proto.bosdyn.api.spot_cam.Logpoint} returns this */ proto.bosdyn.api.spot_cam.Logpoint.prototype.setStatus = function(value) { return jspb.Message.setProto3EnumField(this, 3, value); }; /** * optional QueueStatus queue_status = 8; * @return {!proto.bosdyn.api.spot_cam.Logpoint.QueueStatus} */ proto.bosdyn.api.spot_cam.Logpoint.prototype.getQueueStatus = function() { return /** @type {!proto.bosdyn.api.spot_cam.Logpoint.QueueStatus} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; /** * @param {!proto.bosdyn.api.spot_cam.Logpoint.QueueStatus} value * @return {!proto.bosdyn.api.spot_cam.Logpoint} returns this */ proto.bosdyn.api.spot_cam.Logpoint.prototype.setQueueStatus = function(value) { return jspb.Message.setProto3EnumField(this, 8, value); }; /** * optional string tag = 4; * @return {string} */ proto.bosdyn.api.spot_cam.Logpoint.prototype.getTag = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.spot_cam.Logpoint} returns this */ proto.bosdyn.api.spot_cam.Logpoint.prototype.setTag = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional google.protobuf.Timestamp timestamp = 5; * @return {?proto.google.protobuf.Timestamp} */ proto.bosdyn.api.spot_cam.Logpoint.prototype.getTimestamp = 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.spot_cam.Logpoint} returns this */ proto.bosdyn.api.spot_cam.Logpoint.prototype.setTimestamp = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.spot_cam.Logpoint} returns this */ proto.bosdyn.api.spot_cam.Logpoint.prototype.clearTimestamp = function() { return this.setTimestamp(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.spot_cam.Logpoint.prototype.hasTimestamp = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional ImageParams image_params = 6; * @return {?proto.bosdyn.api.spot_cam.Logpoint.ImageParams} */ proto.bosdyn.api.spot_cam.Logpoint.prototype.getImageParams = function() { return /** @type{?proto.bosdyn.api.spot_cam.Logpoint.ImageParams} */ ( jspb.Message.getWrapperField(this,