spot-sdk-js
Version:
Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.
1,491 lines (1,338 loc) • 178 kB
JavaScript
// source: bosdyn/api/world_object.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_docking_docking_pb = require('../../bosdyn/api/docking/docking_pb.js');
goog.object.extend(proto, bosdyn_api_docking_docking_pb);
var bosdyn_api_geometry_pb = require('../../bosdyn/api/geometry_pb.js');
goog.object.extend(proto, bosdyn_api_geometry_pb);
var bosdyn_api_header_pb = require('../../bosdyn/api/header_pb.js');
goog.object.extend(proto, bosdyn_api_header_pb);
var bosdyn_api_image_pb = require('../../bosdyn/api/image_pb.js');
goog.object.extend(proto, bosdyn_api_image_pb);
var bosdyn_api_sparse_features_pb = require('../../bosdyn/api/sparse_features_pb.js');
goog.object.extend(proto, bosdyn_api_sparse_features_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_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
goog.object.extend(proto, google_protobuf_any_pb);
goog.exportSymbol('proto.bosdyn.api.AprilTagProperties', null, global);
goog.exportSymbol('proto.bosdyn.api.AprilTagProperties.AprilTagPoseStatus', null, global);
goog.exportSymbol('proto.bosdyn.api.BoundingBoxProperties', null, global);
goog.exportSymbol('proto.bosdyn.api.DockProperties', null, global);
goog.exportSymbol('proto.bosdyn.api.DrawableArrow', null, global);
goog.exportSymbol('proto.bosdyn.api.DrawableBox', null, global);
goog.exportSymbol('proto.bosdyn.api.DrawableCapsule', null, global);
goog.exportSymbol('proto.bosdyn.api.DrawableCylinder', null, global);
goog.exportSymbol('proto.bosdyn.api.DrawableFrame', null, global);
goog.exportSymbol('proto.bosdyn.api.DrawableLineStrip', null, global);
goog.exportSymbol('proto.bosdyn.api.DrawablePoints', null, global);
goog.exportSymbol('proto.bosdyn.api.DrawableProperties', null, global);
goog.exportSymbol('proto.bosdyn.api.DrawableProperties.Color', null, global);
goog.exportSymbol('proto.bosdyn.api.DrawableProperties.DrawableCase', null, global);
goog.exportSymbol('proto.bosdyn.api.DrawableSphere', null, global);
goog.exportSymbol('proto.bosdyn.api.ImageProperties', null, global);
goog.exportSymbol('proto.bosdyn.api.ImageProperties.ImageDataCase', null, global);
goog.exportSymbol('proto.bosdyn.api.ListWorldObjectRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.ListWorldObjectResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.MutateWorldObjectRequest', null, global);
goog.exportSymbol('proto.bosdyn.api.MutateWorldObjectRequest.Action', null, global);
goog.exportSymbol('proto.bosdyn.api.MutateWorldObjectRequest.Mutation', null, global);
goog.exportSymbol('proto.bosdyn.api.MutateWorldObjectResponse', null, global);
goog.exportSymbol('proto.bosdyn.api.MutateWorldObjectResponse.Status', null, global);
goog.exportSymbol('proto.bosdyn.api.RayProperties', null, global);
goog.exportSymbol('proto.bosdyn.api.WorldObject', null, global);
goog.exportSymbol('proto.bosdyn.api.WorldObjectType', 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.WorldObject = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.WorldObject.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.WorldObject, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.WorldObject.displayName = 'proto.bosdyn.api.WorldObject';
}
/**
* 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.ListWorldObjectRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.ListWorldObjectRequest.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.ListWorldObjectRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ListWorldObjectRequest.displayName = 'proto.bosdyn.api.ListWorldObjectRequest';
}
/**
* 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.ListWorldObjectResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.ListWorldObjectResponse.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.ListWorldObjectResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ListWorldObjectResponse.displayName = 'proto.bosdyn.api.ListWorldObjectResponse';
}
/**
* 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.MutateWorldObjectRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.MutateWorldObjectRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.MutateWorldObjectRequest.displayName = 'proto.bosdyn.api.MutateWorldObjectRequest';
}
/**
* 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.MutateWorldObjectRequest.Mutation = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.MutateWorldObjectRequest.Mutation, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.MutateWorldObjectRequest.Mutation.displayName = 'proto.bosdyn.api.MutateWorldObjectRequest.Mutation';
}
/**
* 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.MutateWorldObjectResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.MutateWorldObjectResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.MutateWorldObjectResponse.displayName = 'proto.bosdyn.api.MutateWorldObjectResponse';
}
/**
* 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.ImageProperties = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.ImageProperties.oneofGroups_);
};
goog.inherits(proto.bosdyn.api.ImageProperties, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.ImageProperties.displayName = 'proto.bosdyn.api.ImageProperties';
}
/**
* 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.DockProperties = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DockProperties, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DockProperties.displayName = 'proto.bosdyn.api.DockProperties';
}
/**
* 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.AprilTagProperties = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.AprilTagProperties, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.AprilTagProperties.displayName = 'proto.bosdyn.api.AprilTagProperties';
}
/**
* 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.RayProperties = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.RayProperties, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.RayProperties.displayName = 'proto.bosdyn.api.RayProperties';
}
/**
* 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.BoundingBoxProperties = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.BoundingBoxProperties, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.BoundingBoxProperties.displayName = 'proto.bosdyn.api.BoundingBoxProperties';
}
/**
* 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.DrawableProperties = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.DrawableProperties.oneofGroups_);
};
goog.inherits(proto.bosdyn.api.DrawableProperties, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DrawableProperties.displayName = 'proto.bosdyn.api.DrawableProperties';
}
/**
* 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.DrawableProperties.Color = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DrawableProperties.Color, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DrawableProperties.Color.displayName = 'proto.bosdyn.api.DrawableProperties.Color';
}
/**
* 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.DrawableFrame = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DrawableFrame, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DrawableFrame.displayName = 'proto.bosdyn.api.DrawableFrame';
}
/**
* 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.DrawableSphere = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DrawableSphere, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DrawableSphere.displayName = 'proto.bosdyn.api.DrawableSphere';
}
/**
* 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.DrawableBox = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DrawableBox, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DrawableBox.displayName = 'proto.bosdyn.api.DrawableBox';
}
/**
* 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.DrawableArrow = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DrawableArrow, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DrawableArrow.displayName = 'proto.bosdyn.api.DrawableArrow';
}
/**
* 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.DrawableCapsule = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DrawableCapsule, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DrawableCapsule.displayName = 'proto.bosdyn.api.DrawableCapsule';
}
/**
* 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.DrawableCylinder = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DrawableCylinder, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DrawableCylinder.displayName = 'proto.bosdyn.api.DrawableCylinder';
}
/**
* 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.DrawableLineStrip = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bosdyn.api.DrawableLineStrip, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DrawableLineStrip.displayName = 'proto.bosdyn.api.DrawableLineStrip';
}
/**
* 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.DrawablePoints = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.DrawablePoints.repeatedFields_, null);
};
goog.inherits(proto.bosdyn.api.DrawablePoints, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bosdyn.api.DrawablePoints.displayName = 'proto.bosdyn.api.DrawablePoints';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.WorldObject.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.WorldObject.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.WorldObject.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.WorldObject} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.WorldObject.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
acquisitionTime: (f = msg.getAcquisitionTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
transformsSnapshot: (f = msg.getTransformsSnapshot()) && bosdyn_api_geometry_pb.FrameTreeSnapshot.toObject(includeInstance, f),
drawablePropertiesList: jspb.Message.toObjectList(msg.getDrawablePropertiesList(),
proto.bosdyn.api.DrawableProperties.toObject, includeInstance),
apriltagProperties: (f = msg.getApriltagProperties()) && proto.bosdyn.api.AprilTagProperties.toObject(includeInstance, f),
imageProperties: (f = msg.getImageProperties()) && proto.bosdyn.api.ImageProperties.toObject(includeInstance, f),
dockProperties: (f = msg.getDockProperties()) && proto.bosdyn.api.DockProperties.toObject(includeInstance, f),
rayProperties: (f = msg.getRayProperties()) && proto.bosdyn.api.RayProperties.toObject(includeInstance, f),
boundingBoxProperties: (f = msg.getBoundingBoxProperties()) && proto.bosdyn.api.BoundingBoxProperties.toObject(includeInstance, f),
additionalProperties: (f = msg.getAdditionalProperties()) && google_protobuf_any_pb.Any.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.WorldObject}
*/
proto.bosdyn.api.WorldObject.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.WorldObject;
return proto.bosdyn.api.WorldObject.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.WorldObject} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.WorldObject}
*/
proto.bosdyn.api.WorldObject.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 30:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setAcquisitionTime(value);
break;
case 31:
var value = new bosdyn_api_geometry_pb.FrameTreeSnapshot;
reader.readMessage(value,bosdyn_api_geometry_pb.FrameTreeSnapshot.deserializeBinaryFromReader);
msg.setTransformsSnapshot(value);
break;
case 5:
var value = new proto.bosdyn.api.DrawableProperties;
reader.readMessage(value,proto.bosdyn.api.DrawableProperties.deserializeBinaryFromReader);
msg.addDrawableProperties(value);
break;
case 6:
var value = new proto.bosdyn.api.AprilTagProperties;
reader.readMessage(value,proto.bosdyn.api.AprilTagProperties.deserializeBinaryFromReader);
msg.setApriltagProperties(value);
break;
case 9:
var value = new proto.bosdyn.api.ImageProperties;
reader.readMessage(value,proto.bosdyn.api.ImageProperties.deserializeBinaryFromReader);
msg.setImageProperties(value);
break;
case 10:
var value = new proto.bosdyn.api.DockProperties;
reader.readMessage(value,proto.bosdyn.api.DockProperties.deserializeBinaryFromReader);
msg.setDockProperties(value);
break;
case 11:
var value = new proto.bosdyn.api.RayProperties;
reader.readMessage(value,proto.bosdyn.api.RayProperties.deserializeBinaryFromReader);
msg.setRayProperties(value);
break;
case 12:
var value = new proto.bosdyn.api.BoundingBoxProperties;
reader.readMessage(value,proto.bosdyn.api.BoundingBoxProperties.deserializeBinaryFromReader);
msg.setBoundingBoxProperties(value);
break;
case 100:
var value = new google_protobuf_any_pb.Any;
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setAdditionalProperties(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.WorldObject.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.WorldObject.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.WorldObject} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.WorldObject.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getAcquisitionTime();
if (f != null) {
writer.writeMessage(
30,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getTransformsSnapshot();
if (f != null) {
writer.writeMessage(
31,
f,
bosdyn_api_geometry_pb.FrameTreeSnapshot.serializeBinaryToWriter
);
}
f = message.getDrawablePropertiesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
proto.bosdyn.api.DrawableProperties.serializeBinaryToWriter
);
}
f = message.getApriltagProperties();
if (f != null) {
writer.writeMessage(
6,
f,
proto.bosdyn.api.AprilTagProperties.serializeBinaryToWriter
);
}
f = message.getImageProperties();
if (f != null) {
writer.writeMessage(
9,
f,
proto.bosdyn.api.ImageProperties.serializeBinaryToWriter
);
}
f = message.getDockProperties();
if (f != null) {
writer.writeMessage(
10,
f,
proto.bosdyn.api.DockProperties.serializeBinaryToWriter
);
}
f = message.getRayProperties();
if (f != null) {
writer.writeMessage(
11,
f,
proto.bosdyn.api.RayProperties.serializeBinaryToWriter
);
}
f = message.getBoundingBoxProperties();
if (f != null) {
writer.writeMessage(
12,
f,
proto.bosdyn.api.BoundingBoxProperties.serializeBinaryToWriter
);
}
f = message.getAdditionalProperties();
if (f != null) {
writer.writeMessage(
100,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter
);
}
};
/**
* optional int32 id = 1;
* @return {number}
*/
proto.bosdyn.api.WorldObject.prototype.getId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.setId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string name = 2;
* @return {string}
*/
proto.bosdyn.api.WorldObject.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional google.protobuf.Timestamp acquisition_time = 30;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.bosdyn.api.WorldObject.prototype.getAcquisitionTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 30));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.setAcquisitionTime = function(value) {
return jspb.Message.setWrapperField(this, 30, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.clearAcquisitionTime = function() {
return this.setAcquisitionTime(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WorldObject.prototype.hasAcquisitionTime = function() {
return jspb.Message.getField(this, 30) != null;
};
/**
* optional FrameTreeSnapshot transforms_snapshot = 31;
* @return {?proto.bosdyn.api.FrameTreeSnapshot}
*/
proto.bosdyn.api.WorldObject.prototype.getTransformsSnapshot = function() {
return /** @type{?proto.bosdyn.api.FrameTreeSnapshot} */ (
jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.FrameTreeSnapshot, 31));
};
/**
* @param {?proto.bosdyn.api.FrameTreeSnapshot|undefined} value
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.setTransformsSnapshot = function(value) {
return jspb.Message.setWrapperField(this, 31, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.clearTransformsSnapshot = function() {
return this.setTransformsSnapshot(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WorldObject.prototype.hasTransformsSnapshot = function() {
return jspb.Message.getField(this, 31) != null;
};
/**
* repeated DrawableProperties drawable_properties = 5;
* @return {!Array<!proto.bosdyn.api.DrawableProperties>}
*/
proto.bosdyn.api.WorldObject.prototype.getDrawablePropertiesList = function() {
return /** @type{!Array<!proto.bosdyn.api.DrawableProperties>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.DrawableProperties, 5));
};
/**
* @param {!Array<!proto.bosdyn.api.DrawableProperties>} value
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.setDrawablePropertiesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 5, value);
};
/**
* @param {!proto.bosdyn.api.DrawableProperties=} opt_value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.DrawableProperties}
*/
proto.bosdyn.api.WorldObject.prototype.addDrawableProperties = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.bosdyn.api.DrawableProperties, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.clearDrawablePropertiesList = function() {
return this.setDrawablePropertiesList([]);
};
/**
* optional AprilTagProperties apriltag_properties = 6;
* @return {?proto.bosdyn.api.AprilTagProperties}
*/
proto.bosdyn.api.WorldObject.prototype.getApriltagProperties = function() {
return /** @type{?proto.bosdyn.api.AprilTagProperties} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.AprilTagProperties, 6));
};
/**
* @param {?proto.bosdyn.api.AprilTagProperties|undefined} value
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.setApriltagProperties = function(value) {
return jspb.Message.setWrapperField(this, 6, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.clearApriltagProperties = function() {
return this.setApriltagProperties(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WorldObject.prototype.hasApriltagProperties = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional ImageProperties image_properties = 9;
* @return {?proto.bosdyn.api.ImageProperties}
*/
proto.bosdyn.api.WorldObject.prototype.getImageProperties = function() {
return /** @type{?proto.bosdyn.api.ImageProperties} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.ImageProperties, 9));
};
/**
* @param {?proto.bosdyn.api.ImageProperties|undefined} value
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.setImageProperties = function(value) {
return jspb.Message.setWrapperField(this, 9, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.clearImageProperties = function() {
return this.setImageProperties(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WorldObject.prototype.hasImageProperties = function() {
return jspb.Message.getField(this, 9) != null;
};
/**
* optional DockProperties dock_properties = 10;
* @return {?proto.bosdyn.api.DockProperties}
*/
proto.bosdyn.api.WorldObject.prototype.getDockProperties = function() {
return /** @type{?proto.bosdyn.api.DockProperties} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.DockProperties, 10));
};
/**
* @param {?proto.bosdyn.api.DockProperties|undefined} value
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.setDockProperties = function(value) {
return jspb.Message.setWrapperField(this, 10, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.clearDockProperties = function() {
return this.setDockProperties(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WorldObject.prototype.hasDockProperties = function() {
return jspb.Message.getField(this, 10) != null;
};
/**
* optional RayProperties ray_properties = 11;
* @return {?proto.bosdyn.api.RayProperties}
*/
proto.bosdyn.api.WorldObject.prototype.getRayProperties = function() {
return /** @type{?proto.bosdyn.api.RayProperties} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.RayProperties, 11));
};
/**
* @param {?proto.bosdyn.api.RayProperties|undefined} value
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.setRayProperties = function(value) {
return jspb.Message.setWrapperField(this, 11, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.clearRayProperties = function() {
return this.setRayProperties(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WorldObject.prototype.hasRayProperties = function() {
return jspb.Message.getField(this, 11) != null;
};
/**
* optional BoundingBoxProperties bounding_box_properties = 12;
* @return {?proto.bosdyn.api.BoundingBoxProperties}
*/
proto.bosdyn.api.WorldObject.prototype.getBoundingBoxProperties = function() {
return /** @type{?proto.bosdyn.api.BoundingBoxProperties} */ (
jspb.Message.getWrapperField(this, proto.bosdyn.api.BoundingBoxProperties, 12));
};
/**
* @param {?proto.bosdyn.api.BoundingBoxProperties|undefined} value
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.setBoundingBoxProperties = function(value) {
return jspb.Message.setWrapperField(this, 12, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.clearBoundingBoxProperties = function() {
return this.setBoundingBoxProperties(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WorldObject.prototype.hasBoundingBoxProperties = function() {
return jspb.Message.getField(this, 12) != null;
};
/**
* optional google.protobuf.Any additional_properties = 100;
* @return {?proto.google.protobuf.Any}
*/
proto.bosdyn.api.WorldObject.prototype.getAdditionalProperties = function() {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 100));
};
/**
* @param {?proto.google.protobuf.Any|undefined} value
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.setAdditionalProperties = function(value) {
return jspb.Message.setWrapperField(this, 100, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.WorldObject} returns this
*/
proto.bosdyn.api.WorldObject.prototype.clearAdditionalProperties = function() {
return this.setAdditionalProperties(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.WorldObject.prototype.hasAdditionalProperties = function() {
return jspb.Message.getField(this, 100) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.ListWorldObjectRequest.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.ListWorldObjectRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ListWorldObjectRequest.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.ListWorldObjectRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListWorldObjectRequest.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f),
objectTypeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
timestampFilter: (f = msg.getTimestampFilter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bosdyn.api.ListWorldObjectRequest}
*/
proto.bosdyn.api.ListWorldObjectRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ListWorldObjectRequest;
return proto.bosdyn.api.ListWorldObjectRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ListWorldObjectRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ListWorldObjectRequest}
*/
proto.bosdyn.api.ListWorldObjectRequest.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 values = /** @type {!Array<!proto.bosdyn.api.WorldObjectType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
for (var i = 0; i < values.length; i++) {
msg.addObjectType(values[i]);
}
break;
case 3:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setTimestampFilter(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bosdyn.api.ListWorldObjectRequest.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.ListWorldObjectRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListWorldObjectRequest.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.getObjectTypeList();
if (f.length > 0) {
writer.writePackedEnum(
2,
f
);
}
f = message.getTimestampFilter();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
};
/**
* optional RequestHeader header = 1;
* @return {?proto.bosdyn.api.RequestHeader}
*/
proto.bosdyn.api.ListWorldObjectRequest.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.ListWorldObjectRequest} returns this
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.setHeader = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListWorldObjectRequest} returns this
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.clearHeader = function() {
return this.setHeader(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.hasHeader = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated WorldObjectType object_type = 2;
* @return {!Array<!proto.bosdyn.api.WorldObjectType>}
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.getObjectTypeList = function() {
return /** @type {!Array<!proto.bosdyn.api.WorldObjectType>} */ (jspb.Message.getRepeatedField(this, 2));
};
/**
* @param {!Array<!proto.bosdyn.api.WorldObjectType>} value
* @return {!proto.bosdyn.api.ListWorldObjectRequest} returns this
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.setObjectTypeList = function(value) {
return jspb.Message.setField(this, 2, value || []);
};
/**
* @param {!proto.bosdyn.api.WorldObjectType} value
* @param {number=} opt_index
* @return {!proto.bosdyn.api.ListWorldObjectRequest} returns this
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.addObjectType = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bosdyn.api.ListWorldObjectRequest} returns this
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.clearObjectTypeList = function() {
return this.setObjectTypeList([]);
};
/**
* optional google.protobuf.Timestamp timestamp_filter = 3;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.getTimestampFilter = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.bosdyn.api.ListWorldObjectRequest} returns this
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.setTimestampFilter = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bosdyn.api.ListWorldObjectRequest} returns this
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.clearTimestampFilter = function() {
return this.setTimestampFilter(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bosdyn.api.ListWorldObjectRequest.prototype.hasTimestampFilter = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bosdyn.api.ListWorldObjectResponse.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.ListWorldObjectResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bosdyn.api.ListWorldObjectResponse.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.ListWorldObjectResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bosdyn.api.ListWorldObjectResponse.toObject = function(includeInstance, msg) {
var f, obj = {
header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f),
worldObjectsList: jspb.Message.toObjectList(msg.getWorldObjectsList(),
proto.bosdyn.api.WorldObject.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.ListWorldObjectResponse}
*/
proto.bosdyn.api.ListWorldObjectResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bosdyn.api.ListWorldObjectResponse;
return proto.bosdyn.api.ListWorldObjectResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bosdyn.api.ListWorldObjectResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bosdyn.api.ListWorldObjectResponse}
*/
proto.bosdyn.api.ListWorldObjectResponse.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.WorldObject;
reader.readMessage(value,proto.bosdyn.api.WorldObject.deserializeBinaryFromReader);
msg.addWorldObjects(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bosdyn.api.ListWorldObjectResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bo