spot-sdk-js
Version:
Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.
1,499 lines (1,320 loc) • 122 kB
JavaScript
// source: bosdyn/api/spot_cam/ptz.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 google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
goog.object.extend(proto, google_protobuf_wrappers_pb);
var bosdyn_api_header_pb = require('../../../bosdyn/api/header_pb.js');
goog.object.extend(proto, bosdyn_api_header_pb);
goog.exportSymbol('proto.bosdyn.api.spot_cam.GetPtzPositionRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.GetPtzPositionResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.GetPtzVelocityRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.GetPtzVelocityResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.InitializeLensRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.InitializeLensResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.ListPtzRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.ListPtzResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.PtzDescription', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.PtzDescription.Limits', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.PtzPosition', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.PtzVelocity', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.SetPtzPositionRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.SetPtzPositionResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.SetPtzVelocityRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.spot_cam.SetPtzVelocityResponse', 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.PtzDescription = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.PtzDescription, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.PtzDescription.displayName = 'proto.bosdyn.api.spot_cam.PtzDescription';
}
/**
* 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.PtzDescription.Limits = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.PtzDescription.Limits, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.displayName = 'proto.bosdyn.api.spot_cam.PtzDescription.Limits';
}
/**
* 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.PtzPosition = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.PtzPosition, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.PtzPosition.displayName = 'proto.bosdyn.api.spot_cam.PtzPosition';
}
/**
* 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.PtzVelocity = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.PtzVelocity, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.PtzVelocity.displayName = 'proto.bosdyn.api.spot_cam.PtzVelocity';
}
/**
* 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.GetPtzPositionRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.GetPtzPositionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.GetPtzPositionRequest.displayName = 'proto.bosdyn.api.spot_cam.GetPtzPositionRequest';
}
/**
* 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.GetPtzPositionResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.GetPtzPositionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.GetPtzPositionResponse.displayName = 'proto.bosdyn.api.spot_cam.GetPtzPositionResponse';
}
/**
* 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.GetPtzVelocityRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.GetPtzVelocityRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.GetPtzVelocityRequest.displayName = 'proto.bosdyn.api.spot_cam.GetPtzVelocityRequest';
}
/**
* 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.GetPtzVelocityResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.GetPtzVelocityResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.GetPtzVelocityResponse.displayName = 'proto.bosdyn.api.spot_cam.GetPtzVelocityResponse';
}
/**
* 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.ListPtzRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.ListPtzRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.ListPtzRequest.displayName = 'proto.bosdyn.api.spot_cam.ListPtzRequest';
}
/**
* 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.ListPtzResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.spot_cam.ListPtzResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.ListPtzResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.ListPtzResponse.displayName = 'proto.bosdyn.api.spot_cam.ListPtzResponse';
}
/**
* 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.SetPtzPositionRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.SetPtzPositionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.SetPtzPositionRequest.displayName = 'proto.bosdyn.api.spot_cam.SetPtzPositionRequest';
}
/**
* 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.SetPtzPositionResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.SetPtzPositionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.SetPtzPositionResponse.displayName = 'proto.bosdyn.api.spot_cam.SetPtzPositionResponse';
}
/**
* 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.SetPtzVelocityRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.SetPtzVelocityRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.SetPtzVelocityRequest.displayName = 'proto.bosdyn.api.spot_cam.SetPtzVelocityRequest';
}
/**
* 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.SetPtzVelocityResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.SetPtzVelocityResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.SetPtzVelocityResponse.displayName = 'proto.bosdyn.api.spot_cam.SetPtzVelocityResponse';
}
/**
* 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.InitializeLensRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.InitializeLensRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.InitializeLensRequest.displayName = 'proto.bosdyn.api.spot_cam.InitializeLensRequest';
}
/**
* 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.InitializeLensResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.spot_cam.InitializeLensResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.spot_cam.InitializeLensResponse.displayName = 'proto.bosdyn.api.spot_cam.InitializeLensResponse';
}
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.PtzDescription.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.spot_cam.PtzDescription.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.PtzDescription} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.spot_cam.PtzDescription.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
panLimit: (f = msg.getPanLimit()) && proto.bosdyn.api.spot_cam.PtzDescription.Limits.toObject(includeInstance, f),
tiltLimit: (f = msg.getTiltLimit()) && proto.bosdyn.api.spot_cam.PtzDescription.Limits.toObject(includeInstance, f),
zoomLimit: (f = msg.getZoomLimit()) && proto.bosdyn.api.spot_cam.PtzDescription.Limits.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.PtzDescription}
*/
proto.bosdyn.api.spot_cam.PtzDescription.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.spot_cam.PtzDescription;
return proto.bosdyn.api.spot_cam.PtzDescription.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.PtzDescription} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.spot_cam.PtzDescription}
*/
proto.bosdyn.api.spot_cam.PtzDescription.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 = new proto.bosdyn.api.spot_cam.PtzDescription.Limits;
reader.readMessage(value,proto.bosdyn.api.spot_cam.PtzDescription.Limits.deserializeBinaryFromReader);
msg.setPanLimit(value);
break;
case 3:
var value = new proto.bosdyn.api.spot_cam.PtzDescription.Limits;
reader.readMessage(value,proto.bosdyn.api.spot_cam.PtzDescription.Limits.deserializeBinaryFromReader);
msg.setTiltLimit(value);
break;
case 4:
var value = new proto.bosdyn.api.spot_cam.PtzDescription.Limits;
reader.readMessage(value,proto.bosdyn.api.spot_cam.PtzDescription.Limits.deserializeBinaryFromReader);
msg.setZoomLimit(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.PtzDescription.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.spot_cam.PtzDescription.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.PtzDescription} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.spot_cam.PtzDescription.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getPanLimit();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.spot_cam.PtzDescription.Limits.serializeBinaryToWriter
);
}
f = message.getTiltLimit();
if (f != null) {
writer.writeMessage(
3,
f,
proto.bosdyn.api.spot_cam.PtzDescription.Limits.serializeBinaryToWriter
);
}
f = message.getZoomLimit();
if (f != null) {
writer.writeMessage(
4,
f,
proto.bosdyn.api.spot_cam.PtzDescription.Limits.serializeBinaryToWriter
);
}
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.spot_cam.PtzDescription.Limits.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.PtzDescription.Limits} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.toObject = function(includeInstance, msg) {
var f, obj = {
min: (f = msg.getMin()) && google_protobuf_wrappers_pb.FloatValue.toObject(includeInstance, f),
max: (f = msg.getMax()) && google_protobuf_wrappers_pb.FloatValue.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.PtzDescription.Limits}
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.spot_cam.PtzDescription.Limits;
return proto.bosdyn.api.spot_cam.PtzDescription.Limits.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.PtzDescription.Limits} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.spot_cam.PtzDescription.Limits}
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new google_protobuf_wrappers_pb.FloatValue;
reader.readMessage(value,google_protobuf_wrappers_pb.FloatValue.deserializeBinaryFromReader);
msg.setMin(value);
break;
case 2:
var value = new google_protobuf_wrappers_pb.FloatValue;
reader.readMessage(value,google_protobuf_wrappers_pb.FloatValue.deserializeBinaryFromReader);
msg.setMax(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.PtzDescription.Limits.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.spot_cam.PtzDescription.Limits.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.PtzDescription.Limits} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMin();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_wrappers_pb.FloatValue.serializeBinaryToWriter
);
}
f = message.getMax();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_wrappers_pb.FloatValue.serializeBinaryToWriter
);
}
};
/**
* optional google.protobuf.FloatValue min = 1;
* @return {?proto.google.protobuf.FloatValue}
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.prototype.getMin = function() {
return /** @type{?proto.google.protobuf.FloatValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.FloatValue, 1));
};
/**
* @param {?proto.google.protobuf.FloatValue|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzDescription.Limits} returns this
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.prototype.setMin = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzDescription.Limits} returns this
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.prototype.clearMin = function() {
return this.setMin(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.prototype.hasMin = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional google.protobuf.FloatValue max = 2;
* @return {?proto.google.protobuf.FloatValue}
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.prototype.getMax = function() {
return /** @type{?proto.google.protobuf.FloatValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.FloatValue, 2));
};
/**
* @param {?proto.google.protobuf.FloatValue|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzDescription.Limits} returns this
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.prototype.setMax = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzDescription.Limits} returns this
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.prototype.clearMax = function() {
return this.setMax(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzDescription.Limits.prototype.hasMax = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional string name = 1;
* @return {string}
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.spot_cam.PtzDescription} returns this
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional Limits pan_limit = 2;
* @return {?proto.bosdyn.api.spot_cam.PtzDescription.Limits}
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.getPanLimit = function() {
return /** @type{?proto.bosdyn.api.spot_cam.PtzDescription.Limits} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.spot_cam.PtzDescription.Limits, 2));
};
/**
* @param {?proto.bosdyn.api.spot_cam.PtzDescription.Limits|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzDescription} returns this
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.setPanLimit = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzDescription} returns this
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.clearPanLimit = function() {
return this.setPanLimit(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.hasPanLimit = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional Limits tilt_limit = 3;
* @return {?proto.bosdyn.api.spot_cam.PtzDescription.Limits}
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.getTiltLimit = function() {
return /** @type{?proto.bosdyn.api.spot_cam.PtzDescription.Limits} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.spot_cam.PtzDescription.Limits, 3));
};
/**
* @param {?proto.bosdyn.api.spot_cam.PtzDescription.Limits|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzDescription} returns this
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.setTiltLimit = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzDescription} returns this
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.clearTiltLimit = function() {
return this.setTiltLimit(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.hasTiltLimit = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional Limits zoom_limit = 4;
* @return {?proto.bosdyn.api.spot_cam.PtzDescription.Limits}
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.getZoomLimit = function() {
return /** @type{?proto.bosdyn.api.spot_cam.PtzDescription.Limits} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.spot_cam.PtzDescription.Limits, 4));
};
/**
* @param {?proto.bosdyn.api.spot_cam.PtzDescription.Limits|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzDescription} returns this
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.setZoomLimit = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzDescription} returns this
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.clearZoomLimit = function() {
return this.setZoomLimit(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzDescription.prototype.hasZoomLimit = function() {
return jspb.Message.getField(this, 4) != 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.spot_cam.PtzPosition.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.spot_cam.PtzPosition.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.PtzPosition} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.spot_cam.PtzPosition.toObject = function(includeInstance, msg) {
var f, obj = {
ptz: (f = msg.getPtz()) && proto.bosdyn.api.spot_cam.PtzDescription.toObject(includeInstance, f),
pan: (f = msg.getPan()) && google_protobuf_wrappers_pb.FloatValue.toObject(includeInstance, f),
tilt: (f = msg.getTilt()) && google_protobuf_wrappers_pb.FloatValue.toObject(includeInstance, f),
zoom: (f = msg.getZoom()) && google_protobuf_wrappers_pb.FloatValue.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.PtzPosition}
*/
proto.bosdyn.api.spot_cam.PtzPosition.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.spot_cam.PtzPosition;
return proto.bosdyn.api.spot_cam.PtzPosition.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.PtzPosition} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.spot_cam.PtzPosition}
*/
proto.bosdyn.api.spot_cam.PtzPosition.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 2:
var value = new proto.bosdyn.api.spot_cam.PtzDescription;
reader.readMessage(value,proto.bosdyn.api.spot_cam.PtzDescription.deserializeBinaryFromReader);
msg.setPtz(value);
break;
case 3:
var value = new google_protobuf_wrappers_pb.FloatValue;
reader.readMessage(value,google_protobuf_wrappers_pb.FloatValue.deserializeBinaryFromReader);
msg.setPan(value);
break;
case 4:
var value = new google_protobuf_wrappers_pb.FloatValue;
reader.readMessage(value,google_protobuf_wrappers_pb.FloatValue.deserializeBinaryFromReader);
msg.setTilt(value);
break;
case 5:
var value = new google_protobuf_wrappers_pb.FloatValue;
reader.readMessage(value,google_protobuf_wrappers_pb.FloatValue.deserializeBinaryFromReader);
msg.setZoom(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.PtzPosition.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.spot_cam.PtzPosition.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.PtzPosition} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.spot_cam.PtzPosition.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPtz();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.spot_cam.PtzDescription.serializeBinaryToWriter
);
}
f = message.getPan();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_wrappers_pb.FloatValue.serializeBinaryToWriter
);
}
f = message.getTilt();
if (f != null) {
writer.writeMessage(
4,
f,
google_protobuf_wrappers_pb.FloatValue.serializeBinaryToWriter
);
}
f = message.getZoom();
if (f != null) {
writer.writeMessage(
5,
f,
google_protobuf_wrappers_pb.FloatValue.serializeBinaryToWriter
);
}
};
/**
* optional PtzDescription ptz = 2;
* @return {?proto.bosdyn.api.spot_cam.PtzDescription}
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.getPtz = function() {
return /** @type{?proto.bosdyn.api.spot_cam.PtzDescription} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.spot_cam.PtzDescription, 2));
};
/**
* @param {?proto.bosdyn.api.spot_cam.PtzDescription|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzPosition} returns this
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.setPtz = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzPosition} returns this
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.clearPtz = function() {
return this.setPtz(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.hasPtz = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional google.protobuf.FloatValue pan = 3;
* @return {?proto.google.protobuf.FloatValue}
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.getPan = function() {
return /** @type{?proto.google.protobuf.FloatValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.FloatValue, 3));
};
/**
* @param {?proto.google.protobuf.FloatValue|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzPosition} returns this
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.setPan = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzPosition} returns this
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.clearPan = function() {
return this.setPan(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.hasPan = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional google.protobuf.FloatValue tilt = 4;
* @return {?proto.google.protobuf.FloatValue}
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.getTilt = function() {
return /** @type{?proto.google.protobuf.FloatValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.FloatValue, 4));
};
/**
* @param {?proto.google.protobuf.FloatValue|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzPosition} returns this
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.setTilt = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzPosition} returns this
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.clearTilt = function() {
return this.setTilt(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.hasTilt = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional google.protobuf.FloatValue zoom = 5;
* @return {?proto.google.protobuf.FloatValue}
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.getZoom = function() {
return /** @type{?proto.google.protobuf.FloatValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.FloatValue, 5));
};
/**
* @param {?proto.google.protobuf.FloatValue|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzPosition} returns this
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.setZoom = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzPosition} returns this
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.clearZoom = function() {
return this.setZoom(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzPosition.prototype.hasZoom = function() {
return jspb.Message.getField(this, 5) != 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.spot_cam.PtzVelocity.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.spot_cam.PtzVelocity.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.PtzVelocity} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.spot_cam.PtzVelocity.toObject = function(includeInstance, msg) {
var f, obj = {
ptz: (f = msg.getPtz()) && proto.bosdyn.api.spot_cam.PtzDescription.toObject(includeInstance, f),
pan: (f = msg.getPan()) && google_protobuf_wrappers_pb.FloatValue.toObject(includeInstance, f),
tilt: (f = msg.getTilt()) && google_protobuf_wrappers_pb.FloatValue.toObject(includeInstance, f),
zoom: (f = msg.getZoom()) && google_protobuf_wrappers_pb.FloatValue.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.PtzVelocity}
*/
proto.bosdyn.api.spot_cam.PtzVelocity.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.spot_cam.PtzVelocity;
return proto.bosdyn.api.spot_cam.PtzVelocity.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.PtzVelocity} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.spot_cam.PtzVelocity}
*/
proto.bosdyn.api.spot_cam.PtzVelocity.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 2:
var value = new proto.bosdyn.api.spot_cam.PtzDescription;
reader.readMessage(value,proto.bosdyn.api.spot_cam.PtzDescription.deserializeBinaryFromReader);
msg.setPtz(value);
break;
case 3:
var value = new google_protobuf_wrappers_pb.FloatValue;
reader.readMessage(value,google_protobuf_wrappers_pb.FloatValue.deserializeBinaryFromReader);
msg.setPan(value);
break;
case 4:
var value = new google_protobuf_wrappers_pb.FloatValue;
reader.readMessage(value,google_protobuf_wrappers_pb.FloatValue.deserializeBinaryFromReader);
msg.setTilt(value);
break;
case 5:
var value = new google_protobuf_wrappers_pb.FloatValue;
reader.readMessage(value,google_protobuf_wrappers_pb.FloatValue.deserializeBinaryFromReader);
msg.setZoom(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.PtzVelocity.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.spot_cam.PtzVelocity.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.PtzVelocity} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.spot_cam.PtzVelocity.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPtz();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.spot_cam.PtzDescription.serializeBinaryToWriter
);
}
f = message.getPan();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_wrappers_pb.FloatValue.serializeBinaryToWriter
);
}
f = message.getTilt();
if (f != null) {
writer.writeMessage(
4,
f,
google_protobuf_wrappers_pb.FloatValue.serializeBinaryToWriter
);
}
f = message.getZoom();
if (f != null) {
writer.writeMessage(
5,
f,
google_protobuf_wrappers_pb.FloatValue.serializeBinaryToWriter
);
}
};
/**
* optional PtzDescription ptz = 2;
* @return {?proto.bosdyn.api.spot_cam.PtzDescription}
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.getPtz = function() {
return /** @type{?proto.bosdyn.api.spot_cam.PtzDescription} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.spot_cam.PtzDescription, 2));
};
/**
* @param {?proto.bosdyn.api.spot_cam.PtzDescription|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzVelocity} returns this
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.setPtz = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzVelocity} returns this
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.clearPtz = function() {
return this.setPtz(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.hasPtz = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional google.protobuf.FloatValue pan = 3;
* @return {?proto.google.protobuf.FloatValue}
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.getPan = function() {
return /** @type{?proto.google.protobuf.FloatValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.FloatValue, 3));
};
/**
* @param {?proto.google.protobuf.FloatValue|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzVelocity} returns this
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.setPan = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzVelocity} returns this
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.clearPan = function() {
return this.setPan(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.hasPan = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional google.protobuf.FloatValue tilt = 4;
* @return {?proto.google.protobuf.FloatValue}
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.getTilt = function() {
return /** @type{?proto.google.protobuf.FloatValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.FloatValue, 4));
};
/**
* @param {?proto.google.protobuf.FloatValue|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzVelocity} returns this
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.setTilt = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzVelocity} returns this
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.clearTilt = function() {
return this.setTilt(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.hasTilt = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional google.protobuf.FloatValue zoom = 5;
* @return {?proto.google.protobuf.FloatValue}
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.getZoom = function() {
return /** @type{?proto.google.protobuf.FloatValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.FloatValue, 5));
};
/**
* @param {?proto.google.protobuf.FloatValue|undefined} value
* @return {!proto.bosdyn.api.spot_cam.PtzVelocity} returns this
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.setZoom = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.spot_cam.PtzVelocity} returns this
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.clearZoom = function() {
return this.setZoom(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.spot_cam.PtzVelocity.prototype.hasZoom = function() {
return jspb.Message.getField(this, 5) != 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.spot_cam.GetPtzPositionRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.spot_cam.GetPtzPositionRequest.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.GetPtzPositionRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.spot_cam.GetPtzPositionRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_