spot-sdk-js
Version:
Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.
1,525 lines (1,313 loc) • 53.3 kB
JavaScript
// source: bosdyn/api/auto_return/auto_return.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_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
goog.object.extend(proto, google_protobuf_any_pb);
var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
goog.object.extend(proto, google_protobuf_duration_pb);
var bosdyn_api_header_pb = require('../../../bosdyn/api/header_pb.js');
goog.object.extend(proto, bosdyn_api_header_pb);
var bosdyn_api_lease_pb = require('../../../bosdyn/api/lease_pb.js');
goog.object.extend(proto, bosdyn_api_lease_pb);
goog.exportSymbol('proto.bosdyn.api.auto_return.ConfigureRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.auto_return.ConfigureResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.auto_return.ConfigureResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.auto_return.GetConfigurationRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.auto_return.GetConfigurationResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.auto_return.Params', null, global);
goog.exportSymbol('proto.bosdyn.api.auto_return.StartRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.auto_return.StartResponse', 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.auto_return.Params = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.auto_return.Params, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.auto_return.Params.displayName = 'proto.bosdyn.api.auto_return.Params';
}
/**
* 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.auto_return.ConfigureRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.auto_return.ConfigureRequest.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.auto_return.ConfigureRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.auto_return.ConfigureRequest.displayName = 'proto.bosdyn.api.auto_return.ConfigureRequest';
}
/**
* 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.auto_return.ConfigureResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.auto_return.ConfigureResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.auto_return.ConfigureResponse.displayName = 'proto.bosdyn.api.auto_return.ConfigureResponse';
}
/**
* 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.auto_return.GetConfigurationRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.auto_return.GetConfigurationRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.auto_return.GetConfigurationRequest.displayName = 'proto.bosdyn.api.auto_return.GetConfigurationRequest';
}
/**
* 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.auto_return.GetConfigurationResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.auto_return.GetConfigurationResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.displayName = 'proto.bosdyn.api.auto_return.GetConfigurationResponse';
}
/**
* 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.auto_return.StartRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.auto_return.StartRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.auto_return.StartRequest.displayName = 'proto.bosdyn.api.auto_return.StartRequest';
}
/**
* 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.auto_return.StartResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.auto_return.StartResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.auto_return.StartResponse.displayName = 'proto.bosdyn.api.auto_return.StartResponse';
}
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.auto_return.Params.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.auto_return.Params.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.auto_return.Params} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.Params.toObject = function(includeInstance, msg) {
var f, obj = {
mobilityParams: (f = msg.getMobilityParams()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
maxDisplacement: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
maxDuration: (f = msg.getMaxDuration()) && google_protobuf_duration_pb.Duration.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.auto_return.Params}
*/
proto.bosdyn.api.auto_return.Params.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.auto_return.Params;
return proto.bosdyn.api.auto_return.Params.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.auto_return.Params} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.auto_return.Params}
*/
proto.bosdyn.api.auto_return.Params.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new google_protobuf_any_pb.Any;
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setMobilityParams(value);
break;
case 2:
var value = /** @type {number} */ (reader.readFloat());
msg.setMaxDisplacement(value);
break;
case 3:
var value = new google_protobuf_duration_pb.Duration;
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
msg.setMaxDuration(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.auto_return.Params.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.auto_return.Params.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.auto_return.Params} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.Params.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMobilityParams();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter
);
}
f = message.getMaxDisplacement();
if (f !== 0.0) {
writer.writeFloat(
2,
f
);
}
f = message.getMaxDuration();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
);
}
};
/**
* optional google.protobuf.Any mobility_params = 1;
* @return {?proto.google.protobuf.Any}
*/
proto.bosdyn.api.auto_return.Params.prototype.getMobilityParams = function() {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1));
};
/**
* @param {?proto.google.protobuf.Any|undefined} value
* @return {!proto.bosdyn.api.auto_return.Params} returns this
*/
proto.bosdyn.api.auto_return.Params.prototype.setMobilityParams = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.auto_return.Params} returns this
*/
proto.bosdyn.api.auto_return.Params.prototype.clearMobilityParams = function() {
return this.setMobilityParams(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.auto_return.Params.prototype.hasMobilityParams = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional float max_displacement = 2;
* @return {number}
*/
proto.bosdyn.api.auto_return.Params.prototype.getMaxDisplacement = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.auto_return.Params} returns this
*/
proto.bosdyn.api.auto_return.Params.prototype.setMaxDisplacement = function(value) {
return jspb.Message.setProto3FloatField(this, 2, value);
};
/**
* optional google.protobuf.Duration max_duration = 3;
* @return {?proto.google.protobuf.Duration}
*/
proto.bosdyn.api.auto_return.Params.prototype.getMaxDuration = function() {
return /** @type{?proto.google.protobuf.Duration} */ (
jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3));
};
/**
* @param {?proto.google.protobuf.Duration|undefined} value
* @return {!proto.bosdyn.api.auto_return.Params} returns this
*/
proto.bosdyn.api.auto_return.Params.prototype.setMaxDuration = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.auto_return.Params} returns this
*/
proto.bosdyn.api.auto_return.Params.prototype.clearMaxDuration = function() {
return this.setMaxDuration(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.auto_return.Params.prototype.hasMaxDuration = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.auto_return.ConfigureRequest.repeatedFields_ = [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.auto_return.ConfigureRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.auto_return.ConfigureRequest.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.auto_return.ConfigureRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.ConfigureRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
leasesList: jspb.Message.toObjectList(msg.getLeasesList(),
bosdyn_api_lease_pb.Lease.toObject, includeInstance),
params: (f = msg.getParams()) && proto.bosdyn.api.auto_return.Params.toObject(includeInstance, f),
clearBuffer: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.auto_return.ConfigureRequest}
*/
proto.bosdyn.api.auto_return.ConfigureRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.auto_return.ConfigureRequest;
return proto.bosdyn.api.auto_return.ConfigureRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.auto_return.ConfigureRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.auto_return.ConfigureRequest}
*/
proto.bosdyn.api.auto_return.ConfigureRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.RequestHeader;
reader.readMessage(value,bosdyn_api_header_pb.RequestHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new bosdyn_api_lease_pb.Lease;
reader.readMessage(value,bosdyn_api_lease_pb.Lease.deserializeBinaryFromReader);
msg.addLeases(value);
break;
case 3:
var value = new proto.bosdyn.api.auto_return.Params;
reader.readMessage(value,proto.bosdyn.api.auto_return.Params.deserializeBinaryFromReader);
msg.setParams(value);
break;
case 4:
var value = /** @type {boolean} */ (reader.readBool());
msg.setClearBuffer(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.auto_return.ConfigureRequest.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.auto_return.ConfigureRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.ConfigureRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeader();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_header_pb.RequestHeader.serializeBinaryToWriter
);
}
f = message.getLeasesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
bosdyn_api_lease_pb.Lease.serializeBinaryToWriter
);
}
f = message.getParams();
if (f != null) {
writer.writeMessage(
3,
f,
proto.bosdyn.api.auto_return.Params.serializeBinaryToWriter
);
}
f = message.getClearBuffer();
if (f) {
writer.writeBool(
4,
f
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.getHeader = function() {
return /** @type{?proto.bosdyn.api.RequestHeader} */ (
jspb.Message.getWrapperField(this, bosdyn_api_header_pb.RequestHeader, 1));
};
/**
* @param {?proto.bosdyn.api.RequestHeader|undefined} value
* @return {!proto.bosdyn.api.auto_return.ConfigureRequest} returns this
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.auto_return.ConfigureRequest} returns this
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated bosdyn.api.Lease leases = 2;
* @return {!Array<!proto.bosdyn.api.Lease>}
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.getLeasesList = function() {
return /** @type{!Array<!proto.bosdyn.api.Lease>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_lease_pb.Lease, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.Lease>} value
* @return {!proto.bosdyn.api.auto_return.ConfigureRequest} returns this
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.setLeasesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.Lease=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.Lease}
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.addLeases = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.Lease, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.auto_return.ConfigureRequest} returns this
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.clearLeasesList = function() {
return this.setLeasesList([]);
};
/**
* optional Params params = 3;
* @return {?proto.bosdyn.api.auto_return.Params}
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.getParams = function() {
return /** @type{?proto.bosdyn.api.auto_return.Params} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.auto_return.Params, 3));
};
/**
* @param {?proto.bosdyn.api.auto_return.Params|undefined} value
* @return {!proto.bosdyn.api.auto_return.ConfigureRequest} returns this
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.setParams = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.auto_return.ConfigureRequest} returns this
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.clearParams = function() {
return this.setParams(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.hasParams = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional bool clear_buffer = 4;
* @return {boolean}
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.getClearBuffer = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.auto_return.ConfigureRequest} returns this
*/
proto.bosdyn.api.auto_return.ConfigureRequest.prototype.setClearBuffer = function(value) {
return jspb.Message.setProto3BooleanField(this, 4, 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.auto_return.ConfigureResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.auto_return.ConfigureResponse.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.auto_return.ConfigureResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.ConfigureResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
status: jspb.Message.getFieldWithDefault(msg, 2, 0),
invalidParams: (f = msg.getInvalidParams()) && proto.bosdyn.api.auto_return.Params.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.auto_return.ConfigureResponse}
*/
proto.bosdyn.api.auto_return.ConfigureResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.auto_return.ConfigureResponse;
return proto.bosdyn.api.auto_return.ConfigureResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.auto_return.ConfigureResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.auto_return.ConfigureResponse}
*/
proto.bosdyn.api.auto_return.ConfigureResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = /** @type {!proto.bosdyn.api.auto_return.ConfigureResponse.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
case 3:
var value = new proto.bosdyn.api.auto_return.Params;
reader.readMessage(value,proto.bosdyn.api.auto_return.Params.deserializeBinaryFromReader);
msg.setInvalidParams(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.auto_return.ConfigureResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.auto_return.ConfigureResponse.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.auto_return.ConfigureResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.ConfigureResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeader();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_header_pb.ResponseHeader.serializeBinaryToWriter
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
f = message.getInvalidParams();
if (f != null) {
writer.writeMessage(
3,
f,
proto.bosdyn.api.auto_return.Params.serializeBinaryToWriter
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.auto_return.ConfigureResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_OK: 1,
STATUS_INVALID_PARAMS: 2
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.auto_return.ConfigureResponse.prototype.getHeader = function() {
return /** @type{?proto.bosdyn.api.ResponseHeader} */ (
jspb.Message.getWrapperField(this, bosdyn_api_header_pb.ResponseHeader, 1));
};
/**
* @param {?proto.bosdyn.api.ResponseHeader|undefined} value
* @return {!proto.bosdyn.api.auto_return.ConfigureResponse} returns this
*/
proto.bosdyn.api.auto_return.ConfigureResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.auto_return.ConfigureResponse} returns this
*/
proto.bosdyn.api.auto_return.ConfigureResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.auto_return.ConfigureResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Status status = 2;
* @return {!proto.bosdyn.api.auto_return.ConfigureResponse.Status}
*/
proto.bosdyn.api.auto_return.ConfigureResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.auto_return.ConfigureResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.auto_return.ConfigureResponse.Status} value
* @return {!proto.bosdyn.api.auto_return.ConfigureResponse} returns this
*/
proto.bosdyn.api.auto_return.ConfigureResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* optional Params invalid_params = 3;
* @return {?proto.bosdyn.api.auto_return.Params}
*/
proto.bosdyn.api.auto_return.ConfigureResponse.prototype.getInvalidParams = function() {
return /** @type{?proto.bosdyn.api.auto_return.Params} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.auto_return.Params, 3));
};
/**
* @param {?proto.bosdyn.api.auto_return.Params|undefined} value
* @return {!proto.bosdyn.api.auto_return.ConfigureResponse} returns this
*/
proto.bosdyn.api.auto_return.ConfigureResponse.prototype.setInvalidParams = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.auto_return.ConfigureResponse} returns this
*/
proto.bosdyn.api.auto_return.ConfigureResponse.prototype.clearInvalidParams = function() {
return this.setInvalidParams(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.auto_return.ConfigureResponse.prototype.hasInvalidParams = function() {
return jspb.Message.getField(this, 3) != 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.auto_return.GetConfigurationRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.auto_return.GetConfigurationRequest.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.auto_return.GetConfigurationRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.GetConfigurationRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.auto_return.GetConfigurationRequest}
*/
proto.bosdyn.api.auto_return.GetConfigurationRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.auto_return.GetConfigurationRequest;
return proto.bosdyn.api.auto_return.GetConfigurationRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.auto_return.GetConfigurationRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.auto_return.GetConfigurationRequest}
*/
proto.bosdyn.api.auto_return.GetConfigurationRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.RequestHeader;
reader.readMessage(value,bosdyn_api_header_pb.RequestHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.auto_return.GetConfigurationRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.auto_return.GetConfigurationRequest.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.auto_return.GetConfigurationRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.GetConfigurationRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeader();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_header_pb.RequestHeader.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.auto_return.GetConfigurationRequest.prototype.getHeader = function() {
return /** @type{?proto.bosdyn.api.RequestHeader} */ (
jspb.Message.getWrapperField(this, bosdyn_api_header_pb.RequestHeader, 1));
};
/**
* @param {?proto.bosdyn.api.RequestHeader|undefined} value
* @return {!proto.bosdyn.api.auto_return.GetConfigurationRequest} returns this
*/
proto.bosdyn.api.auto_return.GetConfigurationRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.auto_return.GetConfigurationRequest} returns this
*/
proto.bosdyn.api.auto_return.GetConfigurationRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.auto_return.GetConfigurationRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.auto_return.GetConfigurationResponse.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.auto_return.GetConfigurationResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
enabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
request: (f = msg.getRequest()) && proto.bosdyn.api.auto_return.ConfigureRequest.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.auto_return.GetConfigurationResponse}
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.auto_return.GetConfigurationResponse;
return proto.bosdyn.api.auto_return.GetConfigurationResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.auto_return.GetConfigurationResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.auto_return.GetConfigurationResponse}
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = /** @type {boolean} */ (reader.readBool());
msg.setEnabled(value);
break;
case 3:
var value = new proto.bosdyn.api.auto_return.ConfigureRequest;
reader.readMessage(value,proto.bosdyn.api.auto_return.ConfigureRequest.deserializeBinaryFromReader);
msg.setRequest(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.auto_return.GetConfigurationResponse.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.auto_return.GetConfigurationResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeader();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_header_pb.ResponseHeader.serializeBinaryToWriter
);
}
f = message.getEnabled();
if (f) {
writer.writeBool(
2,
f
);
}
f = message.getRequest();
if (f != null) {
writer.writeMessage(
3,
f,
proto.bosdyn.api.auto_return.ConfigureRequest.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.getHeader = function() {
return /** @type{?proto.bosdyn.api.ResponseHeader} */ (
jspb.Message.getWrapperField(this, bosdyn_api_header_pb.ResponseHeader, 1));
};
/**
* @param {?proto.bosdyn.api.ResponseHeader|undefined} value
* @return {!proto.bosdyn.api.auto_return.GetConfigurationResponse} returns this
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.auto_return.GetConfigurationResponse} returns this
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bool enabled = 2;
* @return {boolean}
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.getEnabled = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.auto_return.GetConfigurationResponse} returns this
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.setEnabled = function(value) {
return jspb.Message.setProto3BooleanField(this, 2, value);
};
/**
* optional ConfigureRequest request = 3;
* @return {?proto.bosdyn.api.auto_return.ConfigureRequest}
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.getRequest = function() {
return /** @type{?proto.bosdyn.api.auto_return.ConfigureRequest} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.auto_return.ConfigureRequest, 3));
};
/**
* @param {?proto.bosdyn.api.auto_return.ConfigureRequest|undefined} value
* @return {!proto.bosdyn.api.auto_return.GetConfigurationResponse} returns this
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.setRequest = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.auto_return.GetConfigurationResponse} returns this
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.clearRequest = function() {
return this.setRequest(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.auto_return.GetConfigurationResponse.prototype.hasRequest = function() {
return jspb.Message.getField(this, 3) != 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.auto_return.StartRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.auto_return.StartRequest.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.auto_return.StartRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.StartRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.auto_return.StartRequest}
*/
proto.bosdyn.api.auto_return.StartRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.auto_return.StartRequest;
return proto.bosdyn.api.auto_return.StartRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.auto_return.StartRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.auto_return.StartRequest}
*/
proto.bosdyn.api.auto_return.StartRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.RequestHeader;
reader.readMessage(value,bosdyn_api_header_pb.RequestHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.auto_return.StartRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.auto_return.StartRequest.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.auto_return.StartRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.StartRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeader();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_header_pb.RequestHeader.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.auto_return.StartRequest.prototype.getHeader = function() {
return /** @type{?proto.bosdyn.api.RequestHeader} */ (
jspb.Message.getWrapperField(this, bosdyn_api_header_pb.RequestHeader, 1));
};
/**
* @param {?proto.bosdyn.api.RequestHeader|undefined} value
* @return {!proto.bosdyn.api.auto_return.StartRequest} returns this
*/
proto.bosdyn.api.auto_return.StartRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.auto_return.StartRequest} returns this
*/
proto.bosdyn.api.auto_return.StartRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.auto_return.StartRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.auto_return.StartResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.auto_return.StartResponse.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.auto_return.StartResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.auto_return.StartResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.By