spot-sdk-js
Version:
Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.
7,128 lines • 228 kB
JavaScript
// source: bosdyn/api/mission/mission.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_geometry_pb = require('../../../bosdyn/api/geometry_pb.js');
goog.object.extend(proto, bosdyn_api_geometry_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);
var bosdyn_api_mission_nodes_pb = require('../../../bosdyn/api/mission/nodes_pb.js');
goog.object.extend(proto, bosdyn_api_mission_nodes_pb);
var bosdyn_api_mission_util_pb = require('../../../bosdyn/api/mission/util_pb.js');
goog.object.extend(proto, bosdyn_api_mission_util_pb);
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
goog.object.extend(proto, google_protobuf_timestamp_pb);
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
goog.object.extend(proto, google_protobuf_wrappers_pb);
goog.exportSymbol('proto.bosdyn.api.mission.AnswerQuestionRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.AnswerQuestionResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.AnswerQuestionResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.FailedNode', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.GetInfoRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.GetInfoResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.GetMissionRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.GetMissionResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.GetStateRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.GetStateRequest.LowerBoundCase', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.GetStateResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.LoadMissionRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.LoadMissionResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.LoadMissionResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.MissionInfo', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.NodeInfo', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.PauseMissionRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.PauseMissionResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.PauseMissionResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.PlayMissionRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.PlayMissionResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.PlayMissionResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.PlaySettings', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.Question', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.RestartMissionRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.RestartMissionResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.RestartMissionResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.State', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.State.AnsweredQuestion', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.State.NodeStatesAtTick', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.State.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.StopMissionRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.StopMissionResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.mission.StopMissionResponse.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.GetStateRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.mission.GetStateRequest.oneofGroups_);
};
goog.inherits(proto.bosdyn.api.mission.GetStateRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.GetStateRequest.displayName = 'proto.bosdyn.api.mission.GetStateRequest';
}
/**
* 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.GetStateResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.GetStateResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.GetStateResponse.displayName = 'proto.bosdyn.api.mission.GetStateResponse';
}
/**
* 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.State = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.State.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.State, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.State.displayName = 'proto.bosdyn.api.mission.State';
}
/**
* 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.State.AnsweredQuestion = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.State.AnsweredQuestion, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.displayName = 'proto.bosdyn.api.mission.State.AnsweredQuestion';
}
/**
* 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.State.NodeStatesAtTick = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.State.NodeStatesAtTick.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.State.NodeStatesAtTick, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.displayName = 'proto.bosdyn.api.mission.State.NodeStatesAtTick';
}
/**
* 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.State.NodeStatesAtTick.NodeState = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.displayName = 'proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState';
}
/**
* 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.Question = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.Question.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.Question, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.Question.displayName = 'proto.bosdyn.api.mission.Question';
}
/**
* 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.AnswerQuestionRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.AnswerQuestionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.displayName = 'proto.bosdyn.api.mission.AnswerQuestionRequest';
}
/**
* 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.AnswerQuestionResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.AnswerQuestionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.displayName = 'proto.bosdyn.api.mission.AnswerQuestionResponse';
}
/**
* 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.MissionInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.MissionInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.MissionInfo.displayName = 'proto.bosdyn.api.mission.MissionInfo';
}
/**
* 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.NodeInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.NodeInfo.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.NodeInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.NodeInfo.displayName = 'proto.bosdyn.api.mission.NodeInfo';
}
/**
* 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.FailedNode = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.FailedNode, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.FailedNode.displayName = 'proto.bosdyn.api.mission.FailedNode';
}
/**
* 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.PlayMissionRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.PlayMissionRequest.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.PlayMissionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.PlayMissionRequest.displayName = 'proto.bosdyn.api.mission.PlayMissionRequest';
}
/**
* 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.PlaySettings = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.PlaySettings, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.PlaySettings.displayName = 'proto.bosdyn.api.mission.PlaySettings';
}
/**
* 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.PlayMissionResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.PlayMissionResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.PlayMissionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.PlayMissionResponse.displayName = 'proto.bosdyn.api.mission.PlayMissionResponse';
}
/**
* 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.RestartMissionRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.RestartMissionRequest.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.RestartMissionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.RestartMissionRequest.displayName = 'proto.bosdyn.api.mission.RestartMissionRequest';
}
/**
* 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.RestartMissionResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.RestartMissionResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.RestartMissionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.RestartMissionResponse.displayName = 'proto.bosdyn.api.mission.RestartMissionResponse';
}
/**
* 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.LoadMissionRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.LoadMissionRequest.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.LoadMissionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.LoadMissionRequest.displayName = 'proto.bosdyn.api.mission.LoadMissionRequest';
}
/**
* 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.LoadMissionResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.mission.LoadMissionResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.mission.LoadMissionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.LoadMissionResponse.displayName = 'proto.bosdyn.api.mission.LoadMissionResponse';
}
/**
* 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.GetInfoRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.GetInfoRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.GetInfoRequest.displayName = 'proto.bosdyn.api.mission.GetInfoRequest';
}
/**
* 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.GetInfoResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.GetInfoResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.GetInfoResponse.displayName = 'proto.bosdyn.api.mission.GetInfoResponse';
}
/**
* 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.PauseMissionRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.PauseMissionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.PauseMissionRequest.displayName = 'proto.bosdyn.api.mission.PauseMissionRequest';
}
/**
* 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.PauseMissionResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.PauseMissionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.PauseMissionResponse.displayName = 'proto.bosdyn.api.mission.PauseMissionResponse';
}
/**
* 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.StopMissionRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.StopMissionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.StopMissionRequest.displayName = 'proto.bosdyn.api.mission.StopMissionRequest';
}
/**
* 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.StopMissionResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.StopMissionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.StopMissionResponse.displayName = 'proto.bosdyn.api.mission.StopMissionResponse';
}
/**
* 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.GetMissionRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.GetMissionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.GetMissionRequest.displayName = 'proto.bosdyn.api.mission.GetMissionRequest';
}
/**
* 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.GetMissionResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.mission.GetMissionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.mission.GetMissionResponse.displayName = 'proto.bosdyn.api.mission.GetMissionResponse';
}
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.bosdyn.api.mission.GetStateRequest.oneofGroups_ = [[3,4]];
/**
* @enum {number}
*/
proto.bosdyn.api.mission.GetStateRequest.LowerBoundCase = {
LOWER_BOUND_NOT_SET: 0,
HISTORY_LOWER_TICK_BOUND: 3,
HISTORY_PAST_TICKS: 4
};
/**
* @return {proto.bosdyn.api.mission.GetStateRequest.LowerBoundCase}
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.getLowerBoundCase = function() {
return /** @type {proto.bosdyn.api.mission.GetStateRequest.LowerBoundCase} */(jspb.Message.computeOneofCase(this, proto.bosdyn.api.mission.GetStateRequest.oneofGroups_[0]));
};
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.GetStateRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.GetStateRequest.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.GetStateRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetStateRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
historyUpperTickBound: (f = msg.getHistoryUpperTickBound()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
historyLowerTickBound: jspb.Message.getFieldWithDefault(msg, 3, 0),
historyPastTicks: jspb.Message.getFieldWithDefault(msg, 4, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.mission.GetStateRequest}
*/
proto.bosdyn.api.mission.GetStateRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.GetStateRequest;
return proto.bosdyn.api.mission.GetStateRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.GetStateRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.GetStateRequest}
*/
proto.bosdyn.api.mission.GetStateRequest.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 google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setHistoryUpperTickBound(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt64());
msg.setHistoryLowerTickBound(value);
break;
case 4:
var value = /** @type {number} */ (reader.readInt64());
msg.setHistoryPastTicks(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.GetStateRequest.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.GetStateRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetStateRequest.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.getHistoryUpperTickBound();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 3));
if (f != null) {
writer.writeInt64(
3,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 4));
if (f != null) {
writer.writeInt64(
4,
f
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.mission.GetStateRequest.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.GetStateRequest} returns this
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.GetStateRequest} returns this
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional google.protobuf.Int64Value history_upper_tick_bound = 2;
* @return {?proto.google.protobuf.Int64Value}
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.getHistoryUpperTickBound = function() {
return /** @type{?proto.google.protobuf.Int64Value} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 2));
};
/**
* @param {?proto.google.protobuf.Int64Value|undefined} value
* @return {!proto.bosdyn.api.mission.GetStateRequest} returns this
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.setHistoryUpperTickBound = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.GetStateRequest} returns this
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.clearHistoryUpperTickBound = function() {
return this.setHistoryUpperTickBound(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.hasHistoryUpperTickBound = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional int64 history_lower_tick_bound = 3;
* @return {number}
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.getHistoryLowerTickBound = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.GetStateRequest} returns this
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.setHistoryLowerTickBound = function(value) {
return jspb.Message.setOneofField(this, 3, proto.bosdyn.api.mission.GetStateRequest.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.bosdyn.api.mission.GetStateRequest} returns this
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.clearHistoryLowerTickBound = function() {
return jspb.Message.setOneofField(this, 3, proto.bosdyn.api.mission.GetStateRequest.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.hasHistoryLowerTickBound = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional int64 history_past_ticks = 4;
* @return {number}
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.getHistoryPastTicks = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.GetStateRequest} returns this
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.setHistoryPastTicks = function(value) {
return jspb.Message.setOneofField(this, 4, proto.bosdyn.api.mission.GetStateRequest.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.bosdyn.api.mission.GetStateRequest} returns this
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.clearHistoryPastTicks = function() {
return jspb.Message.setOneofField(this, 4, proto.bosdyn.api.mission.GetStateRequest.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetStateRequest.prototype.hasHistoryPastTicks = function() {
return jspb.Message.getField(this, 4) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.mission.GetStateResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.GetStateResponse.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.GetStateResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetStateResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
state: (f = msg.getState()) && proto.bosdyn.api.mission.State.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.mission.GetStateResponse}
*/
proto.bosdyn.api.mission.GetStateResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.GetStateResponse;
return proto.bosdyn.api.mission.GetStateResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.GetStateResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.GetStateResponse}
*/
proto.bosdyn.api.mission.GetStateResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new proto.bosdyn.api.mission.State;
reader.readMessage(value,proto.bosdyn.api.mission.State.deserializeBinaryFromReader);
msg.setState(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.GetStateResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.GetStateResponse.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.GetStateResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetStateResponse.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.getState();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.mission.State.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.mission.GetStateResponse.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.GetStateResponse} returns this
*/
proto.bosdyn.api.mission.GetStateResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.GetStateResponse} returns this
*/
proto.bosdyn.api.mission.GetStateResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetStateResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional State state = 2;
* @return {?proto.bosdyn.api.mission.State}
*/
proto.bosdyn.api.mission.GetStateResponse.prototype.getState = function() {
return /** @type{?proto.bosdyn.api.mission.State} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.mission.State, 2));
};
/**
* @param {?proto.bosdyn.api.mission.State|undefined} value
* @return {!proto.bosdyn.api.mission.GetStateResponse} returns this
*/
proto.bosdyn.api.mission.GetStateResponse.prototype.setState = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.GetStateResponse} returns this
*/
proto.bosdyn.api.mission.GetStateResponse.prototype.clearState = function() {
return this.setState(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetStateResponse.prototype.hasState = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.State.repeatedFields_ = [1,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.State.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.State.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.State} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.State.toObject = function(includeInstance, msg) {
var f, obj = {
questionsList: jspb.Message.toObjectList(msg.getQuestionsList(),
proto.bosdyn.api.mission.Question.toObject, includeInstance),
answeredQuestionsList: jspb.Message.toObjectList(msg.getAnsweredQuestionsList(),
proto.bosdyn.api.mission.State.AnsweredQuestion.toObject, includeInstance),
historyList: jspb.Message.toObjectList(msg.getHistoryList(),
proto.bosdyn.api.mission.State.NodeStatesAtTick.toObject, includeInstance),
status: jspb.Message.getFieldWithDefault(msg, 4, 0),
error: jspb.Message.getFieldWithDefault(msg, 5, ""),
tickCounter: jspb.Message.getFieldWithDefault(msg, 6, 0),
missionId: jspb.Message.getFieldWithDefault(msg, 7, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.mission.State}
*/
proto.bosdyn.api.mission.State.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.State;
return proto.bosdyn.api.mission.State.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.State} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.State}
*/
proto.bosdyn.api.mission.State.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.bosdyn.api.mission.Question;
reader.readMessage(value,proto.bosdyn.api.mission.Question.deserializeBinaryFromReader);
msg.addQuestions(value);
break;
case 2:
var value = new proto.bosdyn.api.mission.State.AnsweredQuestion;
reader.readMessage(value,proto.bosdyn.api.mission.State.AnsweredQuestion.deserializeBinaryFromReader);
msg.addAnsweredQuestions(value);
break;
case 3:
var value = new proto.bosdyn.api.mission.State.NodeStatesAtTick;
reader.readMessage(value,proto.bosdyn.api.mission.State.NodeStatesAtTick.deserializeBinaryFromReader);
msg.addHistory(value);
break;
case 4:
var value = /** @type {!proto.bosdyn.api.mission.State.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setError(value);
break;
case 6:
var value = /** @type {number} */ (reader.readInt64());
msg.setTickCounter(value);
break;
case 7:
var value = /** @type {number} */ (reader.readInt64());
msg.setMissionId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.State.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.State.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.State} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.State.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getQuestionsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.bosdyn.api.mission.Question.serializeBinaryToWriter
);
}
f = message.getAnsweredQuestionsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.bosdyn.api.mission.State.AnsweredQuestion.serializeBinaryToWriter
);
}
f = message.getHistoryList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.bosdyn.api.mission.State.NodeStatesAtTick.serializeBinaryToWriter
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
f = message.getError();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getTickCounter();
if (f !== 0) {
writer.writeInt64(
6,
f
);
}
f = message.getMissionId();
if (f !== 0) {
writer.writeInt64(
7,
f
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.mission.State.Status = {
STATUS_UNKNOWN: 0,
STATUS_FAILURE: 1,
STATUS_RUNNING: 2,
STATUS_SUCCESS: 3,
STATUS_PAUSED: 4,
STATUS_ERROR: 5,
STATUS_NONE: 6,
STATUS_STOPPED: 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.State.AnsweredQuestion.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.State.AnsweredQuestion.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.State.AnsweredQuestion} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.toObject = function(includeInstance, msg) {
var f, obj = {
question: (f = msg.getQuestion()) && proto.bosdyn.api.mission.Question.toObject(includeInstance, f),
acceptedAnswerCode: jspb.Message.getFieldWithDefault(msg, 2, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.mission.State.AnsweredQuestion}
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.State.AnsweredQuestion;
return proto.bosdyn.api.mission.State.AnsweredQuestion.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.State.AnsweredQuestion} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.State.AnsweredQuestion}
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.bosdyn.api.mission.Question;
reader.readMessage(value,proto.bosdyn.api.mission.Question.deserializeBinaryFromReader);
msg.setQuestion(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt64());
msg.setAcceptedAnswerCode(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.State.AnsweredQuestion.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.State.AnsweredQuestion} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getQuestion();
if (f != null) {
writer.writeMessage(
1,
f,
proto.bosdyn.api.mission.Question.serializeBinaryToWriter
);
}
f = message.getAcceptedAnswerCode();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
};
/**
* optional Question question = 1;
* @return {?proto.bosdyn.api.mission.Question}
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.prototype.getQuestion = function() {
return /** @type{?proto.bosdyn.api.mission.Question} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.mission.Question, 1));
};
/**
* @param {?proto.bosdyn.api.mission.Question|undefined} value
* @return {!proto.bosdyn.api.mission.State.AnsweredQuestion} returns this
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.prototype.setQuestion = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.State.AnsweredQuestion} returns this
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.prototype.clearQuestion = function() {
return this.setQuestion(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.prototype.hasQuestion = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional int64 accepted_answer_code = 2;
* @return {number}
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.prototype.getAcceptedAnswerCode = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.State.AnsweredQuestion} returns this
*/
proto.bosdyn.api.mission.State.AnsweredQuestion.prototype.setAcceptedAnswerCode = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.repeatedFields_ = [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.State.NodeStatesAtTick.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.State.NodeStatesAtTick.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.State.NodeStatesAtTick} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.toObject = function(includeInstance, msg) {
var f, obj = {
tickCounter: jspb.Message.getFieldWithDefault(msg, 1, 0),
tickStartTimestamp: (f = msg.getTickStartTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
nodeStatesList: jspb.Message.toObjectList(msg.getNodeStatesList(),
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.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.State.NodeStatesAtTick}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.State.NodeStatesAtTick;
return proto.bosdyn.api.mission.State.NodeStatesAtTick.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.State.NodeStatesAtTick} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setTickCounter(value);
break;
case 2:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setTickStartTimestamp(value);
break;
case 3:
var value = new proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState;
reader.readMessage(value,proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.deserializeBinaryFromReader);
msg.addNodeStates(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.State.NodeStatesAtTick.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.State.NodeStatesAtTick} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTickCounter();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getTickStartTimestamp();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getNodeStatesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.serializeBinaryToWriter
);
}
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.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.State.NodeStatesAtTick.NodeState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.toObject = function(includeInstance, msg) {
var f, obj = {
result: jspb.Message.getFieldWithDefault(msg, 1, 0),
error: jspb.Message.getFieldWithDefault(msg, 2, ""),
id: jspb.Message.getFieldWithDefault(msg, 3, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState;
return proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!proto.bosdyn.api.mission.Result} */ (reader.readEnum());
msg.setResult(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setError(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt64());
msg.setId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.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.State.NodeStatesAtTick.NodeState} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getResult();
if (f !== 0.0) {
writer.writeEnum(
1,
f
);
}
f = message.getError();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getId();
if (f !== 0) {
writer.writeInt64(
3,
f
);
}
};
/**
* optional Result result = 1;
* @return {!proto.bosdyn.api.mission.Result}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.prototype.getResult = function() {
return /** @type {!proto.bosdyn.api.mission.Result} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {!proto.bosdyn.api.mission.Result} value
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState} returns this
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.prototype.setResult = function(value) {
return jspb.Message.setProto3EnumField(this, 1, value);
};
/**
* optional string error = 2;
* @return {string}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.prototype.getError = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState} returns this
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.prototype.setError = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional int64 id = 3;
* @return {number}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.prototype.getId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState} returns this
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState.prototype.setId = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional int64 tick_counter = 1;
* @return {number}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.prototype.getTickCounter = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick} returns this
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.prototype.setTickCounter = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional google.protobuf.Timestamp tick_start_timestamp = 2;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.prototype.getTickStartTimestamp = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick} returns this
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.prototype.setTickStartTimestamp = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick} returns this
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.prototype.clearTickStartTimestamp = function() {
return this.setTickStartTimestamp(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.prototype.hasTickStartTimestamp = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* repeated NodeState node_states = 3;
* @return {!Array<!proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState>}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.prototype.getNodeStatesList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState>} value
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick} returns this
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.prototype.setNodeStatesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState}
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.prototype.addNodeStates = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.mission.State.NodeStatesAtTick.NodeState, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick} returns this
*/
proto.bosdyn.api.mission.State.NodeStatesAtTick.prototype.clearNodeStatesList = function() {
return this.setNodeStatesList([]);
};
/**
* repeated Question questions = 1;
* @return {!Array<!proto.bosdyn.api.mission.Question>}
*/
proto.bosdyn.api.mission.State.prototype.getQuestionsList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.Question>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.mission.Question, 1));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.Question>} value
* @return {!proto.bosdyn.api.mission.State} returns this
*/
proto.bosdyn.api.mission.State.prototype.setQuestionsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.bosdyn.api.mission.Question=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.Question}
*/
proto.bosdyn.api.mission.State.prototype.addQuestions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bosdyn.api.mission.Question, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.State} returns this
*/
proto.bosdyn.api.mission.State.prototype.clearQuestionsList = function() {
return this.setQuestionsList([]);
};
/**
* repeated AnsweredQuestion answered_questions = 2;
* @return {!Array<!proto.bosdyn.api.mission.State.AnsweredQuestion>}
*/
proto.bosdyn.api.mission.State.prototype.getAnsweredQuestionsList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.State.AnsweredQuestion>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.mission.State.AnsweredQuestion, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.State.AnsweredQuestion>} value
* @return {!proto.bosdyn.api.mission.State} returns this
*/
proto.bosdyn.api.mission.State.prototype.setAnsweredQuestionsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.mission.State.AnsweredQuestion=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.State.AnsweredQuestion}
*/
proto.bosdyn.api.mission.State.prototype.addAnsweredQuestions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.mission.State.AnsweredQuestion, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.State} returns this
*/
proto.bosdyn.api.mission.State.prototype.clearAnsweredQuestionsList = function() {
return this.setAnsweredQuestionsList([]);
};
/**
* repeated NodeStatesAtTick history = 3;
* @return {!Array<!proto.bosdyn.api.mission.State.NodeStatesAtTick>}
*/
proto.bosdyn.api.mission.State.prototype.getHistoryList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.State.NodeStatesAtTick>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.mission.State.NodeStatesAtTick, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.State.NodeStatesAtTick>} value
* @return {!proto.bosdyn.api.mission.State} returns this
*/
proto.bosdyn.api.mission.State.prototype.setHistoryList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.mission.State.NodeStatesAtTick=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.State.NodeStatesAtTick}
*/
proto.bosdyn.api.mission.State.prototype.addHistory = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.mission.State.NodeStatesAtTick, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.State} returns this
*/
proto.bosdyn.api.mission.State.prototype.clearHistoryList = function() {
return this.setHistoryList([]);
};
/**
* optional Status status = 4;
* @return {!proto.bosdyn.api.mission.State.Status}
*/
proto.bosdyn.api.mission.State.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.mission.State.Status} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.bosdyn.api.mission.State.Status} value
* @return {!proto.bosdyn.api.mission.State} returns this
*/
proto.bosdyn.api.mission.State.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
/**
* optional string error = 5;
* @return {string}
*/
proto.bosdyn.api.mission.State.prototype.getError = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.mission.State} returns this
*/
proto.bosdyn.api.mission.State.prototype.setError = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional int64 tick_counter = 6;
* @return {number}
*/
proto.bosdyn.api.mission.State.prototype.getTickCounter = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.State} returns this
*/
proto.bosdyn.api.mission.State.prototype.setTickCounter = function(value) {
return jspb.Message.setProto3IntField(this, 6, value);
};
/**
* optional int64 mission_id = 7;
* @return {number}
*/
proto.bosdyn.api.mission.State.prototype.getMissionId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.State} returns this
*/
proto.bosdyn.api.mission.State.prototype.setMissionId = function(value) {
return jspb.Message.setProto3IntField(this, 7, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.Question.repeatedFields_ = [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.Question.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.Question.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.Question} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.Question.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
source: jspb.Message.getFieldWithDefault(msg, 2, ""),
text: jspb.Message.getFieldWithDefault(msg, 3, ""),
optionsList: jspb.Message.toObjectList(msg.getOptionsList(),
bosdyn_api_mission_nodes_pb.Prompt.Option.toObject, includeInstance),
forAutonomousProcessing: jspb.Message.getBooleanFieldWithDefault(msg, 5, 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.mission.Question}
*/
proto.bosdyn.api.mission.Question.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.Question;
return proto.bosdyn.api.mission.Question.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.Question} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.Question}
*/
proto.bosdyn.api.mission.Question.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSource(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setText(value);
break;
case 4:
var value = new bosdyn_api_mission_nodes_pb.Prompt.Option;
reader.readMessage(value,bosdyn_api_mission_nodes_pb.Prompt.Option.deserializeBinaryFromReader);
msg.addOptions(value);
break;
case 5:
var value = /** @type {boolean} */ (reader.readBool());
msg.setForAutonomousProcessing(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.Question.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.Question.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.Question} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.Question.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getSource();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getText();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getOptionsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
bosdyn_api_mission_nodes_pb.Prompt.Option.serializeBinaryToWriter
);
}
f = message.getForAutonomousProcessing();
if (f) {
writer.writeBool(
5,
f
);
}
};
/**
* optional int64 id = 1;
* @return {number}
*/
proto.bosdyn.api.mission.Question.prototype.getId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.Question} returns this
*/
proto.bosdyn.api.mission.Question.prototype.setId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string source = 2;
* @return {string}
*/
proto.bosdyn.api.mission.Question.prototype.getSource = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.mission.Question} returns this
*/
proto.bosdyn.api.mission.Question.prototype.setSource = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string text = 3;
* @return {string}
*/
proto.bosdyn.api.mission.Question.prototype.getText = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.mission.Question} returns this
*/
proto.bosdyn.api.mission.Question.prototype.setText = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* repeated Prompt.Option options = 4;
* @return {!Array<!proto.bosdyn.api.mission.Prompt.Option>}
*/
proto.bosdyn.api.mission.Question.prototype.getOptionsList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.Prompt.Option>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_mission_nodes_pb.Prompt.Option, 4));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.Prompt.Option>} value
* @return {!proto.bosdyn.api.mission.Question} returns this
*/
proto.bosdyn.api.mission.Question.prototype.setOptionsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.bosdyn.api.mission.Prompt.Option=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.Prompt.Option}
*/
proto.bosdyn.api.mission.Question.prototype.addOptions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.bosdyn.api.mission.Prompt.Option, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.Question} returns this
*/
proto.bosdyn.api.mission.Question.prototype.clearOptionsList = function() {
return this.setOptionsList([]);
};
/**
* optional bool for_autonomous_processing = 5;
* @return {boolean}
*/
proto.bosdyn.api.mission.Question.prototype.getForAutonomousProcessing = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.mission.Question} returns this
*/
proto.bosdyn.api.mission.Question.prototype.setForAutonomousProcessing = function(value) {
return jspb.Message.setProto3BooleanField(this, 5, 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.mission.AnswerQuestionRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.AnswerQuestionRequest.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.AnswerQuestionRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
questionId: jspb.Message.getFieldWithDefault(msg, 2, 0),
code: jspb.Message.getFieldWithDefault(msg, 3, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.mission.AnswerQuestionRequest}
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.AnswerQuestionRequest;
return proto.bosdyn.api.mission.AnswerQuestionRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.AnswerQuestionRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.AnswerQuestionRequest}
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.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 {number} */ (reader.readInt64());
msg.setQuestionId(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt64());
msg.setCode(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.AnswerQuestionRequest.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.AnswerQuestionRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.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.getQuestionId();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
f = message.getCode();
if (f !== 0) {
writer.writeInt64(
3,
f
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.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.AnswerQuestionRequest} returns this
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.AnswerQuestionRequest} returns this
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional int64 question_id = 2;
* @return {number}
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.prototype.getQuestionId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.AnswerQuestionRequest} returns this
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.prototype.setQuestionId = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional int64 code = 3;
* @return {number}
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.prototype.getCode = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.AnswerQuestionRequest} returns this
*/
proto.bosdyn.api.mission.AnswerQuestionRequest.prototype.setCode = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.AnswerQuestionResponse.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.AnswerQuestionResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.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)
};
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.AnswerQuestionResponse}
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.AnswerQuestionResponse;
return proto.bosdyn.api.mission.AnswerQuestionResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.AnswerQuestionResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.AnswerQuestionResponse}
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.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.AnswerQuestionResponse.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.AnswerQuestionResponse.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.AnswerQuestionResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.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
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_OK: 1,
STATUS_INVALID_QUESTION_ID: 2,
STATUS_INVALID_CODE: 3,
STATUS_ALREADY_ANSWERED: 4
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.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.AnswerQuestionResponse} returns this
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.AnswerQuestionResponse} returns this
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Status status = 2;
* @return {!proto.bosdyn.api.mission.AnswerQuestionResponse.Status}
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.mission.AnswerQuestionResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.mission.AnswerQuestionResponse.Status} value
* @return {!proto.bosdyn.api.mission.AnswerQuestionResponse} returns this
*/
proto.bosdyn.api.mission.AnswerQuestionResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 2, 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.mission.MissionInfo.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.MissionInfo.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.MissionInfo} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.MissionInfo.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
root: (f = msg.getRoot()) && proto.bosdyn.api.mission.NodeInfo.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.mission.MissionInfo}
*/
proto.bosdyn.api.mission.MissionInfo.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.MissionInfo;
return proto.bosdyn.api.mission.MissionInfo.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.MissionInfo} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.MissionInfo}
*/
proto.bosdyn.api.mission.MissionInfo.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setId(value);
break;
case 2:
var value = new proto.bosdyn.api.mission.NodeInfo;
reader.readMessage(value,proto.bosdyn.api.mission.NodeInfo.deserializeBinaryFromReader);
msg.setRoot(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.MissionInfo.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.MissionInfo.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.MissionInfo} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.MissionInfo.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getRoot();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.mission.NodeInfo.serializeBinaryToWriter
);
}
};
/**
* optional int64 id = 1;
* @return {number}
*/
proto.bosdyn.api.mission.MissionInfo.prototype.getId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.MissionInfo} returns this
*/
proto.bosdyn.api.mission.MissionInfo.prototype.setId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional NodeInfo root = 2;
* @return {?proto.bosdyn.api.mission.NodeInfo}
*/
proto.bosdyn.api.mission.MissionInfo.prototype.getRoot = function() {
return /** @type{?proto.bosdyn.api.mission.NodeInfo} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.mission.NodeInfo, 2));
};
/**
* @param {?proto.bosdyn.api.mission.NodeInfo|undefined} value
* @return {!proto.bosdyn.api.mission.MissionInfo} returns this
*/
proto.bosdyn.api.mission.MissionInfo.prototype.setRoot = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.MissionInfo} returns this
*/
proto.bosdyn.api.mission.MissionInfo.prototype.clearRoot = function() {
return this.setRoot(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.MissionInfo.prototype.hasRoot = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.NodeInfo.repeatedFields_ = [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.NodeInfo.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.NodeInfo.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.NodeInfo} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.NodeInfo.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
userData: (f = msg.getUserData()) && bosdyn_api_mission_util_pb.UserData.toObject(includeInstance, f),
childrenList: jspb.Message.toObjectList(msg.getChildrenList(),
proto.bosdyn.api.mission.NodeInfo.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.NodeInfo}
*/
proto.bosdyn.api.mission.NodeInfo.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.NodeInfo;
return proto.bosdyn.api.mission.NodeInfo.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.NodeInfo} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.NodeInfo}
*/
proto.bosdyn.api.mission.NodeInfo.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 3:
var value = new bosdyn_api_mission_util_pb.UserData;
reader.readMessage(value,bosdyn_api_mission_util_pb.UserData.deserializeBinaryFromReader);
msg.setUserData(value);
break;
case 4:
var value = new proto.bosdyn.api.mission.NodeInfo;
reader.readMessage(value,proto.bosdyn.api.mission.NodeInfo.deserializeBinaryFromReader);
msg.addChildren(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.NodeInfo.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.NodeInfo.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.NodeInfo} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.NodeInfo.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getUserData();
if (f != null) {
writer.writeMessage(
3,
f,
bosdyn_api_mission_util_pb.UserData.serializeBinaryToWriter
);
}
f = message.getChildrenList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
proto.bosdyn.api.mission.NodeInfo.serializeBinaryToWriter
);
}
};
/**
* optional int64 id = 1;
* @return {number}
*/
proto.bosdyn.api.mission.NodeInfo.prototype.getId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.NodeInfo} returns this
*/
proto.bosdyn.api.mission.NodeInfo.prototype.setId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string name = 2;
* @return {string}
*/
proto.bosdyn.api.mission.NodeInfo.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.mission.NodeInfo} returns this
*/
proto.bosdyn.api.mission.NodeInfo.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional UserData user_data = 3;
* @return {?proto.bosdyn.api.mission.UserData}
*/
proto.bosdyn.api.mission.NodeInfo.prototype.getUserData = function() {
return /** @type{?proto.bosdyn.api.mission.UserData} */ (
jspb.Message.getWrapperField(this, bosdyn_api_mission_util_pb.UserData, 3));
};
/**
* @param {?proto.bosdyn.api.mission.UserData|undefined} value
* @return {!proto.bosdyn.api.mission.NodeInfo} returns this
*/
proto.bosdyn.api.mission.NodeInfo.prototype.setUserData = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.NodeInfo} returns this
*/
proto.bosdyn.api.mission.NodeInfo.prototype.clearUserData = function() {
return this.setUserData(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.NodeInfo.prototype.hasUserData = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* repeated NodeInfo children = 4;
* @return {!Array<!proto.bosdyn.api.mission.NodeInfo>}
*/
proto.bosdyn.api.mission.NodeInfo.prototype.getChildrenList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.NodeInfo>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.mission.NodeInfo, 4));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.NodeInfo>} value
* @return {!proto.bosdyn.api.mission.NodeInfo} returns this
*/
proto.bosdyn.api.mission.NodeInfo.prototype.setChildrenList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.bosdyn.api.mission.NodeInfo=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.NodeInfo}
*/
proto.bosdyn.api.mission.NodeInfo.prototype.addChildren = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.bosdyn.api.mission.NodeInfo, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.NodeInfo} returns this
*/
proto.bosdyn.api.mission.NodeInfo.prototype.clearChildrenList = function() {
return this.setChildrenList([]);
};
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.FailedNode.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.FailedNode.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.FailedNode} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.FailedNode.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
error: jspb.Message.getFieldWithDefault(msg, 2, ""),
implTypename: jspb.Message.getFieldWithDefault(msg, 3, "")
};
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.FailedNode}
*/
proto.bosdyn.api.mission.FailedNode.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.FailedNode;
return proto.bosdyn.api.mission.FailedNode.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.FailedNode} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.FailedNode}
*/
proto.bosdyn.api.mission.FailedNode.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setError(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setImplTypename(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.FailedNode.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.FailedNode.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.FailedNode} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.FailedNode.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getError();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getImplTypename();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.bosdyn.api.mission.FailedNode.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.mission.FailedNode} returns this
*/
proto.bosdyn.api.mission.FailedNode.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string error = 2;
* @return {string}
*/
proto.bosdyn.api.mission.FailedNode.prototype.getError = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.mission.FailedNode} returns this
*/
proto.bosdyn.api.mission.FailedNode.prototype.setError = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string impl_typename = 3;
* @return {string}
*/
proto.bosdyn.api.mission.FailedNode.prototype.getImplTypename = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.mission.FailedNode} returns this
*/
proto.bosdyn.api.mission.FailedNode.prototype.setImplTypename = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.PlayMissionRequest.repeatedFields_ = [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.PlayMissionRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.PlayMissionRequest.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.PlayMissionRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.PlayMissionRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
pauseTime: (f = msg.getPauseTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
leasesList: jspb.Message.toObjectList(msg.getLeasesList(),
bosdyn_api_lease_pb.Lease.toObject, includeInstance),
settings: (f = msg.getSettings()) && proto.bosdyn.api.mission.PlaySettings.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.mission.PlayMissionRequest}
*/
proto.bosdyn.api.mission.PlayMissionRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.PlayMissionRequest;
return proto.bosdyn.api.mission.PlayMissionRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.PlayMissionRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.PlayMissionRequest}
*/
proto.bosdyn.api.mission.PlayMissionRequest.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 3:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setPauseTime(value);
break;
case 4:
var value = new bosdyn_api_lease_pb.Lease;
reader.readMessage(value,bosdyn_api_lease_pb.Lease.deserializeBinaryFromReader);
msg.addLeases(value);
break;
case 5:
var value = new proto.bosdyn.api.mission.PlaySettings;
reader.readMessage(value,proto.bosdyn.api.mission.PlaySettings.deserializeBinaryFromReader);
msg.setSettings(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.PlayMissionRequest.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.PlayMissionRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.PlayMissionRequest.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.getPauseTime();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getLeasesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
bosdyn_api_lease_pb.Lease.serializeBinaryToWriter
);
}
f = message.getSettings();
if (f != null) {
writer.writeMessage(
5,
f,
proto.bosdyn.api.mission.PlaySettings.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.mission.PlayMissionRequest.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.PlayMissionRequest} returns this
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.PlayMissionRequest} returns this
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional google.protobuf.Timestamp pause_time = 3;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.getPauseTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.bosdyn.api.mission.PlayMissionRequest} returns this
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.setPauseTime = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.PlayMissionRequest} returns this
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.clearPauseTime = function() {
return this.setPauseTime(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.hasPauseTime = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* repeated bosdyn.api.Lease leases = 4;
* @return {!Array<!proto.bosdyn.api.Lease>}
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.getLeasesList = function() {
return /** @type{!Array<!proto.bosdyn.api.Lease>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_lease_pb.Lease, 4));
};
/**
* @param {!Array<!proto.bosdyn.api.Lease>} value
* @return {!proto.bosdyn.api.mission.PlayMissionRequest} returns this
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.setLeasesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.bosdyn.api.Lease=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.Lease}
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.addLeases = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.bosdyn.api.Lease, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.PlayMissionRequest} returns this
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.clearLeasesList = function() {
return this.setLeasesList([]);
};
/**
* optional PlaySettings settings = 5;
* @return {?proto.bosdyn.api.mission.PlaySettings}
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.getSettings = function() {
return /** @type{?proto.bosdyn.api.mission.PlaySettings} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.mission.PlaySettings, 5));
};
/**
* @param {?proto.bosdyn.api.mission.PlaySettings|undefined} value
* @return {!proto.bosdyn.api.mission.PlayMissionRequest} returns this
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.setSettings = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.PlayMissionRequest} returns this
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.clearSettings = function() {
return this.setSettings(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.PlayMissionRequest.prototype.hasSettings = function() {
return jspb.Message.getField(this, 5) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.mission.PlaySettings.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.PlaySettings.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.PlaySettings} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.PlaySettings.toObject = function(includeInstance, msg) {
var f, obj = {
velocityLimit: (f = msg.getVelocityLimit()) && bosdyn_api_geometry_pb.SE2VelocityLimit.toObject(includeInstance, f),
disableDirectedExploration: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
disableAlternateRouteFinding: jspb.Message.getBooleanFieldWithDefault(msg, 3, 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.mission.PlaySettings}
*/
proto.bosdyn.api.mission.PlaySettings.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.PlaySettings;
return proto.bosdyn.api.mission.PlaySettings.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.PlaySettings} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.PlaySettings}
*/
proto.bosdyn.api.mission.PlaySettings.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_geometry_pb.SE2VelocityLimit;
reader.readMessage(value,bosdyn_api_geometry_pb.SE2VelocityLimit.deserializeBinaryFromReader);
msg.setVelocityLimit(value);
break;
case 2:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDisableDirectedExploration(value);
break;
case 3:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDisableAlternateRouteFinding(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.PlaySettings.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.PlaySettings.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.PlaySettings} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.PlaySettings.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getVelocityLimit();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_geometry_pb.SE2VelocityLimit.serializeBinaryToWriter
);
}
f = message.getDisableDirectedExploration();
if (f) {
writer.writeBool(
2,
f
);
}
f = message.getDisableAlternateRouteFinding();
if (f) {
writer.writeBool(
3,
f
);
}
};
/**
* optional bosdyn.api.SE2VelocityLimit velocity_limit = 1;
* @return {?proto.bosdyn.api.SE2VelocityLimit}
*/
proto.bosdyn.api.mission.PlaySettings.prototype.getVelocityLimit = function() {
return /** @type{?proto.bosdyn.api.SE2VelocityLimit} */ (
jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.SE2VelocityLimit, 1));
};
/**
* @param {?proto.bosdyn.api.SE2VelocityLimit|undefined} value
* @return {!proto.bosdyn.api.mission.PlaySettings} returns this
*/
proto.bosdyn.api.mission.PlaySettings.prototype.setVelocityLimit = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.PlaySettings} returns this
*/
proto.bosdyn.api.mission.PlaySettings.prototype.clearVelocityLimit = function() {
return this.setVelocityLimit(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.PlaySettings.prototype.hasVelocityLimit = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bool disable_directed_exploration = 2;
* @return {boolean}
*/
proto.bosdyn.api.mission.PlaySettings.prototype.getDisableDirectedExploration = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.mission.PlaySettings} returns this
*/
proto.bosdyn.api.mission.PlaySettings.prototype.setDisableDirectedExploration = function(value) {
return jspb.Message.setProto3BooleanField(this, 2, value);
};
/**
* optional bool disable_alternate_route_finding = 3;
* @return {boolean}
*/
proto.bosdyn.api.mission.PlaySettings.prototype.getDisableAlternateRouteFinding = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.mission.PlaySettings} returns this
*/
proto.bosdyn.api.mission.PlaySettings.prototype.setDisableAlternateRouteFinding = function(value) {
return jspb.Message.setProto3BooleanField(this, 3, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.PlayMissionResponse.repeatedFields_ = [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.PlayMissionResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.PlayMissionResponse.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.PlayMissionResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.PlayMissionResponse.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),
leaseUseResultsList: jspb.Message.toObjectList(msg.getLeaseUseResultsList(),
bosdyn_api_lease_pb.LeaseUseResult.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.PlayMissionResponse}
*/
proto.bosdyn.api.mission.PlayMissionResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.PlayMissionResponse;
return proto.bosdyn.api.mission.PlayMissionResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.PlayMissionResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.PlayMissionResponse}
*/
proto.bosdyn.api.mission.PlayMissionResponse.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.PlayMissionResponse.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
case 3:
var value = new bosdyn_api_lease_pb.LeaseUseResult;
reader.readMessage(value,bosdyn_api_lease_pb.LeaseUseResult.deserializeBinaryFromReader);
msg.addLeaseUseResults(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.PlayMissionResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.PlayMissionResponse.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.PlayMissionResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.PlayMissionResponse.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.getLeaseUseResultsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
bosdyn_api_lease_pb.LeaseUseResult.serializeBinaryToWriter
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.mission.PlayMissionResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_OK: 1,
STATUS_NO_MISSION: 2
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.mission.PlayMissionResponse.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.PlayMissionResponse} returns this
*/
proto.bosdyn.api.mission.PlayMissionResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.PlayMissionResponse} returns this
*/
proto.bosdyn.api.mission.PlayMissionResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.PlayMissionResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Status status = 2;
* @return {!proto.bosdyn.api.mission.PlayMissionResponse.Status}
*/
proto.bosdyn.api.mission.PlayMissionResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.mission.PlayMissionResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.mission.PlayMissionResponse.Status} value
* @return {!proto.bosdyn.api.mission.PlayMissionResponse} returns this
*/
proto.bosdyn.api.mission.PlayMissionResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* repeated bosdyn.api.LeaseUseResult lease_use_results = 3;
* @return {!Array<!proto.bosdyn.api.LeaseUseResult>}
*/
proto.bosdyn.api.mission.PlayMissionResponse.prototype.getLeaseUseResultsList = function() {
return /** @type{!Array<!proto.bosdyn.api.LeaseUseResult>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_lease_pb.LeaseUseResult, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.LeaseUseResult>} value
* @return {!proto.bosdyn.api.mission.PlayMissionResponse} returns this
*/
proto.bosdyn.api.mission.PlayMissionResponse.prototype.setLeaseUseResultsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.LeaseUseResult=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.LeaseUseResult}
*/
proto.bosdyn.api.mission.PlayMissionResponse.prototype.addLeaseUseResults = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.LeaseUseResult, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.PlayMissionResponse} returns this
*/
proto.bosdyn.api.mission.PlayMissionResponse.prototype.clearLeaseUseResultsList = function() {
return this.setLeaseUseResultsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.RestartMissionRequest.repeatedFields_ = [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.RestartMissionRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.RestartMissionRequest.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.RestartMissionRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.RestartMissionRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
pauseTime: (f = msg.getPauseTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
leasesList: jspb.Message.toObjectList(msg.getLeasesList(),
bosdyn_api_lease_pb.Lease.toObject, includeInstance),
settings: (f = msg.getSettings()) && proto.bosdyn.api.mission.PlaySettings.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.mission.RestartMissionRequest}
*/
proto.bosdyn.api.mission.RestartMissionRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.RestartMissionRequest;
return proto.bosdyn.api.mission.RestartMissionRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.RestartMissionRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.RestartMissionRequest}
*/
proto.bosdyn.api.mission.RestartMissionRequest.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 google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setPauseTime(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 proto.bosdyn.api.mission.PlaySettings;
reader.readMessage(value,proto.bosdyn.api.mission.PlaySettings.deserializeBinaryFromReader);
msg.setSettings(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.RestartMissionRequest.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.RestartMissionRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.RestartMissionRequest.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.getPauseTime();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getLeasesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
bosdyn_api_lease_pb.Lease.serializeBinaryToWriter
);
}
f = message.getSettings();
if (f != null) {
writer.writeMessage(
4,
f,
proto.bosdyn.api.mission.PlaySettings.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.mission.RestartMissionRequest.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.RestartMissionRequest} returns this
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.RestartMissionRequest} returns this
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional google.protobuf.Timestamp pause_time = 2;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.getPauseTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.bosdyn.api.mission.RestartMissionRequest} returns this
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.setPauseTime = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.RestartMissionRequest} returns this
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.clearPauseTime = function() {
return this.setPauseTime(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.hasPauseTime = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* repeated bosdyn.api.Lease leases = 3;
* @return {!Array<!proto.bosdyn.api.Lease>}
*/
proto.bosdyn.api.mission.RestartMissionRequest.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.RestartMissionRequest} returns this
*/
proto.bosdyn.api.mission.RestartMissionRequest.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.RestartMissionRequest.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.RestartMissionRequest} returns this
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.clearLeasesList = function() {
return this.setLeasesList([]);
};
/**
* optional PlaySettings settings = 4;
* @return {?proto.bosdyn.api.mission.PlaySettings}
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.getSettings = function() {
return /** @type{?proto.bosdyn.api.mission.PlaySettings} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.mission.PlaySettings, 4));
};
/**
* @param {?proto.bosdyn.api.mission.PlaySettings|undefined} value
* @return {!proto.bosdyn.api.mission.RestartMissionRequest} returns this
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.setSettings = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.RestartMissionRequest} returns this
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.clearSettings = function() {
return this.setSettings(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.RestartMissionRequest.prototype.hasSettings = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.RestartMissionResponse.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.RestartMissionResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.RestartMissionResponse.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.RestartMissionResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.RestartMissionResponse.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),
leaseUseResultsList: jspb.Message.toObjectList(msg.getLeaseUseResultsList(),
bosdyn_api_lease_pb.LeaseUseResult.toObject, includeInstance),
failedNodesList: jspb.Message.toObjectList(msg.getFailedNodesList(),
proto.bosdyn.api.mission.FailedNode.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.RestartMissionResponse}
*/
proto.bosdyn.api.mission.RestartMissionResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.RestartMissionResponse;
return proto.bosdyn.api.mission.RestartMissionResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.RestartMissionResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.RestartMissionResponse}
*/
proto.bosdyn.api.mission.RestartMissionResponse.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.RestartMissionResponse.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
case 3:
var value = new bosdyn_api_lease_pb.LeaseUseResult;
reader.readMessage(value,bosdyn_api_lease_pb.LeaseUseResult.deserializeBinaryFromReader);
msg.addLeaseUseResults(value);
break;
case 4:
var value = new proto.bosdyn.api.mission.FailedNode;
reader.readMessage(value,proto.bosdyn.api.mission.FailedNode.deserializeBinaryFromReader);
msg.addFailedNodes(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.RestartMissionResponse.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.RestartMissionResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.RestartMissionResponse.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.getLeaseUseResultsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
bosdyn_api_lease_pb.LeaseUseResult.serializeBinaryToWriter
);
}
f = message.getFailedNodesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
proto.bosdyn.api.mission.FailedNode.serializeBinaryToWriter
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.mission.RestartMissionResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_OK: 1,
STATUS_NO_MISSION: 2,
STATUS_VALIDATE_ERROR: 3
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.mission.RestartMissionResponse.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.RestartMissionResponse} returns this
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.RestartMissionResponse} returns this
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Status status = 2;
* @return {!proto.bosdyn.api.mission.RestartMissionResponse.Status}
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.mission.RestartMissionResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.mission.RestartMissionResponse.Status} value
* @return {!proto.bosdyn.api.mission.RestartMissionResponse} returns this
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* repeated bosdyn.api.LeaseUseResult lease_use_results = 3;
* @return {!Array<!proto.bosdyn.api.LeaseUseResult>}
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.getLeaseUseResultsList = function() {
return /** @type{!Array<!proto.bosdyn.api.LeaseUseResult>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_lease_pb.LeaseUseResult, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.LeaseUseResult>} value
* @return {!proto.bosdyn.api.mission.RestartMissionResponse} returns this
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.setLeaseUseResultsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.LeaseUseResult=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.LeaseUseResult}
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.addLeaseUseResults = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.LeaseUseResult, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.RestartMissionResponse} returns this
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.clearLeaseUseResultsList = function() {
return this.setLeaseUseResultsList([]);
};
/**
* repeated FailedNode failed_nodes = 4;
* @return {!Array<!proto.bosdyn.api.mission.FailedNode>}
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.getFailedNodesList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.FailedNode>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.mission.FailedNode, 4));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.FailedNode>} value
* @return {!proto.bosdyn.api.mission.RestartMissionResponse} returns this
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.setFailedNodesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.bosdyn.api.mission.FailedNode=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.FailedNode}
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.addFailedNodes = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.bosdyn.api.mission.FailedNode, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.RestartMissionResponse} returns this
*/
proto.bosdyn.api.mission.RestartMissionResponse.prototype.clearFailedNodesList = function() {
return this.setFailedNodesList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.LoadMissionRequest.repeatedFields_ = [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.LoadMissionRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.LoadMissionRequest.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.LoadMissionRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.LoadMissionRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
root: (f = msg.getRoot()) && bosdyn_api_mission_nodes_pb.Node.toObject(includeInstance, f),
leasesList: jspb.Message.toObjectList(msg.getLeasesList(),
bosdyn_api_lease_pb.Lease.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.LoadMissionRequest}
*/
proto.bosdyn.api.mission.LoadMissionRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.LoadMissionRequest;
return proto.bosdyn.api.mission.LoadMissionRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.LoadMissionRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.LoadMissionRequest}
*/
proto.bosdyn.api.mission.LoadMissionRequest.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_mission_nodes_pb.Node;
reader.readMessage(value,bosdyn_api_mission_nodes_pb.Node.deserializeBinaryFromReader);
msg.setRoot(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;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.LoadMissionRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.LoadMissionRequest.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.LoadMissionRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.LoadMissionRequest.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.getRoot();
if (f != null) {
writer.writeMessage(
2,
f,
bosdyn_api_mission_nodes_pb.Node.serializeBinaryToWriter
);
}
f = message.getLeasesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
bosdyn_api_lease_pb.Lease.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.mission.LoadMissionRequest.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.LoadMissionRequest} returns this
*/
proto.bosdyn.api.mission.LoadMissionRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.LoadMissionRequest} returns this
*/
proto.bosdyn.api.mission.LoadMissionRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.LoadMissionRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Node root = 2;
* @return {?proto.bosdyn.api.mission.Node}
*/
proto.bosdyn.api.mission.LoadMissionRequest.prototype.getRoot = function() {
return /** @type{?proto.bosdyn.api.mission.Node} */ (
jspb.Message.getWrapperField(this, bosdyn_api_mission_nodes_pb.Node, 2));
};
/**
* @param {?proto.bosdyn.api.mission.Node|undefined} value
* @return {!proto.bosdyn.api.mission.LoadMissionRequest} returns this
*/
proto.bosdyn.api.mission.LoadMissionRequest.prototype.setRoot = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.LoadMissionRequest} returns this
*/
proto.bosdyn.api.mission.LoadMissionRequest.prototype.clearRoot = function() {
return this.setRoot(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.LoadMissionRequest.prototype.hasRoot = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* repeated bosdyn.api.Lease leases = 3;
* @return {!Array<!proto.bosdyn.api.Lease>}
*/
proto.bosdyn.api.mission.LoadMissionRequest.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.LoadMissionRequest} returns this
*/
proto.bosdyn.api.mission.LoadMissionRequest.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.LoadMissionRequest.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.LoadMissionRequest} returns this
*/
proto.bosdyn.api.mission.LoadMissionRequest.prototype.clearLeasesList = function() {
return this.setLeasesList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.mission.LoadMissionResponse.repeatedFields_ = [3,5];
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.LoadMissionResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.LoadMissionResponse.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.LoadMissionResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.LoadMissionResponse.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),
leaseUseResultsList: jspb.Message.toObjectList(msg.getLeaseUseResultsList(),
bosdyn_api_lease_pb.LeaseUseResult.toObject, includeInstance),
missionInfo: (f = msg.getMissionInfo()) && proto.bosdyn.api.mission.MissionInfo.toObject(includeInstance, f),
failedNodesList: jspb.Message.toObjectList(msg.getFailedNodesList(),
proto.bosdyn.api.mission.FailedNode.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.LoadMissionResponse}
*/
proto.bosdyn.api.mission.LoadMissionResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.LoadMissionResponse;
return proto.bosdyn.api.mission.LoadMissionResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.LoadMissionResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.LoadMissionResponse}
*/
proto.bosdyn.api.mission.LoadMissionResponse.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.LoadMissionResponse.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
case 3:
var value = new bosdyn_api_lease_pb.LeaseUseResult;
reader.readMessage(value,bosdyn_api_lease_pb.LeaseUseResult.deserializeBinaryFromReader);
msg.addLeaseUseResults(value);
break;
case 4:
var value = new proto.bosdyn.api.mission.MissionInfo;
reader.readMessage(value,proto.bosdyn.api.mission.MissionInfo.deserializeBinaryFromReader);
msg.setMissionInfo(value);
break;
case 5:
var value = new proto.bosdyn.api.mission.FailedNode;
reader.readMessage(value,proto.bosdyn.api.mission.FailedNode.deserializeBinaryFromReader);
msg.addFailedNodes(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.LoadMissionResponse.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.LoadMissionResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.LoadMissionResponse.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.getLeaseUseResultsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
bosdyn_api_lease_pb.LeaseUseResult.serializeBinaryToWriter
);
}
f = message.getMissionInfo();
if (f != null) {
writer.writeMessage(
4,
f,
proto.bosdyn.api.mission.MissionInfo.serializeBinaryToWriter
);
}
f = message.getFailedNodesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
proto.bosdyn.api.mission.FailedNode.serializeBinaryToWriter
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.mission.LoadMissionResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_OK: 1,
STATUS_COMPILE_ERROR: 2,
STATUS_VALIDATE_ERROR: 3
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.mission.LoadMissionResponse.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.LoadMissionResponse} returns this
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.LoadMissionResponse} returns this
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Status status = 2;
* @return {!proto.bosdyn.api.mission.LoadMissionResponse.Status}
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.mission.LoadMissionResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.mission.LoadMissionResponse.Status} value
* @return {!proto.bosdyn.api.mission.LoadMissionResponse} returns this
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* repeated bosdyn.api.LeaseUseResult lease_use_results = 3;
* @return {!Array<!proto.bosdyn.api.LeaseUseResult>}
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.getLeaseUseResultsList = function() {
return /** @type{!Array<!proto.bosdyn.api.LeaseUseResult>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_lease_pb.LeaseUseResult, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.LeaseUseResult>} value
* @return {!proto.bosdyn.api.mission.LoadMissionResponse} returns this
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.setLeaseUseResultsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.LeaseUseResult=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.LeaseUseResult}
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.addLeaseUseResults = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.LeaseUseResult, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.LoadMissionResponse} returns this
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.clearLeaseUseResultsList = function() {
return this.setLeaseUseResultsList([]);
};
/**
* optional MissionInfo mission_info = 4;
* @return {?proto.bosdyn.api.mission.MissionInfo}
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.getMissionInfo = function() {
return /** @type{?proto.bosdyn.api.mission.MissionInfo} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.mission.MissionInfo, 4));
};
/**
* @param {?proto.bosdyn.api.mission.MissionInfo|undefined} value
* @return {!proto.bosdyn.api.mission.LoadMissionResponse} returns this
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.setMissionInfo = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.LoadMissionResponse} returns this
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.clearMissionInfo = function() {
return this.setMissionInfo(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.hasMissionInfo = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* repeated FailedNode failed_nodes = 5;
* @return {!Array<!proto.bosdyn.api.mission.FailedNode>}
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.getFailedNodesList = function() {
return /** @type{!Array<!proto.bosdyn.api.mission.FailedNode>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.mission.FailedNode, 5));
};
/**
* @param {!Array<!proto.bosdyn.api.mission.FailedNode>} value
* @return {!proto.bosdyn.api.mission.LoadMissionResponse} returns this
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.setFailedNodesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 5, value);
};
/**
* @param {!proto.bosdyn.api.mission.FailedNode=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.mission.FailedNode}
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.addFailedNodes = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.bosdyn.api.mission.FailedNode, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.mission.LoadMissionResponse} returns this
*/
proto.bosdyn.api.mission.LoadMissionResponse.prototype.clearFailedNodesList = function() {
return this.setFailedNodesList([]);
};
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.GetInfoRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.GetInfoRequest.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.GetInfoRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetInfoRequest.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.mission.GetInfoRequest}
*/
proto.bosdyn.api.mission.GetInfoRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.GetInfoRequest;
return proto.bosdyn.api.mission.GetInfoRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.GetInfoRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.GetInfoRequest}
*/
proto.bosdyn.api.mission.GetInfoRequest.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.mission.GetInfoRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.GetInfoRequest.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.GetInfoRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetInfoRequest.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.mission.GetInfoRequest.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.GetInfoRequest} returns this
*/
proto.bosdyn.api.mission.GetInfoRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.GetInfoRequest} returns this
*/
proto.bosdyn.api.mission.GetInfoRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetInfoRequest.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.mission.GetInfoResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.GetInfoResponse.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.GetInfoResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetInfoResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
missionInfo: (f = msg.getMissionInfo()) && proto.bosdyn.api.mission.MissionInfo.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.mission.GetInfoResponse}
*/
proto.bosdyn.api.mission.GetInfoResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.GetInfoResponse;
return proto.bosdyn.api.mission.GetInfoResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.GetInfoResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.GetInfoResponse}
*/
proto.bosdyn.api.mission.GetInfoResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new proto.bosdyn.api.mission.MissionInfo;
reader.readMessage(value,proto.bosdyn.api.mission.MissionInfo.deserializeBinaryFromReader);
msg.setMissionInfo(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.GetInfoResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.GetInfoResponse.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.GetInfoResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetInfoResponse.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.getMissionInfo();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.mission.MissionInfo.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.mission.GetInfoResponse.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.GetInfoResponse} returns this
*/
proto.bosdyn.api.mission.GetInfoResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.GetInfoResponse} returns this
*/
proto.bosdyn.api.mission.GetInfoResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetInfoResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional MissionInfo mission_info = 2;
* @return {?proto.bosdyn.api.mission.MissionInfo}
*/
proto.bosdyn.api.mission.GetInfoResponse.prototype.getMissionInfo = function() {
return /** @type{?proto.bosdyn.api.mission.MissionInfo} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.mission.MissionInfo, 2));
};
/**
* @param {?proto.bosdyn.api.mission.MissionInfo|undefined} value
* @return {!proto.bosdyn.api.mission.GetInfoResponse} returns this
*/
proto.bosdyn.api.mission.GetInfoResponse.prototype.setMissionInfo = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.GetInfoResponse} returns this
*/
proto.bosdyn.api.mission.GetInfoResponse.prototype.clearMissionInfo = function() {
return this.setMissionInfo(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetInfoResponse.prototype.hasMissionInfo = function() {
return jspb.Message.getField(this, 2) != 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.mission.PauseMissionRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.PauseMissionRequest.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.PauseMissionRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.PauseMissionRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
lease: (f = msg.getLease()) && bosdyn_api_lease_pb.Lease.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.mission.PauseMissionRequest}
*/
proto.bosdyn.api.mission.PauseMissionRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.PauseMissionRequest;
return proto.bosdyn.api.mission.PauseMissionRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.PauseMissionRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.PauseMissionRequest}
*/
proto.bosdyn.api.mission.PauseMissionRequest.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.setLease(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.PauseMissionRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.PauseMissionRequest.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.PauseMissionRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.PauseMissionRequest.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.getLease();
if (f != null) {
writer.writeMessage(
2,
f,
bosdyn_api_lease_pb.Lease.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.mission.PauseMissionRequest.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.PauseMissionRequest} returns this
*/
proto.bosdyn.api.mission.PauseMissionRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.PauseMissionRequest} returns this
*/
proto.bosdyn.api.mission.PauseMissionRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.PauseMissionRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bosdyn.api.Lease lease = 2;
* @return {?proto.bosdyn.api.Lease}
*/
proto.bosdyn.api.mission.PauseMissionRequest.prototype.getLease = function() {
return /** @type{?proto.bosdyn.api.Lease} */ (
jspb.Message.getWrapperField(this, bosdyn_api_lease_pb.Lease, 2));
};
/**
* @param {?proto.bosdyn.api.Lease|undefined} value
* @return {!proto.bosdyn.api.mission.PauseMissionRequest} returns this
*/
proto.bosdyn.api.mission.PauseMissionRequest.prototype.setLease = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.PauseMissionRequest} returns this
*/
proto.bosdyn.api.mission.PauseMissionRequest.prototype.clearLease = function() {
return this.setLease(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.PauseMissionRequest.prototype.hasLease = function() {
return jspb.Message.getField(this, 2) != 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.mission.PauseMissionResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.PauseMissionResponse.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.PauseMissionResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.PauseMissionResponse.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),
leaseUseResult: (f = msg.getLeaseUseResult()) && bosdyn_api_lease_pb.LeaseUseResult.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.mission.PauseMissionResponse}
*/
proto.bosdyn.api.mission.PauseMissionResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.PauseMissionResponse;
return proto.bosdyn.api.mission.PauseMissionResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.PauseMissionResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.PauseMissionResponse}
*/
proto.bosdyn.api.mission.PauseMissionResponse.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.PauseMissionResponse.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
case 3:
var value = new bosdyn_api_lease_pb.LeaseUseResult;
reader.readMessage(value,bosdyn_api_lease_pb.LeaseUseResult.deserializeBinaryFromReader);
msg.setLeaseUseResult(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.PauseMissionResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.PauseMissionResponse.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.PauseMissionResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.PauseMissionResponse.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.getLeaseUseResult();
if (f != null) {
writer.writeMessage(
3,
f,
bosdyn_api_lease_pb.LeaseUseResult.serializeBinaryToWriter
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.mission.PauseMissionResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_OK: 1,
STATUS_NO_MISSION_PLAYING: 2
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.mission.PauseMissionResponse.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.PauseMissionResponse} returns this
*/
proto.bosdyn.api.mission.PauseMissionResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.PauseMissionResponse} returns this
*/
proto.bosdyn.api.mission.PauseMissionResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.PauseMissionResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Status status = 2;
* @return {!proto.bosdyn.api.mission.PauseMissionResponse.Status}
*/
proto.bosdyn.api.mission.PauseMissionResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.mission.PauseMissionResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.mission.PauseMissionResponse.Status} value
* @return {!proto.bosdyn.api.mission.PauseMissionResponse} returns this
*/
proto.bosdyn.api.mission.PauseMissionResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* optional bosdyn.api.LeaseUseResult lease_use_result = 3;
* @return {?proto.bosdyn.api.LeaseUseResult}
*/
proto.bosdyn.api.mission.PauseMissionResponse.prototype.getLeaseUseResult = function() {
return /** @type{?proto.bosdyn.api.LeaseUseResult} */ (
jspb.Message.getWrapperField(this, bosdyn_api_lease_pb.LeaseUseResult, 3));
};
/**
* @param {?proto.bosdyn.api.LeaseUseResult|undefined} value
* @return {!proto.bosdyn.api.mission.PauseMissionResponse} returns this
*/
proto.bosdyn.api.mission.PauseMissionResponse.prototype.setLeaseUseResult = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.PauseMissionResponse} returns this
*/
proto.bosdyn.api.mission.PauseMissionResponse.prototype.clearLeaseUseResult = function() {
return this.setLeaseUseResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.PauseMissionResponse.prototype.hasLeaseUseResult = 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.mission.StopMissionRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.StopMissionRequest.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.StopMissionRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.StopMissionRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
lease: (f = msg.getLease()) && bosdyn_api_lease_pb.Lease.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.mission.StopMissionRequest}
*/
proto.bosdyn.api.mission.StopMissionRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.StopMissionRequest;
return proto.bosdyn.api.mission.StopMissionRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.StopMissionRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.StopMissionRequest}
*/
proto.bosdyn.api.mission.StopMissionRequest.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.setLease(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.StopMissionRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.StopMissionRequest.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.StopMissionRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.StopMissionRequest.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.getLease();
if (f != null) {
writer.writeMessage(
2,
f,
bosdyn_api_lease_pb.Lease.serializeBinaryToWriter
);
}
};
/**
* optional bosdyn.api.RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.mission.StopMissionRequest.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.StopMissionRequest} returns this
*/
proto.bosdyn.api.mission.StopMissionRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.StopMissionRequest} returns this
*/
proto.bosdyn.api.mission.StopMissionRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.StopMissionRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bosdyn.api.Lease lease = 2;
* @return {?proto.bosdyn.api.Lease}
*/
proto.bosdyn.api.mission.StopMissionRequest.prototype.getLease = function() {
return /** @type{?proto.bosdyn.api.Lease} */ (
jspb.Message.getWrapperField(this, bosdyn_api_lease_pb.Lease, 2));
};
/**
* @param {?proto.bosdyn.api.Lease|undefined} value
* @return {!proto.bosdyn.api.mission.StopMissionRequest} returns this
*/
proto.bosdyn.api.mission.StopMissionRequest.prototype.setLease = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.StopMissionRequest} returns this
*/
proto.bosdyn.api.mission.StopMissionRequest.prototype.clearLease = function() {
return this.setLease(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.StopMissionRequest.prototype.hasLease = function() {
return jspb.Message.getField(this, 2) != 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.mission.StopMissionResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.StopMissionResponse.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.StopMissionResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.StopMissionResponse.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),
leaseUseResult: (f = msg.getLeaseUseResult()) && bosdyn_api_lease_pb.LeaseUseResult.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.mission.StopMissionResponse}
*/
proto.bosdyn.api.mission.StopMissionResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.StopMissionResponse;
return proto.bosdyn.api.mission.StopMissionResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.StopMissionResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.StopMissionResponse}
*/
proto.bosdyn.api.mission.StopMissionResponse.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.StopMissionResponse.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
case 3:
var value = new bosdyn_api_lease_pb.LeaseUseResult;
reader.readMessage(value,bosdyn_api_lease_pb.LeaseUseResult.deserializeBinaryFromReader);
msg.setLeaseUseResult(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.StopMissionResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.StopMissionResponse.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.StopMissionResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.StopMissionResponse.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.getLeaseUseResult();
if (f != null) {
writer.writeMessage(
3,
f,
bosdyn_api_lease_pb.LeaseUseResult.serializeBinaryToWriter
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.mission.StopMissionResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_OK: 1,
STATUS_NO_MISSION_PLAYING: 2
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.mission.StopMissionResponse.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.StopMissionResponse} returns this
*/
proto.bosdyn.api.mission.StopMissionResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.StopMissionResponse} returns this
*/
proto.bosdyn.api.mission.StopMissionResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.StopMissionResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Status status = 2;
* @return {!proto.bosdyn.api.mission.StopMissionResponse.Status}
*/
proto.bosdyn.api.mission.StopMissionResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.mission.StopMissionResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.mission.StopMissionResponse.Status} value
* @return {!proto.bosdyn.api.mission.StopMissionResponse} returns this
*/
proto.bosdyn.api.mission.StopMissionResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* optional bosdyn.api.LeaseUseResult lease_use_result = 3;
* @return {?proto.bosdyn.api.LeaseUseResult}
*/
proto.bosdyn.api.mission.StopMissionResponse.prototype.getLeaseUseResult = function() {
return /** @type{?proto.bosdyn.api.LeaseUseResult} */ (
jspb.Message.getWrapperField(this, bosdyn_api_lease_pb.LeaseUseResult, 3));
};
/**
* @param {?proto.bosdyn.api.LeaseUseResult|undefined} value
* @return {!proto.bosdyn.api.mission.StopMissionResponse} returns this
*/
proto.bosdyn.api.mission.StopMissionResponse.prototype.setLeaseUseResult = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.StopMissionResponse} returns this
*/
proto.bosdyn.api.mission.StopMissionResponse.prototype.clearLeaseUseResult = function() {
return this.setLeaseUseResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.StopMissionResponse.prototype.hasLeaseUseResult = 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.mission.GetMissionRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.GetMissionRequest.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.GetMissionRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetMissionRequest.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.mission.GetMissionRequest}
*/
proto.bosdyn.api.mission.GetMissionRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.GetMissionRequest;
return proto.bosdyn.api.mission.GetMissionRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.GetMissionRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.GetMissionRequest}
*/
proto.bosdyn.api.mission.GetMissionRequest.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.mission.GetMissionRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.GetMissionRequest.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.GetMissionRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetMissionRequest.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.mission.GetMissionRequest.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.GetMissionRequest} returns this
*/
proto.bosdyn.api.mission.GetMissionRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.GetMissionRequest} returns this
*/
proto.bosdyn.api.mission.GetMissionRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetMissionRequest.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.mission.GetMissionResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.mission.GetMissionResponse.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.GetMissionResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetMissionResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
root: (f = msg.getRoot()) && bosdyn_api_mission_nodes_pb.Node.toObject(includeInstance, f),
id: jspb.Message.getFieldWithDefault(msg, 3, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.mission.GetMissionResponse}
*/
proto.bosdyn.api.mission.GetMissionResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.mission.GetMissionResponse;
return proto.bosdyn.api.mission.GetMissionResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.mission.GetMissionResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.mission.GetMissionResponse}
*/
proto.bosdyn.api.mission.GetMissionResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new bosdyn_api_mission_nodes_pb.Node;
reader.readMessage(value,bosdyn_api_mission_nodes_pb.Node.deserializeBinaryFromReader);
msg.setRoot(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt64());
msg.setId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.mission.GetMissionResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.mission.GetMissionResponse.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.GetMissionResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.mission.GetMissionResponse.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.getRoot();
if (f != null) {
writer.writeMessage(
2,
f,
bosdyn_api_mission_nodes_pb.Node.serializeBinaryToWriter
);
}
f = message.getId();
if (f !== 0) {
writer.writeInt64(
3,
f
);
}
};
/**
* optional bosdyn.api.ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.mission.GetMissionResponse.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.GetMissionResponse} returns this
*/
proto.bosdyn.api.mission.GetMissionResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.GetMissionResponse} returns this
*/
proto.bosdyn.api.mission.GetMissionResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetMissionResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Node root = 2;
* @return {?proto.bosdyn.api.mission.Node}
*/
proto.bosdyn.api.mission.GetMissionResponse.prototype.getRoot = function() {
return /** @type{?proto.bosdyn.api.mission.Node} */ (
jspb.Message.getWrapperField(this, bosdyn_api_mission_nodes_pb.Node, 2));
};
/**
* @param {?proto.bosdyn.api.mission.Node|undefined} value
* @return {!proto.bosdyn.api.mission.GetMissionResponse} returns this
*/
proto.bosdyn.api.mission.GetMissionResponse.prototype.setRoot = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.mission.GetMissionResponse} returns this
*/
proto.bosdyn.api.mission.GetMissionResponse.prototype.clearRoot = function() {
return this.setRoot(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.mission.GetMissionResponse.prototype.hasRoot = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional int64 id = 3;
* @return {number}
*/
proto.bosdyn.api.mission.GetMissionResponse.prototype.getId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.mission.GetMissionResponse} returns this
*/
proto.bosdyn.api.mission.GetMissionResponse.prototype.setId = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
goog.object.extend(exports, proto.bosdyn.api.mission);