@vertexvis/stream-api 0.23.3-canary.0 → 0.23.3-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.
@@ -24814,6 +24814,22 @@ const vertexvis = $root.vertexvis = (() => {
24814
24814
  return StreamRequest;
24815
24815
  })();
24816
24816
 
24817
+ /**
24818
+ * CameraType enum.
24819
+ * @name vertexvis.protobuf.stream.CameraType
24820
+ * @enum {number}
24821
+ * @property {number} CAMERA_TYPE_INVALID=0 CAMERA_TYPE_INVALID value
24822
+ * @property {number} CAMERA_TYPE_PERSPECTIVE=1 CAMERA_TYPE_PERSPECTIVE value
24823
+ * @property {number} CAMERA_TYPE_ORTHOGRAPHIC=2 CAMERA_TYPE_ORTHOGRAPHIC value
24824
+ */
24825
+ stream.CameraType = (function() {
24826
+ const valuesById = {}, values = Object.create(valuesById);
24827
+ values[valuesById[0] = "CAMERA_TYPE_INVALID"] = 0;
24828
+ values[valuesById[1] = "CAMERA_TYPE_PERSPECTIVE"] = 1;
24829
+ values[valuesById[2] = "CAMERA_TYPE_ORTHOGRAPHIC"] = 2;
24830
+ return values;
24831
+ })();
24832
+
24817
24833
  stream.GracefulReconnectionPayload = (function() {
24818
24834
 
24819
24835
  /**
@@ -25048,6 +25064,7 @@ const vertexvis = $root.vertexvis = (() => {
25048
25064
  * @property {vertexvis.protobuf.core.IUuid|null} [sceneViewStateId] StartStreamPayload sceneViewStateId
25049
25065
  * @property {google.protobuf.IStringValue|null} [sceneViewStateSuppliedId] StartStreamPayload sceneViewStateSuppliedId
25050
25066
  * @property {boolean|null} [clientSupportsTemporalRefinement] StartStreamPayload clientSupportsTemporalRefinement
25067
+ * @property {vertexvis.protobuf.stream.CameraType|null} [cameraType] StartStreamPayload cameraType
25051
25068
  */
25052
25069
 
25053
25070
  /**
@@ -25129,6 +25146,14 @@ const vertexvis = $root.vertexvis = (() => {
25129
25146
  */
25130
25147
  StartStreamPayload.prototype.clientSupportsTemporalRefinement = false;
25131
25148
 
25149
+ /**
25150
+ * StartStreamPayload cameraType.
25151
+ * @member {vertexvis.protobuf.stream.CameraType} cameraType
25152
+ * @memberof vertexvis.protobuf.stream.StartStreamPayload
25153
+ * @instance
25154
+ */
25155
+ StartStreamPayload.prototype.cameraType = 0;
25156
+
25132
25157
  // OneOf field names bound to virtual getters and setters
25133
25158
  let $oneOfFields;
25134
25159
 
@@ -25183,6 +25208,8 @@ const vertexvis = $root.vertexvis = (() => {
25183
25208
  $root.google.protobuf.StringValue.encode(message.sceneViewStateSuppliedId, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
25184
25209
  if (message.clientSupportsTemporalRefinement != null && Object.hasOwnProperty.call(message, "clientSupportsTemporalRefinement"))
25185
25210
  writer.uint32(/* id 8, wireType 0 =*/64).bool(message.clientSupportsTemporalRefinement);
25211
+ if (message.cameraType != null && Object.hasOwnProperty.call(message, "cameraType"))
25212
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.cameraType);
25186
25213
  return writer;
25187
25214
  };
25188
25215
 
@@ -25241,6 +25268,9 @@ const vertexvis = $root.vertexvis = (() => {
25241
25268
  case 8:
25242
25269
  message.clientSupportsTemporalRefinement = reader.bool();
25243
25270
  break;
25271
+ case 9:
25272
+ message.cameraType = reader.int32();
25273
+ break;
25244
25274
  default:
25245
25275
  reader.skipType(tag & 7);
25246
25276
  break;
@@ -25323,6 +25353,15 @@ const vertexvis = $root.vertexvis = (() => {
25323
25353
  if (message.clientSupportsTemporalRefinement != null && message.hasOwnProperty("clientSupportsTemporalRefinement"))
25324
25354
  if (typeof message.clientSupportsTemporalRefinement !== "boolean")
25325
25355
  return "clientSupportsTemporalRefinement: boolean expected";
25356
+ if (message.cameraType != null && message.hasOwnProperty("cameraType"))
25357
+ switch (message.cameraType) {
25358
+ default:
25359
+ return "cameraType: enum value expected";
25360
+ case 0:
25361
+ case 1:
25362
+ case 2:
25363
+ break;
25364
+ }
25326
25365
  return null;
25327
25366
  };
25328
25367
 
@@ -25375,6 +25414,20 @@ const vertexvis = $root.vertexvis = (() => {
25375
25414
  }
25376
25415
  if (object.clientSupportsTemporalRefinement != null)
25377
25416
  message.clientSupportsTemporalRefinement = Boolean(object.clientSupportsTemporalRefinement);
25417
+ switch (object.cameraType) {
25418
+ case "CAMERA_TYPE_INVALID":
25419
+ case 0:
25420
+ message.cameraType = 0;
25421
+ break;
25422
+ case "CAMERA_TYPE_PERSPECTIVE":
25423
+ case 1:
25424
+ message.cameraType = 1;
25425
+ break;
25426
+ case "CAMERA_TYPE_ORTHOGRAPHIC":
25427
+ case 2:
25428
+ message.cameraType = 2;
25429
+ break;
25430
+ }
25378
25431
  return message;
25379
25432
  };
25380
25433
 
@@ -25398,6 +25451,7 @@ const vertexvis = $root.vertexvis = (() => {
25398
25451
  object.streamAttributes = null;
25399
25452
  object.streamKey = null;
25400
25453
  object.clientSupportsTemporalRefinement = false;
25454
+ object.cameraType = options.enums === String ? "CAMERA_TYPE_INVALID" : 0;
25401
25455
  }
25402
25456
  if (message.dimensions != null && message.hasOwnProperty("dimensions"))
25403
25457
  object.dimensions = $root.vertexvis.protobuf.stream.Dimensions.toObject(message.dimensions, options);
@@ -25421,6 +25475,8 @@ const vertexvis = $root.vertexvis = (() => {
25421
25475
  }
25422
25476
  if (message.clientSupportsTemporalRefinement != null && message.hasOwnProperty("clientSupportsTemporalRefinement"))
25423
25477
  object.clientSupportsTemporalRefinement = message.clientSupportsTemporalRefinement;
25478
+ if (message.cameraType != null && message.hasOwnProperty("cameraType"))
25479
+ object.cameraType = options.enums === String ? $root.vertexvis.protobuf.stream.CameraType[message.cameraType] : message.cameraType;
25424
25480
  return object;
25425
25481
  };
25426
25482
 
@@ -28921,6 +28977,7 @@ const vertexvis = $root.vertexvis = (() => {
28921
28977
  * @property {google.protobuf.IStringValue|null} [sceneViewStateSuppliedId] LoadSceneViewStatePayload sceneViewStateSuppliedId
28922
28978
  * @property {google.protobuf.IStringValue|null} [frameCorrelationId] LoadSceneViewStatePayload frameCorrelationId
28923
28979
  * @property {Array.<vertexvis.protobuf.stream.SceneViewStateFeature>|null} [sceneViewStateFeatureSubset] LoadSceneViewStatePayload sceneViewStateFeatureSubset
28980
+ * @property {vertexvis.protobuf.stream.CameraType|null} [cameraType] LoadSceneViewStatePayload cameraType
28924
28981
  */
28925
28982
 
28926
28983
  /**
@@ -28971,6 +29028,14 @@ const vertexvis = $root.vertexvis = (() => {
28971
29028
  */
28972
29029
  LoadSceneViewStatePayload.prototype.sceneViewStateFeatureSubset = $util.emptyArray;
28973
29030
 
29031
+ /**
29032
+ * LoadSceneViewStatePayload cameraType.
29033
+ * @member {vertexvis.protobuf.stream.CameraType} cameraType
29034
+ * @memberof vertexvis.protobuf.stream.LoadSceneViewStatePayload
29035
+ * @instance
29036
+ */
29037
+ LoadSceneViewStatePayload.prototype.cameraType = 0;
29038
+
28974
29039
  // OneOf field names bound to virtual getters and setters
28975
29040
  let $oneOfFields;
28976
29041
 
@@ -29021,6 +29086,8 @@ const vertexvis = $root.vertexvis = (() => {
29021
29086
  }
29022
29087
  if (message.sceneViewStateSuppliedId != null && Object.hasOwnProperty.call(message, "sceneViewStateSuppliedId"))
29023
29088
  $root.google.protobuf.StringValue.encode(message.sceneViewStateSuppliedId, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
29089
+ if (message.cameraType != null && Object.hasOwnProperty.call(message, "cameraType"))
29090
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.cameraType);
29024
29091
  return writer;
29025
29092
  };
29026
29093
 
@@ -29074,6 +29141,9 @@ const vertexvis = $root.vertexvis = (() => {
29074
29141
  } else
29075
29142
  message.sceneViewStateFeatureSubset.push(reader.int32());
29076
29143
  break;
29144
+ case 5:
29145
+ message.cameraType = reader.int32();
29146
+ break;
29077
29147
  default:
29078
29148
  reader.skipType(tag & 7);
29079
29149
  break;
@@ -29152,6 +29222,15 @@ const vertexvis = $root.vertexvis = (() => {
29152
29222
  break;
29153
29223
  }
29154
29224
  }
29225
+ if (message.cameraType != null && message.hasOwnProperty("cameraType"))
29226
+ switch (message.cameraType) {
29227
+ default:
29228
+ return "cameraType: enum value expected";
29229
+ case 0:
29230
+ case 1:
29231
+ case 2:
29232
+ break;
29233
+ }
29155
29234
  return null;
29156
29235
  };
29157
29236
 
@@ -29227,6 +29306,20 @@ const vertexvis = $root.vertexvis = (() => {
29227
29306
  break;
29228
29307
  }
29229
29308
  }
29309
+ switch (object.cameraType) {
29310
+ case "CAMERA_TYPE_INVALID":
29311
+ case 0:
29312
+ message.cameraType = 0;
29313
+ break;
29314
+ case "CAMERA_TYPE_PERSPECTIVE":
29315
+ case 1:
29316
+ message.cameraType = 1;
29317
+ break;
29318
+ case "CAMERA_TYPE_ORTHOGRAPHIC":
29319
+ case 2:
29320
+ message.cameraType = 2;
29321
+ break;
29322
+ }
29230
29323
  return message;
29231
29324
  };
29232
29325
 
@@ -29245,8 +29338,10 @@ const vertexvis = $root.vertexvis = (() => {
29245
29338
  let object = {};
29246
29339
  if (options.arrays || options.defaults)
29247
29340
  object.sceneViewStateFeatureSubset = [];
29248
- if (options.defaults)
29341
+ if (options.defaults) {
29249
29342
  object.frameCorrelationId = null;
29343
+ object.cameraType = options.enums === String ? "CAMERA_TYPE_INVALID" : 0;
29344
+ }
29250
29345
  if (message.sceneViewStateId != null && message.hasOwnProperty("sceneViewStateId")) {
29251
29346
  object.sceneViewStateId = $root.vertexvis.protobuf.core.Uuid.toObject(message.sceneViewStateId, options);
29252
29347
  if (options.oneofs)
@@ -29264,6 +29359,8 @@ const vertexvis = $root.vertexvis = (() => {
29264
29359
  if (options.oneofs)
29265
29360
  object.sceneViewStateIdentifier = "sceneViewStateSuppliedId";
29266
29361
  }
29362
+ if (message.cameraType != null && message.hasOwnProperty("cameraType"))
29363
+ object.cameraType = options.enums === String ? $root.vertexvis.protobuf.stream.CameraType[message.cameraType] : message.cameraType;
29267
29364
  return object;
29268
29365
  };
29269
29366
 
@@ -29289,6 +29386,7 @@ const vertexvis = $root.vertexvis = (() => {
29289
29386
  * @interface IResetViewPlayload
29290
29387
  * @property {google.protobuf.IStringValue|null} [frameCorrelationId] ResetViewPlayload frameCorrelationId
29291
29388
  * @property {boolean|null} [includeCamera] ResetViewPlayload includeCamera
29389
+ * @property {vertexvis.protobuf.stream.CameraType|null} [cameraType] ResetViewPlayload cameraType
29292
29390
  */
29293
29391
 
29294
29392
  /**
@@ -29322,6 +29420,14 @@ const vertexvis = $root.vertexvis = (() => {
29322
29420
  */
29323
29421
  ResetViewPlayload.prototype.includeCamera = false;
29324
29422
 
29423
+ /**
29424
+ * ResetViewPlayload cameraType.
29425
+ * @member {vertexvis.protobuf.stream.CameraType} cameraType
29426
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
29427
+ * @instance
29428
+ */
29429
+ ResetViewPlayload.prototype.cameraType = 0;
29430
+
29325
29431
  /**
29326
29432
  * Creates a new ResetViewPlayload instance using the specified properties.
29327
29433
  * @function create
@@ -29350,6 +29456,8 @@ const vertexvis = $root.vertexvis = (() => {
29350
29456
  $root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
29351
29457
  if (message.includeCamera != null && Object.hasOwnProperty.call(message, "includeCamera"))
29352
29458
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeCamera);
29459
+ if (message.cameraType != null && Object.hasOwnProperty.call(message, "cameraType"))
29460
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cameraType);
29353
29461
  return writer;
29354
29462
  };
29355
29463
 
@@ -29390,6 +29498,9 @@ const vertexvis = $root.vertexvis = (() => {
29390
29498
  case 2:
29391
29499
  message.includeCamera = reader.bool();
29392
29500
  break;
29501
+ case 3:
29502
+ message.cameraType = reader.int32();
29503
+ break;
29393
29504
  default:
29394
29505
  reader.skipType(tag & 7);
29395
29506
  break;
@@ -29433,6 +29544,15 @@ const vertexvis = $root.vertexvis = (() => {
29433
29544
  if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
29434
29545
  if (typeof message.includeCamera !== "boolean")
29435
29546
  return "includeCamera: boolean expected";
29547
+ if (message.cameraType != null && message.hasOwnProperty("cameraType"))
29548
+ switch (message.cameraType) {
29549
+ default:
29550
+ return "cameraType: enum value expected";
29551
+ case 0:
29552
+ case 1:
29553
+ case 2:
29554
+ break;
29555
+ }
29436
29556
  return null;
29437
29557
  };
29438
29558
 
@@ -29455,6 +29575,20 @@ const vertexvis = $root.vertexvis = (() => {
29455
29575
  }
29456
29576
  if (object.includeCamera != null)
29457
29577
  message.includeCamera = Boolean(object.includeCamera);
29578
+ switch (object.cameraType) {
29579
+ case "CAMERA_TYPE_INVALID":
29580
+ case 0:
29581
+ message.cameraType = 0;
29582
+ break;
29583
+ case "CAMERA_TYPE_PERSPECTIVE":
29584
+ case 1:
29585
+ message.cameraType = 1;
29586
+ break;
29587
+ case "CAMERA_TYPE_ORTHOGRAPHIC":
29588
+ case 2:
29589
+ message.cameraType = 2;
29590
+ break;
29591
+ }
29458
29592
  return message;
29459
29593
  };
29460
29594
 
@@ -29474,11 +29608,14 @@ const vertexvis = $root.vertexvis = (() => {
29474
29608
  if (options.defaults) {
29475
29609
  object.frameCorrelationId = null;
29476
29610
  object.includeCamera = false;
29611
+ object.cameraType = options.enums === String ? "CAMERA_TYPE_INVALID" : 0;
29477
29612
  }
29478
29613
  if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
29479
29614
  object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
29480
29615
  if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
29481
29616
  object.includeCamera = message.includeCamera;
29617
+ if (message.cameraType != null && message.hasOwnProperty("cameraType"))
29618
+ object.cameraType = options.enums === String ? $root.vertexvis.protobuf.stream.CameraType[message.cameraType] : message.cameraType;
29482
29619
  return object;
29483
29620
  };
29484
29621