@vertexvis/stream-api 0.24.6-testing.0 → 0.24.6-testing.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4249,6 +4249,226 @@ const vertexvis = $root.vertexvis = (() => {
4249
4249
  return DisplayListSummary;
4250
4250
  })();
4251
4251
 
4252
+ stream.ItemModelViewAttributes = (function() {
4253
+
4254
+ /**
4255
+ * Properties of an ItemModelViewAttributes.
4256
+ * @memberof vertexvis.protobuf.stream
4257
+ * @interface IItemModelViewAttributes
4258
+ * @property {vertexvis.protobuf.core.IUuid|null} [modelViewId] ItemModelViewAttributes modelViewId
4259
+ * @property {vertexvis.protobuf.core.IUuid|null} [sceneItemId] ItemModelViewAttributes sceneItemId
4260
+ */
4261
+
4262
+ /**
4263
+ * Constructs a new ItemModelViewAttributes.
4264
+ * @memberof vertexvis.protobuf.stream
4265
+ * @classdesc Represents an ItemModelViewAttributes.
4266
+ * @implements IItemModelViewAttributes
4267
+ * @constructor
4268
+ * @param {vertexvis.protobuf.stream.IItemModelViewAttributes=} [properties] Properties to set
4269
+ */
4270
+ function ItemModelViewAttributes(properties) {
4271
+ if (properties)
4272
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4273
+ if (properties[keys[i]] != null)
4274
+ this[keys[i]] = properties[keys[i]];
4275
+ }
4276
+
4277
+ /**
4278
+ * ItemModelViewAttributes modelViewId.
4279
+ * @member {vertexvis.protobuf.core.IUuid|null|undefined} modelViewId
4280
+ * @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
4281
+ * @instance
4282
+ */
4283
+ ItemModelViewAttributes.prototype.modelViewId = null;
4284
+
4285
+ /**
4286
+ * ItemModelViewAttributes sceneItemId.
4287
+ * @member {vertexvis.protobuf.core.IUuid|null|undefined} sceneItemId
4288
+ * @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
4289
+ * @instance
4290
+ */
4291
+ ItemModelViewAttributes.prototype.sceneItemId = null;
4292
+
4293
+ /**
4294
+ * Creates a new ItemModelViewAttributes instance using the specified properties.
4295
+ * @function create
4296
+ * @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
4297
+ * @static
4298
+ * @param {vertexvis.protobuf.stream.IItemModelViewAttributes=} [properties] Properties to set
4299
+ * @returns {vertexvis.protobuf.stream.ItemModelViewAttributes} ItemModelViewAttributes instance
4300
+ */
4301
+ ItemModelViewAttributes.create = function create(properties) {
4302
+ return new ItemModelViewAttributes(properties);
4303
+ };
4304
+
4305
+ /**
4306
+ * Encodes the specified ItemModelViewAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.ItemModelViewAttributes.verify|verify} messages.
4307
+ * @function encode
4308
+ * @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
4309
+ * @static
4310
+ * @param {vertexvis.protobuf.stream.IItemModelViewAttributes} message ItemModelViewAttributes message or plain object to encode
4311
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4312
+ * @returns {$protobuf.Writer} Writer
4313
+ */
4314
+ ItemModelViewAttributes.encode = function encode(message, writer) {
4315
+ if (!writer)
4316
+ writer = $Writer.create();
4317
+ if (message.modelViewId != null && Object.hasOwnProperty.call(message, "modelViewId"))
4318
+ $root.vertexvis.protobuf.core.Uuid.encode(message.modelViewId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
4319
+ if (message.sceneItemId != null && Object.hasOwnProperty.call(message, "sceneItemId"))
4320
+ $root.vertexvis.protobuf.core.Uuid.encode(message.sceneItemId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
4321
+ return writer;
4322
+ };
4323
+
4324
+ /**
4325
+ * Encodes the specified ItemModelViewAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ItemModelViewAttributes.verify|verify} messages.
4326
+ * @function encodeDelimited
4327
+ * @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
4328
+ * @static
4329
+ * @param {vertexvis.protobuf.stream.IItemModelViewAttributes} message ItemModelViewAttributes message or plain object to encode
4330
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4331
+ * @returns {$protobuf.Writer} Writer
4332
+ */
4333
+ ItemModelViewAttributes.encodeDelimited = function encodeDelimited(message, writer) {
4334
+ return this.encode(message, writer).ldelim();
4335
+ };
4336
+
4337
+ /**
4338
+ * Decodes an ItemModelViewAttributes message from the specified reader or buffer.
4339
+ * @function decode
4340
+ * @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
4341
+ * @static
4342
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4343
+ * @param {number} [length] Message length if known beforehand
4344
+ * @returns {vertexvis.protobuf.stream.ItemModelViewAttributes} ItemModelViewAttributes
4345
+ * @throws {Error} If the payload is not a reader or valid buffer
4346
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4347
+ */
4348
+ ItemModelViewAttributes.decode = function decode(reader, length) {
4349
+ if (!(reader instanceof $Reader))
4350
+ reader = $Reader.create(reader);
4351
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ItemModelViewAttributes();
4352
+ while (reader.pos < end) {
4353
+ let tag = reader.uint32();
4354
+ switch (tag >>> 3) {
4355
+ case 1:
4356
+ message.modelViewId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
4357
+ break;
4358
+ case 2:
4359
+ message.sceneItemId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
4360
+ break;
4361
+ default:
4362
+ reader.skipType(tag & 7);
4363
+ break;
4364
+ }
4365
+ }
4366
+ return message;
4367
+ };
4368
+
4369
+ /**
4370
+ * Decodes an ItemModelViewAttributes message from the specified reader or buffer, length delimited.
4371
+ * @function decodeDelimited
4372
+ * @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
4373
+ * @static
4374
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4375
+ * @returns {vertexvis.protobuf.stream.ItemModelViewAttributes} ItemModelViewAttributes
4376
+ * @throws {Error} If the payload is not a reader or valid buffer
4377
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4378
+ */
4379
+ ItemModelViewAttributes.decodeDelimited = function decodeDelimited(reader) {
4380
+ if (!(reader instanceof $Reader))
4381
+ reader = new $Reader(reader);
4382
+ return this.decode(reader, reader.uint32());
4383
+ };
4384
+
4385
+ /**
4386
+ * Verifies an ItemModelViewAttributes message.
4387
+ * @function verify
4388
+ * @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
4389
+ * @static
4390
+ * @param {Object.<string,*>} message Plain object to verify
4391
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
4392
+ */
4393
+ ItemModelViewAttributes.verify = function verify(message) {
4394
+ if (typeof message !== "object" || message === null)
4395
+ return "object expected";
4396
+ if (message.modelViewId != null && message.hasOwnProperty("modelViewId")) {
4397
+ let error = $root.vertexvis.protobuf.core.Uuid.verify(message.modelViewId);
4398
+ if (error)
4399
+ return "modelViewId." + error;
4400
+ }
4401
+ if (message.sceneItemId != null && message.hasOwnProperty("sceneItemId")) {
4402
+ let error = $root.vertexvis.protobuf.core.Uuid.verify(message.sceneItemId);
4403
+ if (error)
4404
+ return "sceneItemId." + error;
4405
+ }
4406
+ return null;
4407
+ };
4408
+
4409
+ /**
4410
+ * Creates an ItemModelViewAttributes message from a plain object. Also converts values to their respective internal types.
4411
+ * @function fromObject
4412
+ * @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
4413
+ * @static
4414
+ * @param {Object.<string,*>} object Plain object
4415
+ * @returns {vertexvis.protobuf.stream.ItemModelViewAttributes} ItemModelViewAttributes
4416
+ */
4417
+ ItemModelViewAttributes.fromObject = function fromObject(object) {
4418
+ if (object instanceof $root.vertexvis.protobuf.stream.ItemModelViewAttributes)
4419
+ return object;
4420
+ let message = new $root.vertexvis.protobuf.stream.ItemModelViewAttributes();
4421
+ if (object.modelViewId != null) {
4422
+ if (typeof object.modelViewId !== "object")
4423
+ throw TypeError(".vertexvis.protobuf.stream.ItemModelViewAttributes.modelViewId: object expected");
4424
+ message.modelViewId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.modelViewId);
4425
+ }
4426
+ if (object.sceneItemId != null) {
4427
+ if (typeof object.sceneItemId !== "object")
4428
+ throw TypeError(".vertexvis.protobuf.stream.ItemModelViewAttributes.sceneItemId: object expected");
4429
+ message.sceneItemId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.sceneItemId);
4430
+ }
4431
+ return message;
4432
+ };
4433
+
4434
+ /**
4435
+ * Creates a plain object from an ItemModelViewAttributes message. Also converts values to other types if specified.
4436
+ * @function toObject
4437
+ * @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
4438
+ * @static
4439
+ * @param {vertexvis.protobuf.stream.ItemModelViewAttributes} message ItemModelViewAttributes
4440
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
4441
+ * @returns {Object.<string,*>} Plain object
4442
+ */
4443
+ ItemModelViewAttributes.toObject = function toObject(message, options) {
4444
+ if (!options)
4445
+ options = {};
4446
+ let object = {};
4447
+ if (options.defaults) {
4448
+ object.modelViewId = null;
4449
+ object.sceneItemId = null;
4450
+ }
4451
+ if (message.modelViewId != null && message.hasOwnProperty("modelViewId"))
4452
+ object.modelViewId = $root.vertexvis.protobuf.core.Uuid.toObject(message.modelViewId, options);
4453
+ if (message.sceneItemId != null && message.hasOwnProperty("sceneItemId"))
4454
+ object.sceneItemId = $root.vertexvis.protobuf.core.Uuid.toObject(message.sceneItemId, options);
4455
+ return object;
4456
+ };
4457
+
4458
+ /**
4459
+ * Converts this ItemModelViewAttributes to JSON.
4460
+ * @function toJSON
4461
+ * @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
4462
+ * @instance
4463
+ * @returns {Object.<string,*>} JSON object
4464
+ */
4465
+ ItemModelViewAttributes.prototype.toJSON = function toJSON() {
4466
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
4467
+ };
4468
+
4469
+ return ItemModelViewAttributes;
4470
+ })();
4471
+
4252
4472
  stream.SceneAttributes = (function() {
4253
4473
 
4254
4474
  /**
@@ -4261,6 +4481,7 @@ const vertexvis = $root.vertexvis = (() => {
4261
4481
  * @property {boolean|null} [hasChanged] SceneAttributes hasChanged
4262
4482
  * @property {vertexvis.protobuf.stream.IDisplayListSummary|null} [displayListSummary] SceneAttributes displayListSummary
4263
4483
  * @property {vertexvis.protobuf.core.IUuid2l|null} [modelViewId] SceneAttributes modelViewId
4484
+ * @property {vertexvis.protobuf.stream.IItemModelViewAttributes|null} [itemModelView] SceneAttributes itemModelView
4264
4485
  */
4265
4486
 
4266
4487
  /**
@@ -4326,6 +4547,14 @@ const vertexvis = $root.vertexvis = (() => {
4326
4547
  */
4327
4548
  SceneAttributes.prototype.modelViewId = null;
4328
4549
 
4550
+ /**
4551
+ * SceneAttributes itemModelView.
4552
+ * @member {vertexvis.protobuf.stream.IItemModelViewAttributes|null|undefined} itemModelView
4553
+ * @memberof vertexvis.protobuf.stream.SceneAttributes
4554
+ * @instance
4555
+ */
4556
+ SceneAttributes.prototype.itemModelView = null;
4557
+
4329
4558
  /**
4330
4559
  * Creates a new SceneAttributes instance using the specified properties.
4331
4560
  * @function create
@@ -4362,6 +4591,8 @@ const vertexvis = $root.vertexvis = (() => {
4362
4591
  $root.vertexvis.protobuf.stream.DisplayListSummary.encode(message.displayListSummary, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
4363
4592
  if (message.modelViewId != null && Object.hasOwnProperty.call(message, "modelViewId"))
4364
4593
  $root.vertexvis.protobuf.core.Uuid2l.encode(message.modelViewId, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
4594
+ if (message.itemModelView != null && Object.hasOwnProperty.call(message, "itemModelView"))
4595
+ $root.vertexvis.protobuf.stream.ItemModelViewAttributes.encode(message.itemModelView, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
4365
4596
  return writer;
4366
4597
  };
4367
4598
 
@@ -4414,6 +4645,9 @@ const vertexvis = $root.vertexvis = (() => {
4414
4645
  case 6:
4415
4646
  message.modelViewId = $root.vertexvis.protobuf.core.Uuid2l.decode(reader, reader.uint32());
4416
4647
  break;
4648
+ case 7:
4649
+ message.itemModelView = $root.vertexvis.protobuf.stream.ItemModelViewAttributes.decode(reader, reader.uint32());
4650
+ break;
4417
4651
  default:
4418
4652
  reader.skipType(tag & 7);
4419
4653
  break;
@@ -4477,6 +4711,11 @@ const vertexvis = $root.vertexvis = (() => {
4477
4711
  if (error)
4478
4712
  return "modelViewId." + error;
4479
4713
  }
4714
+ if (message.itemModelView != null && message.hasOwnProperty("itemModelView")) {
4715
+ let error = $root.vertexvis.protobuf.stream.ItemModelViewAttributes.verify(message.itemModelView);
4716
+ if (error)
4717
+ return "itemModelView." + error;
4718
+ }
4480
4719
  return null;
4481
4720
  };
4482
4721
 
@@ -4519,6 +4758,11 @@ const vertexvis = $root.vertexvis = (() => {
4519
4758
  throw TypeError(".vertexvis.protobuf.stream.SceneAttributes.modelViewId: object expected");
4520
4759
  message.modelViewId = $root.vertexvis.protobuf.core.Uuid2l.fromObject(object.modelViewId);
4521
4760
  }
4761
+ if (object.itemModelView != null) {
4762
+ if (typeof object.itemModelView !== "object")
4763
+ throw TypeError(".vertexvis.protobuf.stream.SceneAttributes.itemModelView: object expected");
4764
+ message.itemModelView = $root.vertexvis.protobuf.stream.ItemModelViewAttributes.fromObject(object.itemModelView);
4765
+ }
4522
4766
  return message;
4523
4767
  };
4524
4768
 
@@ -4542,6 +4786,7 @@ const vertexvis = $root.vertexvis = (() => {
4542
4786
  object.hasChanged = false;
4543
4787
  object.displayListSummary = null;
4544
4788
  object.modelViewId = null;
4789
+ object.itemModelView = null;
4545
4790
  }
4546
4791
  if (message.camera != null && message.hasOwnProperty("camera"))
4547
4792
  object.camera = $root.vertexvis.protobuf.stream.Camera.toObject(message.camera, options);
@@ -4555,6 +4800,8 @@ const vertexvis = $root.vertexvis = (() => {
4555
4800
  object.displayListSummary = $root.vertexvis.protobuf.stream.DisplayListSummary.toObject(message.displayListSummary, options);
4556
4801
  if (message.modelViewId != null && message.hasOwnProperty("modelViewId"))
4557
4802
  object.modelViewId = $root.vertexvis.protobuf.core.Uuid2l.toObject(message.modelViewId, options);
4803
+ if (message.itemModelView != null && message.hasOwnProperty("itemModelView"))
4804
+ object.itemModelView = $root.vertexvis.protobuf.stream.ItemModelViewAttributes.toObject(message.itemModelView, options);
4558
4805
  return object;
4559
4806
  };
4560
4807
 
@@ -27826,6 +28073,7 @@ const vertexvis = $root.vertexvis = (() => {
27826
28073
  * @property {google.protobuf.IBytesValue|null} [featureMap] DrawFramePayload featureMap
27827
28074
  * @property {boolean|null} [temporalRefinement] DrawFramePayload temporalRefinement
27828
28075
  * @property {vertexvis.protobuf.core.IUuid|null} [temporalRefinementCorrelationId] DrawFramePayload temporalRefinementCorrelationId
28076
+ * @property {google.protobuf.IBoolValue|null} [partialFrame] DrawFramePayload partialFrame
27829
28077
  */
27830
28078
 
27831
28079
  /**
@@ -27916,6 +28164,14 @@ const vertexvis = $root.vertexvis = (() => {
27916
28164
  */
27917
28165
  DrawFramePayload.prototype.temporalRefinementCorrelationId = null;
27918
28166
 
28167
+ /**
28168
+ * DrawFramePayload partialFrame.
28169
+ * @member {google.protobuf.IBoolValue|null|undefined} partialFrame
28170
+ * @memberof vertexvis.protobuf.stream.DrawFramePayload
28171
+ * @instance
28172
+ */
28173
+ DrawFramePayload.prototype.partialFrame = null;
28174
+
27919
28175
  /**
27920
28176
  * Creates a new DrawFramePayload instance using the specified properties.
27921
28177
  * @function create
@@ -27959,6 +28215,8 @@ const vertexvis = $root.vertexvis = (() => {
27959
28215
  writer.uint32(/* id 8, wireType 0 =*/64).bool(message.temporalRefinement);
27960
28216
  if (message.temporalRefinementCorrelationId != null && Object.hasOwnProperty.call(message, "temporalRefinementCorrelationId"))
27961
28217
  $root.vertexvis.protobuf.core.Uuid.encode(message.temporalRefinementCorrelationId, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
28218
+ if (message.partialFrame != null && Object.hasOwnProperty.call(message, "partialFrame"))
28219
+ $root.google.protobuf.BoolValue.encode(message.partialFrame, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
27962
28220
  return writer;
27963
28221
  };
27964
28222
 
@@ -28022,6 +28280,9 @@ const vertexvis = $root.vertexvis = (() => {
28022
28280
  case 9:
28023
28281
  message.temporalRefinementCorrelationId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
28024
28282
  break;
28283
+ case 10:
28284
+ message.partialFrame = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
28285
+ break;
28025
28286
  default:
28026
28287
  reader.skipType(tag & 7);
28027
28288
  break;
@@ -28098,6 +28359,11 @@ const vertexvis = $root.vertexvis = (() => {
28098
28359
  if (error)
28099
28360
  return "temporalRefinementCorrelationId." + error;
28100
28361
  }
28362
+ if (message.partialFrame != null && message.hasOwnProperty("partialFrame")) {
28363
+ let error = $root.google.protobuf.BoolValue.verify(message.partialFrame);
28364
+ if (error)
28365
+ return "partialFrame." + error;
28366
+ }
28101
28367
  return null;
28102
28368
  };
28103
28369
 
@@ -28154,6 +28420,11 @@ const vertexvis = $root.vertexvis = (() => {
28154
28420
  throw TypeError(".vertexvis.protobuf.stream.DrawFramePayload.temporalRefinementCorrelationId: object expected");
28155
28421
  message.temporalRefinementCorrelationId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.temporalRefinementCorrelationId);
28156
28422
  }
28423
+ if (object.partialFrame != null) {
28424
+ if (typeof object.partialFrame !== "object")
28425
+ throw TypeError(".vertexvis.protobuf.stream.DrawFramePayload.partialFrame: object expected");
28426
+ message.partialFrame = $root.google.protobuf.BoolValue.fromObject(object.partialFrame);
28427
+ }
28157
28428
  return message;
28158
28429
  };
28159
28430
 
@@ -28187,6 +28458,7 @@ const vertexvis = $root.vertexvis = (() => {
28187
28458
  object.featureMap = null;
28188
28459
  object.temporalRefinement = false;
28189
28460
  object.temporalRefinementCorrelationId = null;
28461
+ object.partialFrame = null;
28190
28462
  }
28191
28463
  if (message.sequenceNumber != null && message.hasOwnProperty("sequenceNumber"))
28192
28464
  object.sequenceNumber = message.sequenceNumber;
@@ -28209,6 +28481,8 @@ const vertexvis = $root.vertexvis = (() => {
28209
28481
  object.temporalRefinement = message.temporalRefinement;
28210
28482
  if (message.temporalRefinementCorrelationId != null && message.hasOwnProperty("temporalRefinementCorrelationId"))
28211
28483
  object.temporalRefinementCorrelationId = $root.vertexvis.protobuf.core.Uuid.toObject(message.temporalRefinementCorrelationId, options);
28484
+ if (message.partialFrame != null && message.hasOwnProperty("partialFrame"))
28485
+ object.partialFrame = $root.google.protobuf.BoolValue.toObject(message.partialFrame, options);
28212
28486
  return object;
28213
28487
  };
28214
28488