spot-sdk-js
Version:
Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.
6,331 lines • 192 kB
JavaScript
// source: bosdyn/api/data_index.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var bosdyn_api_data_buffer_pb = require('../../bosdyn/api/data_buffer_pb.js');
goog.object.extend(proto, bosdyn_api_data_buffer_pb);
var bosdyn_api_header_pb = require('../../bosdyn/api/header_pb.js');
goog.object.extend(proto, bosdyn_api_header_pb);
var bosdyn_api_time_range_pb = require('../../bosdyn/api/time_range_pb.js');
goog.object.extend(proto, bosdyn_api_time_range_pb);
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
goog.object.extend(proto, google_protobuf_timestamp_pb);
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
goog.object.extend(proto, google_protobuf_wrappers_pb);
goog.exportSymbol('proto.bosdyn.api.BlobPage', null, global);
goog.exportSymbol('proto.bosdyn.api.BlobPages', null, global);
goog.exportSymbol('proto.bosdyn.api.BlobSpec', null, global);
goog.exportSymbol('proto.bosdyn.api.DataBufferStatus', null, global);
goog.exportSymbol('proto.bosdyn.api.DataIndex', null, global);
goog.exportSymbol('proto.bosdyn.api.DataQuery', null, global);
goog.exportSymbol('proto.bosdyn.api.DeleteDataPagesRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.DeleteDataPagesResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.DeletePageStatus', null, global);
goog.exportSymbol('proto.bosdyn.api.DeletePageStatus.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.EventSpec', null, global);
goog.exportSymbol('proto.bosdyn.api.EventsComments', null, global);
goog.exportSymbol('proto.bosdyn.api.EventsCommentsSpec', null, global);
goog.exportSymbol('proto.bosdyn.api.GetDataBufferStatusRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.GetDataBufferStatusResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.GetDataIndexRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.GetDataIndexResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.GetDataPagesRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.GetDataPagesResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.GetEventsCommentsRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.GetEventsCommentsResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.GrpcPages', null, global);
goog.exportSymbol('proto.bosdyn.api.GrpcSpec', null, global);
goog.exportSymbol('proto.bosdyn.api.PageInfo', null, global);
goog.exportSymbol('proto.bosdyn.api.PageInfo.Compression', null, global);
goog.exportSymbol('proto.bosdyn.api.PageInfo.PageFormat', null, global);
goog.exportSymbol('proto.bosdyn.api.PagesAndTimestamp', 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.GrpcSpec = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GrpcSpec, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GrpcSpec.displayName = 'proto.bosdyn.api.GrpcSpec';
}
/**
* 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.BlobSpec = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.BlobSpec, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.BlobSpec.displayName = 'proto.bosdyn.api.BlobSpec';
}
/**
* 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.EventSpec = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.EventSpec, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.EventSpec.displayName = 'proto.bosdyn.api.EventSpec';
}
/**
* 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.PageInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.PageInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.PageInfo.displayName = 'proto.bosdyn.api.PageInfo';
}
/**
* 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.GrpcPages = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.GrpcPages.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.GrpcPages, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GrpcPages.displayName = 'proto.bosdyn.api.GrpcPages';
}
/**
* 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.BlobPage = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.BlobPage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.BlobPage.displayName = 'proto.bosdyn.api.BlobPage';
}
/**
* 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.BlobPages = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.BlobPages.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.BlobPages, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.BlobPages.displayName = 'proto.bosdyn.api.BlobPages';
}
/**
* 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.PagesAndTimestamp = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.PagesAndTimestamp.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.PagesAndTimestamp, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.PagesAndTimestamp.displayName = 'proto.bosdyn.api.PagesAndTimestamp';
}
/**
* 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.DataQuery = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.DataQuery.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.DataQuery, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DataQuery.displayName = 'proto.bosdyn.api.DataQuery';
}
/**
* 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.DataIndex = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.DataIndex.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.DataIndex, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DataIndex.displayName = 'proto.bosdyn.api.DataIndex';
}
/**
* 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.EventsCommentsSpec = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.EventsCommentsSpec.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.EventsCommentsSpec, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.EventsCommentsSpec.displayName = 'proto.bosdyn.api.EventsCommentsSpec';
}
/**
* 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.EventsComments = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.EventsComments.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.EventsComments, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.EventsComments.displayName = 'proto.bosdyn.api.EventsComments';
}
/**
* 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.DataBufferStatus = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.DataBufferStatus.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.DataBufferStatus, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DataBufferStatus.displayName = 'proto.bosdyn.api.DataBufferStatus';
}
/**
* 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.GetDataIndexResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GetDataIndexResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetDataIndexResponse.displayName = 'proto.bosdyn.api.GetDataIndexResponse';
}
/**
* 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.GetDataIndexRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GetDataIndexRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetDataIndexRequest.displayName = 'proto.bosdyn.api.GetDataIndexRequest';
}
/**
* 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.GetEventsCommentsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GetEventsCommentsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetEventsCommentsRequest.displayName = 'proto.bosdyn.api.GetEventsCommentsRequest';
}
/**
* 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.GetEventsCommentsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GetEventsCommentsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetEventsCommentsResponse.displayName = 'proto.bosdyn.api.GetEventsCommentsResponse';
}
/**
* 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.GetDataBufferStatusRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GetDataBufferStatusRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetDataBufferStatusRequest.displayName = 'proto.bosdyn.api.GetDataBufferStatusRequest';
}
/**
* 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.GetDataBufferStatusResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GetDataBufferStatusResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetDataBufferStatusResponse.displayName = 'proto.bosdyn.api.GetDataBufferStatusResponse';
}
/**
* 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.GetDataPagesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.GetDataPagesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetDataPagesRequest.displayName = 'proto.bosdyn.api.GetDataPagesRequest';
}
/**
* 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.GetDataPagesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.GetDataPagesResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.GetDataPagesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.GetDataPagesResponse.displayName = 'proto.bosdyn.api.GetDataPagesResponse';
}
/**
* 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.DeleteDataPagesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.DeleteDataPagesRequest.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.DeleteDataPagesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DeleteDataPagesRequest.displayName = 'proto.bosdyn.api.DeleteDataPagesRequest';
}
/**
* 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.DeletePageStatus = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DeletePageStatus, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DeletePageStatus.displayName = 'proto.bosdyn.api.DeletePageStatus';
}
/**
* 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.DeleteDataPagesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.DeleteDataPagesResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.DeleteDataPagesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DeleteDataPagesResponse.displayName = 'proto.bosdyn.api.DeleteDataPagesResponse';
}
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.GrpcSpec.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GrpcSpec.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.GrpcSpec} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GrpcSpec.toObject = function(includeInstance, msg) {
var f, obj = {
serviceName: jspb.Message.getFieldWithDefault(msg, 1, "")
};
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.GrpcSpec}
*/
proto.bosdyn.api.GrpcSpec.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GrpcSpec;
return proto.bosdyn.api.GrpcSpec.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GrpcSpec} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GrpcSpec}
*/
proto.bosdyn.api.GrpcSpec.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setServiceName(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GrpcSpec.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GrpcSpec.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.GrpcSpec} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GrpcSpec.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getServiceName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string service_name = 1;
* @return {string}
*/
proto.bosdyn.api.GrpcSpec.prototype.getServiceName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.GrpcSpec} returns this
*/
proto.bosdyn.api.GrpcSpec.prototype.setServiceName = function(value) {
return jspb.Message.setProto3StringField(this, 1, 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.BlobSpec.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.BlobSpec.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.BlobSpec} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.BlobSpec.toObject = function(includeInstance, msg) {
var f, obj = {
source: jspb.Message.getFieldWithDefault(msg, 1, ""),
messageType: jspb.Message.getFieldWithDefault(msg, 2, ""),
channel: jspb.Message.getFieldWithDefault(msg, 3, ""),
channelGlob: 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.BlobSpec}
*/
proto.bosdyn.api.BlobSpec.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.BlobSpec;
return proto.bosdyn.api.BlobSpec.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.BlobSpec} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.BlobSpec}
*/
proto.bosdyn.api.BlobSpec.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setSource(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setMessageType(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setChannel(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setChannelGlob(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.BlobSpec.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.BlobSpec.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.BlobSpec} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.BlobSpec.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSource();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getMessageType();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getChannel();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getChannelGlob();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};
/**
* optional string source = 1;
* @return {string}
*/
proto.bosdyn.api.BlobSpec.prototype.getSource = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.BlobSpec} returns this
*/
proto.bosdyn.api.BlobSpec.prototype.setSource = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string message_type = 2;
* @return {string}
*/
proto.bosdyn.api.BlobSpec.prototype.getMessageType = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.BlobSpec} returns this
*/
proto.bosdyn.api.BlobSpec.prototype.setMessageType = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string channel = 3;
* @return {string}
*/
proto.bosdyn.api.BlobSpec.prototype.getChannel = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.BlobSpec} returns this
*/
proto.bosdyn.api.BlobSpec.prototype.setChannel = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string channel_glob = 4;
* @return {string}
*/
proto.bosdyn.api.BlobSpec.prototype.getChannelGlob = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.BlobSpec} returns this
*/
proto.bosdyn.api.BlobSpec.prototype.setChannelGlob = 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.EventSpec.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.EventSpec.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.EventSpec} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EventSpec.toObject = function(includeInstance, msg) {
var f, obj = {
source: jspb.Message.getFieldWithDefault(msg, 1, ""),
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
level: (f = msg.getLevel()) && google_protobuf_wrappers_pb.Int32Value.toObject(includeInstance, f),
logPreserveHint: jspb.Message.getFieldWithDefault(msg, 4, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.EventSpec}
*/
proto.bosdyn.api.EventSpec.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.EventSpec;
return proto.bosdyn.api.EventSpec.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.EventSpec} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.EventSpec}
*/
proto.bosdyn.api.EventSpec.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setSource(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setType(value);
break;
case 3:
var value = new google_protobuf_wrappers_pb.Int32Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int32Value.deserializeBinaryFromReader);
msg.setLevel(value);
break;
case 4:
var value = /** @type {!proto.bosdyn.api.Event.LogPreserveHint} */ (reader.readEnum());
msg.setLogPreserveHint(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.EventSpec.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.EventSpec.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.EventSpec} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EventSpec.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSource();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getType();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getLevel();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_wrappers_pb.Int32Value.serializeBinaryToWriter
);
}
f = message.getLogPreserveHint();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
};
/**
* optional string source = 1;
* @return {string}
*/
proto.bosdyn.api.EventSpec.prototype.getSource = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.EventSpec} returns this
*/
proto.bosdyn.api.EventSpec.prototype.setSource = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string type = 2;
* @return {string}
*/
proto.bosdyn.api.EventSpec.prototype.getType = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.EventSpec} returns this
*/
proto.bosdyn.api.EventSpec.prototype.setType = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional google.protobuf.Int32Value level = 3;
* @return {?proto.google.protobuf.Int32Value}
*/
proto.bosdyn.api.EventSpec.prototype.getLevel = function() {
return /** @type{?proto.google.protobuf.Int32Value} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int32Value, 3));
};
/**
* @param {?proto.google.protobuf.Int32Value|undefined} value
* @return {!proto.bosdyn.api.EventSpec} returns this
*/
proto.bosdyn.api.EventSpec.prototype.setLevel = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.EventSpec} returns this
*/
proto.bosdyn.api.EventSpec.prototype.clearLevel = function() {
return this.setLevel(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.EventSpec.prototype.hasLevel = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional Event.LogPreserveHint log_preserve_hint = 4;
* @return {!proto.bosdyn.api.Event.LogPreserveHint}
*/
proto.bosdyn.api.EventSpec.prototype.getLogPreserveHint = function() {
return /** @type {!proto.bosdyn.api.Event.LogPreserveHint} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {!proto.bosdyn.api.Event.LogPreserveHint} value
* @return {!proto.bosdyn.api.EventSpec} returns this
*/
proto.bosdyn.api.EventSpec.prototype.setLogPreserveHint = function(value) {
return jspb.Message.setProto3EnumField(this, 4, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.PageInfo.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.PageInfo.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.PageInfo} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.PageInfo.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
path: jspb.Message.getFieldWithDefault(msg, 2, ""),
source: jspb.Message.getFieldWithDefault(msg, 3, ""),
timeRange: (f = msg.getTimeRange()) && bosdyn_api_time_range_pb.TimeRange.toObject(includeInstance, f),
numTicks: jspb.Message.getFieldWithDefault(msg, 5, 0),
totalBytes: jspb.Message.getFieldWithDefault(msg, 6, 0),
format: jspb.Message.getFieldWithDefault(msg, 7, 0),
compression: jspb.Message.getFieldWithDefault(msg, 8, 0),
isOpen: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
isDownloaded: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
deletedTimestamp: (f = msg.getDeletedTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
downloadStartedTimestamp: (f = msg.getDownloadStartedTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
requestPreserve: jspb.Message.getBooleanFieldWithDefault(msg, 13, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.PageInfo}
*/
proto.bosdyn.api.PageInfo.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.PageInfo;
return proto.bosdyn.api.PageInfo.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.PageInfo} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.PageInfo}
*/
proto.bosdyn.api.PageInfo.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setPath(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setSource(value);
break;
case 4:
var value = new bosdyn_api_time_range_pb.TimeRange;
reader.readMessage(value,bosdyn_api_time_range_pb.TimeRange.deserializeBinaryFromReader);
msg.setTimeRange(value);
break;
case 5:
var value = /** @type {number} */ (reader.readInt64());
msg.setNumTicks(value);
break;
case 6:
var value = /** @type {number} */ (reader.readInt64());
msg.setTotalBytes(value);
break;
case 7:
var value = /** @type {!proto.bosdyn.api.PageInfo.PageFormat} */ (reader.readEnum());
msg.setFormat(value);
break;
case 8:
var value = /** @type {!proto.bosdyn.api.PageInfo.Compression} */ (reader.readEnum());
msg.setCompression(value);
break;
case 9:
var value = /** @type {boolean} */ (reader.readBool());
msg.setIsOpen(value);
break;
case 10:
var value = /** @type {boolean} */ (reader.readBool());
msg.setIsDownloaded(value);
break;
case 11:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setDeletedTimestamp(value);
break;
case 12:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setDownloadStartedTimestamp(value);
break;
case 13:
var value = /** @type {boolean} */ (reader.readBool());
msg.setRequestPreserve(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.PageInfo.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.PageInfo.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.PageInfo} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.PageInfo.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getPath();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getSource();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getTimeRange();
if (f != null) {
writer.writeMessage(
4,
f,
bosdyn_api_time_range_pb.TimeRange.serializeBinaryToWriter
);
}
f = message.getNumTicks();
if (f !== 0) {
writer.writeInt64(
5,
f
);
}
f = message.getTotalBytes();
if (f !== 0) {
writer.writeInt64(
6,
f
);
}
f = message.getFormat();
if (f !== 0.0) {
writer.writeEnum(
7,
f
);
}
f = message.getCompression();
if (f !== 0.0) {
writer.writeEnum(
8,
f
);
}
f = message.getIsOpen();
if (f) {
writer.writeBool(
9,
f
);
}
f = message.getIsDownloaded();
if (f) {
writer.writeBool(
10,
f
);
}
f = message.getDeletedTimestamp();
if (f != null) {
writer.writeMessage(
11,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getDownloadStartedTimestamp();
if (f != null) {
writer.writeMessage(
12,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getRequestPreserve();
if (f) {
writer.writeBool(
13,
f
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.PageInfo.PageFormat = {
FORMAT_UNKNOWN: 0,
FORMAT_BDDF_FILE: 1
};
/**
* @enum {number}
*/
proto.bosdyn.api.PageInfo.Compression = {
COMPRESSION_UNKNOWN: 0,
COMPRESSION_NONE: 1,
COMPRESSION_GZIP: 2,
COMPRESSION_ZSTD: 3
};
/**
* optional string id = 1;
* @return {string}
*/
proto.bosdyn.api.PageInfo.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string path = 2;
* @return {string}
*/
proto.bosdyn.api.PageInfo.prototype.getPath = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setPath = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string source = 3;
* @return {string}
*/
proto.bosdyn.api.PageInfo.prototype.getSource = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setSource = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional TimeRange time_range = 4;
* @return {?proto.bosdyn.api.TimeRange}
*/
proto.bosdyn.api.PageInfo.prototype.getTimeRange = function() {
return /** @type{?proto.bosdyn.api.TimeRange} */ (
jspb.Message.getWrapperField(this, bosdyn_api_time_range_pb.TimeRange, 4));
};
/**
* @param {?proto.bosdyn.api.TimeRange|undefined} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setTimeRange = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.clearTimeRange = function() {
return this.setTimeRange(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.PageInfo.prototype.hasTimeRange = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional int64 num_ticks = 5;
* @return {number}
*/
proto.bosdyn.api.PageInfo.prototype.getNumTicks = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setNumTicks = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
/**
* optional int64 total_bytes = 6;
* @return {number}
*/
proto.bosdyn.api.PageInfo.prototype.getTotalBytes = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setTotalBytes = function(value) {
return jspb.Message.setProto3IntField(this, 6, value);
};
/**
* optional PageFormat format = 7;
* @return {!proto.bosdyn.api.PageInfo.PageFormat}
*/
proto.bosdyn.api.PageInfo.prototype.getFormat = function() {
return /** @type {!proto.bosdyn.api.PageInfo.PageFormat} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/**
* @param {!proto.bosdyn.api.PageInfo.PageFormat} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setFormat = function(value) {
return jspb.Message.setProto3EnumField(this, 7, value);
};
/**
* optional Compression compression = 8;
* @return {!proto.bosdyn.api.PageInfo.Compression}
*/
proto.bosdyn.api.PageInfo.prototype.getCompression = function() {
return /** @type {!proto.bosdyn.api.PageInfo.Compression} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
};
/**
* @param {!proto.bosdyn.api.PageInfo.Compression} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setCompression = function(value) {
return jspb.Message.setProto3EnumField(this, 8, value);
};
/**
* optional bool is_open = 9;
* @return {boolean}
*/
proto.bosdyn.api.PageInfo.prototype.getIsOpen = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setIsOpen = function(value) {
return jspb.Message.setProto3BooleanField(this, 9, value);
};
/**
* optional bool is_downloaded = 10;
* @return {boolean}
*/
proto.bosdyn.api.PageInfo.prototype.getIsDownloaded = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setIsDownloaded = function(value) {
return jspb.Message.setProto3BooleanField(this, 10, value);
};
/**
* optional google.protobuf.Timestamp deleted_timestamp = 11;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.bosdyn.api.PageInfo.prototype.getDeletedTimestamp = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setDeletedTimestamp = function(value) {
return jspb.Message.setWrapperField(this, 11, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.clearDeletedTimestamp = function() {
return this.setDeletedTimestamp(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.PageInfo.prototype.hasDeletedTimestamp = function() {
return jspb.Message.getField(this, 11) != null;
};
/**
* optional google.protobuf.Timestamp download_started_timestamp = 12;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.bosdyn.api.PageInfo.prototype.getDownloadStartedTimestamp = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setDownloadStartedTimestamp = function(value) {
return jspb.Message.setWrapperField(this, 12, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.clearDownloadStartedTimestamp = function() {
return this.setDownloadStartedTimestamp(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.PageInfo.prototype.hasDownloadStartedTimestamp = function() {
return jspb.Message.getField(this, 12) != null;
};
/**
* optional bool request_preserve = 13;
* @return {boolean}
*/
proto.bosdyn.api.PageInfo.prototype.getRequestPreserve = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.PageInfo} returns this
*/
proto.bosdyn.api.PageInfo.prototype.setRequestPreserve = function(value) {
return jspb.Message.setProto3BooleanField(this, 13, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.GrpcPages.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.GrpcPages.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GrpcPages.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.GrpcPages} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GrpcPages.toObject = function(includeInstance, msg) {
var f, obj = {
timeRange: (f = msg.getTimeRange()) && bosdyn_api_time_range_pb.TimeRange.toObject(includeInstance, f),
spec: (f = msg.getSpec()) && proto.bosdyn.api.GrpcSpec.toObject(includeInstance, f),
pagesList: jspb.Message.toObjectList(msg.getPagesList(),
proto.bosdyn.api.PageInfo.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.GrpcPages}
*/
proto.bosdyn.api.GrpcPages.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GrpcPages;
return proto.bosdyn.api.GrpcPages.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GrpcPages} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GrpcPages}
*/
proto.bosdyn.api.GrpcPages.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_time_range_pb.TimeRange;
reader.readMessage(value,bosdyn_api_time_range_pb.TimeRange.deserializeBinaryFromReader);
msg.setTimeRange(value);
break;
case 2:
var value = new proto.bosdyn.api.GrpcSpec;
reader.readMessage(value,proto.bosdyn.api.GrpcSpec.deserializeBinaryFromReader);
msg.setSpec(value);
break;
case 3:
var value = new proto.bosdyn.api.PageInfo;
reader.readMessage(value,proto.bosdyn.api.PageInfo.deserializeBinaryFromReader);
msg.addPages(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GrpcPages.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GrpcPages.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.GrpcPages} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GrpcPages.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTimeRange();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_time_range_pb.TimeRange.serializeBinaryToWriter
);
}
f = message.getSpec();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.GrpcSpec.serializeBinaryToWriter
);
}
f = message.getPagesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.bosdyn.api.PageInfo.serializeBinaryToWriter
);
}
};
/**
* optional TimeRange time_range = 1;
* @return {?proto.bosdyn.api.TimeRange}
*/
proto.bosdyn.api.GrpcPages.prototype.getTimeRange = function() {
return /** @type{?proto.bosdyn.api.TimeRange} */ (
jspb.Message.getWrapperField(this, bosdyn_api_time_range_pb.TimeRange, 1));
};
/**
* @param {?proto.bosdyn.api.TimeRange|undefined} value
* @return {!proto.bosdyn.api.GrpcPages} returns this
*/
proto.bosdyn.api.GrpcPages.prototype.setTimeRange = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GrpcPages} returns this
*/
proto.bosdyn.api.GrpcPages.prototype.clearTimeRange = function() {
return this.setTimeRange(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GrpcPages.prototype.hasTimeRange = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional GrpcSpec spec = 2;
* @return {?proto.bosdyn.api.GrpcSpec}
*/
proto.bosdyn.api.GrpcPages.prototype.getSpec = function() {
return /** @type{?proto.bosdyn.api.GrpcSpec} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.GrpcSpec, 2));
};
/**
* @param {?proto.bosdyn.api.GrpcSpec|undefined} value
* @return {!proto.bosdyn.api.GrpcPages} returns this
*/
proto.bosdyn.api.GrpcPages.prototype.setSpec = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GrpcPages} returns this
*/
proto.bosdyn.api.GrpcPages.prototype.clearSpec = function() {
return this.setSpec(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GrpcPages.prototype.hasSpec = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* repeated PageInfo pages = 3;
* @return {!Array<!proto.bosdyn.api.PageInfo>}
*/
proto.bosdyn.api.GrpcPages.prototype.getPagesList = function() {
return /** @type{!Array<!proto.bosdyn.api.PageInfo>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.PageInfo, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.PageInfo>} value
* @return {!proto.bosdyn.api.GrpcPages} returns this
*/
proto.bosdyn.api.GrpcPages.prototype.setPagesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.PageInfo=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.PageInfo}
*/
proto.bosdyn.api.GrpcPages.prototype.addPages = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.PageInfo, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.GrpcPages} returns this
*/
proto.bosdyn.api.GrpcPages.prototype.clearPagesList = function() {
return this.setPagesList([]);
};
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.BlobPage.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.BlobPage.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.BlobPage} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.BlobPage.toObject = function(includeInstance, msg) {
var f, obj = {
spec: (f = msg.getSpec()) && proto.bosdyn.api.BlobSpec.toObject(includeInstance, f),
page: (f = msg.getPage()) && proto.bosdyn.api.PageInfo.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.BlobPage}
*/
proto.bosdyn.api.BlobPage.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.BlobPage;
return proto.bosdyn.api.BlobPage.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.BlobPage} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.BlobPage}
*/
proto.bosdyn.api.BlobPage.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.BlobSpec;
reader.readMessage(value,proto.bosdyn.api.BlobSpec.deserializeBinaryFromReader);
msg.setSpec(value);
break;
case 2:
var value = new proto.bosdyn.api.PageInfo;
reader.readMessage(value,proto.bosdyn.api.PageInfo.deserializeBinaryFromReader);
msg.setPage(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.BlobPage.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.BlobPage.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.BlobPage} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.BlobPage.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSpec();
if (f != null) {
writer.writeMessage(
1,
f,
proto.bosdyn.api.BlobSpec.serializeBinaryToWriter
);
}
f = message.getPage();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.PageInfo.serializeBinaryToWriter
);
}
};
/**
* optional BlobSpec spec = 1;
* @return {?proto.bosdyn.api.BlobSpec}
*/
proto.bosdyn.api.BlobPage.prototype.getSpec = function() {
return /** @type{?proto.bosdyn.api.BlobSpec} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.BlobSpec, 1));
};
/**
* @param {?proto.bosdyn.api.BlobSpec|undefined} value
* @return {!proto.bosdyn.api.BlobPage} returns this
*/
proto.bosdyn.api.BlobPage.prototype.setSpec = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.BlobPage} returns this
*/
proto.bosdyn.api.BlobPage.prototype.clearSpec = function() {
return this.setSpec(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.BlobPage.prototype.hasSpec = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional PageInfo page = 2;
* @return {?proto.bosdyn.api.PageInfo}
*/
proto.bosdyn.api.BlobPage.prototype.getPage = function() {
return /** @type{?proto.bosdyn.api.PageInfo} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.PageInfo, 2));
};
/**
* @param {?proto.bosdyn.api.PageInfo|undefined} value
* @return {!proto.bosdyn.api.BlobPage} returns this
*/
proto.bosdyn.api.BlobPage.prototype.setPage = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.BlobPage} returns this
*/
proto.bosdyn.api.BlobPage.prototype.clearPage = function() {
return this.setPage(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.BlobPage.prototype.hasPage = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.BlobPages.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.BlobPages.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.BlobPages.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.BlobPages} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.BlobPages.toObject = function(includeInstance, msg) {
var f, obj = {
timeRange: (f = msg.getTimeRange()) && bosdyn_api_time_range_pb.TimeRange.toObject(includeInstance, f),
pagesList: jspb.Message.toObjectList(msg.getPagesList(),
proto.bosdyn.api.BlobPage.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.BlobPages}
*/
proto.bosdyn.api.BlobPages.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.BlobPages;
return proto.bosdyn.api.BlobPages.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.BlobPages} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.BlobPages}
*/
proto.bosdyn.api.BlobPages.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_time_range_pb.TimeRange;
reader.readMessage(value,bosdyn_api_time_range_pb.TimeRange.deserializeBinaryFromReader);
msg.setTimeRange(value);
break;
case 3:
var value = new proto.bosdyn.api.BlobPage;
reader.readMessage(value,proto.bosdyn.api.BlobPage.deserializeBinaryFromReader);
msg.addPages(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.BlobPages.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.BlobPages.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.BlobPages} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.BlobPages.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTimeRange();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_time_range_pb.TimeRange.serializeBinaryToWriter
);
}
f = message.getPagesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.bosdyn.api.BlobPage.serializeBinaryToWriter
);
}
};
/**
* optional TimeRange time_range = 1;
* @return {?proto.bosdyn.api.TimeRange}
*/
proto.bosdyn.api.BlobPages.prototype.getTimeRange = function() {
return /** @type{?proto.bosdyn.api.TimeRange} */ (
jspb.Message.getWrapperField(this, bosdyn_api_time_range_pb.TimeRange, 1));
};
/**
* @param {?proto.bosdyn.api.TimeRange|undefined} value
* @return {!proto.bosdyn.api.BlobPages} returns this
*/
proto.bosdyn.api.BlobPages.prototype.setTimeRange = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.BlobPages} returns this
*/
proto.bosdyn.api.BlobPages.prototype.clearTimeRange = function() {
return this.setTimeRange(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.BlobPages.prototype.hasTimeRange = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated BlobPage pages = 3;
* @return {!Array<!proto.bosdyn.api.BlobPage>}
*/
proto.bosdyn.api.BlobPages.prototype.getPagesList = function() {
return /** @type{!Array<!proto.bosdyn.api.BlobPage>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.BlobPage, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.BlobPage>} value
* @return {!proto.bosdyn.api.BlobPages} returns this
*/
proto.bosdyn.api.BlobPages.prototype.setPagesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.BlobPage=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.BlobPage}
*/
proto.bosdyn.api.BlobPages.prototype.addPages = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.BlobPage, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.BlobPages} returns this
*/
proto.bosdyn.api.BlobPages.prototype.clearPagesList = function() {
return this.setPagesList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.PagesAndTimestamp.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.PagesAndTimestamp.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.PagesAndTimestamp.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.PagesAndTimestamp} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.PagesAndTimestamp.toObject = function(includeInstance, msg) {
var f, obj = {
timeRange: (f = msg.getTimeRange()) && bosdyn_api_time_range_pb.TimeRange.toObject(includeInstance, f),
pagesList: jspb.Message.toObjectList(msg.getPagesList(),
proto.bosdyn.api.PageInfo.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.PagesAndTimestamp}
*/
proto.bosdyn.api.PagesAndTimestamp.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.PagesAndTimestamp;
return proto.bosdyn.api.PagesAndTimestamp.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.PagesAndTimestamp} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.PagesAndTimestamp}
*/
proto.bosdyn.api.PagesAndTimestamp.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_time_range_pb.TimeRange;
reader.readMessage(value,bosdyn_api_time_range_pb.TimeRange.deserializeBinaryFromReader);
msg.setTimeRange(value);
break;
case 2:
var value = new proto.bosdyn.api.PageInfo;
reader.readMessage(value,proto.bosdyn.api.PageInfo.deserializeBinaryFromReader);
msg.addPages(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.PagesAndTimestamp.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.PagesAndTimestamp.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.PagesAndTimestamp} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.PagesAndTimestamp.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTimeRange();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_time_range_pb.TimeRange.serializeBinaryToWriter
);
}
f = message.getPagesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.bosdyn.api.PageInfo.serializeBinaryToWriter
);
}
};
/**
* optional TimeRange time_range = 1;
* @return {?proto.bosdyn.api.TimeRange}
*/
proto.bosdyn.api.PagesAndTimestamp.prototype.getTimeRange = function() {
return /** @type{?proto.bosdyn.api.TimeRange} */ (
jspb.Message.getWrapperField(this, bosdyn_api_time_range_pb.TimeRange, 1));
};
/**
* @param {?proto.bosdyn.api.TimeRange|undefined} value
* @return {!proto.bosdyn.api.PagesAndTimestamp} returns this
*/
proto.bosdyn.api.PagesAndTimestamp.prototype.setTimeRange = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.PagesAndTimestamp} returns this
*/
proto.bosdyn.api.PagesAndTimestamp.prototype.clearTimeRange = function() {
return this.setTimeRange(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.PagesAndTimestamp.prototype.hasTimeRange = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated PageInfo pages = 2;
* @return {!Array<!proto.bosdyn.api.PageInfo>}
*/
proto.bosdyn.api.PagesAndTimestamp.prototype.getPagesList = function() {
return /** @type{!Array<!proto.bosdyn.api.PageInfo>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.PageInfo, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.PageInfo>} value
* @return {!proto.bosdyn.api.PagesAndTimestamp} returns this
*/
proto.bosdyn.api.PagesAndTimestamp.prototype.setPagesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.PageInfo=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.PageInfo}
*/
proto.bosdyn.api.PagesAndTimestamp.prototype.addPages = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.PageInfo, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.PagesAndTimestamp} returns this
*/
proto.bosdyn.api.PagesAndTimestamp.prototype.clearPagesList = function() {
return this.setPagesList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.DataQuery.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.DataQuery.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.DataQuery.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.DataQuery} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DataQuery.toObject = function(includeInstance, msg) {
var f, obj = {
timeRange: (f = msg.getTimeRange()) && bosdyn_api_time_range_pb.TimeRange.toObject(includeInstance, f),
blobsList: jspb.Message.toObjectList(msg.getBlobsList(),
proto.bosdyn.api.BlobSpec.toObject, includeInstance),
textMessages: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
events: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
comments: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.DataQuery}
*/
proto.bosdyn.api.DataQuery.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.DataQuery;
return proto.bosdyn.api.DataQuery.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.DataQuery} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.DataQuery}
*/
proto.bosdyn.api.DataQuery.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_time_range_pb.TimeRange;
reader.readMessage(value,bosdyn_api_time_range_pb.TimeRange.deserializeBinaryFromReader);
msg.setTimeRange(value);
break;
case 2:
var value = new proto.bosdyn.api.BlobSpec;
reader.readMessage(value,proto.bosdyn.api.BlobSpec.deserializeBinaryFromReader);
msg.addBlobs(value);
break;
case 3:
var value = /** @type {boolean} */ (reader.readBool());
msg.setTextMessages(value);
break;
case 4:
var value = /** @type {boolean} */ (reader.readBool());
msg.setEvents(value);
break;
case 6:
var value = /** @type {boolean} */ (reader.readBool());
msg.setComments(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.DataQuery.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.DataQuery.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.DataQuery} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DataQuery.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTimeRange();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_time_range_pb.TimeRange.serializeBinaryToWriter
);
}
f = message.getBlobsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.bosdyn.api.BlobSpec.serializeBinaryToWriter
);
}
f = message.getTextMessages();
if (f) {
writer.writeBool(
3,
f
);
}
f = message.getEvents();
if (f) {
writer.writeBool(
4,
f
);
}
f = message.getComments();
if (f) {
writer.writeBool(
6,
f
);
}
};
/**
* optional TimeRange time_range = 1;
* @return {?proto.bosdyn.api.TimeRange}
*/
proto.bosdyn.api.DataQuery.prototype.getTimeRange = function() {
return /** @type{?proto.bosdyn.api.TimeRange} */ (
jspb.Message.getWrapperField(this, bosdyn_api_time_range_pb.TimeRange, 1));
};
/**
* @param {?proto.bosdyn.api.TimeRange|undefined} value
* @return {!proto.bosdyn.api.DataQuery} returns this
*/
proto.bosdyn.api.DataQuery.prototype.setTimeRange = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DataQuery} returns this
*/
proto.bosdyn.api.DataQuery.prototype.clearTimeRange = function() {
return this.setTimeRange(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DataQuery.prototype.hasTimeRange = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated BlobSpec blobs = 2;
* @return {!Array<!proto.bosdyn.api.BlobSpec>}
*/
proto.bosdyn.api.DataQuery.prototype.getBlobsList = function() {
return /** @type{!Array<!proto.bosdyn.api.BlobSpec>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.BlobSpec, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.BlobSpec>} value
* @return {!proto.bosdyn.api.DataQuery} returns this
*/
proto.bosdyn.api.DataQuery.prototype.setBlobsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.BlobSpec=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.BlobSpec}
*/
proto.bosdyn.api.DataQuery.prototype.addBlobs = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.BlobSpec, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.DataQuery} returns this
*/
proto.bosdyn.api.DataQuery.prototype.clearBlobsList = function() {
return this.setBlobsList([]);
};
/**
* optional bool text_messages = 3;
* @return {boolean}
*/
proto.bosdyn.api.DataQuery.prototype.getTextMessages = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.DataQuery} returns this
*/
proto.bosdyn.api.DataQuery.prototype.setTextMessages = function(value) {
return jspb.Message.setProto3BooleanField(this, 3, value);
};
/**
* optional bool events = 4;
* @return {boolean}
*/
proto.bosdyn.api.DataQuery.prototype.getEvents = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.DataQuery} returns this
*/
proto.bosdyn.api.DataQuery.prototype.setEvents = function(value) {
return jspb.Message.setProto3BooleanField(this, 4, value);
};
/**
* optional bool comments = 6;
* @return {boolean}
*/
proto.bosdyn.api.DataQuery.prototype.getComments = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.DataQuery} returns this
*/
proto.bosdyn.api.DataQuery.prototype.setComments = function(value) {
return jspb.Message.setProto3BooleanField(this, 6, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.DataIndex.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.DataIndex.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.DataIndex.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.DataIndex} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DataIndex.toObject = function(includeInstance, msg) {
var f, obj = {
timeRange: (f = msg.getTimeRange()) && bosdyn_api_time_range_pb.TimeRange.toObject(includeInstance, f),
blobsList: jspb.Message.toObjectList(msg.getBlobsList(),
proto.bosdyn.api.BlobPages.toObject, includeInstance),
textMessages: (f = msg.getTextMessages()) && proto.bosdyn.api.PagesAndTimestamp.toObject(includeInstance, f),
events: (f = msg.getEvents()) && proto.bosdyn.api.PagesAndTimestamp.toObject(includeInstance, f),
comments: (f = msg.getComments()) && proto.bosdyn.api.PagesAndTimestamp.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.DataIndex}
*/
proto.bosdyn.api.DataIndex.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.DataIndex;
return proto.bosdyn.api.DataIndex.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.DataIndex} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.DataIndex}
*/
proto.bosdyn.api.DataIndex.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_time_range_pb.TimeRange;
reader.readMessage(value,bosdyn_api_time_range_pb.TimeRange.deserializeBinaryFromReader);
msg.setTimeRange(value);
break;
case 2:
var value = new proto.bosdyn.api.BlobPages;
reader.readMessage(value,proto.bosdyn.api.BlobPages.deserializeBinaryFromReader);
msg.addBlobs(value);
break;
case 3:
var value = new proto.bosdyn.api.PagesAndTimestamp;
reader.readMessage(value,proto.bosdyn.api.PagesAndTimestamp.deserializeBinaryFromReader);
msg.setTextMessages(value);
break;
case 4:
var value = new proto.bosdyn.api.PagesAndTimestamp;
reader.readMessage(value,proto.bosdyn.api.PagesAndTimestamp.deserializeBinaryFromReader);
msg.setEvents(value);
break;
case 6:
var value = new proto.bosdyn.api.PagesAndTimestamp;
reader.readMessage(value,proto.bosdyn.api.PagesAndTimestamp.deserializeBinaryFromReader);
msg.setComments(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.DataIndex.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.DataIndex.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.DataIndex} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DataIndex.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTimeRange();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_time_range_pb.TimeRange.serializeBinaryToWriter
);
}
f = message.getBlobsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.bosdyn.api.BlobPages.serializeBinaryToWriter
);
}
f = message.getTextMessages();
if (f != null) {
writer.writeMessage(
3,
f,
proto.bosdyn.api.PagesAndTimestamp.serializeBinaryToWriter
);
}
f = message.getEvents();
if (f != null) {
writer.writeMessage(
4,
f,
proto.bosdyn.api.PagesAndTimestamp.serializeBinaryToWriter
);
}
f = message.getComments();
if (f != null) {
writer.writeMessage(
6,
f,
proto.bosdyn.api.PagesAndTimestamp.serializeBinaryToWriter
);
}
};
/**
* optional TimeRange time_range = 1;
* @return {?proto.bosdyn.api.TimeRange}
*/
proto.bosdyn.api.DataIndex.prototype.getTimeRange = function() {
return /** @type{?proto.bosdyn.api.TimeRange} */ (
jspb.Message.getWrapperField(this, bosdyn_api_time_range_pb.TimeRange, 1));
};
/**
* @param {?proto.bosdyn.api.TimeRange|undefined} value
* @return {!proto.bosdyn.api.DataIndex} returns this
*/
proto.bosdyn.api.DataIndex.prototype.setTimeRange = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DataIndex} returns this
*/
proto.bosdyn.api.DataIndex.prototype.clearTimeRange = function() {
return this.setTimeRange(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DataIndex.prototype.hasTimeRange = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated BlobPages blobs = 2;
* @return {!Array<!proto.bosdyn.api.BlobPages>}
*/
proto.bosdyn.api.DataIndex.prototype.getBlobsList = function() {
return /** @type{!Array<!proto.bosdyn.api.BlobPages>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.BlobPages, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.BlobPages>} value
* @return {!proto.bosdyn.api.DataIndex} returns this
*/
proto.bosdyn.api.DataIndex.prototype.setBlobsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.BlobPages=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.BlobPages}
*/
proto.bosdyn.api.DataIndex.prototype.addBlobs = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.BlobPages, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.DataIndex} returns this
*/
proto.bosdyn.api.DataIndex.prototype.clearBlobsList = function() {
return this.setBlobsList([]);
};
/**
* optional PagesAndTimestamp text_messages = 3;
* @return {?proto.bosdyn.api.PagesAndTimestamp}
*/
proto.bosdyn.api.DataIndex.prototype.getTextMessages = function() {
return /** @type{?proto.bosdyn.api.PagesAndTimestamp} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.PagesAndTimestamp, 3));
};
/**
* @param {?proto.bosdyn.api.PagesAndTimestamp|undefined} value
* @return {!proto.bosdyn.api.DataIndex} returns this
*/
proto.bosdyn.api.DataIndex.prototype.setTextMessages = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DataIndex} returns this
*/
proto.bosdyn.api.DataIndex.prototype.clearTextMessages = function() {
return this.setTextMessages(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DataIndex.prototype.hasTextMessages = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional PagesAndTimestamp events = 4;
* @return {?proto.bosdyn.api.PagesAndTimestamp}
*/
proto.bosdyn.api.DataIndex.prototype.getEvents = function() {
return /** @type{?proto.bosdyn.api.PagesAndTimestamp} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.PagesAndTimestamp, 4));
};
/**
* @param {?proto.bosdyn.api.PagesAndTimestamp|undefined} value
* @return {!proto.bosdyn.api.DataIndex} returns this
*/
proto.bosdyn.api.DataIndex.prototype.setEvents = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DataIndex} returns this
*/
proto.bosdyn.api.DataIndex.prototype.clearEvents = function() {
return this.setEvents(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DataIndex.prototype.hasEvents = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional PagesAndTimestamp comments = 6;
* @return {?proto.bosdyn.api.PagesAndTimestamp}
*/
proto.bosdyn.api.DataIndex.prototype.getComments = function() {
return /** @type{?proto.bosdyn.api.PagesAndTimestamp} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.PagesAndTimestamp, 6));
};
/**
* @param {?proto.bosdyn.api.PagesAndTimestamp|undefined} value
* @return {!proto.bosdyn.api.DataIndex} returns this
*/
proto.bosdyn.api.DataIndex.prototype.setComments = function(value) {
return jspb.Message.setWrapperField(this, 6, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DataIndex} returns this
*/
proto.bosdyn.api.DataIndex.prototype.clearComments = function() {
return this.setComments(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DataIndex.prototype.hasComments = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.EventsCommentsSpec.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.EventsCommentsSpec.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.EventsCommentsSpec.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.EventsCommentsSpec} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EventsCommentsSpec.toObject = function(includeInstance, msg) {
var f, obj = {
timeRange: (f = msg.getTimeRange()) && bosdyn_api_time_range_pb.TimeRange.toObject(includeInstance, f),
eventsList: jspb.Message.toObjectList(msg.getEventsList(),
proto.bosdyn.api.EventSpec.toObject, includeInstance),
comments: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.EventsCommentsSpec}
*/
proto.bosdyn.api.EventsCommentsSpec.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.EventsCommentsSpec;
return proto.bosdyn.api.EventsCommentsSpec.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.EventsCommentsSpec} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.EventsCommentsSpec}
*/
proto.bosdyn.api.EventsCommentsSpec.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_time_range_pb.TimeRange;
reader.readMessage(value,bosdyn_api_time_range_pb.TimeRange.deserializeBinaryFromReader);
msg.setTimeRange(value);
break;
case 2:
var value = new proto.bosdyn.api.EventSpec;
reader.readMessage(value,proto.bosdyn.api.EventSpec.deserializeBinaryFromReader);
msg.addEvents(value);
break;
case 3:
var value = /** @type {boolean} */ (reader.readBool());
msg.setComments(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.EventsCommentsSpec.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.EventsCommentsSpec.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.EventsCommentsSpec} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EventsCommentsSpec.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTimeRange();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_time_range_pb.TimeRange.serializeBinaryToWriter
);
}
f = message.getEventsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.bosdyn.api.EventSpec.serializeBinaryToWriter
);
}
f = message.getComments();
if (f) {
writer.writeBool(
3,
f
);
}
};
/**
* optional TimeRange time_range = 1;
* @return {?proto.bosdyn.api.TimeRange}
*/
proto.bosdyn.api.EventsCommentsSpec.prototype.getTimeRange = function() {
return /** @type{?proto.bosdyn.api.TimeRange} */ (
jspb.Message.getWrapperField(this, bosdyn_api_time_range_pb.TimeRange, 1));
};
/**
* @param {?proto.bosdyn.api.TimeRange|undefined} value
* @return {!proto.bosdyn.api.EventsCommentsSpec} returns this
*/
proto.bosdyn.api.EventsCommentsSpec.prototype.setTimeRange = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.EventsCommentsSpec} returns this
*/
proto.bosdyn.api.EventsCommentsSpec.prototype.clearTimeRange = function() {
return this.setTimeRange(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.EventsCommentsSpec.prototype.hasTimeRange = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated EventSpec events = 2;
* @return {!Array<!proto.bosdyn.api.EventSpec>}
*/
proto.bosdyn.api.EventsCommentsSpec.prototype.getEventsList = function() {
return /** @type{!Array<!proto.bosdyn.api.EventSpec>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.EventSpec, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.EventSpec>} value
* @return {!proto.bosdyn.api.EventsCommentsSpec} returns this
*/
proto.bosdyn.api.EventsCommentsSpec.prototype.setEventsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.EventSpec=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.EventSpec}
*/
proto.bosdyn.api.EventsCommentsSpec.prototype.addEvents = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.EventSpec, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.EventsCommentsSpec} returns this
*/
proto.bosdyn.api.EventsCommentsSpec.prototype.clearEventsList = function() {
return this.setEventsList([]);
};
/**
* optional bool comments = 3;
* @return {boolean}
*/
proto.bosdyn.api.EventsCommentsSpec.prototype.getComments = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.EventsCommentsSpec} returns this
*/
proto.bosdyn.api.EventsCommentsSpec.prototype.setComments = function(value) {
return jspb.Message.setProto3BooleanField(this, 3, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.EventsComments.repeatedFields_ = [2,3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.EventsComments.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.EventsComments.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.EventsComments} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EventsComments.toObject = function(includeInstance, msg) {
var f, obj = {
timeRange: (f = msg.getTimeRange()) && bosdyn_api_time_range_pb.TimeRange.toObject(includeInstance, f),
eventsList: jspb.Message.toObjectList(msg.getEventsList(),
bosdyn_api_data_buffer_pb.Event.toObject, includeInstance),
operatorCommentsList: jspb.Message.toObjectList(msg.getOperatorCommentsList(),
bosdyn_api_data_buffer_pb.OperatorComment.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.EventsComments}
*/
proto.bosdyn.api.EventsComments.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.EventsComments;
return proto.bosdyn.api.EventsComments.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.EventsComments} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.EventsComments}
*/
proto.bosdyn.api.EventsComments.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_time_range_pb.TimeRange;
reader.readMessage(value,bosdyn_api_time_range_pb.TimeRange.deserializeBinaryFromReader);
msg.setTimeRange(value);
break;
case 2:
var value = new bosdyn_api_data_buffer_pb.Event;
reader.readMessage(value,bosdyn_api_data_buffer_pb.Event.deserializeBinaryFromReader);
msg.addEvents(value);
break;
case 3:
var value = new bosdyn_api_data_buffer_pb.OperatorComment;
reader.readMessage(value,bosdyn_api_data_buffer_pb.OperatorComment.deserializeBinaryFromReader);
msg.addOperatorComments(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.EventsComments.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.EventsComments.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.EventsComments} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.EventsComments.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTimeRange();
if (f != null) {
writer.writeMessage(
1,
f,
bosdyn_api_time_range_pb.TimeRange.serializeBinaryToWriter
);
}
f = message.getEventsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
bosdyn_api_data_buffer_pb.Event.serializeBinaryToWriter
);
}
f = message.getOperatorCommentsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
bosdyn_api_data_buffer_pb.OperatorComment.serializeBinaryToWriter
);
}
};
/**
* optional TimeRange time_range = 1;
* @return {?proto.bosdyn.api.TimeRange}
*/
proto.bosdyn.api.EventsComments.prototype.getTimeRange = function() {
return /** @type{?proto.bosdyn.api.TimeRange} */ (
jspb.Message.getWrapperField(this, bosdyn_api_time_range_pb.TimeRange, 1));
};
/**
* @param {?proto.bosdyn.api.TimeRange|undefined} value
* @return {!proto.bosdyn.api.EventsComments} returns this
*/
proto.bosdyn.api.EventsComments.prototype.setTimeRange = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.EventsComments} returns this
*/
proto.bosdyn.api.EventsComments.prototype.clearTimeRange = function() {
return this.setTimeRange(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.EventsComments.prototype.hasTimeRange = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated Event events = 2;
* @return {!Array<!proto.bosdyn.api.Event>}
*/
proto.bosdyn.api.EventsComments.prototype.getEventsList = function() {
return /** @type{!Array<!proto.bosdyn.api.Event>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_data_buffer_pb.Event, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.Event>} value
* @return {!proto.bosdyn.api.EventsComments} returns this
*/
proto.bosdyn.api.EventsComments.prototype.setEventsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.Event=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.Event}
*/
proto.bosdyn.api.EventsComments.prototype.addEvents = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.Event, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.EventsComments} returns this
*/
proto.bosdyn.api.EventsComments.prototype.clearEventsList = function() {
return this.setEventsList([]);
};
/**
* repeated OperatorComment operator_comments = 3;
* @return {!Array<!proto.bosdyn.api.OperatorComment>}
*/
proto.bosdyn.api.EventsComments.prototype.getOperatorCommentsList = function() {
return /** @type{!Array<!proto.bosdyn.api.OperatorComment>} */ (
jspb.Message.getRepeatedWrapperField(this, bosdyn_api_data_buffer_pb.OperatorComment, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.OperatorComment>} value
* @return {!proto.bosdyn.api.EventsComments} returns this
*/
proto.bosdyn.api.EventsComments.prototype.setOperatorCommentsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.OperatorComment=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.OperatorComment}
*/
proto.bosdyn.api.EventsComments.prototype.addOperatorComments = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.OperatorComment, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.EventsComments} returns this
*/
proto.bosdyn.api.EventsComments.prototype.clearOperatorCommentsList = function() {
return this.setOperatorCommentsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.DataBufferStatus.repeatedFields_ = [5];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.DataBufferStatus.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.DataBufferStatus.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.DataBufferStatus} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DataBufferStatus.toObject = function(includeInstance, msg) {
var f, obj = {
numDataBufferPages: jspb.Message.getFieldWithDefault(msg, 1, 0),
dataBufferTotalBytes: jspb.Message.getFieldWithDefault(msg, 2, 0),
numComments: jspb.Message.getFieldWithDefault(msg, 3, 0),
numEvents: jspb.Message.getFieldWithDefault(msg, 4, 0),
blobSpecsList: jspb.Message.toObjectList(msg.getBlobSpecsList(),
proto.bosdyn.api.BlobSpec.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.DataBufferStatus}
*/
proto.bosdyn.api.DataBufferStatus.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.DataBufferStatus;
return proto.bosdyn.api.DataBufferStatus.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.DataBufferStatus} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.DataBufferStatus}
*/
proto.bosdyn.api.DataBufferStatus.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setNumDataBufferPages(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt64());
msg.setDataBufferTotalBytes(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt64());
msg.setNumComments(value);
break;
case 4:
var value = /** @type {number} */ (reader.readInt64());
msg.setNumEvents(value);
break;
case 5:
var value = new proto.bosdyn.api.BlobSpec;
reader.readMessage(value,proto.bosdyn.api.BlobSpec.deserializeBinaryFromReader);
msg.addBlobSpecs(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.DataBufferStatus.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.DataBufferStatus.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.DataBufferStatus} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DataBufferStatus.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getNumDataBufferPages();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getDataBufferTotalBytes();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
f = message.getNumComments();
if (f !== 0) {
writer.writeInt64(
3,
f
);
}
f = message.getNumEvents();
if (f !== 0) {
writer.writeInt64(
4,
f
);
}
f = message.getBlobSpecsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
proto.bosdyn.api.BlobSpec.serializeBinaryToWriter
);
}
};
/**
* optional int64 num_data_buffer_pages = 1;
* @return {number}
*/
proto.bosdyn.api.DataBufferStatus.prototype.getNumDataBufferPages = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.DataBufferStatus} returns this
*/
proto.bosdyn.api.DataBufferStatus.prototype.setNumDataBufferPages = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional int64 data_buffer_total_bytes = 2;
* @return {number}
*/
proto.bosdyn.api.DataBufferStatus.prototype.getDataBufferTotalBytes = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.DataBufferStatus} returns this
*/
proto.bosdyn.api.DataBufferStatus.prototype.setDataBufferTotalBytes = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional int64 num_comments = 3;
* @return {number}
*/
proto.bosdyn.api.DataBufferStatus.prototype.getNumComments = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.DataBufferStatus} returns this
*/
proto.bosdyn.api.DataBufferStatus.prototype.setNumComments = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional int64 num_events = 4;
* @return {number}
*/
proto.bosdyn.api.DataBufferStatus.prototype.getNumEvents = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.DataBufferStatus} returns this
*/
proto.bosdyn.api.DataBufferStatus.prototype.setNumEvents = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
/**
* repeated BlobSpec blob_specs = 5;
* @return {!Array<!proto.bosdyn.api.BlobSpec>}
*/
proto.bosdyn.api.DataBufferStatus.prototype.getBlobSpecsList = function() {
return /** @type{!Array<!proto.bosdyn.api.BlobSpec>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.BlobSpec, 5));
};
/**
* @param {!Array<!proto.bosdyn.api.BlobSpec>} value
* @return {!proto.bosdyn.api.DataBufferStatus} returns this
*/
proto.bosdyn.api.DataBufferStatus.prototype.setBlobSpecsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 5, value);
};
/**
* @param {!proto.bosdyn.api.BlobSpec=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.BlobSpec}
*/
proto.bosdyn.api.DataBufferStatus.prototype.addBlobSpecs = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.bosdyn.api.BlobSpec, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.DataBufferStatus} returns this
*/
proto.bosdyn.api.DataBufferStatus.prototype.clearBlobSpecsList = function() {
return this.setBlobSpecsList([]);
};
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.GetDataIndexResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetDataIndexResponse.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.GetDataIndexResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataIndexResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
dataIndex: (f = msg.getDataIndex()) && proto.bosdyn.api.DataIndex.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.GetDataIndexResponse}
*/
proto.bosdyn.api.GetDataIndexResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetDataIndexResponse;
return proto.bosdyn.api.GetDataIndexResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetDataIndexResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetDataIndexResponse}
*/
proto.bosdyn.api.GetDataIndexResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new proto.bosdyn.api.DataIndex;
reader.readMessage(value,proto.bosdyn.api.DataIndex.deserializeBinaryFromReader);
msg.setDataIndex(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GetDataIndexResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetDataIndexResponse.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.GetDataIndexResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataIndexResponse.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.getDataIndex();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.DataIndex.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.GetDataIndexResponse.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.GetDataIndexResponse} returns this
*/
proto.bosdyn.api.GetDataIndexResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetDataIndexResponse} returns this
*/
proto.bosdyn.api.GetDataIndexResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetDataIndexResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional DataIndex data_index = 2;
* @return {?proto.bosdyn.api.DataIndex}
*/
proto.bosdyn.api.GetDataIndexResponse.prototype.getDataIndex = function() {
return /** @type{?proto.bosdyn.api.DataIndex} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.DataIndex, 2));
};
/**
* @param {?proto.bosdyn.api.DataIndex|undefined} value
* @return {!proto.bosdyn.api.GetDataIndexResponse} returns this
*/
proto.bosdyn.api.GetDataIndexResponse.prototype.setDataIndex = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetDataIndexResponse} returns this
*/
proto.bosdyn.api.GetDataIndexResponse.prototype.clearDataIndex = function() {
return this.setDataIndex(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetDataIndexResponse.prototype.hasDataIndex = 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.GetDataIndexRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetDataIndexRequest.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.GetDataIndexRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataIndexRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
dataQuery: (f = msg.getDataQuery()) && proto.bosdyn.api.DataQuery.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.GetDataIndexRequest}
*/
proto.bosdyn.api.GetDataIndexRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetDataIndexRequest;
return proto.bosdyn.api.GetDataIndexRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetDataIndexRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetDataIndexRequest}
*/
proto.bosdyn.api.GetDataIndexRequest.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.DataQuery;
reader.readMessage(value,proto.bosdyn.api.DataQuery.deserializeBinaryFromReader);
msg.setDataQuery(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GetDataIndexRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetDataIndexRequest.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.GetDataIndexRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataIndexRequest.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.getDataQuery();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.DataQuery.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.GetDataIndexRequest.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.GetDataIndexRequest} returns this
*/
proto.bosdyn.api.GetDataIndexRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetDataIndexRequest} returns this
*/
proto.bosdyn.api.GetDataIndexRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetDataIndexRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional DataQuery data_query = 2;
* @return {?proto.bosdyn.api.DataQuery}
*/
proto.bosdyn.api.GetDataIndexRequest.prototype.getDataQuery = function() {
return /** @type{?proto.bosdyn.api.DataQuery} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.DataQuery, 2));
};
/**
* @param {?proto.bosdyn.api.DataQuery|undefined} value
* @return {!proto.bosdyn.api.GetDataIndexRequest} returns this
*/
proto.bosdyn.api.GetDataIndexRequest.prototype.setDataQuery = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetDataIndexRequest} returns this
*/
proto.bosdyn.api.GetDataIndexRequest.prototype.clearDataQuery = function() {
return this.setDataQuery(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetDataIndexRequest.prototype.hasDataQuery = 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.GetEventsCommentsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetEventsCommentsRequest.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.GetEventsCommentsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEventsCommentsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
eventCommentRequest: (f = msg.getEventCommentRequest()) && proto.bosdyn.api.EventsCommentsSpec.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.GetEventsCommentsRequest}
*/
proto.bosdyn.api.GetEventsCommentsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetEventsCommentsRequest;
return proto.bosdyn.api.GetEventsCommentsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetEventsCommentsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetEventsCommentsRequest}
*/
proto.bosdyn.api.GetEventsCommentsRequest.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.EventsCommentsSpec;
reader.readMessage(value,proto.bosdyn.api.EventsCommentsSpec.deserializeBinaryFromReader);
msg.setEventCommentRequest(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GetEventsCommentsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetEventsCommentsRequest.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.GetEventsCommentsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEventsCommentsRequest.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.getEventCommentRequest();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.EventsCommentsSpec.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.GetEventsCommentsRequest.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.GetEventsCommentsRequest} returns this
*/
proto.bosdyn.api.GetEventsCommentsRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetEventsCommentsRequest} returns this
*/
proto.bosdyn.api.GetEventsCommentsRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetEventsCommentsRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional EventsCommentsSpec event_comment_request = 2;
* @return {?proto.bosdyn.api.EventsCommentsSpec}
*/
proto.bosdyn.api.GetEventsCommentsRequest.prototype.getEventCommentRequest = function() {
return /** @type{?proto.bosdyn.api.EventsCommentsSpec} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EventsCommentsSpec, 2));
};
/**
* @param {?proto.bosdyn.api.EventsCommentsSpec|undefined} value
* @return {!proto.bosdyn.api.GetEventsCommentsRequest} returns this
*/
proto.bosdyn.api.GetEventsCommentsRequest.prototype.setEventCommentRequest = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetEventsCommentsRequest} returns this
*/
proto.bosdyn.api.GetEventsCommentsRequest.prototype.clearEventCommentRequest = function() {
return this.setEventCommentRequest(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetEventsCommentsRequest.prototype.hasEventCommentRequest = 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.GetEventsCommentsResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetEventsCommentsResponse.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.GetEventsCommentsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEventsCommentsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
eventsComments: (f = msg.getEventsComments()) && proto.bosdyn.api.EventsComments.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.GetEventsCommentsResponse}
*/
proto.bosdyn.api.GetEventsCommentsResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetEventsCommentsResponse;
return proto.bosdyn.api.GetEventsCommentsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetEventsCommentsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetEventsCommentsResponse}
*/
proto.bosdyn.api.GetEventsCommentsResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new proto.bosdyn.api.EventsComments;
reader.readMessage(value,proto.bosdyn.api.EventsComments.deserializeBinaryFromReader);
msg.setEventsComments(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GetEventsCommentsResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetEventsCommentsResponse.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.GetEventsCommentsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetEventsCommentsResponse.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.getEventsComments();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.EventsComments.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.GetEventsCommentsResponse.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.GetEventsCommentsResponse} returns this
*/
proto.bosdyn.api.GetEventsCommentsResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetEventsCommentsResponse} returns this
*/
proto.bosdyn.api.GetEventsCommentsResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetEventsCommentsResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional EventsComments events_comments = 2;
* @return {?proto.bosdyn.api.EventsComments}
*/
proto.bosdyn.api.GetEventsCommentsResponse.prototype.getEventsComments = function() {
return /** @type{?proto.bosdyn.api.EventsComments} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.EventsComments, 2));
};
/**
* @param {?proto.bosdyn.api.EventsComments|undefined} value
* @return {!proto.bosdyn.api.GetEventsCommentsResponse} returns this
*/
proto.bosdyn.api.GetEventsCommentsResponse.prototype.setEventsComments = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetEventsCommentsResponse} returns this
*/
proto.bosdyn.api.GetEventsCommentsResponse.prototype.clearEventsComments = function() {
return this.setEventsComments(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetEventsCommentsResponse.prototype.hasEventsComments = 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.GetDataBufferStatusRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetDataBufferStatusRequest.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.GetDataBufferStatusRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataBufferStatusRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
getBlobSpecs: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.GetDataBufferStatusRequest}
*/
proto.bosdyn.api.GetDataBufferStatusRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetDataBufferStatusRequest;
return proto.bosdyn.api.GetDataBufferStatusRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetDataBufferStatusRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetDataBufferStatusRequest}
*/
proto.bosdyn.api.GetDataBufferStatusRequest.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 {boolean} */ (reader.readBool());
msg.setGetBlobSpecs(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GetDataBufferStatusRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetDataBufferStatusRequest.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.GetDataBufferStatusRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataBufferStatusRequest.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.getGetBlobSpecs();
if (f) {
writer.writeBool(
2,
f
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.GetDataBufferStatusRequest.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.GetDataBufferStatusRequest} returns this
*/
proto.bosdyn.api.GetDataBufferStatusRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetDataBufferStatusRequest} returns this
*/
proto.bosdyn.api.GetDataBufferStatusRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetDataBufferStatusRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bool get_blob_specs = 2;
* @return {boolean}
*/
proto.bosdyn.api.GetDataBufferStatusRequest.prototype.getGetBlobSpecs = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
};
/**
* @param {boolean} value
* @return {!proto.bosdyn.api.GetDataBufferStatusRequest} returns this
*/
proto.bosdyn.api.GetDataBufferStatusRequest.prototype.setGetBlobSpecs = function(value) {
return jspb.Message.setProto3BooleanField(this, 2, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.GetDataBufferStatusResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetDataBufferStatusResponse.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.GetDataBufferStatusResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataBufferStatusResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
dataBufferStatus: (f = msg.getDataBufferStatus()) && proto.bosdyn.api.DataBufferStatus.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.GetDataBufferStatusResponse}
*/
proto.bosdyn.api.GetDataBufferStatusResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetDataBufferStatusResponse;
return proto.bosdyn.api.GetDataBufferStatusResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetDataBufferStatusResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetDataBufferStatusResponse}
*/
proto.bosdyn.api.GetDataBufferStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new proto.bosdyn.api.DataBufferStatus;
reader.readMessage(value,proto.bosdyn.api.DataBufferStatus.deserializeBinaryFromReader);
msg.setDataBufferStatus(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GetDataBufferStatusResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetDataBufferStatusResponse.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.GetDataBufferStatusResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataBufferStatusResponse.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.getDataBufferStatus();
if (f != null) {
writer.writeMessage(
2,
f,
proto.bosdyn.api.DataBufferStatus.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.GetDataBufferStatusResponse.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.GetDataBufferStatusResponse} returns this
*/
proto.bosdyn.api.GetDataBufferStatusResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetDataBufferStatusResponse} returns this
*/
proto.bosdyn.api.GetDataBufferStatusResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetDataBufferStatusResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional DataBufferStatus data_buffer_status = 2;
* @return {?proto.bosdyn.api.DataBufferStatus}
*/
proto.bosdyn.api.GetDataBufferStatusResponse.prototype.getDataBufferStatus = function() {
return /** @type{?proto.bosdyn.api.DataBufferStatus} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.DataBufferStatus, 2));
};
/**
* @param {?proto.bosdyn.api.DataBufferStatus|undefined} value
* @return {!proto.bosdyn.api.GetDataBufferStatusResponse} returns this
*/
proto.bosdyn.api.GetDataBufferStatusResponse.prototype.setDataBufferStatus = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetDataBufferStatusResponse} returns this
*/
proto.bosdyn.api.GetDataBufferStatusResponse.prototype.clearDataBufferStatus = function() {
return this.setDataBufferStatus(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetDataBufferStatusResponse.prototype.hasDataBufferStatus = 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.GetDataPagesRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetDataPagesRequest.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.GetDataPagesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataPagesRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
timeRange: (f = msg.getTimeRange()) && bosdyn_api_time_range_pb.TimeRange.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.GetDataPagesRequest}
*/
proto.bosdyn.api.GetDataPagesRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetDataPagesRequest;
return proto.bosdyn.api.GetDataPagesRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetDataPagesRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetDataPagesRequest}
*/
proto.bosdyn.api.GetDataPagesRequest.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_time_range_pb.TimeRange;
reader.readMessage(value,bosdyn_api_time_range_pb.TimeRange.deserializeBinaryFromReader);
msg.setTimeRange(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GetDataPagesRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetDataPagesRequest.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.GetDataPagesRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataPagesRequest.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.getTimeRange();
if (f != null) {
writer.writeMessage(
2,
f,
bosdyn_api_time_range_pb.TimeRange.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.GetDataPagesRequest.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.GetDataPagesRequest} returns this
*/
proto.bosdyn.api.GetDataPagesRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetDataPagesRequest} returns this
*/
proto.bosdyn.api.GetDataPagesRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetDataPagesRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional TimeRange time_range = 2;
* @return {?proto.bosdyn.api.TimeRange}
*/
proto.bosdyn.api.GetDataPagesRequest.prototype.getTimeRange = function() {
return /** @type{?proto.bosdyn.api.TimeRange} */ (
jspb.Message.getWrapperField(this, bosdyn_api_time_range_pb.TimeRange, 2));
};
/**
* @param {?proto.bosdyn.api.TimeRange|undefined} value
* @return {!proto.bosdyn.api.GetDataPagesRequest} returns this
*/
proto.bosdyn.api.GetDataPagesRequest.prototype.setTimeRange = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetDataPagesRequest} returns this
*/
proto.bosdyn.api.GetDataPagesRequest.prototype.clearTimeRange = function() {
return this.setTimeRange(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetDataPagesRequest.prototype.hasTimeRange = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.GetDataPagesResponse.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.GetDataPagesResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.GetDataPagesResponse.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.GetDataPagesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataPagesResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
pagesList: jspb.Message.toObjectList(msg.getPagesList(),
proto.bosdyn.api.PageInfo.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.GetDataPagesResponse}
*/
proto.bosdyn.api.GetDataPagesResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.GetDataPagesResponse;
return proto.bosdyn.api.GetDataPagesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.GetDataPagesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.GetDataPagesResponse}
*/
proto.bosdyn.api.GetDataPagesResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = new proto.bosdyn.api.PageInfo;
reader.readMessage(value,proto.bosdyn.api.PageInfo.deserializeBinaryFromReader);
msg.addPages(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.GetDataPagesResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.GetDataPagesResponse.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.GetDataPagesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.GetDataPagesResponse.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.getPagesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.bosdyn.api.PageInfo.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.GetDataPagesResponse.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.GetDataPagesResponse} returns this
*/
proto.bosdyn.api.GetDataPagesResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.GetDataPagesResponse} returns this
*/
proto.bosdyn.api.GetDataPagesResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.GetDataPagesResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated PageInfo pages = 2;
* @return {!Array<!proto.bosdyn.api.PageInfo>}
*/
proto.bosdyn.api.GetDataPagesResponse.prototype.getPagesList = function() {
return /** @type{!Array<!proto.bosdyn.api.PageInfo>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.PageInfo, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.PageInfo>} value
* @return {!proto.bosdyn.api.GetDataPagesResponse} returns this
*/
proto.bosdyn.api.GetDataPagesResponse.prototype.setPagesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.bosdyn.api.PageInfo=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.PageInfo}
*/
proto.bosdyn.api.GetDataPagesResponse.prototype.addPages = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bosdyn.api.PageInfo, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.GetDataPagesResponse} returns this
*/
proto.bosdyn.api.GetDataPagesResponse.prototype.clearPagesList = function() {
return this.setPagesList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.DeleteDataPagesRequest.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.DeleteDataPagesRequest.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.DeleteDataPagesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DeleteDataPagesRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
timeRange: (f = msg.getTimeRange()) && bosdyn_api_time_range_pb.TimeRange.toObject(includeInstance, f),
pageIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : 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.DeleteDataPagesRequest}
*/
proto.bosdyn.api.DeleteDataPagesRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.DeleteDataPagesRequest;
return proto.bosdyn.api.DeleteDataPagesRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.DeleteDataPagesRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.DeleteDataPagesRequest}
*/
proto.bosdyn.api.DeleteDataPagesRequest.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_time_range_pb.TimeRange;
reader.readMessage(value,bosdyn_api_time_range_pb.TimeRange.deserializeBinaryFromReader);
msg.setTimeRange(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.addPageIds(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.DeleteDataPagesRequest.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.DeleteDataPagesRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DeleteDataPagesRequest.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.getTimeRange();
if (f != null) {
writer.writeMessage(
2,
f,
bosdyn_api_time_range_pb.TimeRange.serializeBinaryToWriter
);
}
f = message.getPageIdsList();
if (f.length > 0) {
writer.writeRepeatedString(
3,
f
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.DeleteDataPagesRequest.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.DeleteDataPagesRequest} returns this
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DeleteDataPagesRequest} returns this
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional TimeRange time_range = 2;
* @return {?proto.bosdyn.api.TimeRange}
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.getTimeRange = function() {
return /** @type{?proto.bosdyn.api.TimeRange} */ (
jspb.Message.getWrapperField(this, bosdyn_api_time_range_pb.TimeRange, 2));
};
/**
* @param {?proto.bosdyn.api.TimeRange|undefined} value
* @return {!proto.bosdyn.api.DeleteDataPagesRequest} returns this
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.setTimeRange = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DeleteDataPagesRequest} returns this
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.clearTimeRange = function() {
return this.setTimeRange(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.hasTimeRange = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* repeated string page_ids = 3;
* @return {!Array<string>}
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.getPageIdsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};
/**
* @param {!Array<string>} value
* @return {!proto.bosdyn.api.DeleteDataPagesRequest} returns this
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.setPageIdsList = function(value) {
return jspb.Message.setField(this, 3, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.DeleteDataPagesRequest} returns this
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.addPageIds = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.DeleteDataPagesRequest} returns this
*/
proto.bosdyn.api.DeleteDataPagesRequest.prototype.clearPageIdsList = function() {
return this.setPageIdsList([]);
};
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.DeletePageStatus.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.DeletePageStatus.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.DeletePageStatus} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DeletePageStatus.toObject = function(includeInstance, msg) {
var f, obj = {
pageId: jspb.Message.getFieldWithDefault(msg, 1, ""),
status: jspb.Message.getFieldWithDefault(msg, 2, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.DeletePageStatus}
*/
proto.bosdyn.api.DeletePageStatus.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.DeletePageStatus;
return proto.bosdyn.api.DeletePageStatus.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.DeletePageStatus} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.DeletePageStatus}
*/
proto.bosdyn.api.DeletePageStatus.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setPageId(value);
break;
case 2:
var value = /** @type {!proto.bosdyn.api.DeletePageStatus.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.DeletePageStatus.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.DeletePageStatus.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.DeletePageStatus} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DeletePageStatus.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPageId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
};
/**
* @enum {number}
*/
proto.bosdyn.api.DeletePageStatus.Status = {
STATUS_UNKNOWN: 0,
STATUS_DELETED: 1,
STATUS_DELETION_FAILED: 2,
STATUS_NOT_FOUND: 3
};
/**
* optional string page_id = 1;
* @return {string}
*/
proto.bosdyn.api.DeletePageStatus.prototype.getPageId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.DeletePageStatus} returns this
*/
proto.bosdyn.api.DeletePageStatus.prototype.setPageId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional Status status = 2;
* @return {!proto.bosdyn.api.DeletePageStatus.Status}
*/
proto.bosdyn.api.DeletePageStatus.prototype.getStatus = function() {
return /** @type {!proto.bosdyn.api.DeletePageStatus.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.bosdyn.api.DeletePageStatus.Status} value
* @return {!proto.bosdyn.api.DeletePageStatus} returns this
*/
proto.bosdyn.api.DeletePageStatus.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.DeleteDataPagesResponse.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bosdyn.api.DeleteDataPagesResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.DeleteDataPagesResponse.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.DeleteDataPagesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DeleteDataPagesResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
bytesDeleted: jspb.Message.getFieldWithDefault(msg, 2, 0),
statusList: jspb.Message.toObjectList(msg.getStatusList(),
proto.bosdyn.api.DeletePageStatus.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.DeleteDataPagesResponse}
*/
proto.bosdyn.api.DeleteDataPagesResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.DeleteDataPagesResponse;
return proto.bosdyn.api.DeleteDataPagesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.DeleteDataPagesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.DeleteDataPagesResponse}
*/
proto.bosdyn.api.DeleteDataPagesResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new bosdyn_api_header_pb.ResponseHeader;
reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader);
msg.setHeader(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt64());
msg.setBytesDeleted(value);
break;
case 3:
var value = new proto.bosdyn.api.DeletePageStatus;
reader.readMessage(value,proto.bosdyn.api.DeletePageStatus.deserializeBinaryFromReader);
msg.addStatus(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.DeleteDataPagesResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.DeleteDataPagesResponse.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.DeleteDataPagesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.DeleteDataPagesResponse.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.getBytesDeleted();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
f = message.getStatusList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.bosdyn.api.DeletePageStatus.serializeBinaryToWriter
);
}
};
/**
* optional ResponseHeader header = 1;
* @return {?proto.bosdyn.api.ResponseHeader}
*/
proto.bosdyn.api.DeleteDataPagesResponse.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.DeleteDataPagesResponse} returns this
*/
proto.bosdyn.api.DeleteDataPagesResponse.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.DeleteDataPagesResponse} returns this
*/
proto.bosdyn.api.DeleteDataPagesResponse.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.DeleteDataPagesResponse.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional int64 bytes_deleted = 2;
* @return {number}
*/
proto.bosdyn.api.DeleteDataPagesResponse.prototype.getBytesDeleted = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.DeleteDataPagesResponse} returns this
*/
proto.bosdyn.api.DeleteDataPagesResponse.prototype.setBytesDeleted = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* repeated DeletePageStatus status = 3;
* @return {!Array<!proto.bosdyn.api.DeletePageStatus>}
*/
proto.bosdyn.api.DeleteDataPagesResponse.prototype.getStatusList = function() {
return /** @type{!Array<!proto.bosdyn.api.DeletePageStatus>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.DeletePageStatus, 3));
};
/**
* @param {!Array<!proto.bosdyn.api.DeletePageStatus>} value
* @return {!proto.bosdyn.api.DeleteDataPagesResponse} returns this
*/
proto.bosdyn.api.DeleteDataPagesResponse.prototype.setStatusList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.bosdyn.api.DeletePageStatus=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.DeletePageStatus}
*/
proto.bosdyn.api.DeleteDataPagesResponse.prototype.addStatus = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.bosdyn.api.DeletePageStatus, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.DeleteDataPagesResponse} returns this
*/
proto.bosdyn.api.DeleteDataPagesResponse.prototype.clearStatusList = function() {
return this.setStatusList([]);
};
goog.object.extend(exports, proto.bosdyn.api);