spot-sdk-js
Version:
Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.
4,252 lines • 133 kB
JavaScript
// source: bosdyn/api/estop.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var bosdyn_api_header_pb = require('../../bosdyn/api/header_pb.js');
goog.object.extend(proto, bosdyn_api_header_pb);
var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
goog.object.extend(proto, google_protobuf_duration_pb);
goog.exportSymbol('proto.bosdyn.api.DeregisterEstopEndpointRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.DeregisterEstopEndpointResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.DeregisterEstopEndpointResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.EstopCheckInRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.EstopCheckInResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.EstopCheckInResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.EstopConfig', null, global);
goog.exportSymbol('proto.bosdyn.api.EstopEndpoint', null, global);
goog.exportSymbol('proto.bosdyn.api.EstopEndpointWithStatus', null, global);
goog.exportSymbol('proto.bosdyn.api.EstopStopLevel', null, global);
goog.exportSymbol('proto.bosdyn.api.EstopSystemStatus', null, global);
goog.exportSymbol('proto.bosdyn.api.GetEstopConfigRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.GetEstopConfigResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.GetEstopSystemStatusRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.GetEstopSystemStatusResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.RegisterEstopEndpointRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.RegisterEstopEndpointResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.RegisterEstopEndpointResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.SetEstopConfigRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.SetEstopConfigResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.SetEstopConfigResponse.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.EstopEndpoint = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.EstopEndpoint, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.EstopEndpoint.displayName = 'proto.bosdyn.api.EstopEndpoint';
}
/**
* 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.EstopConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.EstopConfig.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.EstopConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.EstopConfig.displayName = 'proto.bosdyn.api.EstopConfig';
}
/**
* 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.EstopEndpointWithStatus = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.EstopEndpointWithStatus, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.EstopEndpointWithStatus.displayName = 'proto.bosdyn.api.EstopEndpointWithStatus';
}
/**
* 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.EstopSystemStatus = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.EstopSystemStatus.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.EstopSystemStatus, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.EstopSystemStatus.displayName = 'proto.bosdyn.api.EstopSystemStatus';
}
/**
* 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.EstopCheckInRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.EstopCheckInRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.EstopCheckInRequest.displayName = 'proto.bosdyn.api.EstopCheckInRequest';
}
/**
* 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.EstopCheckInResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.EstopCheckInResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.EstopCheckInResponse.displayName = 'proto.bosdyn.api.EstopCheckInResponse';
}
/**
* 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.RegisterEstopEndpointRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.RegisterEstopEndpointRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.displayName = 'proto.bosdyn.api.RegisterEstopEndpointRequest';
}
/**
* 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.RegisterEstopEndpointResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.RegisterEstopEndpointResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.displayName = 'proto.bosdyn.api.RegisterEstopEndpointResponse';
}
/**
* 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.DeregisterEstopEndpointRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DeregisterEstopEndpointRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.displayName = 'proto.bosdyn.api.DeregisterEstopEndpointRequest';
}
/**
* 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.DeregisterEstopEndpointResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DeregisterEstopEndpointResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.displayName = 'proto.bosdyn.api.DeregisterEstopEndpointResponse';
}
/**
* 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.GetEstopConfigRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GetEstopConfigRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetEstopConfigRequest.displayName = 'proto.bosdyn.api.GetEstopConfigRequest';
}
/**
* 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.GetEstopConfigResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GetEstopConfigResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetEstopConfigResponse.displayName = 'proto.bosdyn.api.GetEstopConfigResponse';
}
/**
* 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.SetEstopConfigRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.SetEstopConfigRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.SetEstopConfigRequest.displayName = 'proto.bosdyn.api.SetEstopConfigRequest';
}
/**
* 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.SetEstopConfigResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.SetEstopConfigResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.SetEstopConfigResponse.displayName = 'proto.bosdyn.api.SetEstopConfigResponse';
}
/**
* 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.GetEstopSystemStatusRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GetEstopSystemStatusRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetEstopSystemStatusRequest.displayName = 'proto.bosdyn.api.GetEstopSystemStatusRequest';
}
/**
* 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.GetEstopSystemStatusResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GetEstopSystemStatusResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.displayName = 'proto.bosdyn.api.GetEstopSystemStatusResponse';
}
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.EstopEndpoint.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.EstopEndpoint.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.EstopEndpoint} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopEndpoint.toObject = function(includeInstance, msg) {
var f, obj = {
role: jspb.Message.getFieldWithDefault(msg, 1, ""),
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
uniqueId: jspb.Message.getFieldWithDefault(msg, 3, ""),
timeout: (f = msg.getTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
cutPowerTimeout: (f = msg.getCutPowerTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.EstopEndpoint}
*/
proto.bosdyn.api.EstopEndpoint.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.EstopEndpoint;
return proto.bosdyn.api.EstopEndpoint.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.EstopEndpoint} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.EstopEndpoint}
*/
proto.bosdyn.api.EstopEndpoint.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.setRole(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setUniqueId(value);
break;
case 4:
var value = new google_protobuf_duration_pb.Duration;
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
msg.setTimeout(value);
break;
case 5:
var value = new google_protobuf_duration_pb.Duration;
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
msg.setCutPowerTimeout(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.EstopEndpoint.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.EstopEndpoint.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.EstopEndpoint} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopEndpoint.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getRole();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getUniqueId();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getTimeout();
if (f != null) {
writer.writeMessage(
4,
f,
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
);
}
f = message.getCutPowerTimeout();
if (f != null) {
writer.writeMessage(
5,
f,
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
);
}
};
/**
* optional string role = 1;
* @return {string}
*/
proto.bosdyn.api.EstopEndpoint.prototype.getRole = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.EstopEndpoint} returns this
*/
proto.bosdyn.api.EstopEndpoint.prototype.setRole = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string name = 2;
* @return {string}
*/
proto.bosdyn.api.EstopEndpoint.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.EstopEndpoint} returns this
*/
proto.bosdyn.api.EstopEndpoint.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string unique_id = 3;
* @return {string}
*/
proto.bosdyn.api.EstopEndpoint.prototype.getUniqueId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.EstopEndpoint} returns this
*/
proto.bosdyn.api.EstopEndpoint.prototype.setUniqueId = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional google.protobuf.Duration timeout = 4;
* @return {?proto.google.protobuf.Duration}
*/
proto.bosdyn.api.EstopEndpoint.prototype.getTimeout = function() {
return /** @type{?proto.google.protobuf.Duration} */ (
jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 4));
};
/**
* @param {?proto.google.protobuf.Duration|undefined} value
* @return {!proto.bosdyn.api.EstopEndpoint} returns this
*/
proto.bosdyn.api.EstopEndpoint.prototype.setTimeout = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.EstopEndpoint} returns this
*/
proto.bosdyn.api.EstopEndpoint.prototype.clearTimeout = function() {
return this.setTimeout(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.EstopEndpoint.prototype.hasTimeout = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional google.protobuf.Duration cut_power_timeout = 5;
* @return {?proto.google.protobuf.Duration}
*/
proto.bosdyn.api.EstopEndpoint.prototype.getCutPowerTimeout = function() {
return /** @type{?proto.google.protobuf.Duration} */ (
jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 5));
};
/**
* @param {?proto.google.protobuf.Duration|undefined} value
* @return {!proto.bosdyn.api.EstopEndpoint} returns this
*/
proto.bosdyn.api.EstopEndpoint.prototype.setCutPowerTimeout = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.EstopEndpoint} returns this
*/
proto.bosdyn.api.EstopEndpoint.prototype.clearCutPowerTimeout = function() {
return this.setCutPowerTimeout(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.EstopEndpoint.prototype.hasCutPowerTimeout = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.EstopConfig.repeatedFields_ = [1];
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.EstopConfig.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.EstopConfig.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.EstopConfig} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopConfig.toObject = function(includeInstance, msg) {
var f, obj = {
endpointsList: jspb.Message.toObjectList(msg.getEndpointsList(),
proto.bosdyn.api.EstopEndpoint.toObject, includeInstance),
uniqueId: jspb.Message.getFieldWithDefault(msg, 2, "")
};
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.EstopConfig}
*/
proto.bosdyn.api.EstopConfig.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.EstopConfig;
return proto.bosdyn.api.EstopConfig.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.EstopConfig} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.EstopConfig}
*/
proto.bosdyn.api.EstopConfig.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.EstopEndpoint;
reader.readMessage(value,proto.bosdyn.api.EstopEndpoint.deserializeBinaryFromReader);
msg.addEndpoints(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setUniqueId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.EstopConfig.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.EstopConfig.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.EstopConfig} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopConfig.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEndpointsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.bosdyn.api.EstopEndpoint.serializeBinaryToWriter
);
}
f = message.getUniqueId();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* repeated EstopEndpoint endpoints = 1;
* @return {!Array<!proto.bosdyn.api.EstopEndpoint>}
*/
proto.bosdyn.api.EstopConfig.prototype.getEndpointsList = function() {
return /** @type{!Array<!proto.bosdyn.api.EstopEndpoint>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.EstopEndpoint, 1));
};
/**
* @param {!Array<!proto.bosdyn.api.EstopEndpoint>} value
* @return {!proto.bosdyn.api.EstopConfig} returns this
*/
proto.bosdyn.api.EstopConfig.prototype.setEndpointsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.bosdyn.api.EstopEndpoint=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.EstopEndpoint}
*/
proto.bosdyn.api.EstopConfig.prototype.addEndpoints = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bosdyn.api.EstopEndpoint, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.EstopConfig} returns this
*/
proto.bosdyn.api.EstopConfig.prototype.clearEndpointsList = function() {
return this.setEndpointsList([]);
};
/**
* optional string unique_id = 2;
* @return {string}
*/
proto.bosdyn.api.EstopConfig.prototype.getUniqueId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.EstopConfig} returns this
*/
proto.bosdyn.api.EstopConfig.prototype.setUniqueId = function(value) {
return jspb.Message.setProto3StringField(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.EstopEndpointWithStatus.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.EstopEndpointWithStatus.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.EstopEndpointWithStatus} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopEndpointWithStatus.toObject = function(includeInstance, msg) {
var f, obj = {
endpoint: (f = msg.getEndpoint()) && proto.bosdyn.api.EstopEndpoint.toObject(includeInstance, f),
stopLevel: jspb.Message.getFieldWithDefault(msg, 2, 0),
timeSinceValidResponse: (f = msg.getTimeSinceValidResponse()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.EstopEndpointWithStatus}
*/
proto.bosdyn.api.EstopEndpointWithStatus.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.EstopEndpointWithStatus;
return proto.bosdyn.api.EstopEndpointWithStatus.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.EstopEndpointWithStatus} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.EstopEndpointWithStatus}
*/
proto.bosdyn.api.EstopEndpointWithStatus.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.EstopEndpoint;
reader.readMessage(value,proto.bosdyn.api.EstopEndpoint.deserializeBinaryFromReader);
msg.setEndpoint(value);
break;
case 2:
var value = /** @type {!proto.bosdyn.api.EstopStopLevel} */ (reader.readEnum());
msg.setStopLevel(value);
break;
case 3:
var value = new google_protobuf_duration_pb.Duration;
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
msg.setTimeSinceValidResponse(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.EstopEndpointWithStatus.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.EstopEndpointWithStatus.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.EstopEndpointWithStatus} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopEndpointWithStatus.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEndpoint();
if (f != null) {
writer.writeMessage(
1,
f,
proto.bosdyn.api.EstopEndpoint.serializeBinaryToWriter
);
}
f = message.getStopLevel();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
f = message.getTimeSinceValidResponse();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
);
}
};
/**
* optional EstopEndpoint endpoint = 1;
* @return {?proto.bosdyn.api.EstopEndpoint}
*/
proto.bosdyn.api.EstopEndpointWithStatus.prototype.getEndpoint = function() {
return /** @type{?proto.bosdyn.api.EstopEndpoint} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EstopEndpoint, 1));
};
/**
* @param {?proto.bosdyn.api.EstopEndpoint|undefined} value
* @return {!proto.bosdyn.api.EstopEndpointWithStatus} returns this
*/
proto.bosdyn.api.EstopEndpointWithStatus.prototype.setEndpoint = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.EstopEndpointWithStatus} returns this
*/
proto.bosdyn.api.EstopEndpointWithStatus.prototype.clearEndpoint = function() {
return this.setEndpoint(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.EstopEndpointWithStatus.prototype.hasEndpoint = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional EstopStopLevel stop_level = 2;
* @return {!proto.bosdyn.api.EstopStopLevel}
*/
proto.bosdyn.api.EstopEndpointWithStatus.prototype.getStopLevel = function() {
return /** @type {!proto.bosdyn.api.EstopStopLevel} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.EstopStopLevel} value
* @return {!proto.bosdyn.api.EstopEndpointWithStatus} returns this
*/
proto.bosdyn.api.EstopEndpointWithStatus.prototype.setStopLevel = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* optional google.protobuf.Duration time_since_valid_response = 3;
* @return {?proto.google.protobuf.Duration}
*/
proto.bosdyn.api.EstopEndpointWithStatus.prototype.getTimeSinceValidResponse = function() {
return /** @type{?proto.google.protobuf.Duration} */ (
jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3));
};
/**
* @param {?proto.google.protobuf.Duration|undefined} value
* @return {!proto.bosdyn.api.EstopEndpointWithStatus} returns this
*/
proto.bosdyn.api.EstopEndpointWithStatus.prototype.setTimeSinceValidResponse = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.EstopEndpointWithStatus} returns this
*/
proto.bosdyn.api.EstopEndpointWithStatus.prototype.clearTimeSinceValidResponse = function() {
return this.setTimeSinceValidResponse(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.EstopEndpointWithStatus.prototype.hasTimeSinceValidResponse = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.EstopSystemStatus.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.EstopSystemStatus.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.EstopSystemStatus.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.EstopSystemStatus} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopSystemStatus.toObject = function(includeInstance, msg) {
var f, obj = {
endpointsList: jspb.Message.toObjectList(msg.getEndpointsList(),
proto.bosdyn.api.EstopEndpointWithStatus.toObject, includeInstance),
stopLevel: jspb.Message.getFieldWithDefault(msg, 4, 0),
stopLevelDetails: jspb.Message.getFieldWithDefault(msg, 5, "")
};
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.EstopSystemStatus}
*/
proto.bosdyn.api.EstopSystemStatus.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.EstopSystemStatus;
return proto.bosdyn.api.EstopSystemStatus.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.EstopSystemStatus} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.EstopSystemStatus}
*/
proto.bosdyn.api.EstopSystemStatus.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 3:
var value = new proto.bosdyn.api.EstopEndpointWithStatus;
reader.readMessage(value,proto.bosdyn.api.EstopEndpointWithStatus.deserializeBinaryFromReader);
msg.addEndpoints(value);
break;
case 4:
var value = /** @type {!proto.bosdyn.api.EstopStopLevel} */ (reader.readEnum());
msg.setStopLevel(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setStopLevelDetails(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.EstopSystemStatus.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.EstopSystemStatus.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.EstopSystemStatus} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopSystemStatus.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEndpointsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.bosdyn.api.EstopEndpointWithStatus.serializeBinaryToWriter
);
}
f = message.getStopLevel();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
f = message.getStopLevelDetails();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
};
/**
* repeated EstopEndpointWithStatus endpoints = 3;
* @return {!Array<!proto.bosdyn.api.EstopEndpointWithStatus>}
*/
proto.bosdyn.api.EstopSystemStatus.prototype.getEndpointsList = function() {
return /** @type{!Array<!proto.bosdyn.api.EstopEndpointWithStatus>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.EstopEndpointWithStatus, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.EstopEndpointWithStatus>} value
* @return {!proto.bosdyn.api.EstopSystemStatus} returns this
*/
proto.bosdyn.api.EstopSystemStatus.prototype.setEndpointsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.EstopEndpointWithStatus=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.EstopEndpointWithStatus}
*/
proto.bosdyn.api.EstopSystemStatus.prototype.addEndpoints = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.EstopEndpointWithStatus, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.EstopSystemStatus} returns this
*/
proto.bosdyn.api.EstopSystemStatus.prototype.clearEndpointsList = function() {
return this.setEndpointsList([]);
};
/**
* optional EstopStopLevel stop_level = 4;
* @return {!proto.bosdyn.api.EstopStopLevel}
*/
proto.bosdyn.api.EstopSystemStatus.prototype.getStopLevel = function() {
return /** @type {!proto.bosdyn.api.EstopStopLevel} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.bosdyn.api.EstopStopLevel} value
* @return {!proto.bosdyn.api.EstopSystemStatus} returns this
*/
proto.bosdyn.api.EstopSystemStatus.prototype.setStopLevel = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
/**
* optional string stop_level_details = 5;
* @return {string}
*/
proto.bosdyn.api.EstopSystemStatus.prototype.getStopLevelDetails = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.EstopSystemStatus} returns this
*/
proto.bosdyn.api.EstopSystemStatus.prototype.setStopLevelDetails = function(value) {
return jspb.Message.setProto3StringField(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.EstopCheckInRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.EstopCheckInRequest.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.EstopCheckInRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopCheckInRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
endpoint: (f = msg.getEndpoint()) && proto.bosdyn.api.EstopEndpoint.toObject(includeInstance, f),
challenge: jspb.Message.getFieldWithDefault(msg, 3, 0),
response: jspb.Message.getFieldWithDefault(msg, 4, 0),
stopLevel: jspb.Message.getFieldWithDefault(msg, 5, 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.EstopCheckInRequest}
*/
proto.bosdyn.api.EstopCheckInRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.EstopCheckInRequest;
return proto.bosdyn.api.EstopCheckInRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.EstopCheckInRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.EstopCheckInRequest}
*/
proto.bosdyn.api.EstopCheckInRequest.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 proto.bosdyn.api.EstopEndpoint;
reader.readMessage(value,proto.bosdyn.api.EstopEndpoint.deserializeBinaryFromReader);
msg.setEndpoint(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setChallenge(value);
break;
case 4:
var value = /** @type {number} */ (reader.readUint64());
msg.setResponse(value);
break;
case 5:
var value = /** @type {!proto.bosdyn.api.EstopStopLevel} */ (reader.readEnum());
msg.setStopLevel(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.EstopCheckInRequest.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.EstopCheckInRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopCheckInRequest.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.getEndpoint();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.EstopEndpoint.serializeBinaryToWriter
);
}
f = message.getChallenge();
if (f !== 0) {
writer.writeUint64(
3,
f
);
}
f = message.getResponse();
if (f !== 0) {
writer.writeUint64(
4,
f
);
}
f = message.getStopLevel();
if (f !== 0.0) {
writer.writeEnum(
5,
f
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.EstopCheckInRequest.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.EstopCheckInRequest} returns this
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.EstopCheckInRequest} returns this
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional EstopEndpoint endpoint = 2;
* @return {?proto.bosdyn.api.EstopEndpoint}
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.getEndpoint = function() {
return /** @type{?proto.bosdyn.api.EstopEndpoint} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EstopEndpoint, 2));
};
/**
* @param {?proto.bosdyn.api.EstopEndpoint|undefined} value
* @return {!proto.bosdyn.api.EstopCheckInRequest} returns this
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.setEndpoint = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.EstopCheckInRequest} returns this
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.clearEndpoint = function() {
return this.setEndpoint(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.hasEndpoint = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional uint64 challenge = 3;
* @return {number}
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.getChallenge = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.EstopCheckInRequest} returns this
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.setChallenge = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional uint64 response = 4;
* @return {number}
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.getResponse = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.EstopCheckInRequest} returns this
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.setResponse = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional EstopStopLevel stop_level = 5;
* @return {!proto.bosdyn.api.EstopStopLevel}
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.getStopLevel = function() {
return /** @type {!proto.bosdyn.api.EstopStopLevel} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {!proto.bosdyn.api.EstopStopLevel} value
* @return {!proto.bosdyn.api.EstopCheckInRequest} returns this
*/
proto.bosdyn.api.EstopCheckInRequest.prototype.setStopLevel = function(value) {
return jspb.Message.setProto3EnumField(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.EstopCheckInResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.EstopCheckInResponse.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.EstopCheckInResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopCheckInResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
request: (f = msg.getRequest()) && proto.bosdyn.api.EstopCheckInRequest.toObject(includeInstance, f),
challenge: jspb.Message.getFieldWithDefault(msg, 3, 0),
status: 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.EstopCheckInResponse}
*/
proto.bosdyn.api.EstopCheckInResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.EstopCheckInResponse;
return proto.bosdyn.api.EstopCheckInResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.EstopCheckInResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.EstopCheckInResponse}
*/
proto.bosdyn.api.EstopCheckInResponse.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.EstopCheckInRequest;
reader.readMessage(value,proto.bosdyn.api.EstopCheckInRequest.deserializeBinaryFromReader);
msg.setRequest(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setChallenge(value);
break;
case 4:
var value = /** @type {!proto.bosdyn.api.EstopCheckInResponse.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.EstopCheckInResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.EstopCheckInResponse.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.EstopCheckInResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EstopCheckInResponse.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.getRequest();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.EstopCheckInRequest.serializeBinaryToWriter
);
}
f = message.getChallenge();
if (f !== 0) {
writer.writeUint64(
3,
f
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.EstopCheckInResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_OK: 1,
STATUS_ENDPOINT_UNKNOWN: 2,
STATUS_INCORRECT_CHALLENGE_RESPONSE: 5
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.EstopCheckInResponse.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.EstopCheckInResponse} returns this
*/
proto.bosdyn.api.EstopCheckInResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.EstopCheckInResponse} returns this
*/
proto.bosdyn.api.EstopCheckInResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.EstopCheckInResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional EstopCheckInRequest request = 2;
* @return {?proto.bosdyn.api.EstopCheckInRequest}
*/
proto.bosdyn.api.EstopCheckInResponse.prototype.getRequest = function() {
return /** @type{?proto.bosdyn.api.EstopCheckInRequest} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EstopCheckInRequest, 2));
};
/**
* @param {?proto.bosdyn.api.EstopCheckInRequest|undefined} value
* @return {!proto.bosdyn.api.EstopCheckInResponse} returns this
*/
proto.bosdyn.api.EstopCheckInResponse.prototype.setRequest = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.EstopCheckInResponse} returns this
*/
proto.bosdyn.api.EstopCheckInResponse.prototype.clearRequest = function() {
return this.setRequest(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.EstopCheckInResponse.prototype.hasRequest = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional uint64 challenge = 3;
* @return {number}
*/
proto.bosdyn.api.EstopCheckInResponse.prototype.getChallenge = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.EstopCheckInResponse} returns this
*/
proto.bosdyn.api.EstopCheckInResponse.prototype.setChallenge = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional Status status = 4;
* @return {!proto.bosdyn.api.EstopCheckInResponse.Status}
*/
proto.bosdyn.api.EstopCheckInResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.EstopCheckInResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.bosdyn.api.EstopCheckInResponse.Status} value
* @return {!proto.bosdyn.api.EstopCheckInResponse} returns this
*/
proto.bosdyn.api.EstopCheckInResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.RegisterEstopEndpointRequest.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.RegisterEstopEndpointRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
targetEndpoint: (f = msg.getTargetEndpoint()) && proto.bosdyn.api.EstopEndpoint.toObject(includeInstance, f),
targetConfigId: jspb.Message.getFieldWithDefault(msg, 3, ""),
newEndpoint: (f = msg.getNewEndpoint()) && proto.bosdyn.api.EstopEndpoint.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.RegisterEstopEndpointRequest}
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.RegisterEstopEndpointRequest;
return proto.bosdyn.api.RegisterEstopEndpointRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.RegisterEstopEndpointRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.RegisterEstopEndpointRequest}
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.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 proto.bosdyn.api.EstopEndpoint;
reader.readMessage(value,proto.bosdyn.api.EstopEndpoint.deserializeBinaryFromReader);
msg.setTargetEndpoint(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setTargetConfigId(value);
break;
case 4:
var value = new proto.bosdyn.api.EstopEndpoint;
reader.readMessage(value,proto.bosdyn.api.EstopEndpoint.deserializeBinaryFromReader);
msg.setNewEndpoint(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.RegisterEstopEndpointRequest.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.RegisterEstopEndpointRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.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.getTargetEndpoint();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.EstopEndpoint.serializeBinaryToWriter
);
}
f = message.getTargetConfigId();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getNewEndpoint();
if (f != null) {
writer.writeMessage(
4,
f,
proto.bosdyn.api.EstopEndpoint.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.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.RegisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.RegisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional EstopEndpoint target_endpoint = 2;
* @return {?proto.bosdyn.api.EstopEndpoint}
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.getTargetEndpoint = function() {
return /** @type{?proto.bosdyn.api.EstopEndpoint} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EstopEndpoint, 2));
};
/**
* @param {?proto.bosdyn.api.EstopEndpoint|undefined} value
* @return {!proto.bosdyn.api.RegisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.setTargetEndpoint = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.RegisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.clearTargetEndpoint = function() {
return this.setTargetEndpoint(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.hasTargetEndpoint = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional string target_config_id = 3;
* @return {string}
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.getTargetConfigId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.RegisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.setTargetConfigId = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional EstopEndpoint new_endpoint = 4;
* @return {?proto.bosdyn.api.EstopEndpoint}
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.getNewEndpoint = function() {
return /** @type{?proto.bosdyn.api.EstopEndpoint} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EstopEndpoint, 4));
};
/**
* @param {?proto.bosdyn.api.EstopEndpoint|undefined} value
* @return {!proto.bosdyn.api.RegisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.setNewEndpoint = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.RegisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.clearNewEndpoint = function() {
return this.setNewEndpoint(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.RegisterEstopEndpointRequest.prototype.hasNewEndpoint = 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.RegisterEstopEndpointResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.RegisterEstopEndpointResponse.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.RegisterEstopEndpointResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
request: (f = msg.getRequest()) && proto.bosdyn.api.RegisterEstopEndpointRequest.toObject(includeInstance, f),
newEndpoint: (f = msg.getNewEndpoint()) && proto.bosdyn.api.EstopEndpoint.toObject(includeInstance, f),
status: 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.RegisterEstopEndpointResponse}
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.RegisterEstopEndpointResponse;
return proto.bosdyn.api.RegisterEstopEndpointResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.RegisterEstopEndpointResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.RegisterEstopEndpointResponse}
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.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.RegisterEstopEndpointRequest;
reader.readMessage(value,proto.bosdyn.api.RegisterEstopEndpointRequest.deserializeBinaryFromReader);
msg.setRequest(value);
break;
case 3:
var value = new proto.bosdyn.api.EstopEndpoint;
reader.readMessage(value,proto.bosdyn.api.EstopEndpoint.deserializeBinaryFromReader);
msg.setNewEndpoint(value);
break;
case 4:
var value = /** @type {!proto.bosdyn.api.RegisterEstopEndpointResponse.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.RegisterEstopEndpointResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.RegisterEstopEndpointResponse.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.RegisterEstopEndpointResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.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.getRequest();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.RegisterEstopEndpointRequest.serializeBinaryToWriter
);
}
f = message.getNewEndpoint();
if (f != null) {
writer.writeMessage(
3,
f,
proto.bosdyn.api.EstopEndpoint.serializeBinaryToWriter
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_SUCCESS: 1,
STATUS_ENDPOINT_MISMATCH: 2,
STATUS_CONFIG_MISMATCH: 3,
STATUS_INVALID_ENDPOINT: 4
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.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.RegisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.RegisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional RegisterEstopEndpointRequest request = 2;
* @return {?proto.bosdyn.api.RegisterEstopEndpointRequest}
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.getRequest = function() {
return /** @type{?proto.bosdyn.api.RegisterEstopEndpointRequest} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.RegisterEstopEndpointRequest, 2));
};
/**
* @param {?proto.bosdyn.api.RegisterEstopEndpointRequest|undefined} value
* @return {!proto.bosdyn.api.RegisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.setRequest = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.RegisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.clearRequest = function() {
return this.setRequest(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.hasRequest = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional EstopEndpoint new_endpoint = 3;
* @return {?proto.bosdyn.api.EstopEndpoint}
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.getNewEndpoint = function() {
return /** @type{?proto.bosdyn.api.EstopEndpoint} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EstopEndpoint, 3));
};
/**
* @param {?proto.bosdyn.api.EstopEndpoint|undefined} value
* @return {!proto.bosdyn.api.RegisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.setNewEndpoint = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.RegisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.clearNewEndpoint = function() {
return this.setNewEndpoint(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.hasNewEndpoint = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional Status status = 4;
* @return {!proto.bosdyn.api.RegisterEstopEndpointResponse.Status}
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.RegisterEstopEndpointResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.bosdyn.api.RegisterEstopEndpointResponse.Status} value
* @return {!proto.bosdyn.api.RegisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.RegisterEstopEndpointResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.DeregisterEstopEndpointRequest.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.DeregisterEstopEndpointRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
targetEndpoint: (f = msg.getTargetEndpoint()) && proto.bosdyn.api.EstopEndpoint.toObject(includeInstance, f),
targetConfigId: 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.DeregisterEstopEndpointRequest}
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.DeregisterEstopEndpointRequest;
return proto.bosdyn.api.DeregisterEstopEndpointRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.DeregisterEstopEndpointRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.DeregisterEstopEndpointRequest}
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.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 proto.bosdyn.api.EstopEndpoint;
reader.readMessage(value,proto.bosdyn.api.EstopEndpoint.deserializeBinaryFromReader);
msg.setTargetEndpoint(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setTargetConfigId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.DeregisterEstopEndpointRequest.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.DeregisterEstopEndpointRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.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.getTargetEndpoint();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.EstopEndpoint.serializeBinaryToWriter
);
}
f = message.getTargetConfigId();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.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.DeregisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DeregisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional EstopEndpoint target_endpoint = 2;
* @return {?proto.bosdyn.api.EstopEndpoint}
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.prototype.getTargetEndpoint = function() {
return /** @type{?proto.bosdyn.api.EstopEndpoint} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EstopEndpoint, 2));
};
/**
* @param {?proto.bosdyn.api.EstopEndpoint|undefined} value
* @return {!proto.bosdyn.api.DeregisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.prototype.setTargetEndpoint = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DeregisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.prototype.clearTargetEndpoint = function() {
return this.setTargetEndpoint(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.prototype.hasTargetEndpoint = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional string target_config_id = 3;
* @return {string}
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.prototype.getTargetConfigId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.DeregisterEstopEndpointRequest} returns this
*/
proto.bosdyn.api.DeregisterEstopEndpointRequest.prototype.setTargetConfigId = function(value) {
return jspb.Message.setProto3StringField(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.DeregisterEstopEndpointResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.DeregisterEstopEndpointResponse.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.DeregisterEstopEndpointResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
request: (f = msg.getRequest()) && proto.bosdyn.api.DeregisterEstopEndpointRequest.toObject(includeInstance, f),
status: 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.DeregisterEstopEndpointResponse}
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.DeregisterEstopEndpointResponse;
return proto.bosdyn.api.DeregisterEstopEndpointResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.DeregisterEstopEndpointResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.DeregisterEstopEndpointResponse}
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.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.DeregisterEstopEndpointRequest;
reader.readMessage(value,proto.bosdyn.api.DeregisterEstopEndpointRequest.deserializeBinaryFromReader);
msg.setRequest(value);
break;
case 4:
var value = /** @type {!proto.bosdyn.api.DeregisterEstopEndpointResponse.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.DeregisterEstopEndpointResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.DeregisterEstopEndpointResponse.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.DeregisterEstopEndpointResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.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.getRequest();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.DeregisterEstopEndpointRequest.serializeBinaryToWriter
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_SUCCESS: 1,
STATUS_ENDPOINT_MISMATCH: 2,
STATUS_CONFIG_MISMATCH: 3,
STATUS_MOTORS_ON: 4
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.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.DeregisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DeregisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional DeregisterEstopEndpointRequest request = 2;
* @return {?proto.bosdyn.api.DeregisterEstopEndpointRequest}
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.prototype.getRequest = function() {
return /** @type{?proto.bosdyn.api.DeregisterEstopEndpointRequest} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.DeregisterEstopEndpointRequest, 2));
};
/**
* @param {?proto.bosdyn.api.DeregisterEstopEndpointRequest|undefined} value
* @return {!proto.bosdyn.api.DeregisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.prototype.setRequest = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DeregisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.prototype.clearRequest = function() {
return this.setRequest(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.prototype.hasRequest = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional Status status = 4;
* @return {!proto.bosdyn.api.DeregisterEstopEndpointResponse.Status}
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.DeregisterEstopEndpointResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.bosdyn.api.DeregisterEstopEndpointResponse.Status} value
* @return {!proto.bosdyn.api.DeregisterEstopEndpointResponse} returns this
*/
proto.bosdyn.api.DeregisterEstopEndpointResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.GetEstopConfigRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetEstopConfigRequest.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.GetEstopConfigRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEstopConfigRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
targetConfigId: jspb.Message.getFieldWithDefault(msg, 4, "")
};
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.GetEstopConfigRequest}
*/
proto.bosdyn.api.GetEstopConfigRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetEstopConfigRequest;
return proto.bosdyn.api.GetEstopConfigRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetEstopConfigRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetEstopConfigRequest}
*/
proto.bosdyn.api.GetEstopConfigRequest.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 4:
var value = /** @type {string} */ (reader.readString());
msg.setTargetConfigId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GetEstopConfigRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetEstopConfigRequest.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.GetEstopConfigRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEstopConfigRequest.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.getTargetConfigId();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.GetEstopConfigRequest.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.GetEstopConfigRequest} returns this
*/
proto.bosdyn.api.GetEstopConfigRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetEstopConfigRequest} returns this
*/
proto.bosdyn.api.GetEstopConfigRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetEstopConfigRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string target_config_id = 4;
* @return {string}
*/
proto.bosdyn.api.GetEstopConfigRequest.prototype.getTargetConfigId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.GetEstopConfigRequest} returns this
*/
proto.bosdyn.api.GetEstopConfigRequest.prototype.setTargetConfigId = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetEstopConfigResponse.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.GetEstopConfigResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEstopConfigResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
request: (f = msg.getRequest()) && proto.bosdyn.api.GetEstopConfigRequest.toObject(includeInstance, f),
activeConfig: (f = msg.getActiveConfig()) && proto.bosdyn.api.EstopConfig.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.GetEstopConfigResponse}
*/
proto.bosdyn.api.GetEstopConfigResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetEstopConfigResponse;
return proto.bosdyn.api.GetEstopConfigResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetEstopConfigResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetEstopConfigResponse}
*/
proto.bosdyn.api.GetEstopConfigResponse.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.GetEstopConfigRequest;
reader.readMessage(value,proto.bosdyn.api.GetEstopConfigRequest.deserializeBinaryFromReader);
msg.setRequest(value);
break;
case 3:
var value = new proto.bosdyn.api.EstopConfig;
reader.readMessage(value,proto.bosdyn.api.EstopConfig.deserializeBinaryFromReader);
msg.setActiveConfig(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetEstopConfigResponse.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.GetEstopConfigResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEstopConfigResponse.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.getRequest();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.GetEstopConfigRequest.serializeBinaryToWriter
);
}
f = message.getActiveConfig();
if (f != null) {
writer.writeMessage(
3,
f,
proto.bosdyn.api.EstopConfig.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.GetEstopConfigResponse.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.GetEstopConfigResponse} returns this
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetEstopConfigResponse} returns this
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional GetEstopConfigRequest request = 2;
* @return {?proto.bosdyn.api.GetEstopConfigRequest}
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.getRequest = function() {
return /** @type{?proto.bosdyn.api.GetEstopConfigRequest} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.GetEstopConfigRequest, 2));
};
/**
* @param {?proto.bosdyn.api.GetEstopConfigRequest|undefined} value
* @return {!proto.bosdyn.api.GetEstopConfigResponse} returns this
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.setRequest = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetEstopConfigResponse} returns this
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.clearRequest = function() {
return this.setRequest(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.hasRequest = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional EstopConfig active_config = 3;
* @return {?proto.bosdyn.api.EstopConfig}
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.getActiveConfig = function() {
return /** @type{?proto.bosdyn.api.EstopConfig} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EstopConfig, 3));
};
/**
* @param {?proto.bosdyn.api.EstopConfig|undefined} value
* @return {!proto.bosdyn.api.GetEstopConfigResponse} returns this
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.setActiveConfig = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetEstopConfigResponse} returns this
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.clearActiveConfig = function() {
return this.setActiveConfig(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetEstopConfigResponse.prototype.hasActiveConfig = 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.SetEstopConfigRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.SetEstopConfigRequest.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.SetEstopConfigRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.SetEstopConfigRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
config: (f = msg.getConfig()) && proto.bosdyn.api.EstopConfig.toObject(includeInstance, f),
targetConfigId: jspb.Message.getFieldWithDefault(msg, 4, "")
};
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.SetEstopConfigRequest}
*/
proto.bosdyn.api.SetEstopConfigRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.SetEstopConfigRequest;
return proto.bosdyn.api.SetEstopConfigRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.SetEstopConfigRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.SetEstopConfigRequest}
*/
proto.bosdyn.api.SetEstopConfigRequest.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 proto.bosdyn.api.EstopConfig;
reader.readMessage(value,proto.bosdyn.api.EstopConfig.deserializeBinaryFromReader);
msg.setConfig(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setTargetConfigId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.SetEstopConfigRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.SetEstopConfigRequest.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.SetEstopConfigRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.SetEstopConfigRequest.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.getConfig();
if (f != null) {
writer.writeMessage(
3,
f,
proto.bosdyn.api.EstopConfig.serializeBinaryToWriter
);
}
f = message.getTargetConfigId();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.SetEstopConfigRequest.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.SetEstopConfigRequest} returns this
*/
proto.bosdyn.api.SetEstopConfigRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.SetEstopConfigRequest} returns this
*/
proto.bosdyn.api.SetEstopConfigRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.SetEstopConfigRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional EstopConfig config = 3;
* @return {?proto.bosdyn.api.EstopConfig}
*/
proto.bosdyn.api.SetEstopConfigRequest.prototype.getConfig = function() {
return /** @type{?proto.bosdyn.api.EstopConfig} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EstopConfig, 3));
};
/**
* @param {?proto.bosdyn.api.EstopConfig|undefined} value
* @return {!proto.bosdyn.api.SetEstopConfigRequest} returns this
*/
proto.bosdyn.api.SetEstopConfigRequest.prototype.setConfig = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.SetEstopConfigRequest} returns this
*/
proto.bosdyn.api.SetEstopConfigRequest.prototype.clearConfig = function() {
return this.setConfig(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.SetEstopConfigRequest.prototype.hasConfig = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional string target_config_id = 4;
* @return {string}
*/
proto.bosdyn.api.SetEstopConfigRequest.prototype.getTargetConfigId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.SetEstopConfigRequest} returns this
*/
proto.bosdyn.api.SetEstopConfigRequest.prototype.setTargetConfigId = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.SetEstopConfigResponse.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.SetEstopConfigResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.SetEstopConfigResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
request: (f = msg.getRequest()) && proto.bosdyn.api.SetEstopConfigRequest.toObject(includeInstance, f),
activeConfig: (f = msg.getActiveConfig()) && proto.bosdyn.api.EstopConfig.toObject(includeInstance, f),
status: 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.SetEstopConfigResponse}
*/
proto.bosdyn.api.SetEstopConfigResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.SetEstopConfigResponse;
return proto.bosdyn.api.SetEstopConfigResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.SetEstopConfigResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.SetEstopConfigResponse}
*/
proto.bosdyn.api.SetEstopConfigResponse.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.SetEstopConfigRequest;
reader.readMessage(value,proto.bosdyn.api.SetEstopConfigRequest.deserializeBinaryFromReader);
msg.setRequest(value);
break;
case 3:
var value = new proto.bosdyn.api.EstopConfig;
reader.readMessage(value,proto.bosdyn.api.EstopConfig.deserializeBinaryFromReader);
msg.setActiveConfig(value);
break;
case 4:
var value = /** @type {!proto.bosdyn.api.SetEstopConfigResponse.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.SetEstopConfigResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.SetEstopConfigResponse.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.SetEstopConfigResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.SetEstopConfigResponse.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.getRequest();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.SetEstopConfigRequest.serializeBinaryToWriter
);
}
f = message.getActiveConfig();
if (f != null) {
writer.writeMessage(
3,
f,
proto.bosdyn.api.EstopConfig.serializeBinaryToWriter
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.SetEstopConfigResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_SUCCESS: 1,
STATUS_INVALID_ID: 2,
STATUS_MOTORS_ON: 4
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.SetEstopConfigResponse.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.SetEstopConfigResponse} returns this
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.SetEstopConfigResponse} returns this
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional SetEstopConfigRequest request = 2;
* @return {?proto.bosdyn.api.SetEstopConfigRequest}
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.getRequest = function() {
return /** @type{?proto.bosdyn.api.SetEstopConfigRequest} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.SetEstopConfigRequest, 2));
};
/**
* @param {?proto.bosdyn.api.SetEstopConfigRequest|undefined} value
* @return {!proto.bosdyn.api.SetEstopConfigResponse} returns this
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.setRequest = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.SetEstopConfigResponse} returns this
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.clearRequest = function() {
return this.setRequest(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.hasRequest = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional EstopConfig active_config = 3;
* @return {?proto.bosdyn.api.EstopConfig}
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.getActiveConfig = function() {
return /** @type{?proto.bosdyn.api.EstopConfig} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EstopConfig, 3));
};
/**
* @param {?proto.bosdyn.api.EstopConfig|undefined} value
* @return {!proto.bosdyn.api.SetEstopConfigResponse} returns this
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.setActiveConfig = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.SetEstopConfigResponse} returns this
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.clearActiveConfig = function() {
return this.setActiveConfig(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.hasActiveConfig = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional Status status = 4;
* @return {!proto.bosdyn.api.SetEstopConfigResponse.Status}
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.SetEstopConfigResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.bosdyn.api.SetEstopConfigResponse.Status} value
* @return {!proto.bosdyn.api.SetEstopConfigResponse} returns this
*/
proto.bosdyn.api.SetEstopConfigResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.GetEstopSystemStatusRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetEstopSystemStatusRequest.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.GetEstopSystemStatusRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEstopSystemStatusRequest.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.GetEstopSystemStatusRequest}
*/
proto.bosdyn.api.GetEstopSystemStatusRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetEstopSystemStatusRequest;
return proto.bosdyn.api.GetEstopSystemStatusRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetEstopSystemStatusRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetEstopSystemStatusRequest}
*/
proto.bosdyn.api.GetEstopSystemStatusRequest.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.GetEstopSystemStatusRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetEstopSystemStatusRequest.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.GetEstopSystemStatusRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEstopSystemStatusRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeader();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_header_pb.RequestHeader.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.GetEstopSystemStatusRequest.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.GetEstopSystemStatusRequest} returns this
*/
proto.bosdyn.api.GetEstopSystemStatusRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetEstopSystemStatusRequest} returns this
*/
proto.bosdyn.api.GetEstopSystemStatusRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetEstopSystemStatusRequest.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.GetEstopSystemStatusResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetEstopSystemStatusResponse.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.GetEstopSystemStatusResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
status: (f = msg.getStatus()) && proto.bosdyn.api.EstopSystemStatus.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.GetEstopSystemStatusResponse}
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetEstopSystemStatusResponse;
return proto.bosdyn.api.GetEstopSystemStatusResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetEstopSystemStatusResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetEstopSystemStatusResponse}
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 3:
var value = new proto.bosdyn.api.EstopSystemStatus;
reader.readMessage(value,proto.bosdyn.api.EstopSystemStatus.deserializeBinaryFromReader);
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.GetEstopSystemStatusResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetEstopSystemStatusResponse.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.GetEstopSystemStatusResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.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 != null) {
writer.writeMessage(
3,
f,
proto.bosdyn.api.EstopSystemStatus.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.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.GetEstopSystemStatusResponse} returns this
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetEstopSystemStatusResponse} returns this
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional EstopSystemStatus status = 3;
* @return {?proto.bosdyn.api.EstopSystemStatus}
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.prototype.getStatus = function() {
return /** @type{?proto.bosdyn.api.EstopSystemStatus} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EstopSystemStatus, 3));
};
/**
* @param {?proto.bosdyn.api.EstopSystemStatus|undefined} value
* @return {!proto.bosdyn.api.GetEstopSystemStatusResponse} returns this
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.prototype.setStatus = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetEstopSystemStatusResponse} returns this
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.prototype.clearStatus = function() {
return this.setStatus(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetEstopSystemStatusResponse.prototype.hasStatus = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* @enum {number}
*/
proto.bosdyn.api.EstopStopLevel = {
ESTOP_LEVEL_UNKNOWN: 0,
ESTOP_LEVEL_CUT: 1,
ESTOP_LEVEL_SETTLE_THEN_CUT: 2,
ESTOP_LEVEL_NONE: 4
};
goog.object.extend(exports, proto.bosdyn.api);