spot-sdk-js
Version:
Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.
3,889 lines • 124 kB
JavaScript
// source: bosdyn/api/data_acquisition_store.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
goog.object.extend(proto, google_protobuf_timestamp_pb);
var bosdyn_api_header_pb = require('../../bosdyn/api/header_pb.js');
goog.object.extend(proto, bosdyn_api_header_pb);
var bosdyn_api_image_pb = require('../../bosdyn/api/image_pb.js');
goog.object.extend(proto, bosdyn_api_image_pb);
var bosdyn_api_data_acquisition_pb = require('../../bosdyn/api/data_acquisition_pb.js');
goog.object.extend(proto, bosdyn_api_data_acquisition_pb);
goog.exportSymbol('proto.bosdyn.api.ActionIdQuery', null, global);
goog.exportSymbol('proto.bosdyn.api.DataQueryParams', null, global);
goog.exportSymbol('proto.bosdyn.api.DataQueryParams.QueryCase', null, global);
goog.exportSymbol('proto.bosdyn.api.ListCaptureActionsRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.ListCaptureActionsResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.ListStoredDataRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.ListStoredDataResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.ListStoredImagesRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.ListStoredImagesResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.ListStoredMetadataRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.ListStoredMetadataResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.StoreDataRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.StoreDataResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.StoreImageRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.StoreImageResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.StoreMetadataRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.StoreMetadataResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.TimeRangeQuery', 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.ActionIdQuery = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.ActionIdQuery.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.ActionIdQuery, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ActionIdQuery.displayName = 'proto.bosdyn.api.ActionIdQuery';
}
/**
* 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.TimeRangeQuery = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.TimeRangeQuery, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.TimeRangeQuery.displayName = 'proto.bosdyn.api.TimeRangeQuery';
}
/**
* 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.DataQueryParams = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.DataQueryParams.oneofGroups_);
};
goog.inherits(proto.bosdyn.api.DataQueryParams, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DataQueryParams.displayName = 'proto.bosdyn.api.DataQueryParams';
}
/**
* 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.StoreImageRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.StoreImageRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.StoreImageRequest.displayName = 'proto.bosdyn.api.StoreImageRequest';
}
/**
* 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.StoreImageResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.StoreImageResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.StoreImageResponse.displayName = 'proto.bosdyn.api.StoreImageResponse';
}
/**
* 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.StoreMetadataRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.StoreMetadataRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.StoreMetadataRequest.displayName = 'proto.bosdyn.api.StoreMetadataRequest';
}
/**
* 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.StoreMetadataResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.StoreMetadataResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.StoreMetadataResponse.displayName = 'proto.bosdyn.api.StoreMetadataResponse';
}
/**
* 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.StoreDataRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.StoreDataRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.StoreDataRequest.displayName = 'proto.bosdyn.api.StoreDataRequest';
}
/**
* 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.StoreDataResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.StoreDataResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.StoreDataResponse.displayName = 'proto.bosdyn.api.StoreDataResponse';
}
/**
* 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.ListCaptureActionsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ListCaptureActionsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ListCaptureActionsRequest.displayName = 'proto.bosdyn.api.ListCaptureActionsRequest';
}
/**
* 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.ListCaptureActionsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.ListCaptureActionsResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.ListCaptureActionsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ListCaptureActionsResponse.displayName = 'proto.bosdyn.api.ListCaptureActionsResponse';
}
/**
* 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.ListStoredImagesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ListStoredImagesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ListStoredImagesRequest.displayName = 'proto.bosdyn.api.ListStoredImagesRequest';
}
/**
* 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.ListStoredImagesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.ListStoredImagesResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.ListStoredImagesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ListStoredImagesResponse.displayName = 'proto.bosdyn.api.ListStoredImagesResponse';
}
/**
* 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.ListStoredMetadataRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ListStoredMetadataRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ListStoredMetadataRequest.displayName = 'proto.bosdyn.api.ListStoredMetadataRequest';
}
/**
* 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.ListStoredMetadataResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.ListStoredMetadataResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.ListStoredMetadataResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ListStoredMetadataResponse.displayName = 'proto.bosdyn.api.ListStoredMetadataResponse';
}
/**
* 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.ListStoredDataRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.ListStoredDataRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ListStoredDataRequest.displayName = 'proto.bosdyn.api.ListStoredDataRequest';
}
/**
* 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.ListStoredDataResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.ListStoredDataResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.ListStoredDataResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ListStoredDataResponse.displayName = 'proto.bosdyn.api.ListStoredDataResponse';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.ActionIdQuery.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.ActionIdQuery.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ActionIdQuery.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.ActionIdQuery} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ActionIdQuery.toObject = function(includeInstance, msg) {
var f, obj = {
actionIdsList: jspb.Message.toObjectList(msg.getActionIdsList(),
bosdyn_api_data_acquisition_pb.CaptureActionId.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.ActionIdQuery}
*/
proto.bosdyn.api.ActionIdQuery.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ActionIdQuery;
return proto.bosdyn.api.ActionIdQuery.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ActionIdQuery} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ActionIdQuery}
*/
proto.bosdyn.api.ActionIdQuery.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_data_acquisition_pb.CaptureActionId;
reader.readMessage(value,bosdyn_api_data_acquisition_pb.CaptureActionId.deserializeBinaryFromReader);
msg.addActionIds(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ActionIdQuery.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ActionIdQuery.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.ActionIdQuery} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ActionIdQuery.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getActionIdsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
bosdyn_api_data_acquisition_pb.CaptureActionId.serializeBinaryToWriter
);
}
};
/**
* repeated CaptureActionId action_ids = 1;
* @return {!Array<!proto.bosdyn.api.CaptureActionId>}
*/
proto.bosdyn.api.ActionIdQuery.prototype.getActionIdsList = function() {
return /** @type{!Array<!proto.bosdyn.api.CaptureActionId>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_data_acquisition_pb.CaptureActionId, 1));
};
/**
* @param {!Array<!proto.bosdyn.api.CaptureActionId>} value
* @return {!proto.bosdyn.api.ActionIdQuery} returns this
*/
proto.bosdyn.api.ActionIdQuery.prototype.setActionIdsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.bosdyn.api.CaptureActionId=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.CaptureActionId}
*/
proto.bosdyn.api.ActionIdQuery.prototype.addActionIds = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bosdyn.api.CaptureActionId, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.ActionIdQuery} returns this
*/
proto.bosdyn.api.ActionIdQuery.prototype.clearActionIdsList = function() {
return this.setActionIdsList([]);
};
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.TimeRangeQuery.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.TimeRangeQuery.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.TimeRangeQuery} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.TimeRangeQuery.toObject = function(includeInstance, msg) {
var f, obj = {
fromTimestamp: (f = msg.getFromTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
toTimestamp: (f = msg.getToTimestamp()) && google_protobuf_timestamp_pb.Timestamp.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.TimeRangeQuery}
*/
proto.bosdyn.api.TimeRangeQuery.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.TimeRangeQuery;
return proto.bosdyn.api.TimeRangeQuery.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.TimeRangeQuery} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.TimeRangeQuery}
*/
proto.bosdyn.api.TimeRangeQuery.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setFromTimestamp(value);
break;
case 2:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setToTimestamp(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.TimeRangeQuery.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.TimeRangeQuery.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.TimeRangeQuery} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.TimeRangeQuery.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getFromTimestamp();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getToTimestamp();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
};
/**
* optional google.protobuf.Timestamp from_timestamp = 1;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.bosdyn.api.TimeRangeQuery.prototype.getFromTimestamp = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.bosdyn.api.TimeRangeQuery} returns this
*/
proto.bosdyn.api.TimeRangeQuery.prototype.setFromTimestamp = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.TimeRangeQuery} returns this
*/
proto.bosdyn.api.TimeRangeQuery.prototype.clearFromTimestamp = function() {
return this.setFromTimestamp(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.TimeRangeQuery.prototype.hasFromTimestamp = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional google.protobuf.Timestamp to_timestamp = 2;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.bosdyn.api.TimeRangeQuery.prototype.getToTimestamp = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.bosdyn.api.TimeRangeQuery} returns this
*/
proto.bosdyn.api.TimeRangeQuery.prototype.setToTimestamp = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.TimeRangeQuery} returns this
*/
proto.bosdyn.api.TimeRangeQuery.prototype.clearToTimestamp = function() {
return this.setToTimestamp(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.TimeRangeQuery.prototype.hasToTimestamp = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.bosdyn.api.DataQueryParams.oneofGroups_ = [[1,2]];
/**
* @enum {number}
*/
proto.bosdyn.api.DataQueryParams.QueryCase = {
QUERY_NOT_SET: 0,
TIME_RANGE: 1,
ACTION_IDS: 2
};
/**
* @return {proto.bosdyn.api.DataQueryParams.QueryCase}
*/
proto.bosdyn.api.DataQueryParams.prototype.getQueryCase = function() {
return /** @type {proto.bosdyn.api.DataQueryParams.QueryCase} */(jspb.Message.computeOneofCase(this, proto.bosdyn.api.DataQueryParams.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.DataQueryParams.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.DataQueryParams.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.DataQueryParams} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DataQueryParams.toObject = function(includeInstance, msg) {
var f, obj = {
timeRange: (f = msg.getTimeRange()) && proto.bosdyn.api.TimeRangeQuery.toObject(includeInstance, f),
actionIds: (f = msg.getActionIds()) && proto.bosdyn.api.ActionIdQuery.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.DataQueryParams}
*/
proto.bosdyn.api.DataQueryParams.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.DataQueryParams;
return proto.bosdyn.api.DataQueryParams.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.DataQueryParams} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.DataQueryParams}
*/
proto.bosdyn.api.DataQueryParams.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.TimeRangeQuery;
reader.readMessage(value,proto.bosdyn.api.TimeRangeQuery.deserializeBinaryFromReader);
msg.setTimeRange(value);
break;
case 2:
var value = new proto.bosdyn.api.ActionIdQuery;
reader.readMessage(value,proto.bosdyn.api.ActionIdQuery.deserializeBinaryFromReader);
msg.setActionIds(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.DataQueryParams.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.DataQueryParams.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.DataQueryParams} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DataQueryParams.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTimeRange();
if (f != null) {
writer.writeMessage(
1,
f,
proto.bosdyn.api.TimeRangeQuery.serializeBinaryToWriter
);
}
f = message.getActionIds();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.ActionIdQuery.serializeBinaryToWriter
);
}
};
/**
* optional TimeRangeQuery time_range = 1;
* @return {?proto.bosdyn.api.TimeRangeQuery}
*/
proto.bosdyn.api.DataQueryParams.prototype.getTimeRange = function() {
return /** @type{?proto.bosdyn.api.TimeRangeQuery} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.TimeRangeQuery, 1));
};
/**
* @param {?proto.bosdyn.api.TimeRangeQuery|undefined} value
* @return {!proto.bosdyn.api.DataQueryParams} returns this
*/
proto.bosdyn.api.DataQueryParams.prototype.setTimeRange = function(value) {
return jspb.Message.setOneofWrapperField(this, 1, proto.bosdyn.api.DataQueryParams.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DataQueryParams} returns this
*/
proto.bosdyn.api.DataQueryParams.prototype.clearTimeRange = function() {
return this.setTimeRange(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DataQueryParams.prototype.hasTimeRange = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional ActionIdQuery action_ids = 2;
* @return {?proto.bosdyn.api.ActionIdQuery}
*/
proto.bosdyn.api.DataQueryParams.prototype.getActionIds = function() {
return /** @type{?proto.bosdyn.api.ActionIdQuery} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.ActionIdQuery, 2));
};
/**
* @param {?proto.bosdyn.api.ActionIdQuery|undefined} value
* @return {!proto.bosdyn.api.DataQueryParams} returns this
*/
proto.bosdyn.api.DataQueryParams.prototype.setActionIds = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.bosdyn.api.DataQueryParams.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DataQueryParams} returns this
*/
proto.bosdyn.api.DataQueryParams.prototype.clearActionIds = function() {
return this.setActionIds(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DataQueryParams.prototype.hasActionIds = 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.StoreImageRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.StoreImageRequest.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.StoreImageRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreImageRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
image: (f = msg.getImage()) && bosdyn_api_image_pb.ImageCapture.toObject(includeInstance, f),
dataId: (f = msg.getDataId()) && bosdyn_api_data_acquisition_pb.DataIdentifier.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.StoreImageRequest}
*/
proto.bosdyn.api.StoreImageRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.StoreImageRequest;
return proto.bosdyn.api.StoreImageRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.StoreImageRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.StoreImageRequest}
*/
proto.bosdyn.api.StoreImageRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.RequestHeader;
reader.readMessage(value,bosdyn_api_header_pb.RequestHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new bosdyn_api_image_pb.ImageCapture;
reader.readMessage(value,bosdyn_api_image_pb.ImageCapture.deserializeBinaryFromReader);
msg.setImage(value);
break;
case 3:
var value = new bosdyn_api_data_acquisition_pb.DataIdentifier;
reader.readMessage(value,bosdyn_api_data_acquisition_pb.DataIdentifier.deserializeBinaryFromReader);
msg.setDataId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.StoreImageRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.StoreImageRequest.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.StoreImageRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreImageRequest.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.getImage();
if (f != null) {
writer.writeMessage(
2,
f,
bosdyn_api_image_pb.ImageCapture.serializeBinaryToWriter
);
}
f = message.getDataId();
if (f != null) {
writer.writeMessage(
3,
f,
bosdyn_api_data_acquisition_pb.DataIdentifier.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.StoreImageRequest.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.StoreImageRequest} returns this
*/
proto.bosdyn.api.StoreImageRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.StoreImageRequest} returns this
*/
proto.bosdyn.api.StoreImageRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.StoreImageRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional ImageCapture image = 2;
* @return {?proto.bosdyn.api.ImageCapture}
*/
proto.bosdyn.api.StoreImageRequest.prototype.getImage = function() {
return /** @type{?proto.bosdyn.api.ImageCapture} */ (
jspb.Message.getWrapperField(this, bosdyn_api_image_pb.ImageCapture, 2));
};
/**
* @param {?proto.bosdyn.api.ImageCapture|undefined} value
* @return {!proto.bosdyn.api.StoreImageRequest} returns this
*/
proto.bosdyn.api.StoreImageRequest.prototype.setImage = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.StoreImageRequest} returns this
*/
proto.bosdyn.api.StoreImageRequest.prototype.clearImage = function() {
return this.setImage(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.StoreImageRequest.prototype.hasImage = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional DataIdentifier data_id = 3;
* @return {?proto.bosdyn.api.DataIdentifier}
*/
proto.bosdyn.api.StoreImageRequest.prototype.getDataId = function() {
return /** @type{?proto.bosdyn.api.DataIdentifier} */ (
jspb.Message.getWrapperField(this, bosdyn_api_data_acquisition_pb.DataIdentifier, 3));
};
/**
* @param {?proto.bosdyn.api.DataIdentifier|undefined} value
* @return {!proto.bosdyn.api.StoreImageRequest} returns this
*/
proto.bosdyn.api.StoreImageRequest.prototype.setDataId = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.StoreImageRequest} returns this
*/
proto.bosdyn.api.StoreImageRequest.prototype.clearDataId = function() {
return this.setDataId(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.StoreImageRequest.prototype.hasDataId = 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.StoreImageResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.StoreImageResponse.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.StoreImageResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreImageResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.StoreImageResponse}
*/
proto.bosdyn.api.StoreImageResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.StoreImageResponse;
return proto.bosdyn.api.StoreImageResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.StoreImageResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.StoreImageResponse}
*/
proto.bosdyn.api.StoreImageResponse.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;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.StoreImageResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.StoreImageResponse.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.StoreImageResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreImageResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeader();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_header_pb.ResponseHeader.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.StoreImageResponse.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.StoreImageResponse} returns this
*/
proto.bosdyn.api.StoreImageResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.StoreImageResponse} returns this
*/
proto.bosdyn.api.StoreImageResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.StoreImageResponse.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.StoreMetadataRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.StoreMetadataRequest.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.StoreMetadataRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreMetadataRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
metadata: (f = msg.getMetadata()) && bosdyn_api_data_acquisition_pb.AssociatedMetadata.toObject(includeInstance, f),
dataId: (f = msg.getDataId()) && bosdyn_api_data_acquisition_pb.DataIdentifier.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.StoreMetadataRequest}
*/
proto.bosdyn.api.StoreMetadataRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.StoreMetadataRequest;
return proto.bosdyn.api.StoreMetadataRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.StoreMetadataRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.StoreMetadataRequest}
*/
proto.bosdyn.api.StoreMetadataRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.RequestHeader;
reader.readMessage(value,bosdyn_api_header_pb.RequestHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new bosdyn_api_data_acquisition_pb.AssociatedMetadata;
reader.readMessage(value,bosdyn_api_data_acquisition_pb.AssociatedMetadata.deserializeBinaryFromReader);
msg.setMetadata(value);
break;
case 3:
var value = new bosdyn_api_data_acquisition_pb.DataIdentifier;
reader.readMessage(value,bosdyn_api_data_acquisition_pb.DataIdentifier.deserializeBinaryFromReader);
msg.setDataId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.StoreMetadataRequest.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.StoreMetadataRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreMetadataRequest.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.getMetadata();
if (f != null) {
writer.writeMessage(
2,
f,
bosdyn_api_data_acquisition_pb.AssociatedMetadata.serializeBinaryToWriter
);
}
f = message.getDataId();
if (f != null) {
writer.writeMessage(
3,
f,
bosdyn_api_data_acquisition_pb.DataIdentifier.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.StoreMetadataRequest.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.StoreMetadataRequest} returns this
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.StoreMetadataRequest} returns this
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional AssociatedMetadata metadata = 2;
* @return {?proto.bosdyn.api.AssociatedMetadata}
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.getMetadata = function() {
return /** @type{?proto.bosdyn.api.AssociatedMetadata} */ (
jspb.Message.getWrapperField(this, bosdyn_api_data_acquisition_pb.AssociatedMetadata, 2));
};
/**
* @param {?proto.bosdyn.api.AssociatedMetadata|undefined} value
* @return {!proto.bosdyn.api.StoreMetadataRequest} returns this
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.setMetadata = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.StoreMetadataRequest} returns this
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.clearMetadata = function() {
return this.setMetadata(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.hasMetadata = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional DataIdentifier data_id = 3;
* @return {?proto.bosdyn.api.DataIdentifier}
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.getDataId = function() {
return /** @type{?proto.bosdyn.api.DataIdentifier} */ (
jspb.Message.getWrapperField(this, bosdyn_api_data_acquisition_pb.DataIdentifier, 3));
};
/**
* @param {?proto.bosdyn.api.DataIdentifier|undefined} value
* @return {!proto.bosdyn.api.StoreMetadataRequest} returns this
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.setDataId = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.StoreMetadataRequest} returns this
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.clearDataId = function() {
return this.setDataId(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.StoreMetadataRequest.prototype.hasDataId = 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.StoreMetadataResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.StoreMetadataResponse.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.StoreMetadataResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreMetadataResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.StoreMetadataResponse}
*/
proto.bosdyn.api.StoreMetadataResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.StoreMetadataResponse;
return proto.bosdyn.api.StoreMetadataResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.StoreMetadataResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.StoreMetadataResponse}
*/
proto.bosdyn.api.StoreMetadataResponse.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;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.StoreMetadataResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.StoreMetadataResponse.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.StoreMetadataResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreMetadataResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeader();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_header_pb.ResponseHeader.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.StoreMetadataResponse.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.StoreMetadataResponse} returns this
*/
proto.bosdyn.api.StoreMetadataResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.StoreMetadataResponse} returns this
*/
proto.bosdyn.api.StoreMetadataResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.StoreMetadataResponse.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.StoreDataRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.StoreDataRequest.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.StoreDataRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreDataRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
data: msg.getData_asB64(),
dataId: (f = msg.getDataId()) && bosdyn_api_data_acquisition_pb.DataIdentifier.toObject(includeInstance, f),
fileExtension: 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.StoreDataRequest}
*/
proto.bosdyn.api.StoreDataRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.StoreDataRequest;
return proto.bosdyn.api.StoreDataRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.StoreDataRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.StoreDataRequest}
*/
proto.bosdyn.api.StoreDataRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.RequestHeader;
reader.readMessage(value,bosdyn_api_header_pb.RequestHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setData(value);
break;
case 3:
var value = new bosdyn_api_data_acquisition_pb.DataIdentifier;
reader.readMessage(value,bosdyn_api_data_acquisition_pb.DataIdentifier.deserializeBinaryFromReader);
msg.setDataId(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setFileExtension(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.StoreDataRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.StoreDataRequest.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.StoreDataRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreDataRequest.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.getData_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getDataId();
if (f != null) {
writer.writeMessage(
3,
f,
bosdyn_api_data_acquisition_pb.DataIdentifier.serializeBinaryToWriter
);
}
f = message.getFileExtension();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.StoreDataRequest.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.StoreDataRequest} returns this
*/
proto.bosdyn.api.StoreDataRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.StoreDataRequest} returns this
*/
proto.bosdyn.api.StoreDataRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.StoreDataRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bytes data = 2;
* @return {!(string|Uint8Array)}
*/
proto.bosdyn.api.StoreDataRequest.prototype.getData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes data = 2;
* This is a type-conversion wrapper around `getData()`
* @return {string}
*/
proto.bosdyn.api.StoreDataRequest.prototype.getData_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getData()));
};
/**
* optional bytes data = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getData()`
* @return {!Uint8Array}
*/
proto.bosdyn.api.StoreDataRequest.prototype.getData_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getData()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.bosdyn.api.StoreDataRequest} returns this
*/
proto.bosdyn.api.StoreDataRequest.prototype.setData = function(value) {
return jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* optional DataIdentifier data_id = 3;
* @return {?proto.bosdyn.api.DataIdentifier}
*/
proto.bosdyn.api.StoreDataRequest.prototype.getDataId = function() {
return /** @type{?proto.bosdyn.api.DataIdentifier} */ (
jspb.Message.getWrapperField(this, bosdyn_api_data_acquisition_pb.DataIdentifier, 3));
};
/**
* @param {?proto.bosdyn.api.DataIdentifier|undefined} value
* @return {!proto.bosdyn.api.StoreDataRequest} returns this
*/
proto.bosdyn.api.StoreDataRequest.prototype.setDataId = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.StoreDataRequest} returns this
*/
proto.bosdyn.api.StoreDataRequest.prototype.clearDataId = function() {
return this.setDataId(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.StoreDataRequest.prototype.hasDataId = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional string file_extension = 4;
* @return {string}
*/
proto.bosdyn.api.StoreDataRequest.prototype.getFileExtension = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.StoreDataRequest} returns this
*/
proto.bosdyn.api.StoreDataRequest.prototype.setFileExtension = 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.StoreDataResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.StoreDataResponse.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.StoreDataResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreDataResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.StoreDataResponse}
*/
proto.bosdyn.api.StoreDataResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.StoreDataResponse;
return proto.bosdyn.api.StoreDataResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.StoreDataResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.StoreDataResponse}
*/
proto.bosdyn.api.StoreDataResponse.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;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.StoreDataResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.StoreDataResponse.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.StoreDataResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.StoreDataResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHeader();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_header_pb.ResponseHeader.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.StoreDataResponse.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.StoreDataResponse} returns this
*/
proto.bosdyn.api.StoreDataResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.StoreDataResponse} returns this
*/
proto.bosdyn.api.StoreDataResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.StoreDataResponse.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.ListCaptureActionsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ListCaptureActionsRequest.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.ListCaptureActionsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListCaptureActionsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
query: (f = msg.getQuery()) && proto.bosdyn.api.DataQueryParams.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.ListCaptureActionsRequest}
*/
proto.bosdyn.api.ListCaptureActionsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ListCaptureActionsRequest;
return proto.bosdyn.api.ListCaptureActionsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ListCaptureActionsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ListCaptureActionsRequest}
*/
proto.bosdyn.api.ListCaptureActionsRequest.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.DataQueryParams;
reader.readMessage(value,proto.bosdyn.api.DataQueryParams.deserializeBinaryFromReader);
msg.setQuery(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ListCaptureActionsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ListCaptureActionsRequest.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.ListCaptureActionsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListCaptureActionsRequest.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.getQuery();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.DataQueryParams.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.ListCaptureActionsRequest.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.ListCaptureActionsRequest} returns this
*/
proto.bosdyn.api.ListCaptureActionsRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListCaptureActionsRequest} returns this
*/
proto.bosdyn.api.ListCaptureActionsRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListCaptureActionsRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional DataQueryParams query = 2;
* @return {?proto.bosdyn.api.DataQueryParams}
*/
proto.bosdyn.api.ListCaptureActionsRequest.prototype.getQuery = function() {
return /** @type{?proto.bosdyn.api.DataQueryParams} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.DataQueryParams, 2));
};
/**
* @param {?proto.bosdyn.api.DataQueryParams|undefined} value
* @return {!proto.bosdyn.api.ListCaptureActionsRequest} returns this
*/
proto.bosdyn.api.ListCaptureActionsRequest.prototype.setQuery = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListCaptureActionsRequest} returns this
*/
proto.bosdyn.api.ListCaptureActionsRequest.prototype.clearQuery = function() {
return this.setQuery(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListCaptureActionsRequest.prototype.hasQuery = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.ListCaptureActionsResponse.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.ListCaptureActionsResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ListCaptureActionsResponse.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.ListCaptureActionsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListCaptureActionsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
actionIdsList: jspb.Message.toObjectList(msg.getActionIdsList(),
bosdyn_api_data_acquisition_pb.CaptureActionId.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.ListCaptureActionsResponse}
*/
proto.bosdyn.api.ListCaptureActionsResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ListCaptureActionsResponse;
return proto.bosdyn.api.ListCaptureActionsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ListCaptureActionsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ListCaptureActionsResponse}
*/
proto.bosdyn.api.ListCaptureActionsResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new bosdyn_api_data_acquisition_pb.CaptureActionId;
reader.readMessage(value,bosdyn_api_data_acquisition_pb.CaptureActionId.deserializeBinaryFromReader);
msg.addActionIds(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ListCaptureActionsResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ListCaptureActionsResponse.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.ListCaptureActionsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListCaptureActionsResponse.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.getActionIdsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
bosdyn_api_data_acquisition_pb.CaptureActionId.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.ListCaptureActionsResponse.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.ListCaptureActionsResponse} returns this
*/
proto.bosdyn.api.ListCaptureActionsResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListCaptureActionsResponse} returns this
*/
proto.bosdyn.api.ListCaptureActionsResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListCaptureActionsResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated CaptureActionId action_ids = 2;
* @return {!Array<!proto.bosdyn.api.CaptureActionId>}
*/
proto.bosdyn.api.ListCaptureActionsResponse.prototype.getActionIdsList = function() {
return /** @type{!Array<!proto.bosdyn.api.CaptureActionId>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_data_acquisition_pb.CaptureActionId, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.CaptureActionId>} value
* @return {!proto.bosdyn.api.ListCaptureActionsResponse} returns this
*/
proto.bosdyn.api.ListCaptureActionsResponse.prototype.setActionIdsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.CaptureActionId=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.CaptureActionId}
*/
proto.bosdyn.api.ListCaptureActionsResponse.prototype.addActionIds = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.CaptureActionId, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.ListCaptureActionsResponse} returns this
*/
proto.bosdyn.api.ListCaptureActionsResponse.prototype.clearActionIdsList = function() {
return this.setActionIdsList([]);
};
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.ListStoredImagesRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ListStoredImagesRequest.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.ListStoredImagesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredImagesRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
query: (f = msg.getQuery()) && proto.bosdyn.api.DataQueryParams.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.ListStoredImagesRequest}
*/
proto.bosdyn.api.ListStoredImagesRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ListStoredImagesRequest;
return proto.bosdyn.api.ListStoredImagesRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ListStoredImagesRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ListStoredImagesRequest}
*/
proto.bosdyn.api.ListStoredImagesRequest.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.DataQueryParams;
reader.readMessage(value,proto.bosdyn.api.DataQueryParams.deserializeBinaryFromReader);
msg.setQuery(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ListStoredImagesRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ListStoredImagesRequest.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.ListStoredImagesRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredImagesRequest.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.getQuery();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.DataQueryParams.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.ListStoredImagesRequest.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.ListStoredImagesRequest} returns this
*/
proto.bosdyn.api.ListStoredImagesRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListStoredImagesRequest} returns this
*/
proto.bosdyn.api.ListStoredImagesRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListStoredImagesRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional DataQueryParams query = 2;
* @return {?proto.bosdyn.api.DataQueryParams}
*/
proto.bosdyn.api.ListStoredImagesRequest.prototype.getQuery = function() {
return /** @type{?proto.bosdyn.api.DataQueryParams} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.DataQueryParams, 2));
};
/**
* @param {?proto.bosdyn.api.DataQueryParams|undefined} value
* @return {!proto.bosdyn.api.ListStoredImagesRequest} returns this
*/
proto.bosdyn.api.ListStoredImagesRequest.prototype.setQuery = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListStoredImagesRequest} returns this
*/
proto.bosdyn.api.ListStoredImagesRequest.prototype.clearQuery = function() {
return this.setQuery(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListStoredImagesRequest.prototype.hasQuery = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.ListStoredImagesResponse.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.ListStoredImagesResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ListStoredImagesResponse.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.ListStoredImagesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredImagesResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
dataIdsList: jspb.Message.toObjectList(msg.getDataIdsList(),
bosdyn_api_data_acquisition_pb.DataIdentifier.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.ListStoredImagesResponse}
*/
proto.bosdyn.api.ListStoredImagesResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ListStoredImagesResponse;
return proto.bosdyn.api.ListStoredImagesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ListStoredImagesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ListStoredImagesResponse}
*/
proto.bosdyn.api.ListStoredImagesResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new bosdyn_api_data_acquisition_pb.DataIdentifier;
reader.readMessage(value,bosdyn_api_data_acquisition_pb.DataIdentifier.deserializeBinaryFromReader);
msg.addDataIds(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ListStoredImagesResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ListStoredImagesResponse.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.ListStoredImagesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredImagesResponse.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.getDataIdsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
bosdyn_api_data_acquisition_pb.DataIdentifier.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.ListStoredImagesResponse.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.ListStoredImagesResponse} returns this
*/
proto.bosdyn.api.ListStoredImagesResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListStoredImagesResponse} returns this
*/
proto.bosdyn.api.ListStoredImagesResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListStoredImagesResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated DataIdentifier data_ids = 2;
* @return {!Array<!proto.bosdyn.api.DataIdentifier>}
*/
proto.bosdyn.api.ListStoredImagesResponse.prototype.getDataIdsList = function() {
return /** @type{!Array<!proto.bosdyn.api.DataIdentifier>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_data_acquisition_pb.DataIdentifier, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.DataIdentifier>} value
* @return {!proto.bosdyn.api.ListStoredImagesResponse} returns this
*/
proto.bosdyn.api.ListStoredImagesResponse.prototype.setDataIdsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.DataIdentifier=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.DataIdentifier}
*/
proto.bosdyn.api.ListStoredImagesResponse.prototype.addDataIds = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.DataIdentifier, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.ListStoredImagesResponse} returns this
*/
proto.bosdyn.api.ListStoredImagesResponse.prototype.clearDataIdsList = function() {
return this.setDataIdsList([]);
};
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.ListStoredMetadataRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ListStoredMetadataRequest.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.ListStoredMetadataRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredMetadataRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
query: (f = msg.getQuery()) && proto.bosdyn.api.DataQueryParams.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.ListStoredMetadataRequest}
*/
proto.bosdyn.api.ListStoredMetadataRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ListStoredMetadataRequest;
return proto.bosdyn.api.ListStoredMetadataRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ListStoredMetadataRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ListStoredMetadataRequest}
*/
proto.bosdyn.api.ListStoredMetadataRequest.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.DataQueryParams;
reader.readMessage(value,proto.bosdyn.api.DataQueryParams.deserializeBinaryFromReader);
msg.setQuery(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ListStoredMetadataRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ListStoredMetadataRequest.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.ListStoredMetadataRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredMetadataRequest.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.getQuery();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.DataQueryParams.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.ListStoredMetadataRequest.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.ListStoredMetadataRequest} returns this
*/
proto.bosdyn.api.ListStoredMetadataRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListStoredMetadataRequest} returns this
*/
proto.bosdyn.api.ListStoredMetadataRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListStoredMetadataRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional DataQueryParams query = 2;
* @return {?proto.bosdyn.api.DataQueryParams}
*/
proto.bosdyn.api.ListStoredMetadataRequest.prototype.getQuery = function() {
return /** @type{?proto.bosdyn.api.DataQueryParams} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.DataQueryParams, 2));
};
/**
* @param {?proto.bosdyn.api.DataQueryParams|undefined} value
* @return {!proto.bosdyn.api.ListStoredMetadataRequest} returns this
*/
proto.bosdyn.api.ListStoredMetadataRequest.prototype.setQuery = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListStoredMetadataRequest} returns this
*/
proto.bosdyn.api.ListStoredMetadataRequest.prototype.clearQuery = function() {
return this.setQuery(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListStoredMetadataRequest.prototype.hasQuery = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.ListStoredMetadataResponse.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.ListStoredMetadataResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ListStoredMetadataResponse.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.ListStoredMetadataResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredMetadataResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
dataIdsList: jspb.Message.toObjectList(msg.getDataIdsList(),
bosdyn_api_data_acquisition_pb.DataIdentifier.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.ListStoredMetadataResponse}
*/
proto.bosdyn.api.ListStoredMetadataResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ListStoredMetadataResponse;
return proto.bosdyn.api.ListStoredMetadataResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ListStoredMetadataResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ListStoredMetadataResponse}
*/
proto.bosdyn.api.ListStoredMetadataResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new bosdyn_api_data_acquisition_pb.DataIdentifier;
reader.readMessage(value,bosdyn_api_data_acquisition_pb.DataIdentifier.deserializeBinaryFromReader);
msg.addDataIds(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ListStoredMetadataResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ListStoredMetadataResponse.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.ListStoredMetadataResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredMetadataResponse.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.getDataIdsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
bosdyn_api_data_acquisition_pb.DataIdentifier.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.ListStoredMetadataResponse.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.ListStoredMetadataResponse} returns this
*/
proto.bosdyn.api.ListStoredMetadataResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListStoredMetadataResponse} returns this
*/
proto.bosdyn.api.ListStoredMetadataResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListStoredMetadataResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated DataIdentifier data_ids = 2;
* @return {!Array<!proto.bosdyn.api.DataIdentifier>}
*/
proto.bosdyn.api.ListStoredMetadataResponse.prototype.getDataIdsList = function() {
return /** @type{!Array<!proto.bosdyn.api.DataIdentifier>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_data_acquisition_pb.DataIdentifier, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.DataIdentifier>} value
* @return {!proto.bosdyn.api.ListStoredMetadataResponse} returns this
*/
proto.bosdyn.api.ListStoredMetadataResponse.prototype.setDataIdsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.DataIdentifier=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.DataIdentifier}
*/
proto.bosdyn.api.ListStoredMetadataResponse.prototype.addDataIds = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.DataIdentifier, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.ListStoredMetadataResponse} returns this
*/
proto.bosdyn.api.ListStoredMetadataResponse.prototype.clearDataIdsList = function() {
return this.setDataIdsList([]);
};
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.ListStoredDataRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ListStoredDataRequest.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.ListStoredDataRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredDataRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
query: (f = msg.getQuery()) && proto.bosdyn.api.DataQueryParams.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.ListStoredDataRequest}
*/
proto.bosdyn.api.ListStoredDataRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ListStoredDataRequest;
return proto.bosdyn.api.ListStoredDataRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ListStoredDataRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ListStoredDataRequest}
*/
proto.bosdyn.api.ListStoredDataRequest.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.DataQueryParams;
reader.readMessage(value,proto.bosdyn.api.DataQueryParams.deserializeBinaryFromReader);
msg.setQuery(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ListStoredDataRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ListStoredDataRequest.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.ListStoredDataRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredDataRequest.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.getQuery();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.DataQueryParams.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.ListStoredDataRequest.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.ListStoredDataRequest} returns this
*/
proto.bosdyn.api.ListStoredDataRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListStoredDataRequest} returns this
*/
proto.bosdyn.api.ListStoredDataRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListStoredDataRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional DataQueryParams query = 2;
* @return {?proto.bosdyn.api.DataQueryParams}
*/
proto.bosdyn.api.ListStoredDataRequest.prototype.getQuery = function() {
return /** @type{?proto.bosdyn.api.DataQueryParams} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.DataQueryParams, 2));
};
/**
* @param {?proto.bosdyn.api.DataQueryParams|undefined} value
* @return {!proto.bosdyn.api.ListStoredDataRequest} returns this
*/
proto.bosdyn.api.ListStoredDataRequest.prototype.setQuery = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListStoredDataRequest} returns this
*/
proto.bosdyn.api.ListStoredDataRequest.prototype.clearQuery = function() {
return this.setQuery(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListStoredDataRequest.prototype.hasQuery = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.ListStoredDataResponse.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.ListStoredDataResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ListStoredDataResponse.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.ListStoredDataResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredDataResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
dataIdsList: jspb.Message.toObjectList(msg.getDataIdsList(),
bosdyn_api_data_acquisition_pb.DataIdentifier.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.ListStoredDataResponse}
*/
proto.bosdyn.api.ListStoredDataResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ListStoredDataResponse;
return proto.bosdyn.api.ListStoredDataResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ListStoredDataResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ListStoredDataResponse}
*/
proto.bosdyn.api.ListStoredDataResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new bosdyn_api_data_acquisition_pb.DataIdentifier;
reader.readMessage(value,bosdyn_api_data_acquisition_pb.DataIdentifier.deserializeBinaryFromReader);
msg.addDataIds(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ListStoredDataResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ListStoredDataResponse.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.ListStoredDataResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListStoredDataResponse.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.getDataIdsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
bosdyn_api_data_acquisition_pb.DataIdentifier.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.ListStoredDataResponse.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.ListStoredDataResponse} returns this
*/
proto.bosdyn.api.ListStoredDataResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListStoredDataResponse} returns this
*/
proto.bosdyn.api.ListStoredDataResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListStoredDataResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated DataIdentifier data_ids = 2;
* @return {!Array<!proto.bosdyn.api.DataIdentifier>}
*/
proto.bosdyn.api.ListStoredDataResponse.prototype.getDataIdsList = function() {
return /** @type{!Array<!proto.bosdyn.api.DataIdentifier>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_data_acquisition_pb.DataIdentifier, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.DataIdentifier>} value
* @return {!proto.bosdyn.api.ListStoredDataResponse} returns this
*/
proto.bosdyn.api.ListStoredDataResponse.prototype.setDataIdsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.DataIdentifier=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.DataIdentifier}
*/
proto.bosdyn.api.ListStoredDataResponse.prototype.addDataIds = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.DataIdentifier, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.ListStoredDataResponse} returns this
*/
proto.bosdyn.api.ListStoredDataResponse.prototype.clearDataIdsList = function() {
return this.setDataIdsList([]);
};
goog.object.extend(exports, proto.bosdyn.api);