@vertexvis/stream-api 0.20.0-canary.1 → 0.20.0-canary.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.
@@ -16573,6 +16573,251 @@ const vertexvis = $root.vertexvis = (() => {
16573
16573
  return TransformInteraction;
16574
16574
  })();
16575
16575
 
16576
+ stream.SceneViewStateIdentifier = (function() {
16577
+
16578
+ /**
16579
+ * Properties of a SceneViewStateIdentifier.
16580
+ * @memberof vertexvis.protobuf.stream
16581
+ * @interface ISceneViewStateIdentifier
16582
+ * @property {vertexvis.protobuf.core.IUuid|null} [sceneViewStateId] SceneViewStateIdentifier sceneViewStateId
16583
+ * @property {google.protobuf.IStringValue|null} [sceneViewStateSuppliedId] SceneViewStateIdentifier sceneViewStateSuppliedId
16584
+ */
16585
+
16586
+ /**
16587
+ * Constructs a new SceneViewStateIdentifier.
16588
+ * @memberof vertexvis.protobuf.stream
16589
+ * @classdesc Represents a SceneViewStateIdentifier.
16590
+ * @implements ISceneViewStateIdentifier
16591
+ * @constructor
16592
+ * @param {vertexvis.protobuf.stream.ISceneViewStateIdentifier=} [properties] Properties to set
16593
+ */
16594
+ function SceneViewStateIdentifier(properties) {
16595
+ if (properties)
16596
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16597
+ if (properties[keys[i]] != null)
16598
+ this[keys[i]] = properties[keys[i]];
16599
+ }
16600
+
16601
+ /**
16602
+ * SceneViewStateIdentifier sceneViewStateId.
16603
+ * @member {vertexvis.protobuf.core.IUuid|null|undefined} sceneViewStateId
16604
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16605
+ * @instance
16606
+ */
16607
+ SceneViewStateIdentifier.prototype.sceneViewStateId = null;
16608
+
16609
+ /**
16610
+ * SceneViewStateIdentifier sceneViewStateSuppliedId.
16611
+ * @member {google.protobuf.IStringValue|null|undefined} sceneViewStateSuppliedId
16612
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16613
+ * @instance
16614
+ */
16615
+ SceneViewStateIdentifier.prototype.sceneViewStateSuppliedId = null;
16616
+
16617
+ // OneOf field names bound to virtual getters and setters
16618
+ let $oneOfFields;
16619
+
16620
+ /**
16621
+ * SceneViewStateIdentifier id.
16622
+ * @member {"sceneViewStateId"|"sceneViewStateSuppliedId"|undefined} id
16623
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16624
+ * @instance
16625
+ */
16626
+ Object.defineProperty(SceneViewStateIdentifier.prototype, "id", {
16627
+ get: $util.oneOfGetter($oneOfFields = ["sceneViewStateId", "sceneViewStateSuppliedId"]),
16628
+ set: $util.oneOfSetter($oneOfFields)
16629
+ });
16630
+
16631
+ /**
16632
+ * Creates a new SceneViewStateIdentifier instance using the specified properties.
16633
+ * @function create
16634
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16635
+ * @static
16636
+ * @param {vertexvis.protobuf.stream.ISceneViewStateIdentifier=} [properties] Properties to set
16637
+ * @returns {vertexvis.protobuf.stream.SceneViewStateIdentifier} SceneViewStateIdentifier instance
16638
+ */
16639
+ SceneViewStateIdentifier.create = function create(properties) {
16640
+ return new SceneViewStateIdentifier(properties);
16641
+ };
16642
+
16643
+ /**
16644
+ * Encodes the specified SceneViewStateIdentifier message. Does not implicitly {@link vertexvis.protobuf.stream.SceneViewStateIdentifier.verify|verify} messages.
16645
+ * @function encode
16646
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16647
+ * @static
16648
+ * @param {vertexvis.protobuf.stream.ISceneViewStateIdentifier} message SceneViewStateIdentifier message or plain object to encode
16649
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16650
+ * @returns {$protobuf.Writer} Writer
16651
+ */
16652
+ SceneViewStateIdentifier.encode = function encode(message, writer) {
16653
+ if (!writer)
16654
+ writer = $Writer.create();
16655
+ if (message.sceneViewStateId != null && Object.hasOwnProperty.call(message, "sceneViewStateId"))
16656
+ $root.vertexvis.protobuf.core.Uuid.encode(message.sceneViewStateId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
16657
+ if (message.sceneViewStateSuppliedId != null && Object.hasOwnProperty.call(message, "sceneViewStateSuppliedId"))
16658
+ $root.google.protobuf.StringValue.encode(message.sceneViewStateSuppliedId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
16659
+ return writer;
16660
+ };
16661
+
16662
+ /**
16663
+ * Encodes the specified SceneViewStateIdentifier message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.SceneViewStateIdentifier.verify|verify} messages.
16664
+ * @function encodeDelimited
16665
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16666
+ * @static
16667
+ * @param {vertexvis.protobuf.stream.ISceneViewStateIdentifier} message SceneViewStateIdentifier message or plain object to encode
16668
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16669
+ * @returns {$protobuf.Writer} Writer
16670
+ */
16671
+ SceneViewStateIdentifier.encodeDelimited = function encodeDelimited(message, writer) {
16672
+ return this.encode(message, writer).ldelim();
16673
+ };
16674
+
16675
+ /**
16676
+ * Decodes a SceneViewStateIdentifier message from the specified reader or buffer.
16677
+ * @function decode
16678
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16679
+ * @static
16680
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16681
+ * @param {number} [length] Message length if known beforehand
16682
+ * @returns {vertexvis.protobuf.stream.SceneViewStateIdentifier} SceneViewStateIdentifier
16683
+ * @throws {Error} If the payload is not a reader or valid buffer
16684
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16685
+ */
16686
+ SceneViewStateIdentifier.decode = function decode(reader, length) {
16687
+ if (!(reader instanceof $Reader))
16688
+ reader = $Reader.create(reader);
16689
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.SceneViewStateIdentifier();
16690
+ while (reader.pos < end) {
16691
+ let tag = reader.uint32();
16692
+ switch (tag >>> 3) {
16693
+ case 1:
16694
+ message.sceneViewStateId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
16695
+ break;
16696
+ case 2:
16697
+ message.sceneViewStateSuppliedId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
16698
+ break;
16699
+ default:
16700
+ reader.skipType(tag & 7);
16701
+ break;
16702
+ }
16703
+ }
16704
+ return message;
16705
+ };
16706
+
16707
+ /**
16708
+ * Decodes a SceneViewStateIdentifier message from the specified reader or buffer, length delimited.
16709
+ * @function decodeDelimited
16710
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16711
+ * @static
16712
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16713
+ * @returns {vertexvis.protobuf.stream.SceneViewStateIdentifier} SceneViewStateIdentifier
16714
+ * @throws {Error} If the payload is not a reader or valid buffer
16715
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16716
+ */
16717
+ SceneViewStateIdentifier.decodeDelimited = function decodeDelimited(reader) {
16718
+ if (!(reader instanceof $Reader))
16719
+ reader = new $Reader(reader);
16720
+ return this.decode(reader, reader.uint32());
16721
+ };
16722
+
16723
+ /**
16724
+ * Verifies a SceneViewStateIdentifier message.
16725
+ * @function verify
16726
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16727
+ * @static
16728
+ * @param {Object.<string,*>} message Plain object to verify
16729
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
16730
+ */
16731
+ SceneViewStateIdentifier.verify = function verify(message) {
16732
+ if (typeof message !== "object" || message === null)
16733
+ return "object expected";
16734
+ let properties = {};
16735
+ if (message.sceneViewStateId != null && message.hasOwnProperty("sceneViewStateId")) {
16736
+ properties.id = 1;
16737
+ {
16738
+ let error = $root.vertexvis.protobuf.core.Uuid.verify(message.sceneViewStateId);
16739
+ if (error)
16740
+ return "sceneViewStateId." + error;
16741
+ }
16742
+ }
16743
+ if (message.sceneViewStateSuppliedId != null && message.hasOwnProperty("sceneViewStateSuppliedId")) {
16744
+ if (properties.id === 1)
16745
+ return "id: multiple values";
16746
+ properties.id = 1;
16747
+ {
16748
+ let error = $root.google.protobuf.StringValue.verify(message.sceneViewStateSuppliedId);
16749
+ if (error)
16750
+ return "sceneViewStateSuppliedId." + error;
16751
+ }
16752
+ }
16753
+ return null;
16754
+ };
16755
+
16756
+ /**
16757
+ * Creates a SceneViewStateIdentifier message from a plain object. Also converts values to their respective internal types.
16758
+ * @function fromObject
16759
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16760
+ * @static
16761
+ * @param {Object.<string,*>} object Plain object
16762
+ * @returns {vertexvis.protobuf.stream.SceneViewStateIdentifier} SceneViewStateIdentifier
16763
+ */
16764
+ SceneViewStateIdentifier.fromObject = function fromObject(object) {
16765
+ if (object instanceof $root.vertexvis.protobuf.stream.SceneViewStateIdentifier)
16766
+ return object;
16767
+ let message = new $root.vertexvis.protobuf.stream.SceneViewStateIdentifier();
16768
+ if (object.sceneViewStateId != null) {
16769
+ if (typeof object.sceneViewStateId !== "object")
16770
+ throw TypeError(".vertexvis.protobuf.stream.SceneViewStateIdentifier.sceneViewStateId: object expected");
16771
+ message.sceneViewStateId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.sceneViewStateId);
16772
+ }
16773
+ if (object.sceneViewStateSuppliedId != null) {
16774
+ if (typeof object.sceneViewStateSuppliedId !== "object")
16775
+ throw TypeError(".vertexvis.protobuf.stream.SceneViewStateIdentifier.sceneViewStateSuppliedId: object expected");
16776
+ message.sceneViewStateSuppliedId = $root.google.protobuf.StringValue.fromObject(object.sceneViewStateSuppliedId);
16777
+ }
16778
+ return message;
16779
+ };
16780
+
16781
+ /**
16782
+ * Creates a plain object from a SceneViewStateIdentifier message. Also converts values to other types if specified.
16783
+ * @function toObject
16784
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16785
+ * @static
16786
+ * @param {vertexvis.protobuf.stream.SceneViewStateIdentifier} message SceneViewStateIdentifier
16787
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
16788
+ * @returns {Object.<string,*>} Plain object
16789
+ */
16790
+ SceneViewStateIdentifier.toObject = function toObject(message, options) {
16791
+ if (!options)
16792
+ options = {};
16793
+ let object = {};
16794
+ if (message.sceneViewStateId != null && message.hasOwnProperty("sceneViewStateId")) {
16795
+ object.sceneViewStateId = $root.vertexvis.protobuf.core.Uuid.toObject(message.sceneViewStateId, options);
16796
+ if (options.oneofs)
16797
+ object.id = "sceneViewStateId";
16798
+ }
16799
+ if (message.sceneViewStateSuppliedId != null && message.hasOwnProperty("sceneViewStateSuppliedId")) {
16800
+ object.sceneViewStateSuppliedId = $root.google.protobuf.StringValue.toObject(message.sceneViewStateSuppliedId, options);
16801
+ if (options.oneofs)
16802
+ object.id = "sceneViewStateSuppliedId";
16803
+ }
16804
+ return object;
16805
+ };
16806
+
16807
+ /**
16808
+ * Converts this SceneViewStateIdentifier to JSON.
16809
+ * @function toJSON
16810
+ * @memberof vertexvis.protobuf.stream.SceneViewStateIdentifier
16811
+ * @instance
16812
+ * @returns {Object.<string,*>} JSON object
16813
+ */
16814
+ SceneViewStateIdentifier.prototype.toJSON = function toJSON() {
16815
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
16816
+ };
16817
+
16818
+ return SceneViewStateIdentifier;
16819
+ })();
16820
+
16576
16821
  stream.Error = (function() {
16577
16822
 
16578
16823
  /**
@@ -22179,6 +22424,7 @@ const vertexvis = $root.vertexvis = (() => {
22179
22424
  * @property {string|null} [itemSuppliedId] FlyToPayload itemSuppliedId
22180
22425
  * @property {vertexvis.protobuf.core.IBoundingBox3f|null} [boundingBox] FlyToPayload boundingBox
22181
22426
  * @property {vertexvis.protobuf.stream.ICamera|null} [camera] FlyToPayload camera
22427
+ * @property {vertexvis.protobuf.stream.ISceneViewStateIdentifier|null} [sceneViewStateIdentifier] FlyToPayload sceneViewStateIdentifier
22182
22428
  * @property {vertexvis.protobuf.stream.ICamera|null} [baseCamera] FlyToPayload baseCamera
22183
22429
  */
22184
22430
 
@@ -22245,6 +22491,14 @@ const vertexvis = $root.vertexvis = (() => {
22245
22491
  */
22246
22492
  FlyToPayload.prototype.camera = null;
22247
22493
 
22494
+ /**
22495
+ * FlyToPayload sceneViewStateIdentifier.
22496
+ * @member {vertexvis.protobuf.stream.ISceneViewStateIdentifier|null|undefined} sceneViewStateIdentifier
22497
+ * @memberof vertexvis.protobuf.stream.FlyToPayload
22498
+ * @instance
22499
+ */
22500
+ FlyToPayload.prototype.sceneViewStateIdentifier = null;
22501
+
22248
22502
  /**
22249
22503
  * FlyToPayload baseCamera.
22250
22504
  * @member {vertexvis.protobuf.stream.ICamera|null|undefined} baseCamera
@@ -22258,12 +22512,12 @@ const vertexvis = $root.vertexvis = (() => {
22258
22512
 
22259
22513
  /**
22260
22514
  * FlyToPayload flyToType.
22261
- * @member {"itemId"|"itemSuppliedId"|"boundingBox"|"camera"|undefined} flyToType
22515
+ * @member {"itemId"|"itemSuppliedId"|"boundingBox"|"camera"|"sceneViewStateIdentifier"|undefined} flyToType
22262
22516
  * @memberof vertexvis.protobuf.stream.FlyToPayload
22263
22517
  * @instance
22264
22518
  */
22265
22519
  Object.defineProperty(FlyToPayload.prototype, "flyToType", {
22266
- get: $util.oneOfGetter($oneOfFields = ["itemId", "itemSuppliedId", "boundingBox", "camera"]),
22520
+ get: $util.oneOfGetter($oneOfFields = ["itemId", "itemSuppliedId", "boundingBox", "camera", "sceneViewStateIdentifier"]),
22267
22521
  set: $util.oneOfSetter($oneOfFields)
22268
22522
  });
22269
22523
 
@@ -22305,6 +22559,8 @@ const vertexvis = $root.vertexvis = (() => {
22305
22559
  $root.vertexvis.protobuf.stream.Camera.encode(message.camera, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
22306
22560
  if (message.baseCamera != null && Object.hasOwnProperty.call(message, "baseCamera"))
22307
22561
  $root.vertexvis.protobuf.stream.Camera.encode(message.baseCamera, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
22562
+ if (message.sceneViewStateIdentifier != null && Object.hasOwnProperty.call(message, "sceneViewStateIdentifier"))
22563
+ $root.vertexvis.protobuf.stream.SceneViewStateIdentifier.encode(message.sceneViewStateIdentifier, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
22308
22564
  return writer;
22309
22565
  };
22310
22566
 
@@ -22357,6 +22613,9 @@ const vertexvis = $root.vertexvis = (() => {
22357
22613
  case 6:
22358
22614
  message.camera = $root.vertexvis.protobuf.stream.Camera.decode(reader, reader.uint32());
22359
22615
  break;
22616
+ case 8:
22617
+ message.sceneViewStateIdentifier = $root.vertexvis.protobuf.stream.SceneViewStateIdentifier.decode(reader, reader.uint32());
22618
+ break;
22360
22619
  case 7:
22361
22620
  message.baseCamera = $root.vertexvis.protobuf.stream.Camera.decode(reader, reader.uint32());
22362
22621
  break;
@@ -22441,6 +22700,16 @@ const vertexvis = $root.vertexvis = (() => {
22441
22700
  return "camera." + error;
22442
22701
  }
22443
22702
  }
22703
+ if (message.sceneViewStateIdentifier != null && message.hasOwnProperty("sceneViewStateIdentifier")) {
22704
+ if (properties.flyToType === 1)
22705
+ return "flyToType: multiple values";
22706
+ properties.flyToType = 1;
22707
+ {
22708
+ let error = $root.vertexvis.protobuf.stream.SceneViewStateIdentifier.verify(message.sceneViewStateIdentifier);
22709
+ if (error)
22710
+ return "sceneViewStateIdentifier." + error;
22711
+ }
22712
+ }
22444
22713
  if (message.baseCamera != null && message.hasOwnProperty("baseCamera")) {
22445
22714
  let error = $root.vertexvis.protobuf.stream.Camera.verify(message.baseCamera);
22446
22715
  if (error)
@@ -22488,6 +22757,11 @@ const vertexvis = $root.vertexvis = (() => {
22488
22757
  throw TypeError(".vertexvis.protobuf.stream.FlyToPayload.camera: object expected");
22489
22758
  message.camera = $root.vertexvis.protobuf.stream.Camera.fromObject(object.camera);
22490
22759
  }
22760
+ if (object.sceneViewStateIdentifier != null) {
22761
+ if (typeof object.sceneViewStateIdentifier !== "object")
22762
+ throw TypeError(".vertexvis.protobuf.stream.FlyToPayload.sceneViewStateIdentifier: object expected");
22763
+ message.sceneViewStateIdentifier = $root.vertexvis.protobuf.stream.SceneViewStateIdentifier.fromObject(object.sceneViewStateIdentifier);
22764
+ }
22491
22765
  if (object.baseCamera != null) {
22492
22766
  if (typeof object.baseCamera !== "object")
22493
22767
  throw TypeError(".vertexvis.protobuf.stream.FlyToPayload.baseCamera: object expected");
@@ -22540,6 +22814,11 @@ const vertexvis = $root.vertexvis = (() => {
22540
22814
  }
22541
22815
  if (message.baseCamera != null && message.hasOwnProperty("baseCamera"))
22542
22816
  object.baseCamera = $root.vertexvis.protobuf.stream.Camera.toObject(message.baseCamera, options);
22817
+ if (message.sceneViewStateIdentifier != null && message.hasOwnProperty("sceneViewStateIdentifier")) {
22818
+ object.sceneViewStateIdentifier = $root.vertexvis.protobuf.stream.SceneViewStateIdentifier.toObject(message.sceneViewStateIdentifier, options);
22819
+ if (options.oneofs)
22820
+ object.flyToType = "sceneViewStateIdentifier";
22821
+ }
22543
22822
  return object;
22544
22823
  };
22545
22824