spot-sdk-js
Version:
Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.
1,573 lines (1,354 loc) • 48.5 kB
JavaScript
// source: bosdyn/api/service_fault.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_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
goog.object.extend(proto, google_protobuf_timestamp_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.ClearServiceFaultRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.ClearServiceFaultResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.ClearServiceFaultResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.ServiceFault', null, global);
goog.exportSymbol('proto.bosdyn.api.ServiceFault.Severity', null, global);
goog.exportSymbol('proto.bosdyn.api.ServiceFaultId', null, global);
goog.exportSymbol('proto.bosdyn.api.TriggerServiceFaultRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.TriggerServiceFaultResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.TriggerServiceFaultResponse.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.ServiceFaultId = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ServiceFaultId, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ServiceFaultId.displayName = 'proto.bosdyn.api.ServiceFaultId';
}
/**
* 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.ServiceFault = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.ServiceFault.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.ServiceFault, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ServiceFault.displayName = 'proto.bosdyn.api.ServiceFault';
}
/**
* 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.TriggerServiceFaultRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.TriggerServiceFaultRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.TriggerServiceFaultRequest.displayName = 'proto.bosdyn.api.TriggerServiceFaultRequest';
}
/**
* 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.TriggerServiceFaultResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.TriggerServiceFaultResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.TriggerServiceFaultResponse.displayName = 'proto.bosdyn.api.TriggerServiceFaultResponse';
}
/**
* 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.ClearServiceFaultRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ClearServiceFaultRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ClearServiceFaultRequest.displayName = 'proto.bosdyn.api.ClearServiceFaultRequest';
}
/**
* 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.ClearServiceFaultResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ClearServiceFaultResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ClearServiceFaultResponse.displayName = 'proto.bosdyn.api.ClearServiceFaultResponse';
}
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.ServiceFaultId.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ServiceFaultId.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.ServiceFaultId} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ServiceFaultId.toObject = function(includeInstance, msg) {
var f, obj = {
faultName: jspb.Message.getFieldWithDefault(msg, 1, ""),
serviceName: jspb.Message.getFieldWithDefault(msg, 2, ""),
payloadGuid: 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.ServiceFaultId}
*/
proto.bosdyn.api.ServiceFaultId.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ServiceFaultId;
return proto.bosdyn.api.ServiceFaultId.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ServiceFaultId} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ServiceFaultId}
*/
proto.bosdyn.api.ServiceFaultId.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.setFaultName(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setServiceName(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setPayloadGuid(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ServiceFaultId.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ServiceFaultId.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.ServiceFaultId} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ServiceFaultId.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getFaultName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getServiceName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getPayloadGuid();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional string fault_name = 1;
* @return {string}
*/
proto.bosdyn.api.ServiceFaultId.prototype.getFaultName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.ServiceFaultId} returns this
*/
proto.bosdyn.api.ServiceFaultId.prototype.setFaultName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string service_name = 2;
* @return {string}
*/
proto.bosdyn.api.ServiceFaultId.prototype.getServiceName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.ServiceFaultId} returns this
*/
proto.bosdyn.api.ServiceFaultId.prototype.setServiceName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string payload_guid = 3;
* @return {string}
*/
proto.bosdyn.api.ServiceFaultId.prototype.getPayloadGuid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.ServiceFaultId} returns this
*/
proto.bosdyn.api.ServiceFaultId.prototype.setPayloadGuid = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.ServiceFault.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.ServiceFault.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ServiceFault.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.ServiceFault} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ServiceFault.toObject = function(includeInstance, msg) {
var f, obj = {
faultId: (f = msg.getFaultId()) && proto.bosdyn.api.ServiceFaultId.toObject(includeInstance, f),
errorMessage: jspb.Message.getFieldWithDefault(msg, 2, ""),
attributesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
severity: jspb.Message.getFieldWithDefault(msg, 4, 0),
onsetTimestamp: (f = msg.getOnsetTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
duration: (f = msg.getDuration()) && 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.ServiceFault}
*/
proto.bosdyn.api.ServiceFault.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ServiceFault;
return proto.bosdyn.api.ServiceFault.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ServiceFault} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ServiceFault}
*/
proto.bosdyn.api.ServiceFault.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.ServiceFaultId;
reader.readMessage(value,proto.bosdyn.api.ServiceFaultId.deserializeBinaryFromReader);
msg.setFaultId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setErrorMessage(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.addAttributes(value);
break;
case 4:
var value = /** @type {!proto.bosdyn.api.ServiceFault.Severity} */ (reader.readEnum());
msg.setSeverity(value);
break;
case 5:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setOnsetTimestamp(value);
break;
case 6:
var value = new google_protobuf_duration_pb.Duration;
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
msg.setDuration(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ServiceFault.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ServiceFault.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.ServiceFault} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ServiceFault.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getFaultId();
if (f != null) {
writer.writeMessage(
1,
f,
proto.bosdyn.api.ServiceFaultId.serializeBinaryToWriter
);
}
f = message.getErrorMessage();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getAttributesList();
if (f.length > 0) {
writer.writeRepeatedString(
3,
f
);
}
f = message.getSeverity();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
f = message.getOnsetTimestamp();
if (f != null) {
writer.writeMessage(
5,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getDuration();
if (f != null) {
writer.writeMessage(
6,
f,
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.ServiceFault.Severity = {
SEVERITY_UNKNOWN: 0,
SEVERITY_INFO: 1,
SEVERITY_WARN: 2,
SEVERITY_CRITICAL: 3
};
/**
* optional ServiceFaultId fault_id = 1;
* @return {?proto.bosdyn.api.ServiceFaultId}
*/
proto.bosdyn.api.ServiceFault.prototype.getFaultId = function() {
return /** @type{?proto.bosdyn.api.ServiceFaultId} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.ServiceFaultId, 1));
};
/**
* @param {?proto.bosdyn.api.ServiceFaultId|undefined} value
* @return {!proto.bosdyn.api.ServiceFault} returns this
*/
proto.bosdyn.api.ServiceFault.prototype.setFaultId = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ServiceFault} returns this
*/
proto.bosdyn.api.ServiceFault.prototype.clearFaultId = function() {
return this.setFaultId(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ServiceFault.prototype.hasFaultId = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string error_message = 2;
* @return {string}
*/
proto.bosdyn.api.ServiceFault.prototype.getErrorMessage = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.ServiceFault} returns this
*/
proto.bosdyn.api.ServiceFault.prototype.setErrorMessage = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* repeated string attributes = 3;
* @return {!Array<string>}
*/
proto.bosdyn.api.ServiceFault.prototype.getAttributesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};
/**
* @param {!Array<string>} value
* @return {!proto.bosdyn.api.ServiceFault} returns this
*/
proto.bosdyn.api.ServiceFault.prototype.setAttributesList = function(value) {
return jspb.Message.setField(this, 3, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.ServiceFault} returns this
*/
proto.bosdyn.api.ServiceFault.prototype.addAttributes = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.ServiceFault} returns this
*/
proto.bosdyn.api.ServiceFault.prototype.clearAttributesList = function() {
return this.setAttributesList([]);
};
/**
* optional Severity severity = 4;
* @return {!proto.bosdyn.api.ServiceFault.Severity}
*/
proto.bosdyn.api.ServiceFault.prototype.getSeverity = function() {
return /** @type {!proto.bosdyn.api.ServiceFault.Severity} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.bosdyn.api.ServiceFault.Severity} value
* @return {!proto.bosdyn.api.ServiceFault} returns this
*/
proto.bosdyn.api.ServiceFault.prototype.setSeverity = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
/**
* optional google.protobuf.Timestamp onset_timestamp = 5;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.bosdyn.api.ServiceFault.prototype.getOnsetTimestamp = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.bosdyn.api.ServiceFault} returns this
*/
proto.bosdyn.api.ServiceFault.prototype.setOnsetTimestamp = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ServiceFault} returns this
*/
proto.bosdyn.api.ServiceFault.prototype.clearOnsetTimestamp = function() {
return this.setOnsetTimestamp(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ServiceFault.prototype.hasOnsetTimestamp = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional google.protobuf.Duration duration = 6;
* @return {?proto.google.protobuf.Duration}
*/
proto.bosdyn.api.ServiceFault.prototype.getDuration = function() {
return /** @type{?proto.google.protobuf.Duration} */ (
jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 6));
};
/**
* @param {?proto.google.protobuf.Duration|undefined} value
* @return {!proto.bosdyn.api.ServiceFault} returns this
*/
proto.bosdyn.api.ServiceFault.prototype.setDuration = function(value) {
return jspb.Message.setWrapperField(this, 6, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ServiceFault} returns this
*/
proto.bosdyn.api.ServiceFault.prototype.clearDuration = function() {
return this.setDuration(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ServiceFault.prototype.hasDuration = function() {
return jspb.Message.getField(this, 6) != 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.TriggerServiceFaultRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.TriggerServiceFaultRequest.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.TriggerServiceFaultRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.TriggerServiceFaultRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
fault: (f = msg.getFault()) && proto.bosdyn.api.ServiceFault.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.TriggerServiceFaultRequest}
*/
proto.bosdyn.api.TriggerServiceFaultRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.TriggerServiceFaultRequest;
return proto.bosdyn.api.TriggerServiceFaultRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.TriggerServiceFaultRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.TriggerServiceFaultRequest}
*/
proto.bosdyn.api.TriggerServiceFaultRequest.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.ServiceFault;
reader.readMessage(value,proto.bosdyn.api.ServiceFault.deserializeBinaryFromReader);
msg.setFault(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.TriggerServiceFaultRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.TriggerServiceFaultRequest.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.TriggerServiceFaultRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.TriggerServiceFaultRequest.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.getFault();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.ServiceFault.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.TriggerServiceFaultRequest.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.TriggerServiceFaultRequest} returns this
*/
proto.bosdyn.api.TriggerServiceFaultRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.TriggerServiceFaultRequest} returns this
*/
proto.bosdyn.api.TriggerServiceFaultRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.TriggerServiceFaultRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional ServiceFault fault = 2;
* @return {?proto.bosdyn.api.ServiceFault}
*/
proto.bosdyn.api.TriggerServiceFaultRequest.prototype.getFault = function() {
return /** @type{?proto.bosdyn.api.ServiceFault} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.ServiceFault, 2));
};
/**
* @param {?proto.bosdyn.api.ServiceFault|undefined} value
* @return {!proto.bosdyn.api.TriggerServiceFaultRequest} returns this
*/
proto.bosdyn.api.TriggerServiceFaultRequest.prototype.setFault = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.TriggerServiceFaultRequest} returns this
*/
proto.bosdyn.api.TriggerServiceFaultRequest.prototype.clearFault = function() {
return this.setFault(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.TriggerServiceFaultRequest.prototype.hasFault = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.TriggerServiceFaultResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.TriggerServiceFaultResponse.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.TriggerServiceFaultResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.TriggerServiceFaultResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
status: jspb.Message.getFieldWithDefault(msg, 2, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.TriggerServiceFaultResponse}
*/
proto.bosdyn.api.TriggerServiceFaultResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.TriggerServiceFaultResponse;
return proto.bosdyn.api.TriggerServiceFaultResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.TriggerServiceFaultResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.TriggerServiceFaultResponse}
*/
proto.bosdyn.api.TriggerServiceFaultResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = /** @type {!proto.bosdyn.api.TriggerServiceFaultResponse.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.TriggerServiceFaultResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.TriggerServiceFaultResponse.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.TriggerServiceFaultResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.TriggerServiceFaultResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeader();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_header_pb.ResponseHeader.serializeBinaryToWriter
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.TriggerServiceFaultResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_OK: 1,
STATUS_FAULT_ALREADY_ACTIVE: 2
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.TriggerServiceFaultResponse.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.TriggerServiceFaultResponse} returns this
*/
proto.bosdyn.api.TriggerServiceFaultResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.TriggerServiceFaultResponse} returns this
*/
proto.bosdyn.api.TriggerServiceFaultResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.TriggerServiceFaultResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Status status = 2;
* @return {!proto.bosdyn.api.TriggerServiceFaultResponse.Status}
*/
proto.bosdyn.api.TriggerServiceFaultResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.TriggerServiceFaultResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.TriggerServiceFaultResponse.Status} value
* @return {!proto.bosdyn.api.TriggerServiceFaultResponse} returns this
*/
proto.bosdyn.api.TriggerServiceFaultResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ClearServiceFaultRequest.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.ClearServiceFaultRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ClearServiceFaultRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
faultId: (f = msg.getFaultId()) && proto.bosdyn.api.ServiceFaultId.toObject(includeInstance, f),
clearAllServiceFaults: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
clearAllPayloadFaults: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.ClearServiceFaultRequest}
*/
proto.bosdyn.api.ClearServiceFaultRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ClearServiceFaultRequest;
return proto.bosdyn.api.ClearServiceFaultRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ClearServiceFaultRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ClearServiceFaultRequest}
*/
proto.bosdyn.api.ClearServiceFaultRequest.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.ServiceFaultId;
reader.readMessage(value,proto.bosdyn.api.ServiceFaultId.deserializeBinaryFromReader);
msg.setFaultId(value);
break;
case 3:
var value = /** @type {boolean} */ (reader.readBool());
msg.setClearAllServiceFaults(value);
break;
case 4:
var value = /** @type {boolean} */ (reader.readBool());
msg.setClearAllPayloadFaults(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ClearServiceFaultRequest.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.ClearServiceFaultRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ClearServiceFaultRequest.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.getFaultId();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.ServiceFaultId.serializeBinaryToWriter
);
}
f = message.getClearAllServiceFaults();
if (f) {
writer.writeBool(
3,
f
);
}
f = message.getClearAllPayloadFaults();
if (f) {
writer.writeBool(
4,
f
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.ClearServiceFaultRequest.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.ClearServiceFaultRequest} returns this
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ClearServiceFaultRequest} returns this
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional ServiceFaultId fault_id = 2;
* @return {?proto.bosdyn.api.ServiceFaultId}
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.getFaultId = function() {
return /** @type{?proto.bosdyn.api.ServiceFaultId} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.ServiceFaultId, 2));
};
/**
* @param {?proto.bosdyn.api.ServiceFaultId|undefined} value
* @return {!proto.bosdyn.api.ClearServiceFaultRequest} returns this
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.setFaultId = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ClearServiceFaultRequest} returns this
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.clearFaultId = function() {
return this.setFaultId(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.hasFaultId = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional bool clear_all_service_faults = 3;
* @return {boolean}
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.getClearAllServiceFaults = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.ClearServiceFaultRequest} returns this
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.setClearAllServiceFaults = function(value) {
return jspb.Message.setProto3BooleanField(this, 3, value);
};
/**
* optional bool clear_all_payload_faults = 4;
* @return {boolean}
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.getClearAllPayloadFaults = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.ClearServiceFaultRequest} returns this
*/
proto.bosdyn.api.ClearServiceFaultRequest.prototype.setClearAllPayloadFaults = function(value) {
return jspb.Message.setProto3BooleanField(this, 4, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.ClearServiceFaultResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ClearServiceFaultResponse.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.ClearServiceFaultResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ClearServiceFaultResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
status: jspb.Message.getFieldWithDefault(msg, 2, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.ClearServiceFaultResponse}
*/
proto.bosdyn.api.ClearServiceFaultResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ClearServiceFaultResponse;
return proto.bosdyn.api.ClearServiceFaultResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ClearServiceFaultResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ClearServiceFaultResponse}
*/
proto.bosdyn.api.ClearServiceFaultResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = /** @type {!proto.bosdyn.api.ClearServiceFaultResponse.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.ClearServiceFaultResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ClearServiceFaultResponse.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.ClearServiceFaultResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ClearServiceFaultResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeader();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_header_pb.ResponseHeader.serializeBinaryToWriter
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.ClearServiceFaultResponse.Status = {
STATUS_UNKNOWN: 0,
STATUS_OK: 1,
STATUS_FAULT_NOT_ACTIVE: 2
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.ClearServiceFaultResponse.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.ClearServiceFaultResponse} returns this
*/
proto.bosdyn.api.ClearServiceFaultResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ClearServiceFaultResponse} returns this
*/
proto.bosdyn.api.ClearServiceFaultResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ClearServiceFaultResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Status status = 2;
* @return {!proto.bosdyn.api.ClearServiceFaultResponse.Status}
*/
proto.bosdyn.api.ClearServiceFaultResponse.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.ClearServiceFaultResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.ClearServiceFaultResponse.Status} value
* @return {!proto.bosdyn.api.ClearServiceFaultResponse} returns this
*/
proto.bosdyn.api.ClearServiceFaultResponse.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
goog.object.extend(exports, proto.bosdyn.api);