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