@vertexvis/stream-api 0.11.1-canary.1 → 0.11.1-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.
@@ -27821,7 +27821,7 @@ const vertexvis = $root.vertexvis = (() => {
27821
27821
  * @interface IModelEntity
27822
27822
  * @property {number|Long|null} [entityId] ModelEntity entityId
27823
27823
  * @property {vertexvis.protobuf.core.IUuid|null} [sceneItemId] ModelEntity sceneItemId
27824
- * @property {vertexvis.protobuf.core.IUuid|null} [entityPathId] ModelEntity entityPathId
27824
+ * @property {Array.<google.protobuf.IAny>|null} [details] ModelEntity details
27825
27825
  */
27826
27826
 
27827
27827
  /**
@@ -27833,6 +27833,7 @@ const vertexvis = $root.vertexvis = (() => {
27833
27833
  * @param {vertexvis.protobuf.core.IModelEntity=} [properties] Properties to set
27834
27834
  */
27835
27835
  function ModelEntity(properties) {
27836
+ this.details = [];
27836
27837
  if (properties)
27837
27838
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
27838
27839
  if (properties[keys[i]] != null)
@@ -27856,12 +27857,12 @@ const vertexvis = $root.vertexvis = (() => {
27856
27857
  ModelEntity.prototype.sceneItemId = null;
27857
27858
 
27858
27859
  /**
27859
- * ModelEntity entityPathId.
27860
- * @member {vertexvis.protobuf.core.IUuid|null|undefined} entityPathId
27860
+ * ModelEntity details.
27861
+ * @member {Array.<google.protobuf.IAny>} details
27861
27862
  * @memberof vertexvis.protobuf.core.ModelEntity
27862
27863
  * @instance
27863
27864
  */
27864
- ModelEntity.prototype.entityPathId = null;
27865
+ ModelEntity.prototype.details = $util.emptyArray;
27865
27866
 
27866
27867
  /**
27867
27868
  * Creates a new ModelEntity instance using the specified properties.
@@ -27891,8 +27892,9 @@ const vertexvis = $root.vertexvis = (() => {
27891
27892
  writer.uint32(/* id 1, wireType 0 =*/8).int64(message.entityId);
27892
27893
  if (message.sceneItemId != null && Object.hasOwnProperty.call(message, "sceneItemId"))
27893
27894
  $root.vertexvis.protobuf.core.Uuid.encode(message.sceneItemId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
27894
- if (message.entityPathId != null && Object.hasOwnProperty.call(message, "entityPathId"))
27895
- $root.vertexvis.protobuf.core.Uuid.encode(message.entityPathId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
27895
+ if (message.details != null && message.details.length)
27896
+ for (let i = 0; i < message.details.length; ++i)
27897
+ $root.google.protobuf.Any.encode(message.details[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
27896
27898
  return writer;
27897
27899
  };
27898
27900
 
@@ -27934,7 +27936,9 @@ const vertexvis = $root.vertexvis = (() => {
27934
27936
  message.sceneItemId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
27935
27937
  break;
27936
27938
  case 3:
27937
- message.entityPathId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
27939
+ if (!(message.details && message.details.length))
27940
+ message.details = [];
27941
+ message.details.push($root.google.protobuf.Any.decode(reader, reader.uint32()));
27938
27942
  break;
27939
27943
  default:
27940
27944
  reader.skipType(tag & 7);
@@ -27979,10 +27983,14 @@ const vertexvis = $root.vertexvis = (() => {
27979
27983
  if (error)
27980
27984
  return "sceneItemId." + error;
27981
27985
  }
27982
- if (message.entityPathId != null && message.hasOwnProperty("entityPathId")) {
27983
- let error = $root.vertexvis.protobuf.core.Uuid.verify(message.entityPathId);
27984
- if (error)
27985
- return "entityPathId." + error;
27986
+ if (message.details != null && message.hasOwnProperty("details")) {
27987
+ if (!Array.isArray(message.details))
27988
+ return "details: array expected";
27989
+ for (let i = 0; i < message.details.length; ++i) {
27990
+ let error = $root.google.protobuf.Any.verify(message.details[i]);
27991
+ if (error)
27992
+ return "details." + error;
27993
+ }
27986
27994
  }
27987
27995
  return null;
27988
27996
  };
@@ -28013,10 +28021,15 @@ const vertexvis = $root.vertexvis = (() => {
28013
28021
  throw TypeError(".vertexvis.protobuf.core.ModelEntity.sceneItemId: object expected");
28014
28022
  message.sceneItemId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.sceneItemId);
28015
28023
  }
28016
- if (object.entityPathId != null) {
28017
- if (typeof object.entityPathId !== "object")
28018
- throw TypeError(".vertexvis.protobuf.core.ModelEntity.entityPathId: object expected");
28019
- message.entityPathId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.entityPathId);
28024
+ if (object.details) {
28025
+ if (!Array.isArray(object.details))
28026
+ throw TypeError(".vertexvis.protobuf.core.ModelEntity.details: array expected");
28027
+ message.details = [];
28028
+ for (let i = 0; i < object.details.length; ++i) {
28029
+ if (typeof object.details[i] !== "object")
28030
+ throw TypeError(".vertexvis.protobuf.core.ModelEntity.details: object expected");
28031
+ message.details[i] = $root.google.protobuf.Any.fromObject(object.details[i]);
28032
+ }
28020
28033
  }
28021
28034
  return message;
28022
28035
  };
@@ -28034,6 +28047,8 @@ const vertexvis = $root.vertexvis = (() => {
28034
28047
  if (!options)
28035
28048
  options = {};
28036
28049
  let object = {};
28050
+ if (options.arrays || options.defaults)
28051
+ object.details = [];
28037
28052
  if (options.defaults) {
28038
28053
  if ($util.Long) {
28039
28054
  let long = new $util.Long(0, 0, false);
@@ -28041,7 +28056,6 @@ const vertexvis = $root.vertexvis = (() => {
28041
28056
  } else
28042
28057
  object.entityId = options.longs === String ? "0" : 0;
28043
28058
  object.sceneItemId = null;
28044
- object.entityPathId = null;
28045
28059
  }
28046
28060
  if (message.entityId != null && message.hasOwnProperty("entityId"))
28047
28061
  if (typeof message.entityId === "number")
@@ -28050,8 +28064,11 @@ const vertexvis = $root.vertexvis = (() => {
28050
28064
  object.entityId = options.longs === String ? $util.Long.prototype.toString.call(message.entityId) : options.longs === Number ? new $util.LongBits(message.entityId.low >>> 0, message.entityId.high >>> 0).toNumber() : message.entityId;
28051
28065
  if (message.sceneItemId != null && message.hasOwnProperty("sceneItemId"))
28052
28066
  object.sceneItemId = $root.vertexvis.protobuf.core.Uuid.toObject(message.sceneItemId, options);
28053
- if (message.entityPathId != null && message.hasOwnProperty("entityPathId"))
28054
- object.entityPathId = $root.vertexvis.protobuf.core.Uuid.toObject(message.entityPathId, options);
28067
+ if (message.details && message.details.length) {
28068
+ object.details = [];
28069
+ for (let j = 0; j < message.details.length; ++j)
28070
+ object.details[j] = $root.google.protobuf.Any.toObject(message.details[j], options);
28071
+ }
28055
28072
  return object;
28056
28073
  };
28057
28074
 
@@ -28283,6 +28300,225 @@ const google = $root.google = (() => {
28283
28300
  */
28284
28301
  const protobuf = {};
28285
28302
 
28303
+ protobuf.Any = (function() {
28304
+
28305
+ /**
28306
+ * Properties of an Any.
28307
+ * @memberof google.protobuf
28308
+ * @interface IAny
28309
+ * @property {string|null} [type_url] Any type_url
28310
+ * @property {Uint8Array|null} [value] Any value
28311
+ */
28312
+
28313
+ /**
28314
+ * Constructs a new Any.
28315
+ * @memberof google.protobuf
28316
+ * @classdesc Represents an Any.
28317
+ * @implements IAny
28318
+ * @constructor
28319
+ * @param {google.protobuf.IAny=} [properties] Properties to set
28320
+ */
28321
+ function Any(properties) {
28322
+ if (properties)
28323
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28324
+ if (properties[keys[i]] != null)
28325
+ this[keys[i]] = properties[keys[i]];
28326
+ }
28327
+
28328
+ /**
28329
+ * Any type_url.
28330
+ * @member {string} type_url
28331
+ * @memberof google.protobuf.Any
28332
+ * @instance
28333
+ */
28334
+ Any.prototype.type_url = "";
28335
+
28336
+ /**
28337
+ * Any value.
28338
+ * @member {Uint8Array} value
28339
+ * @memberof google.protobuf.Any
28340
+ * @instance
28341
+ */
28342
+ Any.prototype.value = $util.newBuffer([]);
28343
+
28344
+ /**
28345
+ * Creates a new Any instance using the specified properties.
28346
+ * @function create
28347
+ * @memberof google.protobuf.Any
28348
+ * @static
28349
+ * @param {google.protobuf.IAny=} [properties] Properties to set
28350
+ * @returns {google.protobuf.Any} Any instance
28351
+ */
28352
+ Any.create = function create(properties) {
28353
+ return new Any(properties);
28354
+ };
28355
+
28356
+ /**
28357
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
28358
+ * @function encode
28359
+ * @memberof google.protobuf.Any
28360
+ * @static
28361
+ * @param {google.protobuf.IAny} message Any message or plain object to encode
28362
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28363
+ * @returns {$protobuf.Writer} Writer
28364
+ */
28365
+ Any.encode = function encode(message, writer) {
28366
+ if (!writer)
28367
+ writer = $Writer.create();
28368
+ if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url"))
28369
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url);
28370
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
28371
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value);
28372
+ return writer;
28373
+ };
28374
+
28375
+ /**
28376
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
28377
+ * @function encodeDelimited
28378
+ * @memberof google.protobuf.Any
28379
+ * @static
28380
+ * @param {google.protobuf.IAny} message Any message or plain object to encode
28381
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28382
+ * @returns {$protobuf.Writer} Writer
28383
+ */
28384
+ Any.encodeDelimited = function encodeDelimited(message, writer) {
28385
+ return this.encode(message, writer).ldelim();
28386
+ };
28387
+
28388
+ /**
28389
+ * Decodes an Any message from the specified reader or buffer.
28390
+ * @function decode
28391
+ * @memberof google.protobuf.Any
28392
+ * @static
28393
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28394
+ * @param {number} [length] Message length if known beforehand
28395
+ * @returns {google.protobuf.Any} Any
28396
+ * @throws {Error} If the payload is not a reader or valid buffer
28397
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28398
+ */
28399
+ Any.decode = function decode(reader, length) {
28400
+ if (!(reader instanceof $Reader))
28401
+ reader = $Reader.create(reader);
28402
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any();
28403
+ while (reader.pos < end) {
28404
+ let tag = reader.uint32();
28405
+ switch (tag >>> 3) {
28406
+ case 1:
28407
+ message.type_url = reader.string();
28408
+ break;
28409
+ case 2:
28410
+ message.value = reader.bytes();
28411
+ break;
28412
+ default:
28413
+ reader.skipType(tag & 7);
28414
+ break;
28415
+ }
28416
+ }
28417
+ return message;
28418
+ };
28419
+
28420
+ /**
28421
+ * Decodes an Any message from the specified reader or buffer, length delimited.
28422
+ * @function decodeDelimited
28423
+ * @memberof google.protobuf.Any
28424
+ * @static
28425
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28426
+ * @returns {google.protobuf.Any} Any
28427
+ * @throws {Error} If the payload is not a reader or valid buffer
28428
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28429
+ */
28430
+ Any.decodeDelimited = function decodeDelimited(reader) {
28431
+ if (!(reader instanceof $Reader))
28432
+ reader = new $Reader(reader);
28433
+ return this.decode(reader, reader.uint32());
28434
+ };
28435
+
28436
+ /**
28437
+ * Verifies an Any message.
28438
+ * @function verify
28439
+ * @memberof google.protobuf.Any
28440
+ * @static
28441
+ * @param {Object.<string,*>} message Plain object to verify
28442
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
28443
+ */
28444
+ Any.verify = function verify(message) {
28445
+ if (typeof message !== "object" || message === null)
28446
+ return "object expected";
28447
+ if (message.type_url != null && message.hasOwnProperty("type_url"))
28448
+ if (!$util.isString(message.type_url))
28449
+ return "type_url: string expected";
28450
+ if (message.value != null && message.hasOwnProperty("value"))
28451
+ if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
28452
+ return "value: buffer expected";
28453
+ return null;
28454
+ };
28455
+
28456
+ /**
28457
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
28458
+ * @function fromObject
28459
+ * @memberof google.protobuf.Any
28460
+ * @static
28461
+ * @param {Object.<string,*>} object Plain object
28462
+ * @returns {google.protobuf.Any} Any
28463
+ */
28464
+ Any.fromObject = function fromObject(object) {
28465
+ if (object instanceof $root.google.protobuf.Any)
28466
+ return object;
28467
+ let message = new $root.google.protobuf.Any();
28468
+ if (object.type_url != null)
28469
+ message.type_url = String(object.type_url);
28470
+ if (object.value != null)
28471
+ if (typeof object.value === "string")
28472
+ $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
28473
+ else if (object.value.length)
28474
+ message.value = object.value;
28475
+ return message;
28476
+ };
28477
+
28478
+ /**
28479
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
28480
+ * @function toObject
28481
+ * @memberof google.protobuf.Any
28482
+ * @static
28483
+ * @param {google.protobuf.Any} message Any
28484
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
28485
+ * @returns {Object.<string,*>} Plain object
28486
+ */
28487
+ Any.toObject = function toObject(message, options) {
28488
+ if (!options)
28489
+ options = {};
28490
+ let object = {};
28491
+ if (options.defaults) {
28492
+ object.type_url = "";
28493
+ if (options.bytes === String)
28494
+ object.value = "";
28495
+ else {
28496
+ object.value = [];
28497
+ if (options.bytes !== Array)
28498
+ object.value = $util.newBuffer(object.value);
28499
+ }
28500
+ }
28501
+ if (message.type_url != null && message.hasOwnProperty("type_url"))
28502
+ object.type_url = message.type_url;
28503
+ if (message.value != null && message.hasOwnProperty("value"))
28504
+ object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value;
28505
+ return object;
28506
+ };
28507
+
28508
+ /**
28509
+ * Converts this Any to JSON.
28510
+ * @function toJSON
28511
+ * @memberof google.protobuf.Any
28512
+ * @instance
28513
+ * @returns {Object.<string,*>} JSON object
28514
+ */
28515
+ Any.prototype.toJSON = function toJSON() {
28516
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
28517
+ };
28518
+
28519
+ return Any;
28520
+ })();
28521
+
28286
28522
  protobuf.Duration = (function() {
28287
28523
 
28288
28524
  /**