spot-sdk-js
Version:
Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.
1,508 lines (1,310 loc) • 73.6 kB
JavaScript
// source: bosdyn/api/mission/remote.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var bosdyn_api_header_pb = require('../../../bosdyn/api/header_pb.js');
goog.object.extend(proto, bosdyn_api_header_pb);
var bosdyn_api_lease_pb = require('../../../bosdyn/api/lease_pb.js');
goog.object.extend(proto, bosdyn_api_lease_pb);
var bosdyn_api_mission_util_pb = require('../../../bosdyn/api/mission/util_pb.js');
goog.object.extend(proto, bosdyn_api_mission_util_pb);
goog.exportSymbol('proto.bosdyn.api.mission.EstablishSessionRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.EstablishSessionResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.EstablishSessionResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.StopRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.StopResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.StopResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.TeardownSessionRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.TeardownSessionResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.TeardownSessionResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.TickRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.TickResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.TickResponse.Status', 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.mission.EstablishSessionRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.EstablishSessionRequest.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.EstablishSessionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.EstablishSessionRequest.displayName = 'proto.bosdyn.api.mission.EstablishSessionRequest';
}
/**
* 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.mission.EstablishSessionResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.EstablishSessionResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.EstablishSessionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.EstablishSessionResponse.displayName = 'proto.bosdyn.api.mission.EstablishSessionResponse';
}
/**
* 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.mission.TickRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.TickRequest.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.TickRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.TickRequest.displayName = 'proto.bosdyn.api.mission.TickRequest';
}
/**
* 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.mission.TickResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.TickResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.TickResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.TickResponse.displayName = 'proto.bosdyn.api.mission.TickResponse';
}
/**
* 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.mission.StopRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.StopRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.StopRequest.displayName = 'proto.bosdyn.api.mission.StopRequest';
}
/**
* 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.mission.StopResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.StopResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.StopResponse.displayName = 'proto.bosdyn.api.mission.StopResponse';
}
/**
* 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.mission.TeardownSessionRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.TeardownSessionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.TeardownSessionRequest.displayName = 'proto.bosdyn.api.mission.TeardownSessionRequest';
}
/**
* 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.mission.TeardownSessionResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.TeardownSessionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.TeardownSessionResponse.displayName = 'proto.bosdyn.api.mission.TeardownSessionResponse';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.EstablishSessionRequest.repeatedFields_ = [2,3];
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.mission.EstablishSessionRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.EstablishSessionRequest.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.mission.EstablishSessionRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.EstablishSessionRequest.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),
inputsList: jspb.Message.toObjectList(msg.getInputsList(),
bosdyn_api_mission_util_pb.VariableDeclaration.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.mission.EstablishSessionRequest}
*/
proto.bosdyn.api.mission.EstablishSessionRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.EstablishSessionRequest;
return proto.bosdyn.api.mission.EstablishSessionRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.EstablishSessionRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.EstablishSessionRequest}
*/
proto.bosdyn.api.mission.EstablishSessionRequest.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 bosdyn_api_mission_util_pb.VariableDeclaration;
reader.readMessage(value,bosdyn_api_mission_util_pb.VariableDeclaration.deserializeBinaryFromReader);
msg.addInputs(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.EstablishSessionRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.EstablishSessionRequest.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.mission.EstablishSessionRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.EstablishSessionRequest.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.getInputsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
bosdyn_api_mission_util_pb.VariableDeclaration.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.mission.EstablishSessionRequest.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.mission.EstablishSessionRequest} returns this
*/
proto.bosdyn.api.mission.EstablishSessionRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.EstablishSessionRequest} returns this
*/
proto.bosdyn.api.mission.EstablishSessionRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.EstablishSessionRequest.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.mission.EstablishSessionRequest.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.mission.EstablishSessionRequest} returns this
*/
proto.bosdyn.api.mission.EstablishSessionRequest.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.mission.EstablishSessionRequest.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.mission.EstablishSessionRequest} returns this
*/
proto.bosdyn.api.mission.EstablishSessionRequest.prototype.clearLeasesList = function() {
return this.setLeasesList([]);
};
/**
* repeated VariableDeclaration inputs = 3;
* @return {!Array<!proto.bosdyn.api.mission.VariableDeclaration>}
*/
proto.bosdyn.api.mission.EstablishSessionRequest.prototype.getInputsList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.VariableDeclaration>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_mission_util_pb.VariableDeclaration, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.VariableDeclaration>} value
* @return {!proto.bosdyn.api.mission.EstablishSessionRequest} returns this
*/
proto.bosdyn.api.mission.EstablishSessionRequest.prototype.setInputsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.mission.VariableDeclaration=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.VariableDeclaration}
*/
proto.bosdyn.api.mission.EstablishSessionRequest.prototype.addInputs = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.mission.VariableDeclaration, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.EstablishSessionRequest} returns this
*/
proto.bosdyn.api.mission.EstablishSessionRequest.prototype.clearInputsList = function() {
return this.setInputsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.EstablishSessionResponse.repeatedFields_ = [4,5,6];
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.mission.EstablishSessionResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.EstablishSessionResponse.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.mission.EstablishSessionResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.EstablishSessionResponse.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),
sessionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
missingLeaseResourcesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
leaseUseResultsList: jspb.Message.toObjectList(msg.getLeaseUseResultsList(),
bosdyn_api_lease_pb.LeaseUseResult.toObject, includeInstance),
missingInputsList: jspb.Message.toObjectList(msg.getMissingInputsList(),
bosdyn_api_mission_util_pb.VariableDeclaration.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.EstablishSessionResponse;
return proto.bosdyn.api.mission.EstablishSessionResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.EstablishSessionResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.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.mission.EstablishSessionResponse.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setSessionId(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.addMissingLeaseResources(value);
break;
case 5:
var value = new bosdyn_api_lease_pb.LeaseUseResult;
reader.readMessage(value,bosdyn_api_lease_pb.LeaseUseResult.deserializeBinaryFromReader);
msg.addLeaseUseResults(value);
break;
case 6:
var value = new bosdyn_api_mission_util_pb.VariableDeclaration;
reader.readMessage(value,bosdyn_api_mission_util_pb.VariableDeclaration.deserializeBinaryFromReader);
msg.addMissingInputs(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.EstablishSessionResponse.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.mission.EstablishSessionResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.EstablishSessionResponse.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.getSessionId();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getMissingLeaseResourcesList();
if (f.length > 0) {
writer.writeRepeatedString(
4,
f
);
}
f = message.getLeaseUseResultsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
bosdyn_api_lease_pb.LeaseUseResult.serializeBinaryToWriter
);
}
f = message.getMissingInputsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
6,
f,
bosdyn_api_mission_util_pb.VariableDeclaration.serializeBinaryToWriter
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_OK: 1,
STATUS_MISSING_LEASES: 2,
STATUS_MISSING_INPUTS: 3
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.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.mission.EstablishSessionResponse} returns this
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse} returns this
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Status status = 2;
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse.Status}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.mission.EstablishSessionResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.mission.EstablishSessionResponse.Status} value
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse} returns this
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* optional string session_id = 3;
* @return {string}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.getSessionId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse} returns this
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.setSessionId = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* repeated string missing_lease_resources = 4;
* @return {!Array<string>}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.getMissingLeaseResourcesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
};
/**
* @param {!Array<string>} value
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse} returns this
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.setMissingLeaseResourcesList = function(value) {
return jspb.Message.setField(this, 4, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse} returns this
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.addMissingLeaseResources = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse} returns this
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.clearMissingLeaseResourcesList = function() {
return this.setMissingLeaseResourcesList([]);
};
/**
* repeated bosdyn.api.LeaseUseResult lease_use_results = 5;
* @return {!Array<!proto.bosdyn.api.LeaseUseResult>}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.getLeaseUseResultsList = function() {
return /** @type{!Array<!proto.bosdyn.api.LeaseUseResult>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_lease_pb.LeaseUseResult, 5));
};
/**
* @param {!Array<!proto.bosdyn.api.LeaseUseResult>} value
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse} returns this
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.setLeaseUseResultsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 5, value);
};
/**
* @param {!proto.bosdyn.api.LeaseUseResult=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.LeaseUseResult}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.addLeaseUseResults = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.bosdyn.api.LeaseUseResult, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse} returns this
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.clearLeaseUseResultsList = function() {
return this.setLeaseUseResultsList([]);
};
/**
* repeated VariableDeclaration missing_inputs = 6;
* @return {!Array<!proto.bosdyn.api.mission.VariableDeclaration>}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.getMissingInputsList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.VariableDeclaration>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_mission_util_pb.VariableDeclaration, 6));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.VariableDeclaration>} value
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse} returns this
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.setMissingInputsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 6, value);
};
/**
* @param {!proto.bosdyn.api.mission.VariableDeclaration=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.VariableDeclaration}
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.addMissingInputs = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.bosdyn.api.mission.VariableDeclaration, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.EstablishSessionResponse} returns this
*/
proto.bosdyn.api.mission.EstablishSessionResponse.prototype.clearMissingInputsList = function() {
return this.setMissingInputsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.TickRequest.repeatedFields_ = [3,4];
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.mission.TickRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.TickRequest.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.mission.TickRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.TickRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
sessionId: jspb.Message.getFieldWithDefault(msg, 2, ""),
leasesList: jspb.Message.toObjectList(msg.getLeasesList(),
bosdyn_api_lease_pb.Lease.toObject, includeInstance),
inputsList: jspb.Message.toObjectList(msg.getInputsList(),
bosdyn_api_mission_util_pb.KeyValue.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.mission.TickRequest}
*/
proto.bosdyn.api.mission.TickRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.TickRequest;
return proto.bosdyn.api.mission.TickRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.TickRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.TickRequest}
*/
proto.bosdyn.api.mission.TickRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.RequestHeader;
reader.readMessage(value,bosdyn_api_header_pb.RequestHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSessionId(value);
break;
case 3:
var value = new bosdyn_api_lease_pb.Lease;
reader.readMessage(value,bosdyn_api_lease_pb.Lease.deserializeBinaryFromReader);
msg.addLeases(value);
break;
case 4:
var value = new bosdyn_api_mission_util_pb.KeyValue;
reader.readMessage(value,bosdyn_api_mission_util_pb.KeyValue.deserializeBinaryFromReader);
msg.addInputs(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.TickRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.TickRequest.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.mission.TickRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.TickRequest.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.getSessionId();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getLeasesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
bosdyn_api_lease_pb.Lease.serializeBinaryToWriter
);
}
f = message.getInputsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
bosdyn_api_mission_util_pb.KeyValue.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.mission.TickRequest.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.mission.TickRequest} returns this
*/
proto.bosdyn.api.mission.TickRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.TickRequest} returns this
*/
proto.bosdyn.api.mission.TickRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.TickRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string session_id = 2;
* @return {string}
*/
proto.bosdyn.api.mission.TickRequest.prototype.getSessionId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.mission.TickRequest} returns this
*/
proto.bosdyn.api.mission.TickRequest.prototype.setSessionId = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* repeated bosdyn.api.Lease leases = 3;
* @return {!Array<!proto.bosdyn.api.Lease>}
*/
proto.bosdyn.api.mission.TickRequest.prototype.getLeasesList = function() {
return /** @type{!Array<!proto.bosdyn.api.Lease>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_lease_pb.Lease, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.Lease>} value
* @return {!proto.bosdyn.api.mission.TickRequest} returns this
*/
proto.bosdyn.api.mission.TickRequest.prototype.setLeasesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.Lease=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.Lease}
*/
proto.bosdyn.api.mission.TickRequest.prototype.addLeases = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.Lease, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.TickRequest} returns this
*/
proto.bosdyn.api.mission.TickRequest.prototype.clearLeasesList = function() {
return this.setLeasesList([]);
};
/**
* repeated KeyValue inputs = 4;
* @return {!Array<!proto.bosdyn.api.mission.KeyValue>}
*/
proto.bosdyn.api.mission.TickRequest.prototype.getInputsList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.KeyValue>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_mission_util_pb.KeyValue, 4));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.KeyValue>} value
* @return {!proto.bosdyn.api.mission.TickRequest} returns this
*/
proto.bosdyn.api.mission.TickRequest.prototype.setInputsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.bosdyn.api.mission.KeyValue=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.KeyValue}
*/
proto.bosdyn.api.mission.TickRequest.prototype.addInputs = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.bosdyn.api.mission.KeyValue, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.TickRequest} returns this
*/
proto.bosdyn.api.mission.TickRequest.prototype.clearInputsList = function() {
return this.setInputsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.TickResponse.repeatedFields_ = [4,5,7];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.mission.TickResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.TickResponse.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.mission.TickResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.TickResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
status: jspb.Message.getFieldWithDefault(msg, 3, 0),
missingLeaseResourcesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
leaseUseResultsList: jspb.Message.toObjectList(msg.getLeaseUseResultsList(),
bosdyn_api_lease_pb.LeaseUseResult.toObject, includeInstance),
missingInputsList: jspb.Message.toObjectList(msg.getMissingInputsList(),
bosdyn_api_mission_util_pb.VariableDeclaration.toObject, includeInstance),
errorMessage: jspb.Message.getFieldWithDefault(msg, 8, "")
};
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.mission.TickResponse}
*/
proto.bosdyn.api.mission.TickResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.TickResponse;
return proto.bosdyn.api.mission.TickResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.TickResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.TickResponse}
*/
proto.bosdyn.api.mission.TickResponse.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 3:
var value = /** @type {!proto.bosdyn.api.mission.TickResponse.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.addMissingLeaseResources(value);
break;
case 5:
var value = new bosdyn_api_lease_pb.LeaseUseResult;
reader.readMessage(value,bosdyn_api_lease_pb.LeaseUseResult.deserializeBinaryFromReader);
msg.addLeaseUseResults(value);
break;
case 7:
var value = new bosdyn_api_mission_util_pb.VariableDeclaration;
reader.readMessage(value,bosdyn_api_mission_util_pb.VariableDeclaration.deserializeBinaryFromReader);
msg.addMissingInputs(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setErrorMessage(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.TickResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.TickResponse.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.mission.TickResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.TickResponse.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(
3,
f
);
}
f = message.getMissingLeaseResourcesList();
if (f.length > 0) {
writer.writeRepeatedString(
4,
f
);
}
f = message.getLeaseUseResultsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
bosdyn_api_lease_pb.LeaseUseResult.serializeBinaryToWriter
);
}
f = message.getMissingInputsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
7,
f,
bosdyn_api_mission_util_pb.VariableDeclaration.serializeBinaryToWriter
);
}
f = message.getErrorMessage();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.mission.TickResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_FAILURE: 1,
STATUS_RUNNING: 2,
STATUS_SUCCESS: 3,
STATUS_INVALID_SESSION_ID: 4,
STATUS_MISSING_LEASES: 5,
STATUS_MISSING_INPUTS: 6
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.mission.TickResponse.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.mission.TickResponse} returns this
*/
proto.bosdyn.api.mission.TickResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.TickResponse} returns this
*/
proto.bosdyn.api.mission.TickResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.TickResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Status status = 3;
* @return {!proto.bosdyn.api.mission.TickResponse.Status}
*/
proto.bosdyn.api.mission.TickResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.mission.TickResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {!proto.bosdyn.api.mission.TickResponse.Status} value
* @return {!proto.bosdyn.api.mission.TickResponse} returns this
*/
proto.bosdyn.api.mission.TickResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 3, value);
};
/**
* repeated string missing_lease_resources = 4;
* @return {!Array<string>}
*/
proto.bosdyn.api.mission.TickResponse.prototype.getMissingLeaseResourcesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
};
/**
* @param {!Array<string>} value
* @return {!proto.bosdyn.api.mission.TickResponse} returns this
*/
proto.bosdyn.api.mission.TickResponse.prototype.setMissingLeaseResourcesList = function(value) {
return jspb.Message.setField(this, 4, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.TickResponse} returns this
*/
proto.bosdyn.api.mission.TickResponse.prototype.addMissingLeaseResources = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.TickResponse} returns this
*/
proto.bosdyn.api.mission.TickResponse.prototype.clearMissingLeaseResourcesList = function() {
return this.setMissingLeaseResourcesList([]);
};
/**
* repeated bosdyn.api.LeaseUseResult lease_use_results = 5;
* @return {!Array<!proto.bosdyn.api.LeaseUseResult>}
*/
proto.bosdyn.api.mission.TickResponse.prototype.getLeaseUseResultsList = function() {
return /** @type{!Array<!proto.bosdyn.api.LeaseUseResult>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_lease_pb.LeaseUseResult, 5));
};
/**
* @param {!Array<!proto.bosdyn.api.LeaseUseResult>} value
* @return {!proto.bosdyn.api.mission.TickResponse} returns this
*/
proto.bosdyn.api.mission.TickResponse.prototype.setLeaseUseResultsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 5, value);
};
/**
* @param {!proto.bosdyn.api.LeaseUseResult=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.LeaseUseResult}
*/
proto.bosdyn.api.mission.TickResponse.prototype.addLeaseUseResults = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.bosdyn.api.LeaseUseResult, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.TickResponse} returns this
*/
proto.bosdyn.api.mission.TickResponse.prototype.clearLeaseUseResultsList = function() {
return this.setLeaseUseResultsList([]);
};
/**
* repeated VariableDeclaration missing_inputs = 7;
* @return {!Array<!proto.bosdyn.api.mission.VariableDeclaration>}
*/
proto.bosdyn.api.mission.TickResponse.prototype.getMissingInputsList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.VariableDeclaration>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_mission_util_pb.VariableDeclaration, 7));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.VariableDeclaration>} value
* @return {!proto.bosdyn.api.mission.TickResponse} returns this
*/
proto.bosdyn.api.mission.TickResponse.prototype.setMissingInputsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 7, value);
};
/**
* @param {!proto.bosdyn.api.mission.VariableDeclaration=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.VariableDeclaration}
*/
proto.bosdyn.api.mission.TickResponse.prototype.addMissingInputs = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.bosdyn.api.mission.VariableDeclaration, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.TickResponse} returns this
*/
proto.bosdyn.api.mission.TickResp