@vertexvis/stream-api 0.15.2-testing.4 → 0.15.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.
- package/dist/bundle.cjs.js +2009 -148
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +2009 -148
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.esm.js
CHANGED
|
@@ -2689,6 +2689,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
2689
2689
|
* @property {vertexvis.protobuf.core.IVector3f|null} [position] PerspectiveCamera position
|
|
2690
2690
|
* @property {vertexvis.protobuf.core.IVector3f|null} [lookAt] PerspectiveCamera lookAt
|
|
2691
2691
|
* @property {vertexvis.protobuf.core.IVector3f|null} [up] PerspectiveCamera up
|
|
2692
|
+
* @property {google.protobuf.IFloatValue|null} [fovY] PerspectiveCamera fovY
|
|
2692
2693
|
*/
|
|
2693
2694
|
|
|
2694
2695
|
/**
|
|
@@ -2730,6 +2731,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
2730
2731
|
*/
|
|
2731
2732
|
PerspectiveCamera.prototype.up = null;
|
|
2732
2733
|
|
|
2734
|
+
/**
|
|
2735
|
+
* PerspectiveCamera fovY.
|
|
2736
|
+
* @member {google.protobuf.IFloatValue|null|undefined} fovY
|
|
2737
|
+
* @memberof vertexvis.protobuf.stream.PerspectiveCamera
|
|
2738
|
+
* @instance
|
|
2739
|
+
*/
|
|
2740
|
+
PerspectiveCamera.prototype.fovY = null;
|
|
2741
|
+
|
|
2733
2742
|
/**
|
|
2734
2743
|
* Creates a new PerspectiveCamera instance using the specified properties.
|
|
2735
2744
|
* @function create
|
|
@@ -2760,6 +2769,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
2760
2769
|
$root.vertexvis.protobuf.core.Vector3f.encode(message.lookAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
2761
2770
|
if (message.up != null && Object.hasOwnProperty.call(message, "up"))
|
|
2762
2771
|
$root.vertexvis.protobuf.core.Vector3f.encode(message.up, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
2772
|
+
if (message.fovY != null && Object.hasOwnProperty.call(message, "fovY"))
|
|
2773
|
+
$root.google.protobuf.FloatValue.encode(message.fovY, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
2763
2774
|
return writer;
|
|
2764
2775
|
};
|
|
2765
2776
|
|
|
@@ -2803,6 +2814,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
2803
2814
|
case 3:
|
|
2804
2815
|
message.up = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
2805
2816
|
break;
|
|
2817
|
+
case 4:
|
|
2818
|
+
message.fovY = $root.google.protobuf.FloatValue.decode(reader, reader.uint32());
|
|
2819
|
+
break;
|
|
2806
2820
|
default:
|
|
2807
2821
|
reader.skipType(tag & 7);
|
|
2808
2822
|
break;
|
|
@@ -2853,6 +2867,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
2853
2867
|
if (error)
|
|
2854
2868
|
return "up." + error;
|
|
2855
2869
|
}
|
|
2870
|
+
if (message.fovY != null && message.hasOwnProperty("fovY")) {
|
|
2871
|
+
let error = $root.google.protobuf.FloatValue.verify(message.fovY);
|
|
2872
|
+
if (error)
|
|
2873
|
+
return "fovY." + error;
|
|
2874
|
+
}
|
|
2856
2875
|
return null;
|
|
2857
2876
|
};
|
|
2858
2877
|
|
|
@@ -2883,6 +2902,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
2883
2902
|
throw TypeError(".vertexvis.protobuf.stream.PerspectiveCamera.up: object expected");
|
|
2884
2903
|
message.up = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.up);
|
|
2885
2904
|
}
|
|
2905
|
+
if (object.fovY != null) {
|
|
2906
|
+
if (typeof object.fovY !== "object")
|
|
2907
|
+
throw TypeError(".vertexvis.protobuf.stream.PerspectiveCamera.fovY: object expected");
|
|
2908
|
+
message.fovY = $root.google.protobuf.FloatValue.fromObject(object.fovY);
|
|
2909
|
+
}
|
|
2886
2910
|
return message;
|
|
2887
2911
|
};
|
|
2888
2912
|
|
|
@@ -2903,6 +2927,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
2903
2927
|
object.position = null;
|
|
2904
2928
|
object.lookAt = null;
|
|
2905
2929
|
object.up = null;
|
|
2930
|
+
object.fovY = null;
|
|
2906
2931
|
}
|
|
2907
2932
|
if (message.position != null && message.hasOwnProperty("position"))
|
|
2908
2933
|
object.position = $root.vertexvis.protobuf.core.Vector3f.toObject(message.position, options);
|
|
@@ -2910,6 +2935,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
2910
2935
|
object.lookAt = $root.vertexvis.protobuf.core.Vector3f.toObject(message.lookAt, options);
|
|
2911
2936
|
if (message.up != null && message.hasOwnProperty("up"))
|
|
2912
2937
|
object.up = $root.vertexvis.protobuf.core.Vector3f.toObject(message.up, options);
|
|
2938
|
+
if (message.fovY != null && message.hasOwnProperty("fovY"))
|
|
2939
|
+
object.fovY = $root.google.protobuf.FloatValue.toObject(message.fovY, options);
|
|
2913
2940
|
return object;
|
|
2914
2941
|
};
|
|
2915
2942
|
|
|
@@ -5425,6 +5452,166 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
5425
5452
|
return AllQuery;
|
|
5426
5453
|
})();
|
|
5427
5454
|
|
|
5455
|
+
stream.RootQuery = (function() {
|
|
5456
|
+
|
|
5457
|
+
/**
|
|
5458
|
+
* Properties of a RootQuery.
|
|
5459
|
+
* @memberof vertexvis.protobuf.stream
|
|
5460
|
+
* @interface IRootQuery
|
|
5461
|
+
*/
|
|
5462
|
+
|
|
5463
|
+
/**
|
|
5464
|
+
* Constructs a new RootQuery.
|
|
5465
|
+
* @memberof vertexvis.protobuf.stream
|
|
5466
|
+
* @classdesc Represents a RootQuery.
|
|
5467
|
+
* @implements IRootQuery
|
|
5468
|
+
* @constructor
|
|
5469
|
+
* @param {vertexvis.protobuf.stream.IRootQuery=} [properties] Properties to set
|
|
5470
|
+
*/
|
|
5471
|
+
function RootQuery(properties) {
|
|
5472
|
+
if (properties)
|
|
5473
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5474
|
+
if (properties[keys[i]] != null)
|
|
5475
|
+
this[keys[i]] = properties[keys[i]];
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5478
|
+
/**
|
|
5479
|
+
* Creates a new RootQuery instance using the specified properties.
|
|
5480
|
+
* @function create
|
|
5481
|
+
* @memberof vertexvis.protobuf.stream.RootQuery
|
|
5482
|
+
* @static
|
|
5483
|
+
* @param {vertexvis.protobuf.stream.IRootQuery=} [properties] Properties to set
|
|
5484
|
+
* @returns {vertexvis.protobuf.stream.RootQuery} RootQuery instance
|
|
5485
|
+
*/
|
|
5486
|
+
RootQuery.create = function create(properties) {
|
|
5487
|
+
return new RootQuery(properties);
|
|
5488
|
+
};
|
|
5489
|
+
|
|
5490
|
+
/**
|
|
5491
|
+
* Encodes the specified RootQuery message. Does not implicitly {@link vertexvis.protobuf.stream.RootQuery.verify|verify} messages.
|
|
5492
|
+
* @function encode
|
|
5493
|
+
* @memberof vertexvis.protobuf.stream.RootQuery
|
|
5494
|
+
* @static
|
|
5495
|
+
* @param {vertexvis.protobuf.stream.IRootQuery} message RootQuery message or plain object to encode
|
|
5496
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5497
|
+
* @returns {$protobuf.Writer} Writer
|
|
5498
|
+
*/
|
|
5499
|
+
RootQuery.encode = function encode(message, writer) {
|
|
5500
|
+
if (!writer)
|
|
5501
|
+
writer = $Writer.create();
|
|
5502
|
+
return writer;
|
|
5503
|
+
};
|
|
5504
|
+
|
|
5505
|
+
/**
|
|
5506
|
+
* Encodes the specified RootQuery message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.RootQuery.verify|verify} messages.
|
|
5507
|
+
* @function encodeDelimited
|
|
5508
|
+
* @memberof vertexvis.protobuf.stream.RootQuery
|
|
5509
|
+
* @static
|
|
5510
|
+
* @param {vertexvis.protobuf.stream.IRootQuery} message RootQuery message or plain object to encode
|
|
5511
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5512
|
+
* @returns {$protobuf.Writer} Writer
|
|
5513
|
+
*/
|
|
5514
|
+
RootQuery.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5515
|
+
return this.encode(message, writer).ldelim();
|
|
5516
|
+
};
|
|
5517
|
+
|
|
5518
|
+
/**
|
|
5519
|
+
* Decodes a RootQuery message from the specified reader or buffer.
|
|
5520
|
+
* @function decode
|
|
5521
|
+
* @memberof vertexvis.protobuf.stream.RootQuery
|
|
5522
|
+
* @static
|
|
5523
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5524
|
+
* @param {number} [length] Message length if known beforehand
|
|
5525
|
+
* @returns {vertexvis.protobuf.stream.RootQuery} RootQuery
|
|
5526
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5527
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5528
|
+
*/
|
|
5529
|
+
RootQuery.decode = function decode(reader, length) {
|
|
5530
|
+
if (!(reader instanceof $Reader))
|
|
5531
|
+
reader = $Reader.create(reader);
|
|
5532
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.RootQuery();
|
|
5533
|
+
while (reader.pos < end) {
|
|
5534
|
+
let tag = reader.uint32();
|
|
5535
|
+
switch (tag >>> 3) {
|
|
5536
|
+
default:
|
|
5537
|
+
reader.skipType(tag & 7);
|
|
5538
|
+
break;
|
|
5539
|
+
}
|
|
5540
|
+
}
|
|
5541
|
+
return message;
|
|
5542
|
+
};
|
|
5543
|
+
|
|
5544
|
+
/**
|
|
5545
|
+
* Decodes a RootQuery message from the specified reader or buffer, length delimited.
|
|
5546
|
+
* @function decodeDelimited
|
|
5547
|
+
* @memberof vertexvis.protobuf.stream.RootQuery
|
|
5548
|
+
* @static
|
|
5549
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5550
|
+
* @returns {vertexvis.protobuf.stream.RootQuery} RootQuery
|
|
5551
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5552
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5553
|
+
*/
|
|
5554
|
+
RootQuery.decodeDelimited = function decodeDelimited(reader) {
|
|
5555
|
+
if (!(reader instanceof $Reader))
|
|
5556
|
+
reader = new $Reader(reader);
|
|
5557
|
+
return this.decode(reader, reader.uint32());
|
|
5558
|
+
};
|
|
5559
|
+
|
|
5560
|
+
/**
|
|
5561
|
+
* Verifies a RootQuery message.
|
|
5562
|
+
* @function verify
|
|
5563
|
+
* @memberof vertexvis.protobuf.stream.RootQuery
|
|
5564
|
+
* @static
|
|
5565
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5566
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5567
|
+
*/
|
|
5568
|
+
RootQuery.verify = function verify(message) {
|
|
5569
|
+
if (typeof message !== "object" || message === null)
|
|
5570
|
+
return "object expected";
|
|
5571
|
+
return null;
|
|
5572
|
+
};
|
|
5573
|
+
|
|
5574
|
+
/**
|
|
5575
|
+
* Creates a RootQuery message from a plain object. Also converts values to their respective internal types.
|
|
5576
|
+
* @function fromObject
|
|
5577
|
+
* @memberof vertexvis.protobuf.stream.RootQuery
|
|
5578
|
+
* @static
|
|
5579
|
+
* @param {Object.<string,*>} object Plain object
|
|
5580
|
+
* @returns {vertexvis.protobuf.stream.RootQuery} RootQuery
|
|
5581
|
+
*/
|
|
5582
|
+
RootQuery.fromObject = function fromObject(object) {
|
|
5583
|
+
if (object instanceof $root.vertexvis.protobuf.stream.RootQuery)
|
|
5584
|
+
return object;
|
|
5585
|
+
return new $root.vertexvis.protobuf.stream.RootQuery();
|
|
5586
|
+
};
|
|
5587
|
+
|
|
5588
|
+
/**
|
|
5589
|
+
* Creates a plain object from a RootQuery message. Also converts values to other types if specified.
|
|
5590
|
+
* @function toObject
|
|
5591
|
+
* @memberof vertexvis.protobuf.stream.RootQuery
|
|
5592
|
+
* @static
|
|
5593
|
+
* @param {vertexvis.protobuf.stream.RootQuery} message RootQuery
|
|
5594
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5595
|
+
* @returns {Object.<string,*>} Plain object
|
|
5596
|
+
*/
|
|
5597
|
+
RootQuery.toObject = function toObject() {
|
|
5598
|
+
return {};
|
|
5599
|
+
};
|
|
5600
|
+
|
|
5601
|
+
/**
|
|
5602
|
+
* Converts this RootQuery to JSON.
|
|
5603
|
+
* @function toJSON
|
|
5604
|
+
* @memberof vertexvis.protobuf.stream.RootQuery
|
|
5605
|
+
* @instance
|
|
5606
|
+
* @returns {Object.<string,*>} JSON object
|
|
5607
|
+
*/
|
|
5608
|
+
RootQuery.prototype.toJSON = function toJSON() {
|
|
5609
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
5610
|
+
};
|
|
5611
|
+
|
|
5612
|
+
return RootQuery;
|
|
5613
|
+
})();
|
|
5614
|
+
|
|
5428
5615
|
stream.PointQuery = (function() {
|
|
5429
5616
|
|
|
5430
5617
|
/**
|
|
@@ -8446,48 +8633,1513 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8446
8633
|
/**
|
|
8447
8634
|
* Encodes the specified OperationType message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.OperationType.verify|verify} messages.
|
|
8448
8635
|
* @function encodeDelimited
|
|
8449
|
-
* @memberof vertexvis.protobuf.stream.OperationType
|
|
8636
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
8637
|
+
* @static
|
|
8638
|
+
* @param {vertexvis.protobuf.stream.IOperationType} message OperationType message or plain object to encode
|
|
8639
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8640
|
+
* @returns {$protobuf.Writer} Writer
|
|
8641
|
+
*/
|
|
8642
|
+
OperationType.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8643
|
+
return this.encode(message, writer).ldelim();
|
|
8644
|
+
};
|
|
8645
|
+
|
|
8646
|
+
/**
|
|
8647
|
+
* Decodes an OperationType message from the specified reader or buffer.
|
|
8648
|
+
* @function decode
|
|
8649
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
8650
|
+
* @static
|
|
8651
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8652
|
+
* @param {number} [length] Message length if known beforehand
|
|
8653
|
+
* @returns {vertexvis.protobuf.stream.OperationType} OperationType
|
|
8654
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8655
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8656
|
+
*/
|
|
8657
|
+
OperationType.decode = function decode(reader, length) {
|
|
8658
|
+
if (!(reader instanceof $Reader))
|
|
8659
|
+
reader = $Reader.create(reader);
|
|
8660
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.OperationType();
|
|
8661
|
+
while (reader.pos < end) {
|
|
8662
|
+
let tag = reader.uint32();
|
|
8663
|
+
switch (tag >>> 3) {
|
|
8664
|
+
case 1:
|
|
8665
|
+
message.changeMaterial = $root.vertexvis.protobuf.stream.ChangeMaterialOperation.decode(reader, reader.uint32());
|
|
8666
|
+
break;
|
|
8667
|
+
case 2:
|
|
8668
|
+
message.changeVisibility = $root.vertexvis.protobuf.stream.ChangeVisibilityOperation.decode(reader, reader.uint32());
|
|
8669
|
+
break;
|
|
8670
|
+
case 3:
|
|
8671
|
+
message.changeTransform = $root.vertexvis.protobuf.stream.ChangeTransformOperation.decode(reader, reader.uint32());
|
|
8672
|
+
break;
|
|
8673
|
+
case 4:
|
|
8674
|
+
message.changeSelection = $root.vertexvis.protobuf.stream.ChangeSelectionOperation.decode(reader, reader.uint32());
|
|
8675
|
+
break;
|
|
8676
|
+
case 5:
|
|
8677
|
+
message.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.decode(reader, reader.uint32());
|
|
8678
|
+
break;
|
|
8679
|
+
default:
|
|
8680
|
+
reader.skipType(tag & 7);
|
|
8681
|
+
break;
|
|
8682
|
+
}
|
|
8683
|
+
}
|
|
8684
|
+
return message;
|
|
8685
|
+
};
|
|
8686
|
+
|
|
8687
|
+
/**
|
|
8688
|
+
* Decodes an OperationType message from the specified reader or buffer, length delimited.
|
|
8689
|
+
* @function decodeDelimited
|
|
8690
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
8691
|
+
* @static
|
|
8692
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8693
|
+
* @returns {vertexvis.protobuf.stream.OperationType} OperationType
|
|
8694
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8695
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8696
|
+
*/
|
|
8697
|
+
OperationType.decodeDelimited = function decodeDelimited(reader) {
|
|
8698
|
+
if (!(reader instanceof $Reader))
|
|
8699
|
+
reader = new $Reader(reader);
|
|
8700
|
+
return this.decode(reader, reader.uint32());
|
|
8701
|
+
};
|
|
8702
|
+
|
|
8703
|
+
/**
|
|
8704
|
+
* Verifies an OperationType message.
|
|
8705
|
+
* @function verify
|
|
8706
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
8707
|
+
* @static
|
|
8708
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8709
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8710
|
+
*/
|
|
8711
|
+
OperationType.verify = function verify(message) {
|
|
8712
|
+
if (typeof message !== "object" || message === null)
|
|
8713
|
+
return "object expected";
|
|
8714
|
+
let properties = {};
|
|
8715
|
+
if (message.changeMaterial != null && message.hasOwnProperty("changeMaterial")) {
|
|
8716
|
+
properties.value = 1;
|
|
8717
|
+
{
|
|
8718
|
+
let error = $root.vertexvis.protobuf.stream.ChangeMaterialOperation.verify(message.changeMaterial);
|
|
8719
|
+
if (error)
|
|
8720
|
+
return "changeMaterial." + error;
|
|
8721
|
+
}
|
|
8722
|
+
}
|
|
8723
|
+
if (message.changeVisibility != null && message.hasOwnProperty("changeVisibility")) {
|
|
8724
|
+
if (properties.value === 1)
|
|
8725
|
+
return "value: multiple values";
|
|
8726
|
+
properties.value = 1;
|
|
8727
|
+
{
|
|
8728
|
+
let error = $root.vertexvis.protobuf.stream.ChangeVisibilityOperation.verify(message.changeVisibility);
|
|
8729
|
+
if (error)
|
|
8730
|
+
return "changeVisibility." + error;
|
|
8731
|
+
}
|
|
8732
|
+
}
|
|
8733
|
+
if (message.changeTransform != null && message.hasOwnProperty("changeTransform")) {
|
|
8734
|
+
if (properties.value === 1)
|
|
8735
|
+
return "value: multiple values";
|
|
8736
|
+
properties.value = 1;
|
|
8737
|
+
{
|
|
8738
|
+
let error = $root.vertexvis.protobuf.stream.ChangeTransformOperation.verify(message.changeTransform);
|
|
8739
|
+
if (error)
|
|
8740
|
+
return "changeTransform." + error;
|
|
8741
|
+
}
|
|
8742
|
+
}
|
|
8743
|
+
if (message.changeSelection != null && message.hasOwnProperty("changeSelection")) {
|
|
8744
|
+
if (properties.value === 1)
|
|
8745
|
+
return "value: multiple values";
|
|
8746
|
+
properties.value = 1;
|
|
8747
|
+
{
|
|
8748
|
+
let error = $root.vertexvis.protobuf.stream.ChangeSelectionOperation.verify(message.changeSelection);
|
|
8749
|
+
if (error)
|
|
8750
|
+
return "changeSelection." + error;
|
|
8751
|
+
}
|
|
8752
|
+
}
|
|
8753
|
+
if (message.clearTransform != null && message.hasOwnProperty("clearTransform")) {
|
|
8754
|
+
if (properties.value === 1)
|
|
8755
|
+
return "value: multiple values";
|
|
8756
|
+
properties.value = 1;
|
|
8757
|
+
{
|
|
8758
|
+
let error = $root.vertexvis.protobuf.stream.ClearTransformOperation.verify(message.clearTransform);
|
|
8759
|
+
if (error)
|
|
8760
|
+
return "clearTransform." + error;
|
|
8761
|
+
}
|
|
8762
|
+
}
|
|
8763
|
+
return null;
|
|
8764
|
+
};
|
|
8765
|
+
|
|
8766
|
+
/**
|
|
8767
|
+
* Creates an OperationType message from a plain object. Also converts values to their respective internal types.
|
|
8768
|
+
* @function fromObject
|
|
8769
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
8770
|
+
* @static
|
|
8771
|
+
* @param {Object.<string,*>} object Plain object
|
|
8772
|
+
* @returns {vertexvis.protobuf.stream.OperationType} OperationType
|
|
8773
|
+
*/
|
|
8774
|
+
OperationType.fromObject = function fromObject(object) {
|
|
8775
|
+
if (object instanceof $root.vertexvis.protobuf.stream.OperationType)
|
|
8776
|
+
return object;
|
|
8777
|
+
let message = new $root.vertexvis.protobuf.stream.OperationType();
|
|
8778
|
+
if (object.changeMaterial != null) {
|
|
8779
|
+
if (typeof object.changeMaterial !== "object")
|
|
8780
|
+
throw TypeError(".vertexvis.protobuf.stream.OperationType.changeMaterial: object expected");
|
|
8781
|
+
message.changeMaterial = $root.vertexvis.protobuf.stream.ChangeMaterialOperation.fromObject(object.changeMaterial);
|
|
8782
|
+
}
|
|
8783
|
+
if (object.changeVisibility != null) {
|
|
8784
|
+
if (typeof object.changeVisibility !== "object")
|
|
8785
|
+
throw TypeError(".vertexvis.protobuf.stream.OperationType.changeVisibility: object expected");
|
|
8786
|
+
message.changeVisibility = $root.vertexvis.protobuf.stream.ChangeVisibilityOperation.fromObject(object.changeVisibility);
|
|
8787
|
+
}
|
|
8788
|
+
if (object.changeTransform != null) {
|
|
8789
|
+
if (typeof object.changeTransform !== "object")
|
|
8790
|
+
throw TypeError(".vertexvis.protobuf.stream.OperationType.changeTransform: object expected");
|
|
8791
|
+
message.changeTransform = $root.vertexvis.protobuf.stream.ChangeTransformOperation.fromObject(object.changeTransform);
|
|
8792
|
+
}
|
|
8793
|
+
if (object.changeSelection != null) {
|
|
8794
|
+
if (typeof object.changeSelection !== "object")
|
|
8795
|
+
throw TypeError(".vertexvis.protobuf.stream.OperationType.changeSelection: object expected");
|
|
8796
|
+
message.changeSelection = $root.vertexvis.protobuf.stream.ChangeSelectionOperation.fromObject(object.changeSelection);
|
|
8797
|
+
}
|
|
8798
|
+
if (object.clearTransform != null) {
|
|
8799
|
+
if (typeof object.clearTransform !== "object")
|
|
8800
|
+
throw TypeError(".vertexvis.protobuf.stream.OperationType.clearTransform: object expected");
|
|
8801
|
+
message.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.fromObject(object.clearTransform);
|
|
8802
|
+
}
|
|
8803
|
+
return message;
|
|
8804
|
+
};
|
|
8805
|
+
|
|
8806
|
+
/**
|
|
8807
|
+
* Creates a plain object from an OperationType message. Also converts values to other types if specified.
|
|
8808
|
+
* @function toObject
|
|
8809
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
8810
|
+
* @static
|
|
8811
|
+
* @param {vertexvis.protobuf.stream.OperationType} message OperationType
|
|
8812
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8813
|
+
* @returns {Object.<string,*>} Plain object
|
|
8814
|
+
*/
|
|
8815
|
+
OperationType.toObject = function toObject(message, options) {
|
|
8816
|
+
if (!options)
|
|
8817
|
+
options = {};
|
|
8818
|
+
let object = {};
|
|
8819
|
+
if (message.changeMaterial != null && message.hasOwnProperty("changeMaterial")) {
|
|
8820
|
+
object.changeMaterial = $root.vertexvis.protobuf.stream.ChangeMaterialOperation.toObject(message.changeMaterial, options);
|
|
8821
|
+
if (options.oneofs)
|
|
8822
|
+
object.value = "changeMaterial";
|
|
8823
|
+
}
|
|
8824
|
+
if (message.changeVisibility != null && message.hasOwnProperty("changeVisibility")) {
|
|
8825
|
+
object.changeVisibility = $root.vertexvis.protobuf.stream.ChangeVisibilityOperation.toObject(message.changeVisibility, options);
|
|
8826
|
+
if (options.oneofs)
|
|
8827
|
+
object.value = "changeVisibility";
|
|
8828
|
+
}
|
|
8829
|
+
if (message.changeTransform != null && message.hasOwnProperty("changeTransform")) {
|
|
8830
|
+
object.changeTransform = $root.vertexvis.protobuf.stream.ChangeTransformOperation.toObject(message.changeTransform, options);
|
|
8831
|
+
if (options.oneofs)
|
|
8832
|
+
object.value = "changeTransform";
|
|
8833
|
+
}
|
|
8834
|
+
if (message.changeSelection != null && message.hasOwnProperty("changeSelection")) {
|
|
8835
|
+
object.changeSelection = $root.vertexvis.protobuf.stream.ChangeSelectionOperation.toObject(message.changeSelection, options);
|
|
8836
|
+
if (options.oneofs)
|
|
8837
|
+
object.value = "changeSelection";
|
|
8838
|
+
}
|
|
8839
|
+
if (message.clearTransform != null && message.hasOwnProperty("clearTransform")) {
|
|
8840
|
+
object.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.toObject(message.clearTransform, options);
|
|
8841
|
+
if (options.oneofs)
|
|
8842
|
+
object.value = "clearTransform";
|
|
8843
|
+
}
|
|
8844
|
+
return object;
|
|
8845
|
+
};
|
|
8846
|
+
|
|
8847
|
+
/**
|
|
8848
|
+
* Converts this OperationType to JSON.
|
|
8849
|
+
* @function toJSON
|
|
8850
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
8851
|
+
* @instance
|
|
8852
|
+
* @returns {Object.<string,*>} JSON object
|
|
8853
|
+
*/
|
|
8854
|
+
OperationType.prototype.toJSON = function toJSON() {
|
|
8855
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
8856
|
+
};
|
|
8857
|
+
|
|
8858
|
+
return OperationType;
|
|
8859
|
+
})();
|
|
8860
|
+
|
|
8861
|
+
stream.QueryOperand = (function() {
|
|
8862
|
+
|
|
8863
|
+
/**
|
|
8864
|
+
* Properties of a QueryOperand.
|
|
8865
|
+
* @memberof vertexvis.protobuf.stream
|
|
8866
|
+
* @interface IQueryOperand
|
|
8867
|
+
* @property {vertexvis.protobuf.stream.IMetadataFilterQuery|null} [metadata] QueryOperand metadata
|
|
8868
|
+
* @property {vertexvis.protobuf.stream.IItemQuery|null} [item] QueryOperand item
|
|
8869
|
+
* @property {vertexvis.protobuf.stream.IRootQuery|null} [root] QueryOperand root
|
|
8870
|
+
* @property {vertexvis.protobuf.stream.IPointQuery|null} [point] QueryOperand point
|
|
8871
|
+
* @property {vertexvis.protobuf.stream.ISceneTreeRangeQuery|null} [sceneTreeRange] QueryOperand sceneTreeRange
|
|
8872
|
+
* @property {vertexvis.protobuf.stream.IOverrideQuery|null} [override] QueryOperand override
|
|
8873
|
+
* @property {vertexvis.protobuf.stream.IVolumeIntersectionQuery|null} [volume] QueryOperand volume
|
|
8874
|
+
* @property {vertexvis.protobuf.stream.IQueryCollection|null} [itemCollection] QueryOperand itemCollection
|
|
8875
|
+
*/
|
|
8876
|
+
|
|
8877
|
+
/**
|
|
8878
|
+
* Constructs a new QueryOperand.
|
|
8879
|
+
* @memberof vertexvis.protobuf.stream
|
|
8880
|
+
* @classdesc Represents a QueryOperand.
|
|
8881
|
+
* @implements IQueryOperand
|
|
8882
|
+
* @constructor
|
|
8883
|
+
* @param {vertexvis.protobuf.stream.IQueryOperand=} [properties] Properties to set
|
|
8884
|
+
*/
|
|
8885
|
+
function QueryOperand(properties) {
|
|
8886
|
+
if (properties)
|
|
8887
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8888
|
+
if (properties[keys[i]] != null)
|
|
8889
|
+
this[keys[i]] = properties[keys[i]];
|
|
8890
|
+
}
|
|
8891
|
+
|
|
8892
|
+
/**
|
|
8893
|
+
* QueryOperand metadata.
|
|
8894
|
+
* @member {vertexvis.protobuf.stream.IMetadataFilterQuery|null|undefined} metadata
|
|
8895
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
8896
|
+
* @instance
|
|
8897
|
+
*/
|
|
8898
|
+
QueryOperand.prototype.metadata = null;
|
|
8899
|
+
|
|
8900
|
+
/**
|
|
8901
|
+
* QueryOperand item.
|
|
8902
|
+
* @member {vertexvis.protobuf.stream.IItemQuery|null|undefined} item
|
|
8903
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
8904
|
+
* @instance
|
|
8905
|
+
*/
|
|
8906
|
+
QueryOperand.prototype.item = null;
|
|
8907
|
+
|
|
8908
|
+
/**
|
|
8909
|
+
* QueryOperand root.
|
|
8910
|
+
* @member {vertexvis.protobuf.stream.IRootQuery|null|undefined} root
|
|
8911
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
8912
|
+
* @instance
|
|
8913
|
+
*/
|
|
8914
|
+
QueryOperand.prototype.root = null;
|
|
8915
|
+
|
|
8916
|
+
/**
|
|
8917
|
+
* QueryOperand point.
|
|
8918
|
+
* @member {vertexvis.protobuf.stream.IPointQuery|null|undefined} point
|
|
8919
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
8920
|
+
* @instance
|
|
8921
|
+
*/
|
|
8922
|
+
QueryOperand.prototype.point = null;
|
|
8923
|
+
|
|
8924
|
+
/**
|
|
8925
|
+
* QueryOperand sceneTreeRange.
|
|
8926
|
+
* @member {vertexvis.protobuf.stream.ISceneTreeRangeQuery|null|undefined} sceneTreeRange
|
|
8927
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
8928
|
+
* @instance
|
|
8929
|
+
*/
|
|
8930
|
+
QueryOperand.prototype.sceneTreeRange = null;
|
|
8931
|
+
|
|
8932
|
+
/**
|
|
8933
|
+
* QueryOperand override.
|
|
8934
|
+
* @member {vertexvis.protobuf.stream.IOverrideQuery|null|undefined} override
|
|
8935
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
8936
|
+
* @instance
|
|
8937
|
+
*/
|
|
8938
|
+
QueryOperand.prototype.override = null;
|
|
8939
|
+
|
|
8940
|
+
/**
|
|
8941
|
+
* QueryOperand volume.
|
|
8942
|
+
* @member {vertexvis.protobuf.stream.IVolumeIntersectionQuery|null|undefined} volume
|
|
8943
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
8944
|
+
* @instance
|
|
8945
|
+
*/
|
|
8946
|
+
QueryOperand.prototype.volume = null;
|
|
8947
|
+
|
|
8948
|
+
/**
|
|
8949
|
+
* QueryOperand itemCollection.
|
|
8950
|
+
* @member {vertexvis.protobuf.stream.IQueryCollection|null|undefined} itemCollection
|
|
8951
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
8952
|
+
* @instance
|
|
8953
|
+
*/
|
|
8954
|
+
QueryOperand.prototype.itemCollection = null;
|
|
8955
|
+
|
|
8956
|
+
// OneOf field names bound to virtual getters and setters
|
|
8957
|
+
let $oneOfFields;
|
|
8958
|
+
|
|
8959
|
+
/**
|
|
8960
|
+
* QueryOperand operand.
|
|
8961
|
+
* @member {"metadata"|"item"|"root"|"point"|"sceneTreeRange"|"override"|"volume"|"itemCollection"|undefined} operand
|
|
8962
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
8963
|
+
* @instance
|
|
8964
|
+
*/
|
|
8965
|
+
Object.defineProperty(QueryOperand.prototype, "operand", {
|
|
8966
|
+
get: $util.oneOfGetter($oneOfFields = ["metadata", "item", "root", "point", "sceneTreeRange", "override", "volume", "itemCollection"]),
|
|
8967
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
8968
|
+
});
|
|
8969
|
+
|
|
8970
|
+
/**
|
|
8971
|
+
* Creates a new QueryOperand instance using the specified properties.
|
|
8972
|
+
* @function create
|
|
8973
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
8974
|
+
* @static
|
|
8975
|
+
* @param {vertexvis.protobuf.stream.IQueryOperand=} [properties] Properties to set
|
|
8976
|
+
* @returns {vertexvis.protobuf.stream.QueryOperand} QueryOperand instance
|
|
8977
|
+
*/
|
|
8978
|
+
QueryOperand.create = function create(properties) {
|
|
8979
|
+
return new QueryOperand(properties);
|
|
8980
|
+
};
|
|
8981
|
+
|
|
8982
|
+
/**
|
|
8983
|
+
* Encodes the specified QueryOperand message. Does not implicitly {@link vertexvis.protobuf.stream.QueryOperand.verify|verify} messages.
|
|
8984
|
+
* @function encode
|
|
8985
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
8986
|
+
* @static
|
|
8987
|
+
* @param {vertexvis.protobuf.stream.IQueryOperand} message QueryOperand message or plain object to encode
|
|
8988
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8989
|
+
* @returns {$protobuf.Writer} Writer
|
|
8990
|
+
*/
|
|
8991
|
+
QueryOperand.encode = function encode(message, writer) {
|
|
8992
|
+
if (!writer)
|
|
8993
|
+
writer = $Writer.create();
|
|
8994
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
8995
|
+
$root.vertexvis.protobuf.stream.MetadataFilterQuery.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
8996
|
+
if (message.item != null && Object.hasOwnProperty.call(message, "item"))
|
|
8997
|
+
$root.vertexvis.protobuf.stream.ItemQuery.encode(message.item, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
8998
|
+
if (message.root != null && Object.hasOwnProperty.call(message, "root"))
|
|
8999
|
+
$root.vertexvis.protobuf.stream.RootQuery.encode(message.root, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
9000
|
+
if (message.point != null && Object.hasOwnProperty.call(message, "point"))
|
|
9001
|
+
$root.vertexvis.protobuf.stream.PointQuery.encode(message.point, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
9002
|
+
if (message.sceneTreeRange != null && Object.hasOwnProperty.call(message, "sceneTreeRange"))
|
|
9003
|
+
$root.vertexvis.protobuf.stream.SceneTreeRangeQuery.encode(message.sceneTreeRange, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
9004
|
+
if (message.override != null && Object.hasOwnProperty.call(message, "override"))
|
|
9005
|
+
$root.vertexvis.protobuf.stream.OverrideQuery.encode(message.override, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
9006
|
+
if (message.volume != null && Object.hasOwnProperty.call(message, "volume"))
|
|
9007
|
+
$root.vertexvis.protobuf.stream.VolumeIntersectionQuery.encode(message.volume, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
9008
|
+
if (message.itemCollection != null && Object.hasOwnProperty.call(message, "itemCollection"))
|
|
9009
|
+
$root.vertexvis.protobuf.stream.QueryCollection.encode(message.itemCollection, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
9010
|
+
return writer;
|
|
9011
|
+
};
|
|
9012
|
+
|
|
9013
|
+
/**
|
|
9014
|
+
* Encodes the specified QueryOperand message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.QueryOperand.verify|verify} messages.
|
|
9015
|
+
* @function encodeDelimited
|
|
9016
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
9017
|
+
* @static
|
|
9018
|
+
* @param {vertexvis.protobuf.stream.IQueryOperand} message QueryOperand message or plain object to encode
|
|
9019
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9020
|
+
* @returns {$protobuf.Writer} Writer
|
|
9021
|
+
*/
|
|
9022
|
+
QueryOperand.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9023
|
+
return this.encode(message, writer).ldelim();
|
|
9024
|
+
};
|
|
9025
|
+
|
|
9026
|
+
/**
|
|
9027
|
+
* Decodes a QueryOperand message from the specified reader or buffer.
|
|
9028
|
+
* @function decode
|
|
9029
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
9030
|
+
* @static
|
|
9031
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9032
|
+
* @param {number} [length] Message length if known beforehand
|
|
9033
|
+
* @returns {vertexvis.protobuf.stream.QueryOperand} QueryOperand
|
|
9034
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9035
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9036
|
+
*/
|
|
9037
|
+
QueryOperand.decode = function decode(reader, length) {
|
|
9038
|
+
if (!(reader instanceof $Reader))
|
|
9039
|
+
reader = $Reader.create(reader);
|
|
9040
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.QueryOperand();
|
|
9041
|
+
while (reader.pos < end) {
|
|
9042
|
+
let tag = reader.uint32();
|
|
9043
|
+
switch (tag >>> 3) {
|
|
9044
|
+
case 1:
|
|
9045
|
+
message.metadata = $root.vertexvis.protobuf.stream.MetadataFilterQuery.decode(reader, reader.uint32());
|
|
9046
|
+
break;
|
|
9047
|
+
case 2:
|
|
9048
|
+
message.item = $root.vertexvis.protobuf.stream.ItemQuery.decode(reader, reader.uint32());
|
|
9049
|
+
break;
|
|
9050
|
+
case 3:
|
|
9051
|
+
message.root = $root.vertexvis.protobuf.stream.RootQuery.decode(reader, reader.uint32());
|
|
9052
|
+
break;
|
|
9053
|
+
case 4:
|
|
9054
|
+
message.point = $root.vertexvis.protobuf.stream.PointQuery.decode(reader, reader.uint32());
|
|
9055
|
+
break;
|
|
9056
|
+
case 5:
|
|
9057
|
+
message.sceneTreeRange = $root.vertexvis.protobuf.stream.SceneTreeRangeQuery.decode(reader, reader.uint32());
|
|
9058
|
+
break;
|
|
9059
|
+
case 6:
|
|
9060
|
+
message.override = $root.vertexvis.protobuf.stream.OverrideQuery.decode(reader, reader.uint32());
|
|
9061
|
+
break;
|
|
9062
|
+
case 7:
|
|
9063
|
+
message.volume = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.decode(reader, reader.uint32());
|
|
9064
|
+
break;
|
|
9065
|
+
case 8:
|
|
9066
|
+
message.itemCollection = $root.vertexvis.protobuf.stream.QueryCollection.decode(reader, reader.uint32());
|
|
9067
|
+
break;
|
|
9068
|
+
default:
|
|
9069
|
+
reader.skipType(tag & 7);
|
|
9070
|
+
break;
|
|
9071
|
+
}
|
|
9072
|
+
}
|
|
9073
|
+
return message;
|
|
9074
|
+
};
|
|
9075
|
+
|
|
9076
|
+
/**
|
|
9077
|
+
* Decodes a QueryOperand message from the specified reader or buffer, length delimited.
|
|
9078
|
+
* @function decodeDelimited
|
|
9079
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
9080
|
+
* @static
|
|
9081
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9082
|
+
* @returns {vertexvis.protobuf.stream.QueryOperand} QueryOperand
|
|
9083
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9084
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9085
|
+
*/
|
|
9086
|
+
QueryOperand.decodeDelimited = function decodeDelimited(reader) {
|
|
9087
|
+
if (!(reader instanceof $Reader))
|
|
9088
|
+
reader = new $Reader(reader);
|
|
9089
|
+
return this.decode(reader, reader.uint32());
|
|
9090
|
+
};
|
|
9091
|
+
|
|
9092
|
+
/**
|
|
9093
|
+
* Verifies a QueryOperand message.
|
|
9094
|
+
* @function verify
|
|
9095
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
9096
|
+
* @static
|
|
9097
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9098
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9099
|
+
*/
|
|
9100
|
+
QueryOperand.verify = function verify(message) {
|
|
9101
|
+
if (typeof message !== "object" || message === null)
|
|
9102
|
+
return "object expected";
|
|
9103
|
+
let properties = {};
|
|
9104
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
9105
|
+
properties.operand = 1;
|
|
9106
|
+
{
|
|
9107
|
+
let error = $root.vertexvis.protobuf.stream.MetadataFilterQuery.verify(message.metadata);
|
|
9108
|
+
if (error)
|
|
9109
|
+
return "metadata." + error;
|
|
9110
|
+
}
|
|
9111
|
+
}
|
|
9112
|
+
if (message.item != null && message.hasOwnProperty("item")) {
|
|
9113
|
+
if (properties.operand === 1)
|
|
9114
|
+
return "operand: multiple values";
|
|
9115
|
+
properties.operand = 1;
|
|
9116
|
+
{
|
|
9117
|
+
let error = $root.vertexvis.protobuf.stream.ItemQuery.verify(message.item);
|
|
9118
|
+
if (error)
|
|
9119
|
+
return "item." + error;
|
|
9120
|
+
}
|
|
9121
|
+
}
|
|
9122
|
+
if (message.root != null && message.hasOwnProperty("root")) {
|
|
9123
|
+
if (properties.operand === 1)
|
|
9124
|
+
return "operand: multiple values";
|
|
9125
|
+
properties.operand = 1;
|
|
9126
|
+
{
|
|
9127
|
+
let error = $root.vertexvis.protobuf.stream.RootQuery.verify(message.root);
|
|
9128
|
+
if (error)
|
|
9129
|
+
return "root." + error;
|
|
9130
|
+
}
|
|
9131
|
+
}
|
|
9132
|
+
if (message.point != null && message.hasOwnProperty("point")) {
|
|
9133
|
+
if (properties.operand === 1)
|
|
9134
|
+
return "operand: multiple values";
|
|
9135
|
+
properties.operand = 1;
|
|
9136
|
+
{
|
|
9137
|
+
let error = $root.vertexvis.protobuf.stream.PointQuery.verify(message.point);
|
|
9138
|
+
if (error)
|
|
9139
|
+
return "point." + error;
|
|
9140
|
+
}
|
|
9141
|
+
}
|
|
9142
|
+
if (message.sceneTreeRange != null && message.hasOwnProperty("sceneTreeRange")) {
|
|
9143
|
+
if (properties.operand === 1)
|
|
9144
|
+
return "operand: multiple values";
|
|
9145
|
+
properties.operand = 1;
|
|
9146
|
+
{
|
|
9147
|
+
let error = $root.vertexvis.protobuf.stream.SceneTreeRangeQuery.verify(message.sceneTreeRange);
|
|
9148
|
+
if (error)
|
|
9149
|
+
return "sceneTreeRange." + error;
|
|
9150
|
+
}
|
|
9151
|
+
}
|
|
9152
|
+
if (message.override != null && message.hasOwnProperty("override")) {
|
|
9153
|
+
if (properties.operand === 1)
|
|
9154
|
+
return "operand: multiple values";
|
|
9155
|
+
properties.operand = 1;
|
|
9156
|
+
{
|
|
9157
|
+
let error = $root.vertexvis.protobuf.stream.OverrideQuery.verify(message.override);
|
|
9158
|
+
if (error)
|
|
9159
|
+
return "override." + error;
|
|
9160
|
+
}
|
|
9161
|
+
}
|
|
9162
|
+
if (message.volume != null && message.hasOwnProperty("volume")) {
|
|
9163
|
+
if (properties.operand === 1)
|
|
9164
|
+
return "operand: multiple values";
|
|
9165
|
+
properties.operand = 1;
|
|
9166
|
+
{
|
|
9167
|
+
let error = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.verify(message.volume);
|
|
9168
|
+
if (error)
|
|
9169
|
+
return "volume." + error;
|
|
9170
|
+
}
|
|
9171
|
+
}
|
|
9172
|
+
if (message.itemCollection != null && message.hasOwnProperty("itemCollection")) {
|
|
9173
|
+
if (properties.operand === 1)
|
|
9174
|
+
return "operand: multiple values";
|
|
9175
|
+
properties.operand = 1;
|
|
9176
|
+
{
|
|
9177
|
+
let error = $root.vertexvis.protobuf.stream.QueryCollection.verify(message.itemCollection);
|
|
9178
|
+
if (error)
|
|
9179
|
+
return "itemCollection." + error;
|
|
9180
|
+
}
|
|
9181
|
+
}
|
|
9182
|
+
return null;
|
|
9183
|
+
};
|
|
9184
|
+
|
|
9185
|
+
/**
|
|
9186
|
+
* Creates a QueryOperand message from a plain object. Also converts values to their respective internal types.
|
|
9187
|
+
* @function fromObject
|
|
9188
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
9189
|
+
* @static
|
|
9190
|
+
* @param {Object.<string,*>} object Plain object
|
|
9191
|
+
* @returns {vertexvis.protobuf.stream.QueryOperand} QueryOperand
|
|
9192
|
+
*/
|
|
9193
|
+
QueryOperand.fromObject = function fromObject(object) {
|
|
9194
|
+
if (object instanceof $root.vertexvis.protobuf.stream.QueryOperand)
|
|
9195
|
+
return object;
|
|
9196
|
+
let message = new $root.vertexvis.protobuf.stream.QueryOperand();
|
|
9197
|
+
if (object.metadata != null) {
|
|
9198
|
+
if (typeof object.metadata !== "object")
|
|
9199
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryOperand.metadata: object expected");
|
|
9200
|
+
message.metadata = $root.vertexvis.protobuf.stream.MetadataFilterQuery.fromObject(object.metadata);
|
|
9201
|
+
}
|
|
9202
|
+
if (object.item != null) {
|
|
9203
|
+
if (typeof object.item !== "object")
|
|
9204
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryOperand.item: object expected");
|
|
9205
|
+
message.item = $root.vertexvis.protobuf.stream.ItemQuery.fromObject(object.item);
|
|
9206
|
+
}
|
|
9207
|
+
if (object.root != null) {
|
|
9208
|
+
if (typeof object.root !== "object")
|
|
9209
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryOperand.root: object expected");
|
|
9210
|
+
message.root = $root.vertexvis.protobuf.stream.RootQuery.fromObject(object.root);
|
|
9211
|
+
}
|
|
9212
|
+
if (object.point != null) {
|
|
9213
|
+
if (typeof object.point !== "object")
|
|
9214
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryOperand.point: object expected");
|
|
9215
|
+
message.point = $root.vertexvis.protobuf.stream.PointQuery.fromObject(object.point);
|
|
9216
|
+
}
|
|
9217
|
+
if (object.sceneTreeRange != null) {
|
|
9218
|
+
if (typeof object.sceneTreeRange !== "object")
|
|
9219
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryOperand.sceneTreeRange: object expected");
|
|
9220
|
+
message.sceneTreeRange = $root.vertexvis.protobuf.stream.SceneTreeRangeQuery.fromObject(object.sceneTreeRange);
|
|
9221
|
+
}
|
|
9222
|
+
if (object.override != null) {
|
|
9223
|
+
if (typeof object.override !== "object")
|
|
9224
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryOperand.override: object expected");
|
|
9225
|
+
message.override = $root.vertexvis.protobuf.stream.OverrideQuery.fromObject(object.override);
|
|
9226
|
+
}
|
|
9227
|
+
if (object.volume != null) {
|
|
9228
|
+
if (typeof object.volume !== "object")
|
|
9229
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryOperand.volume: object expected");
|
|
9230
|
+
message.volume = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.fromObject(object.volume);
|
|
9231
|
+
}
|
|
9232
|
+
if (object.itemCollection != null) {
|
|
9233
|
+
if (typeof object.itemCollection !== "object")
|
|
9234
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryOperand.itemCollection: object expected");
|
|
9235
|
+
message.itemCollection = $root.vertexvis.protobuf.stream.QueryCollection.fromObject(object.itemCollection);
|
|
9236
|
+
}
|
|
9237
|
+
return message;
|
|
9238
|
+
};
|
|
9239
|
+
|
|
9240
|
+
/**
|
|
9241
|
+
* Creates a plain object from a QueryOperand message. Also converts values to other types if specified.
|
|
9242
|
+
* @function toObject
|
|
9243
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
9244
|
+
* @static
|
|
9245
|
+
* @param {vertexvis.protobuf.stream.QueryOperand} message QueryOperand
|
|
9246
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9247
|
+
* @returns {Object.<string,*>} Plain object
|
|
9248
|
+
*/
|
|
9249
|
+
QueryOperand.toObject = function toObject(message, options) {
|
|
9250
|
+
if (!options)
|
|
9251
|
+
options = {};
|
|
9252
|
+
let object = {};
|
|
9253
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
9254
|
+
object.metadata = $root.vertexvis.protobuf.stream.MetadataFilterQuery.toObject(message.metadata, options);
|
|
9255
|
+
if (options.oneofs)
|
|
9256
|
+
object.operand = "metadata";
|
|
9257
|
+
}
|
|
9258
|
+
if (message.item != null && message.hasOwnProperty("item")) {
|
|
9259
|
+
object.item = $root.vertexvis.protobuf.stream.ItemQuery.toObject(message.item, options);
|
|
9260
|
+
if (options.oneofs)
|
|
9261
|
+
object.operand = "item";
|
|
9262
|
+
}
|
|
9263
|
+
if (message.root != null && message.hasOwnProperty("root")) {
|
|
9264
|
+
object.root = $root.vertexvis.protobuf.stream.RootQuery.toObject(message.root, options);
|
|
9265
|
+
if (options.oneofs)
|
|
9266
|
+
object.operand = "root";
|
|
9267
|
+
}
|
|
9268
|
+
if (message.point != null && message.hasOwnProperty("point")) {
|
|
9269
|
+
object.point = $root.vertexvis.protobuf.stream.PointQuery.toObject(message.point, options);
|
|
9270
|
+
if (options.oneofs)
|
|
9271
|
+
object.operand = "point";
|
|
9272
|
+
}
|
|
9273
|
+
if (message.sceneTreeRange != null && message.hasOwnProperty("sceneTreeRange")) {
|
|
9274
|
+
object.sceneTreeRange = $root.vertexvis.protobuf.stream.SceneTreeRangeQuery.toObject(message.sceneTreeRange, options);
|
|
9275
|
+
if (options.oneofs)
|
|
9276
|
+
object.operand = "sceneTreeRange";
|
|
9277
|
+
}
|
|
9278
|
+
if (message.override != null && message.hasOwnProperty("override")) {
|
|
9279
|
+
object.override = $root.vertexvis.protobuf.stream.OverrideQuery.toObject(message.override, options);
|
|
9280
|
+
if (options.oneofs)
|
|
9281
|
+
object.operand = "override";
|
|
9282
|
+
}
|
|
9283
|
+
if (message.volume != null && message.hasOwnProperty("volume")) {
|
|
9284
|
+
object.volume = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.toObject(message.volume, options);
|
|
9285
|
+
if (options.oneofs)
|
|
9286
|
+
object.operand = "volume";
|
|
9287
|
+
}
|
|
9288
|
+
if (message.itemCollection != null && message.hasOwnProperty("itemCollection")) {
|
|
9289
|
+
object.itemCollection = $root.vertexvis.protobuf.stream.QueryCollection.toObject(message.itemCollection, options);
|
|
9290
|
+
if (options.oneofs)
|
|
9291
|
+
object.operand = "itemCollection";
|
|
9292
|
+
}
|
|
9293
|
+
return object;
|
|
9294
|
+
};
|
|
9295
|
+
|
|
9296
|
+
/**
|
|
9297
|
+
* Converts this QueryOperand to JSON.
|
|
9298
|
+
* @function toJSON
|
|
9299
|
+
* @memberof vertexvis.protobuf.stream.QueryOperand
|
|
9300
|
+
* @instance
|
|
9301
|
+
* @returns {Object.<string,*>} JSON object
|
|
9302
|
+
*/
|
|
9303
|
+
QueryOperand.prototype.toJSON = function toJSON() {
|
|
9304
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
9305
|
+
};
|
|
9306
|
+
|
|
9307
|
+
return QueryOperand;
|
|
9308
|
+
})();
|
|
9309
|
+
|
|
9310
|
+
stream.QueryExpression = (function() {
|
|
9311
|
+
|
|
9312
|
+
/**
|
|
9313
|
+
* Properties of a QueryExpression.
|
|
9314
|
+
* @memberof vertexvis.protobuf.stream
|
|
9315
|
+
* @interface IQueryExpression
|
|
9316
|
+
* @property {vertexvis.protobuf.stream.IQueryOperand|null} [operand] QueryExpression operand
|
|
9317
|
+
* @property {vertexvis.protobuf.stream.IOrExpression|null} [or] QueryExpression or
|
|
9318
|
+
* @property {vertexvis.protobuf.stream.IAndExpression|null} [and] QueryExpression and
|
|
9319
|
+
* @property {vertexvis.protobuf.stream.INotExpression|null} [not] QueryExpression not
|
|
9320
|
+
*/
|
|
9321
|
+
|
|
9322
|
+
/**
|
|
9323
|
+
* Constructs a new QueryExpression.
|
|
9324
|
+
* @memberof vertexvis.protobuf.stream
|
|
9325
|
+
* @classdesc Represents a QueryExpression.
|
|
9326
|
+
* @implements IQueryExpression
|
|
9327
|
+
* @constructor
|
|
9328
|
+
* @param {vertexvis.protobuf.stream.IQueryExpression=} [properties] Properties to set
|
|
9329
|
+
*/
|
|
9330
|
+
function QueryExpression(properties) {
|
|
9331
|
+
if (properties)
|
|
9332
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9333
|
+
if (properties[keys[i]] != null)
|
|
9334
|
+
this[keys[i]] = properties[keys[i]];
|
|
9335
|
+
}
|
|
9336
|
+
|
|
9337
|
+
/**
|
|
9338
|
+
* QueryExpression operand.
|
|
9339
|
+
* @member {vertexvis.protobuf.stream.IQueryOperand|null|undefined} operand
|
|
9340
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9341
|
+
* @instance
|
|
9342
|
+
*/
|
|
9343
|
+
QueryExpression.prototype.operand = null;
|
|
9344
|
+
|
|
9345
|
+
/**
|
|
9346
|
+
* QueryExpression or.
|
|
9347
|
+
* @member {vertexvis.protobuf.stream.IOrExpression|null|undefined} or
|
|
9348
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9349
|
+
* @instance
|
|
9350
|
+
*/
|
|
9351
|
+
QueryExpression.prototype.or = null;
|
|
9352
|
+
|
|
9353
|
+
/**
|
|
9354
|
+
* QueryExpression and.
|
|
9355
|
+
* @member {vertexvis.protobuf.stream.IAndExpression|null|undefined} and
|
|
9356
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9357
|
+
* @instance
|
|
9358
|
+
*/
|
|
9359
|
+
QueryExpression.prototype.and = null;
|
|
9360
|
+
|
|
9361
|
+
/**
|
|
9362
|
+
* QueryExpression not.
|
|
9363
|
+
* @member {vertexvis.protobuf.stream.INotExpression|null|undefined} not
|
|
9364
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9365
|
+
* @instance
|
|
9366
|
+
*/
|
|
9367
|
+
QueryExpression.prototype.not = null;
|
|
9368
|
+
|
|
9369
|
+
// OneOf field names bound to virtual getters and setters
|
|
9370
|
+
let $oneOfFields;
|
|
9371
|
+
|
|
9372
|
+
/**
|
|
9373
|
+
* QueryExpression sealedValue.
|
|
9374
|
+
* @member {"operand"|"or"|"and"|"not"|undefined} sealedValue
|
|
9375
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9376
|
+
* @instance
|
|
9377
|
+
*/
|
|
9378
|
+
Object.defineProperty(QueryExpression.prototype, "sealedValue", {
|
|
9379
|
+
get: $util.oneOfGetter($oneOfFields = ["operand", "or", "and", "not"]),
|
|
9380
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
9381
|
+
});
|
|
9382
|
+
|
|
9383
|
+
/**
|
|
9384
|
+
* Creates a new QueryExpression instance using the specified properties.
|
|
9385
|
+
* @function create
|
|
9386
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9387
|
+
* @static
|
|
9388
|
+
* @param {vertexvis.protobuf.stream.IQueryExpression=} [properties] Properties to set
|
|
9389
|
+
* @returns {vertexvis.protobuf.stream.QueryExpression} QueryExpression instance
|
|
9390
|
+
*/
|
|
9391
|
+
QueryExpression.create = function create(properties) {
|
|
9392
|
+
return new QueryExpression(properties);
|
|
9393
|
+
};
|
|
9394
|
+
|
|
9395
|
+
/**
|
|
9396
|
+
* Encodes the specified QueryExpression message. Does not implicitly {@link vertexvis.protobuf.stream.QueryExpression.verify|verify} messages.
|
|
9397
|
+
* @function encode
|
|
9398
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9399
|
+
* @static
|
|
9400
|
+
* @param {vertexvis.protobuf.stream.IQueryExpression} message QueryExpression message or plain object to encode
|
|
9401
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9402
|
+
* @returns {$protobuf.Writer} Writer
|
|
9403
|
+
*/
|
|
9404
|
+
QueryExpression.encode = function encode(message, writer) {
|
|
9405
|
+
if (!writer)
|
|
9406
|
+
writer = $Writer.create();
|
|
9407
|
+
if (message.operand != null && Object.hasOwnProperty.call(message, "operand"))
|
|
9408
|
+
$root.vertexvis.protobuf.stream.QueryOperand.encode(message.operand, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
9409
|
+
if (message.or != null && Object.hasOwnProperty.call(message, "or"))
|
|
9410
|
+
$root.vertexvis.protobuf.stream.OrExpression.encode(message.or, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
9411
|
+
if (message.and != null && Object.hasOwnProperty.call(message, "and"))
|
|
9412
|
+
$root.vertexvis.protobuf.stream.AndExpression.encode(message.and, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
9413
|
+
if (message.not != null && Object.hasOwnProperty.call(message, "not"))
|
|
9414
|
+
$root.vertexvis.protobuf.stream.NotExpression.encode(message.not, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
9415
|
+
return writer;
|
|
9416
|
+
};
|
|
9417
|
+
|
|
9418
|
+
/**
|
|
9419
|
+
* Encodes the specified QueryExpression message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.QueryExpression.verify|verify} messages.
|
|
9420
|
+
* @function encodeDelimited
|
|
9421
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9422
|
+
* @static
|
|
9423
|
+
* @param {vertexvis.protobuf.stream.IQueryExpression} message QueryExpression message or plain object to encode
|
|
9424
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9425
|
+
* @returns {$protobuf.Writer} Writer
|
|
9426
|
+
*/
|
|
9427
|
+
QueryExpression.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9428
|
+
return this.encode(message, writer).ldelim();
|
|
9429
|
+
};
|
|
9430
|
+
|
|
9431
|
+
/**
|
|
9432
|
+
* Decodes a QueryExpression message from the specified reader or buffer.
|
|
9433
|
+
* @function decode
|
|
9434
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9435
|
+
* @static
|
|
9436
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9437
|
+
* @param {number} [length] Message length if known beforehand
|
|
9438
|
+
* @returns {vertexvis.protobuf.stream.QueryExpression} QueryExpression
|
|
9439
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9440
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9441
|
+
*/
|
|
9442
|
+
QueryExpression.decode = function decode(reader, length) {
|
|
9443
|
+
if (!(reader instanceof $Reader))
|
|
9444
|
+
reader = $Reader.create(reader);
|
|
9445
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.QueryExpression();
|
|
9446
|
+
while (reader.pos < end) {
|
|
9447
|
+
let tag = reader.uint32();
|
|
9448
|
+
switch (tag >>> 3) {
|
|
9449
|
+
case 1:
|
|
9450
|
+
message.operand = $root.vertexvis.protobuf.stream.QueryOperand.decode(reader, reader.uint32());
|
|
9451
|
+
break;
|
|
9452
|
+
case 2:
|
|
9453
|
+
message.or = $root.vertexvis.protobuf.stream.OrExpression.decode(reader, reader.uint32());
|
|
9454
|
+
break;
|
|
9455
|
+
case 3:
|
|
9456
|
+
message.and = $root.vertexvis.protobuf.stream.AndExpression.decode(reader, reader.uint32());
|
|
9457
|
+
break;
|
|
9458
|
+
case 4:
|
|
9459
|
+
message.not = $root.vertexvis.protobuf.stream.NotExpression.decode(reader, reader.uint32());
|
|
9460
|
+
break;
|
|
9461
|
+
default:
|
|
9462
|
+
reader.skipType(tag & 7);
|
|
9463
|
+
break;
|
|
9464
|
+
}
|
|
9465
|
+
}
|
|
9466
|
+
return message;
|
|
9467
|
+
};
|
|
9468
|
+
|
|
9469
|
+
/**
|
|
9470
|
+
* Decodes a QueryExpression message from the specified reader or buffer, length delimited.
|
|
9471
|
+
* @function decodeDelimited
|
|
9472
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9473
|
+
* @static
|
|
9474
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9475
|
+
* @returns {vertexvis.protobuf.stream.QueryExpression} QueryExpression
|
|
9476
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9477
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9478
|
+
*/
|
|
9479
|
+
QueryExpression.decodeDelimited = function decodeDelimited(reader) {
|
|
9480
|
+
if (!(reader instanceof $Reader))
|
|
9481
|
+
reader = new $Reader(reader);
|
|
9482
|
+
return this.decode(reader, reader.uint32());
|
|
9483
|
+
};
|
|
9484
|
+
|
|
9485
|
+
/**
|
|
9486
|
+
* Verifies a QueryExpression message.
|
|
9487
|
+
* @function verify
|
|
9488
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9489
|
+
* @static
|
|
9490
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9491
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9492
|
+
*/
|
|
9493
|
+
QueryExpression.verify = function verify(message) {
|
|
9494
|
+
if (typeof message !== "object" || message === null)
|
|
9495
|
+
return "object expected";
|
|
9496
|
+
let properties = {};
|
|
9497
|
+
if (message.operand != null && message.hasOwnProperty("operand")) {
|
|
9498
|
+
properties.sealedValue = 1;
|
|
9499
|
+
{
|
|
9500
|
+
let error = $root.vertexvis.protobuf.stream.QueryOperand.verify(message.operand);
|
|
9501
|
+
if (error)
|
|
9502
|
+
return "operand." + error;
|
|
9503
|
+
}
|
|
9504
|
+
}
|
|
9505
|
+
if (message.or != null && message.hasOwnProperty("or")) {
|
|
9506
|
+
if (properties.sealedValue === 1)
|
|
9507
|
+
return "sealedValue: multiple values";
|
|
9508
|
+
properties.sealedValue = 1;
|
|
9509
|
+
{
|
|
9510
|
+
let error = $root.vertexvis.protobuf.stream.OrExpression.verify(message.or);
|
|
9511
|
+
if (error)
|
|
9512
|
+
return "or." + error;
|
|
9513
|
+
}
|
|
9514
|
+
}
|
|
9515
|
+
if (message.and != null && message.hasOwnProperty("and")) {
|
|
9516
|
+
if (properties.sealedValue === 1)
|
|
9517
|
+
return "sealedValue: multiple values";
|
|
9518
|
+
properties.sealedValue = 1;
|
|
9519
|
+
{
|
|
9520
|
+
let error = $root.vertexvis.protobuf.stream.AndExpression.verify(message.and);
|
|
9521
|
+
if (error)
|
|
9522
|
+
return "and." + error;
|
|
9523
|
+
}
|
|
9524
|
+
}
|
|
9525
|
+
if (message.not != null && message.hasOwnProperty("not")) {
|
|
9526
|
+
if (properties.sealedValue === 1)
|
|
9527
|
+
return "sealedValue: multiple values";
|
|
9528
|
+
properties.sealedValue = 1;
|
|
9529
|
+
{
|
|
9530
|
+
let error = $root.vertexvis.protobuf.stream.NotExpression.verify(message.not);
|
|
9531
|
+
if (error)
|
|
9532
|
+
return "not." + error;
|
|
9533
|
+
}
|
|
9534
|
+
}
|
|
9535
|
+
return null;
|
|
9536
|
+
};
|
|
9537
|
+
|
|
9538
|
+
/**
|
|
9539
|
+
* Creates a QueryExpression message from a plain object. Also converts values to their respective internal types.
|
|
9540
|
+
* @function fromObject
|
|
9541
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9542
|
+
* @static
|
|
9543
|
+
* @param {Object.<string,*>} object Plain object
|
|
9544
|
+
* @returns {vertexvis.protobuf.stream.QueryExpression} QueryExpression
|
|
9545
|
+
*/
|
|
9546
|
+
QueryExpression.fromObject = function fromObject(object) {
|
|
9547
|
+
if (object instanceof $root.vertexvis.protobuf.stream.QueryExpression)
|
|
9548
|
+
return object;
|
|
9549
|
+
let message = new $root.vertexvis.protobuf.stream.QueryExpression();
|
|
9550
|
+
if (object.operand != null) {
|
|
9551
|
+
if (typeof object.operand !== "object")
|
|
9552
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryExpression.operand: object expected");
|
|
9553
|
+
message.operand = $root.vertexvis.protobuf.stream.QueryOperand.fromObject(object.operand);
|
|
9554
|
+
}
|
|
9555
|
+
if (object.or != null) {
|
|
9556
|
+
if (typeof object.or !== "object")
|
|
9557
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryExpression.or: object expected");
|
|
9558
|
+
message.or = $root.vertexvis.protobuf.stream.OrExpression.fromObject(object.or);
|
|
9559
|
+
}
|
|
9560
|
+
if (object.and != null) {
|
|
9561
|
+
if (typeof object.and !== "object")
|
|
9562
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryExpression.and: object expected");
|
|
9563
|
+
message.and = $root.vertexvis.protobuf.stream.AndExpression.fromObject(object.and);
|
|
9564
|
+
}
|
|
9565
|
+
if (object.not != null) {
|
|
9566
|
+
if (typeof object.not !== "object")
|
|
9567
|
+
throw TypeError(".vertexvis.protobuf.stream.QueryExpression.not: object expected");
|
|
9568
|
+
message.not = $root.vertexvis.protobuf.stream.NotExpression.fromObject(object.not);
|
|
9569
|
+
}
|
|
9570
|
+
return message;
|
|
9571
|
+
};
|
|
9572
|
+
|
|
9573
|
+
/**
|
|
9574
|
+
* Creates a plain object from a QueryExpression message. Also converts values to other types if specified.
|
|
9575
|
+
* @function toObject
|
|
9576
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9577
|
+
* @static
|
|
9578
|
+
* @param {vertexvis.protobuf.stream.QueryExpression} message QueryExpression
|
|
9579
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9580
|
+
* @returns {Object.<string,*>} Plain object
|
|
9581
|
+
*/
|
|
9582
|
+
QueryExpression.toObject = function toObject(message, options) {
|
|
9583
|
+
if (!options)
|
|
9584
|
+
options = {};
|
|
9585
|
+
let object = {};
|
|
9586
|
+
if (message.operand != null && message.hasOwnProperty("operand")) {
|
|
9587
|
+
object.operand = $root.vertexvis.protobuf.stream.QueryOperand.toObject(message.operand, options);
|
|
9588
|
+
if (options.oneofs)
|
|
9589
|
+
object.sealedValue = "operand";
|
|
9590
|
+
}
|
|
9591
|
+
if (message.or != null && message.hasOwnProperty("or")) {
|
|
9592
|
+
object.or = $root.vertexvis.protobuf.stream.OrExpression.toObject(message.or, options);
|
|
9593
|
+
if (options.oneofs)
|
|
9594
|
+
object.sealedValue = "or";
|
|
9595
|
+
}
|
|
9596
|
+
if (message.and != null && message.hasOwnProperty("and")) {
|
|
9597
|
+
object.and = $root.vertexvis.protobuf.stream.AndExpression.toObject(message.and, options);
|
|
9598
|
+
if (options.oneofs)
|
|
9599
|
+
object.sealedValue = "and";
|
|
9600
|
+
}
|
|
9601
|
+
if (message.not != null && message.hasOwnProperty("not")) {
|
|
9602
|
+
object.not = $root.vertexvis.protobuf.stream.NotExpression.toObject(message.not, options);
|
|
9603
|
+
if (options.oneofs)
|
|
9604
|
+
object.sealedValue = "not";
|
|
9605
|
+
}
|
|
9606
|
+
return object;
|
|
9607
|
+
};
|
|
9608
|
+
|
|
9609
|
+
/**
|
|
9610
|
+
* Converts this QueryExpression to JSON.
|
|
9611
|
+
* @function toJSON
|
|
9612
|
+
* @memberof vertexvis.protobuf.stream.QueryExpression
|
|
9613
|
+
* @instance
|
|
9614
|
+
* @returns {Object.<string,*>} JSON object
|
|
9615
|
+
*/
|
|
9616
|
+
QueryExpression.prototype.toJSON = function toJSON() {
|
|
9617
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
9618
|
+
};
|
|
9619
|
+
|
|
9620
|
+
return QueryExpression;
|
|
9621
|
+
})();
|
|
9622
|
+
|
|
9623
|
+
stream.NotExpression = (function() {
|
|
9624
|
+
|
|
9625
|
+
/**
|
|
9626
|
+
* Properties of a NotExpression.
|
|
9627
|
+
* @memberof vertexvis.protobuf.stream
|
|
9628
|
+
* @interface INotExpression
|
|
9629
|
+
* @property {vertexvis.protobuf.stream.IQueryExpression|null} [expression] NotExpression expression
|
|
9630
|
+
*/
|
|
9631
|
+
|
|
9632
|
+
/**
|
|
9633
|
+
* Constructs a new NotExpression.
|
|
9634
|
+
* @memberof vertexvis.protobuf.stream
|
|
9635
|
+
* @classdesc Represents a NotExpression.
|
|
9636
|
+
* @implements INotExpression
|
|
9637
|
+
* @constructor
|
|
9638
|
+
* @param {vertexvis.protobuf.stream.INotExpression=} [properties] Properties to set
|
|
9639
|
+
*/
|
|
9640
|
+
function NotExpression(properties) {
|
|
9641
|
+
if (properties)
|
|
9642
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9643
|
+
if (properties[keys[i]] != null)
|
|
9644
|
+
this[keys[i]] = properties[keys[i]];
|
|
9645
|
+
}
|
|
9646
|
+
|
|
9647
|
+
/**
|
|
9648
|
+
* NotExpression expression.
|
|
9649
|
+
* @member {vertexvis.protobuf.stream.IQueryExpression|null|undefined} expression
|
|
9650
|
+
* @memberof vertexvis.protobuf.stream.NotExpression
|
|
9651
|
+
* @instance
|
|
9652
|
+
*/
|
|
9653
|
+
NotExpression.prototype.expression = null;
|
|
9654
|
+
|
|
9655
|
+
/**
|
|
9656
|
+
* Creates a new NotExpression instance using the specified properties.
|
|
9657
|
+
* @function create
|
|
9658
|
+
* @memberof vertexvis.protobuf.stream.NotExpression
|
|
9659
|
+
* @static
|
|
9660
|
+
* @param {vertexvis.protobuf.stream.INotExpression=} [properties] Properties to set
|
|
9661
|
+
* @returns {vertexvis.protobuf.stream.NotExpression} NotExpression instance
|
|
9662
|
+
*/
|
|
9663
|
+
NotExpression.create = function create(properties) {
|
|
9664
|
+
return new NotExpression(properties);
|
|
9665
|
+
};
|
|
9666
|
+
|
|
9667
|
+
/**
|
|
9668
|
+
* Encodes the specified NotExpression message. Does not implicitly {@link vertexvis.protobuf.stream.NotExpression.verify|verify} messages.
|
|
9669
|
+
* @function encode
|
|
9670
|
+
* @memberof vertexvis.protobuf.stream.NotExpression
|
|
9671
|
+
* @static
|
|
9672
|
+
* @param {vertexvis.protobuf.stream.INotExpression} message NotExpression message or plain object to encode
|
|
9673
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9674
|
+
* @returns {$protobuf.Writer} Writer
|
|
9675
|
+
*/
|
|
9676
|
+
NotExpression.encode = function encode(message, writer) {
|
|
9677
|
+
if (!writer)
|
|
9678
|
+
writer = $Writer.create();
|
|
9679
|
+
if (message.expression != null && Object.hasOwnProperty.call(message, "expression"))
|
|
9680
|
+
$root.vertexvis.protobuf.stream.QueryExpression.encode(message.expression, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
9681
|
+
return writer;
|
|
9682
|
+
};
|
|
9683
|
+
|
|
9684
|
+
/**
|
|
9685
|
+
* Encodes the specified NotExpression message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.NotExpression.verify|verify} messages.
|
|
9686
|
+
* @function encodeDelimited
|
|
9687
|
+
* @memberof vertexvis.protobuf.stream.NotExpression
|
|
9688
|
+
* @static
|
|
9689
|
+
* @param {vertexvis.protobuf.stream.INotExpression} message NotExpression message or plain object to encode
|
|
9690
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9691
|
+
* @returns {$protobuf.Writer} Writer
|
|
9692
|
+
*/
|
|
9693
|
+
NotExpression.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9694
|
+
return this.encode(message, writer).ldelim();
|
|
9695
|
+
};
|
|
9696
|
+
|
|
9697
|
+
/**
|
|
9698
|
+
* Decodes a NotExpression message from the specified reader or buffer.
|
|
9699
|
+
* @function decode
|
|
9700
|
+
* @memberof vertexvis.protobuf.stream.NotExpression
|
|
9701
|
+
* @static
|
|
9702
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9703
|
+
* @param {number} [length] Message length if known beforehand
|
|
9704
|
+
* @returns {vertexvis.protobuf.stream.NotExpression} NotExpression
|
|
9705
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9706
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9707
|
+
*/
|
|
9708
|
+
NotExpression.decode = function decode(reader, length) {
|
|
9709
|
+
if (!(reader instanceof $Reader))
|
|
9710
|
+
reader = $Reader.create(reader);
|
|
9711
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.NotExpression();
|
|
9712
|
+
while (reader.pos < end) {
|
|
9713
|
+
let tag = reader.uint32();
|
|
9714
|
+
switch (tag >>> 3) {
|
|
9715
|
+
case 1:
|
|
9716
|
+
message.expression = $root.vertexvis.protobuf.stream.QueryExpression.decode(reader, reader.uint32());
|
|
9717
|
+
break;
|
|
9718
|
+
default:
|
|
9719
|
+
reader.skipType(tag & 7);
|
|
9720
|
+
break;
|
|
9721
|
+
}
|
|
9722
|
+
}
|
|
9723
|
+
return message;
|
|
9724
|
+
};
|
|
9725
|
+
|
|
9726
|
+
/**
|
|
9727
|
+
* Decodes a NotExpression message from the specified reader or buffer, length delimited.
|
|
9728
|
+
* @function decodeDelimited
|
|
9729
|
+
* @memberof vertexvis.protobuf.stream.NotExpression
|
|
9730
|
+
* @static
|
|
9731
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9732
|
+
* @returns {vertexvis.protobuf.stream.NotExpression} NotExpression
|
|
9733
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9734
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9735
|
+
*/
|
|
9736
|
+
NotExpression.decodeDelimited = function decodeDelimited(reader) {
|
|
9737
|
+
if (!(reader instanceof $Reader))
|
|
9738
|
+
reader = new $Reader(reader);
|
|
9739
|
+
return this.decode(reader, reader.uint32());
|
|
9740
|
+
};
|
|
9741
|
+
|
|
9742
|
+
/**
|
|
9743
|
+
* Verifies a NotExpression message.
|
|
9744
|
+
* @function verify
|
|
9745
|
+
* @memberof vertexvis.protobuf.stream.NotExpression
|
|
9746
|
+
* @static
|
|
9747
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9748
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9749
|
+
*/
|
|
9750
|
+
NotExpression.verify = function verify(message) {
|
|
9751
|
+
if (typeof message !== "object" || message === null)
|
|
9752
|
+
return "object expected";
|
|
9753
|
+
if (message.expression != null && message.hasOwnProperty("expression")) {
|
|
9754
|
+
let error = $root.vertexvis.protobuf.stream.QueryExpression.verify(message.expression);
|
|
9755
|
+
if (error)
|
|
9756
|
+
return "expression." + error;
|
|
9757
|
+
}
|
|
9758
|
+
return null;
|
|
9759
|
+
};
|
|
9760
|
+
|
|
9761
|
+
/**
|
|
9762
|
+
* Creates a NotExpression message from a plain object. Also converts values to their respective internal types.
|
|
9763
|
+
* @function fromObject
|
|
9764
|
+
* @memberof vertexvis.protobuf.stream.NotExpression
|
|
9765
|
+
* @static
|
|
9766
|
+
* @param {Object.<string,*>} object Plain object
|
|
9767
|
+
* @returns {vertexvis.protobuf.stream.NotExpression} NotExpression
|
|
9768
|
+
*/
|
|
9769
|
+
NotExpression.fromObject = function fromObject(object) {
|
|
9770
|
+
if (object instanceof $root.vertexvis.protobuf.stream.NotExpression)
|
|
9771
|
+
return object;
|
|
9772
|
+
let message = new $root.vertexvis.protobuf.stream.NotExpression();
|
|
9773
|
+
if (object.expression != null) {
|
|
9774
|
+
if (typeof object.expression !== "object")
|
|
9775
|
+
throw TypeError(".vertexvis.protobuf.stream.NotExpression.expression: object expected");
|
|
9776
|
+
message.expression = $root.vertexvis.protobuf.stream.QueryExpression.fromObject(object.expression);
|
|
9777
|
+
}
|
|
9778
|
+
return message;
|
|
9779
|
+
};
|
|
9780
|
+
|
|
9781
|
+
/**
|
|
9782
|
+
* Creates a plain object from a NotExpression message. Also converts values to other types if specified.
|
|
9783
|
+
* @function toObject
|
|
9784
|
+
* @memberof vertexvis.protobuf.stream.NotExpression
|
|
9785
|
+
* @static
|
|
9786
|
+
* @param {vertexvis.protobuf.stream.NotExpression} message NotExpression
|
|
9787
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9788
|
+
* @returns {Object.<string,*>} Plain object
|
|
9789
|
+
*/
|
|
9790
|
+
NotExpression.toObject = function toObject(message, options) {
|
|
9791
|
+
if (!options)
|
|
9792
|
+
options = {};
|
|
9793
|
+
let object = {};
|
|
9794
|
+
if (options.defaults)
|
|
9795
|
+
object.expression = null;
|
|
9796
|
+
if (message.expression != null && message.hasOwnProperty("expression"))
|
|
9797
|
+
object.expression = $root.vertexvis.protobuf.stream.QueryExpression.toObject(message.expression, options);
|
|
9798
|
+
return object;
|
|
9799
|
+
};
|
|
9800
|
+
|
|
9801
|
+
/**
|
|
9802
|
+
* Converts this NotExpression to JSON.
|
|
9803
|
+
* @function toJSON
|
|
9804
|
+
* @memberof vertexvis.protobuf.stream.NotExpression
|
|
9805
|
+
* @instance
|
|
9806
|
+
* @returns {Object.<string,*>} JSON object
|
|
9807
|
+
*/
|
|
9808
|
+
NotExpression.prototype.toJSON = function toJSON() {
|
|
9809
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
9810
|
+
};
|
|
9811
|
+
|
|
9812
|
+
return NotExpression;
|
|
9813
|
+
})();
|
|
9814
|
+
|
|
9815
|
+
stream.OrExpression = (function() {
|
|
9816
|
+
|
|
9817
|
+
/**
|
|
9818
|
+
* Properties of an OrExpression.
|
|
9819
|
+
* @memberof vertexvis.protobuf.stream
|
|
9820
|
+
* @interface IOrExpression
|
|
9821
|
+
* @property {vertexvis.protobuf.stream.IQueryExpression|null} [first] OrExpression first
|
|
9822
|
+
* @property {vertexvis.protobuf.stream.IQueryExpression|null} [second] OrExpression second
|
|
9823
|
+
*/
|
|
9824
|
+
|
|
9825
|
+
/**
|
|
9826
|
+
* Constructs a new OrExpression.
|
|
9827
|
+
* @memberof vertexvis.protobuf.stream
|
|
9828
|
+
* @classdesc Represents an OrExpression.
|
|
9829
|
+
* @implements IOrExpression
|
|
9830
|
+
* @constructor
|
|
9831
|
+
* @param {vertexvis.protobuf.stream.IOrExpression=} [properties] Properties to set
|
|
9832
|
+
*/
|
|
9833
|
+
function OrExpression(properties) {
|
|
9834
|
+
if (properties)
|
|
9835
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9836
|
+
if (properties[keys[i]] != null)
|
|
9837
|
+
this[keys[i]] = properties[keys[i]];
|
|
9838
|
+
}
|
|
9839
|
+
|
|
9840
|
+
/**
|
|
9841
|
+
* OrExpression first.
|
|
9842
|
+
* @member {vertexvis.protobuf.stream.IQueryExpression|null|undefined} first
|
|
9843
|
+
* @memberof vertexvis.protobuf.stream.OrExpression
|
|
9844
|
+
* @instance
|
|
9845
|
+
*/
|
|
9846
|
+
OrExpression.prototype.first = null;
|
|
9847
|
+
|
|
9848
|
+
/**
|
|
9849
|
+
* OrExpression second.
|
|
9850
|
+
* @member {vertexvis.protobuf.stream.IQueryExpression|null|undefined} second
|
|
9851
|
+
* @memberof vertexvis.protobuf.stream.OrExpression
|
|
9852
|
+
* @instance
|
|
9853
|
+
*/
|
|
9854
|
+
OrExpression.prototype.second = null;
|
|
9855
|
+
|
|
9856
|
+
/**
|
|
9857
|
+
* Creates a new OrExpression instance using the specified properties.
|
|
9858
|
+
* @function create
|
|
9859
|
+
* @memberof vertexvis.protobuf.stream.OrExpression
|
|
9860
|
+
* @static
|
|
9861
|
+
* @param {vertexvis.protobuf.stream.IOrExpression=} [properties] Properties to set
|
|
9862
|
+
* @returns {vertexvis.protobuf.stream.OrExpression} OrExpression instance
|
|
9863
|
+
*/
|
|
9864
|
+
OrExpression.create = function create(properties) {
|
|
9865
|
+
return new OrExpression(properties);
|
|
9866
|
+
};
|
|
9867
|
+
|
|
9868
|
+
/**
|
|
9869
|
+
* Encodes the specified OrExpression message. Does not implicitly {@link vertexvis.protobuf.stream.OrExpression.verify|verify} messages.
|
|
9870
|
+
* @function encode
|
|
9871
|
+
* @memberof vertexvis.protobuf.stream.OrExpression
|
|
9872
|
+
* @static
|
|
9873
|
+
* @param {vertexvis.protobuf.stream.IOrExpression} message OrExpression message or plain object to encode
|
|
9874
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9875
|
+
* @returns {$protobuf.Writer} Writer
|
|
9876
|
+
*/
|
|
9877
|
+
OrExpression.encode = function encode(message, writer) {
|
|
9878
|
+
if (!writer)
|
|
9879
|
+
writer = $Writer.create();
|
|
9880
|
+
if (message.first != null && Object.hasOwnProperty.call(message, "first"))
|
|
9881
|
+
$root.vertexvis.protobuf.stream.QueryExpression.encode(message.first, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
9882
|
+
if (message.second != null && Object.hasOwnProperty.call(message, "second"))
|
|
9883
|
+
$root.vertexvis.protobuf.stream.QueryExpression.encode(message.second, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
9884
|
+
return writer;
|
|
9885
|
+
};
|
|
9886
|
+
|
|
9887
|
+
/**
|
|
9888
|
+
* Encodes the specified OrExpression message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.OrExpression.verify|verify} messages.
|
|
9889
|
+
* @function encodeDelimited
|
|
9890
|
+
* @memberof vertexvis.protobuf.stream.OrExpression
|
|
9891
|
+
* @static
|
|
9892
|
+
* @param {vertexvis.protobuf.stream.IOrExpression} message OrExpression message or plain object to encode
|
|
9893
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9894
|
+
* @returns {$protobuf.Writer} Writer
|
|
9895
|
+
*/
|
|
9896
|
+
OrExpression.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9897
|
+
return this.encode(message, writer).ldelim();
|
|
9898
|
+
};
|
|
9899
|
+
|
|
9900
|
+
/**
|
|
9901
|
+
* Decodes an OrExpression message from the specified reader or buffer.
|
|
9902
|
+
* @function decode
|
|
9903
|
+
* @memberof vertexvis.protobuf.stream.OrExpression
|
|
9904
|
+
* @static
|
|
9905
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9906
|
+
* @param {number} [length] Message length if known beforehand
|
|
9907
|
+
* @returns {vertexvis.protobuf.stream.OrExpression} OrExpression
|
|
9908
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9909
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9910
|
+
*/
|
|
9911
|
+
OrExpression.decode = function decode(reader, length) {
|
|
9912
|
+
if (!(reader instanceof $Reader))
|
|
9913
|
+
reader = $Reader.create(reader);
|
|
9914
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.OrExpression();
|
|
9915
|
+
while (reader.pos < end) {
|
|
9916
|
+
let tag = reader.uint32();
|
|
9917
|
+
switch (tag >>> 3) {
|
|
9918
|
+
case 1:
|
|
9919
|
+
message.first = $root.vertexvis.protobuf.stream.QueryExpression.decode(reader, reader.uint32());
|
|
9920
|
+
break;
|
|
9921
|
+
case 2:
|
|
9922
|
+
message.second = $root.vertexvis.protobuf.stream.QueryExpression.decode(reader, reader.uint32());
|
|
9923
|
+
break;
|
|
9924
|
+
default:
|
|
9925
|
+
reader.skipType(tag & 7);
|
|
9926
|
+
break;
|
|
9927
|
+
}
|
|
9928
|
+
}
|
|
9929
|
+
return message;
|
|
9930
|
+
};
|
|
9931
|
+
|
|
9932
|
+
/**
|
|
9933
|
+
* Decodes an OrExpression message from the specified reader or buffer, length delimited.
|
|
9934
|
+
* @function decodeDelimited
|
|
9935
|
+
* @memberof vertexvis.protobuf.stream.OrExpression
|
|
9936
|
+
* @static
|
|
9937
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9938
|
+
* @returns {vertexvis.protobuf.stream.OrExpression} OrExpression
|
|
9939
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9940
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9941
|
+
*/
|
|
9942
|
+
OrExpression.decodeDelimited = function decodeDelimited(reader) {
|
|
9943
|
+
if (!(reader instanceof $Reader))
|
|
9944
|
+
reader = new $Reader(reader);
|
|
9945
|
+
return this.decode(reader, reader.uint32());
|
|
9946
|
+
};
|
|
9947
|
+
|
|
9948
|
+
/**
|
|
9949
|
+
* Verifies an OrExpression message.
|
|
9950
|
+
* @function verify
|
|
9951
|
+
* @memberof vertexvis.protobuf.stream.OrExpression
|
|
9952
|
+
* @static
|
|
9953
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9954
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9955
|
+
*/
|
|
9956
|
+
OrExpression.verify = function verify(message) {
|
|
9957
|
+
if (typeof message !== "object" || message === null)
|
|
9958
|
+
return "object expected";
|
|
9959
|
+
if (message.first != null && message.hasOwnProperty("first")) {
|
|
9960
|
+
let error = $root.vertexvis.protobuf.stream.QueryExpression.verify(message.first);
|
|
9961
|
+
if (error)
|
|
9962
|
+
return "first." + error;
|
|
9963
|
+
}
|
|
9964
|
+
if (message.second != null && message.hasOwnProperty("second")) {
|
|
9965
|
+
let error = $root.vertexvis.protobuf.stream.QueryExpression.verify(message.second);
|
|
9966
|
+
if (error)
|
|
9967
|
+
return "second." + error;
|
|
9968
|
+
}
|
|
9969
|
+
return null;
|
|
9970
|
+
};
|
|
9971
|
+
|
|
9972
|
+
/**
|
|
9973
|
+
* Creates an OrExpression message from a plain object. Also converts values to their respective internal types.
|
|
9974
|
+
* @function fromObject
|
|
9975
|
+
* @memberof vertexvis.protobuf.stream.OrExpression
|
|
9976
|
+
* @static
|
|
9977
|
+
* @param {Object.<string,*>} object Plain object
|
|
9978
|
+
* @returns {vertexvis.protobuf.stream.OrExpression} OrExpression
|
|
9979
|
+
*/
|
|
9980
|
+
OrExpression.fromObject = function fromObject(object) {
|
|
9981
|
+
if (object instanceof $root.vertexvis.protobuf.stream.OrExpression)
|
|
9982
|
+
return object;
|
|
9983
|
+
let message = new $root.vertexvis.protobuf.stream.OrExpression();
|
|
9984
|
+
if (object.first != null) {
|
|
9985
|
+
if (typeof object.first !== "object")
|
|
9986
|
+
throw TypeError(".vertexvis.protobuf.stream.OrExpression.first: object expected");
|
|
9987
|
+
message.first = $root.vertexvis.protobuf.stream.QueryExpression.fromObject(object.first);
|
|
9988
|
+
}
|
|
9989
|
+
if (object.second != null) {
|
|
9990
|
+
if (typeof object.second !== "object")
|
|
9991
|
+
throw TypeError(".vertexvis.protobuf.stream.OrExpression.second: object expected");
|
|
9992
|
+
message.second = $root.vertexvis.protobuf.stream.QueryExpression.fromObject(object.second);
|
|
9993
|
+
}
|
|
9994
|
+
return message;
|
|
9995
|
+
};
|
|
9996
|
+
|
|
9997
|
+
/**
|
|
9998
|
+
* Creates a plain object from an OrExpression message. Also converts values to other types if specified.
|
|
9999
|
+
* @function toObject
|
|
10000
|
+
* @memberof vertexvis.protobuf.stream.OrExpression
|
|
10001
|
+
* @static
|
|
10002
|
+
* @param {vertexvis.protobuf.stream.OrExpression} message OrExpression
|
|
10003
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10004
|
+
* @returns {Object.<string,*>} Plain object
|
|
10005
|
+
*/
|
|
10006
|
+
OrExpression.toObject = function toObject(message, options) {
|
|
10007
|
+
if (!options)
|
|
10008
|
+
options = {};
|
|
10009
|
+
let object = {};
|
|
10010
|
+
if (options.defaults) {
|
|
10011
|
+
object.first = null;
|
|
10012
|
+
object.second = null;
|
|
10013
|
+
}
|
|
10014
|
+
if (message.first != null && message.hasOwnProperty("first"))
|
|
10015
|
+
object.first = $root.vertexvis.protobuf.stream.QueryExpression.toObject(message.first, options);
|
|
10016
|
+
if (message.second != null && message.hasOwnProperty("second"))
|
|
10017
|
+
object.second = $root.vertexvis.protobuf.stream.QueryExpression.toObject(message.second, options);
|
|
10018
|
+
return object;
|
|
10019
|
+
};
|
|
10020
|
+
|
|
10021
|
+
/**
|
|
10022
|
+
* Converts this OrExpression to JSON.
|
|
10023
|
+
* @function toJSON
|
|
10024
|
+
* @memberof vertexvis.protobuf.stream.OrExpression
|
|
10025
|
+
* @instance
|
|
10026
|
+
* @returns {Object.<string,*>} JSON object
|
|
10027
|
+
*/
|
|
10028
|
+
OrExpression.prototype.toJSON = function toJSON() {
|
|
10029
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
10030
|
+
};
|
|
10031
|
+
|
|
10032
|
+
return OrExpression;
|
|
10033
|
+
})();
|
|
10034
|
+
|
|
10035
|
+
stream.AndExpression = (function() {
|
|
10036
|
+
|
|
10037
|
+
/**
|
|
10038
|
+
* Properties of an AndExpression.
|
|
10039
|
+
* @memberof vertexvis.protobuf.stream
|
|
10040
|
+
* @interface IAndExpression
|
|
10041
|
+
* @property {vertexvis.protobuf.stream.IQueryExpression|null} [first] AndExpression first
|
|
10042
|
+
* @property {vertexvis.protobuf.stream.IQueryExpression|null} [second] AndExpression second
|
|
10043
|
+
*/
|
|
10044
|
+
|
|
10045
|
+
/**
|
|
10046
|
+
* Constructs a new AndExpression.
|
|
10047
|
+
* @memberof vertexvis.protobuf.stream
|
|
10048
|
+
* @classdesc Represents an AndExpression.
|
|
10049
|
+
* @implements IAndExpression
|
|
10050
|
+
* @constructor
|
|
10051
|
+
* @param {vertexvis.protobuf.stream.IAndExpression=} [properties] Properties to set
|
|
10052
|
+
*/
|
|
10053
|
+
function AndExpression(properties) {
|
|
10054
|
+
if (properties)
|
|
10055
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10056
|
+
if (properties[keys[i]] != null)
|
|
10057
|
+
this[keys[i]] = properties[keys[i]];
|
|
10058
|
+
}
|
|
10059
|
+
|
|
10060
|
+
/**
|
|
10061
|
+
* AndExpression first.
|
|
10062
|
+
* @member {vertexvis.protobuf.stream.IQueryExpression|null|undefined} first
|
|
10063
|
+
* @memberof vertexvis.protobuf.stream.AndExpression
|
|
10064
|
+
* @instance
|
|
10065
|
+
*/
|
|
10066
|
+
AndExpression.prototype.first = null;
|
|
10067
|
+
|
|
10068
|
+
/**
|
|
10069
|
+
* AndExpression second.
|
|
10070
|
+
* @member {vertexvis.protobuf.stream.IQueryExpression|null|undefined} second
|
|
10071
|
+
* @memberof vertexvis.protobuf.stream.AndExpression
|
|
10072
|
+
* @instance
|
|
10073
|
+
*/
|
|
10074
|
+
AndExpression.prototype.second = null;
|
|
10075
|
+
|
|
10076
|
+
/**
|
|
10077
|
+
* Creates a new AndExpression instance using the specified properties.
|
|
10078
|
+
* @function create
|
|
10079
|
+
* @memberof vertexvis.protobuf.stream.AndExpression
|
|
10080
|
+
* @static
|
|
10081
|
+
* @param {vertexvis.protobuf.stream.IAndExpression=} [properties] Properties to set
|
|
10082
|
+
* @returns {vertexvis.protobuf.stream.AndExpression} AndExpression instance
|
|
10083
|
+
*/
|
|
10084
|
+
AndExpression.create = function create(properties) {
|
|
10085
|
+
return new AndExpression(properties);
|
|
10086
|
+
};
|
|
10087
|
+
|
|
10088
|
+
/**
|
|
10089
|
+
* Encodes the specified AndExpression message. Does not implicitly {@link vertexvis.protobuf.stream.AndExpression.verify|verify} messages.
|
|
10090
|
+
* @function encode
|
|
10091
|
+
* @memberof vertexvis.protobuf.stream.AndExpression
|
|
10092
|
+
* @static
|
|
10093
|
+
* @param {vertexvis.protobuf.stream.IAndExpression} message AndExpression message or plain object to encode
|
|
10094
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10095
|
+
* @returns {$protobuf.Writer} Writer
|
|
10096
|
+
*/
|
|
10097
|
+
AndExpression.encode = function encode(message, writer) {
|
|
10098
|
+
if (!writer)
|
|
10099
|
+
writer = $Writer.create();
|
|
10100
|
+
if (message.first != null && Object.hasOwnProperty.call(message, "first"))
|
|
10101
|
+
$root.vertexvis.protobuf.stream.QueryExpression.encode(message.first, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
10102
|
+
if (message.second != null && Object.hasOwnProperty.call(message, "second"))
|
|
10103
|
+
$root.vertexvis.protobuf.stream.QueryExpression.encode(message.second, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
10104
|
+
return writer;
|
|
10105
|
+
};
|
|
10106
|
+
|
|
10107
|
+
/**
|
|
10108
|
+
* Encodes the specified AndExpression message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.AndExpression.verify|verify} messages.
|
|
10109
|
+
* @function encodeDelimited
|
|
10110
|
+
* @memberof vertexvis.protobuf.stream.AndExpression
|
|
8450
10111
|
* @static
|
|
8451
|
-
* @param {vertexvis.protobuf.stream.
|
|
10112
|
+
* @param {vertexvis.protobuf.stream.IAndExpression} message AndExpression message or plain object to encode
|
|
8452
10113
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8453
10114
|
* @returns {$protobuf.Writer} Writer
|
|
8454
10115
|
*/
|
|
8455
|
-
|
|
10116
|
+
AndExpression.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8456
10117
|
return this.encode(message, writer).ldelim();
|
|
8457
10118
|
};
|
|
8458
10119
|
|
|
8459
10120
|
/**
|
|
8460
|
-
* Decodes an
|
|
10121
|
+
* Decodes an AndExpression message from the specified reader or buffer.
|
|
8461
10122
|
* @function decode
|
|
8462
|
-
* @memberof vertexvis.protobuf.stream.
|
|
10123
|
+
* @memberof vertexvis.protobuf.stream.AndExpression
|
|
8463
10124
|
* @static
|
|
8464
10125
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8465
10126
|
* @param {number} [length] Message length if known beforehand
|
|
8466
|
-
* @returns {vertexvis.protobuf.stream.
|
|
10127
|
+
* @returns {vertexvis.protobuf.stream.AndExpression} AndExpression
|
|
8467
10128
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8468
10129
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8469
10130
|
*/
|
|
8470
|
-
|
|
10131
|
+
AndExpression.decode = function decode(reader, length) {
|
|
8471
10132
|
if (!(reader instanceof $Reader))
|
|
8472
10133
|
reader = $Reader.create(reader);
|
|
8473
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.
|
|
10134
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.AndExpression();
|
|
8474
10135
|
while (reader.pos < end) {
|
|
8475
10136
|
let tag = reader.uint32();
|
|
8476
10137
|
switch (tag >>> 3) {
|
|
8477
10138
|
case 1:
|
|
8478
|
-
message.
|
|
10139
|
+
message.first = $root.vertexvis.protobuf.stream.QueryExpression.decode(reader, reader.uint32());
|
|
8479
10140
|
break;
|
|
8480
10141
|
case 2:
|
|
8481
|
-
message.
|
|
8482
|
-
break;
|
|
8483
|
-
case 3:
|
|
8484
|
-
message.changeTransform = $root.vertexvis.protobuf.stream.ChangeTransformOperation.decode(reader, reader.uint32());
|
|
8485
|
-
break;
|
|
8486
|
-
case 4:
|
|
8487
|
-
message.changeSelection = $root.vertexvis.protobuf.stream.ChangeSelectionOperation.decode(reader, reader.uint32());
|
|
8488
|
-
break;
|
|
8489
|
-
case 5:
|
|
8490
|
-
message.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.decode(reader, reader.uint32());
|
|
10142
|
+
message.second = $root.vertexvis.protobuf.stream.QueryExpression.decode(reader, reader.uint32());
|
|
8491
10143
|
break;
|
|
8492
10144
|
default:
|
|
8493
10145
|
reader.skipType(tag & 7);
|
|
@@ -8498,177 +10150,106 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8498
10150
|
};
|
|
8499
10151
|
|
|
8500
10152
|
/**
|
|
8501
|
-
* Decodes an
|
|
10153
|
+
* Decodes an AndExpression message from the specified reader or buffer, length delimited.
|
|
8502
10154
|
* @function decodeDelimited
|
|
8503
|
-
* @memberof vertexvis.protobuf.stream.
|
|
10155
|
+
* @memberof vertexvis.protobuf.stream.AndExpression
|
|
8504
10156
|
* @static
|
|
8505
10157
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8506
|
-
* @returns {vertexvis.protobuf.stream.
|
|
10158
|
+
* @returns {vertexvis.protobuf.stream.AndExpression} AndExpression
|
|
8507
10159
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8508
10160
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8509
10161
|
*/
|
|
8510
|
-
|
|
10162
|
+
AndExpression.decodeDelimited = function decodeDelimited(reader) {
|
|
8511
10163
|
if (!(reader instanceof $Reader))
|
|
8512
10164
|
reader = new $Reader(reader);
|
|
8513
10165
|
return this.decode(reader, reader.uint32());
|
|
8514
10166
|
};
|
|
8515
10167
|
|
|
8516
10168
|
/**
|
|
8517
|
-
* Verifies an
|
|
10169
|
+
* Verifies an AndExpression message.
|
|
8518
10170
|
* @function verify
|
|
8519
|
-
* @memberof vertexvis.protobuf.stream.
|
|
10171
|
+
* @memberof vertexvis.protobuf.stream.AndExpression
|
|
8520
10172
|
* @static
|
|
8521
10173
|
* @param {Object.<string,*>} message Plain object to verify
|
|
8522
10174
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8523
10175
|
*/
|
|
8524
|
-
|
|
10176
|
+
AndExpression.verify = function verify(message) {
|
|
8525
10177
|
if (typeof message !== "object" || message === null)
|
|
8526
10178
|
return "object expected";
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
let error = $root.vertexvis.protobuf.stream.ChangeMaterialOperation.verify(message.changeMaterial);
|
|
8532
|
-
if (error)
|
|
8533
|
-
return "changeMaterial." + error;
|
|
8534
|
-
}
|
|
8535
|
-
}
|
|
8536
|
-
if (message.changeVisibility != null && message.hasOwnProperty("changeVisibility")) {
|
|
8537
|
-
if (properties.value === 1)
|
|
8538
|
-
return "value: multiple values";
|
|
8539
|
-
properties.value = 1;
|
|
8540
|
-
{
|
|
8541
|
-
let error = $root.vertexvis.protobuf.stream.ChangeVisibilityOperation.verify(message.changeVisibility);
|
|
8542
|
-
if (error)
|
|
8543
|
-
return "changeVisibility." + error;
|
|
8544
|
-
}
|
|
8545
|
-
}
|
|
8546
|
-
if (message.changeTransform != null && message.hasOwnProperty("changeTransform")) {
|
|
8547
|
-
if (properties.value === 1)
|
|
8548
|
-
return "value: multiple values";
|
|
8549
|
-
properties.value = 1;
|
|
8550
|
-
{
|
|
8551
|
-
let error = $root.vertexvis.protobuf.stream.ChangeTransformOperation.verify(message.changeTransform);
|
|
8552
|
-
if (error)
|
|
8553
|
-
return "changeTransform." + error;
|
|
8554
|
-
}
|
|
8555
|
-
}
|
|
8556
|
-
if (message.changeSelection != null && message.hasOwnProperty("changeSelection")) {
|
|
8557
|
-
if (properties.value === 1)
|
|
8558
|
-
return "value: multiple values";
|
|
8559
|
-
properties.value = 1;
|
|
8560
|
-
{
|
|
8561
|
-
let error = $root.vertexvis.protobuf.stream.ChangeSelectionOperation.verify(message.changeSelection);
|
|
8562
|
-
if (error)
|
|
8563
|
-
return "changeSelection." + error;
|
|
8564
|
-
}
|
|
10179
|
+
if (message.first != null && message.hasOwnProperty("first")) {
|
|
10180
|
+
let error = $root.vertexvis.protobuf.stream.QueryExpression.verify(message.first);
|
|
10181
|
+
if (error)
|
|
10182
|
+
return "first." + error;
|
|
8565
10183
|
}
|
|
8566
|
-
if (message.
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
{
|
|
8571
|
-
let error = $root.vertexvis.protobuf.stream.ClearTransformOperation.verify(message.clearTransform);
|
|
8572
|
-
if (error)
|
|
8573
|
-
return "clearTransform." + error;
|
|
8574
|
-
}
|
|
10184
|
+
if (message.second != null && message.hasOwnProperty("second")) {
|
|
10185
|
+
let error = $root.vertexvis.protobuf.stream.QueryExpression.verify(message.second);
|
|
10186
|
+
if (error)
|
|
10187
|
+
return "second." + error;
|
|
8575
10188
|
}
|
|
8576
10189
|
return null;
|
|
8577
10190
|
};
|
|
8578
10191
|
|
|
8579
10192
|
/**
|
|
8580
|
-
* Creates an
|
|
10193
|
+
* Creates an AndExpression message from a plain object. Also converts values to their respective internal types.
|
|
8581
10194
|
* @function fromObject
|
|
8582
|
-
* @memberof vertexvis.protobuf.stream.
|
|
10195
|
+
* @memberof vertexvis.protobuf.stream.AndExpression
|
|
8583
10196
|
* @static
|
|
8584
10197
|
* @param {Object.<string,*>} object Plain object
|
|
8585
|
-
* @returns {vertexvis.protobuf.stream.
|
|
10198
|
+
* @returns {vertexvis.protobuf.stream.AndExpression} AndExpression
|
|
8586
10199
|
*/
|
|
8587
|
-
|
|
8588
|
-
if (object instanceof $root.vertexvis.protobuf.stream.
|
|
10200
|
+
AndExpression.fromObject = function fromObject(object) {
|
|
10201
|
+
if (object instanceof $root.vertexvis.protobuf.stream.AndExpression)
|
|
8589
10202
|
return object;
|
|
8590
|
-
let message = new $root.vertexvis.protobuf.stream.
|
|
8591
|
-
if (object.
|
|
8592
|
-
if (typeof object.
|
|
8593
|
-
throw TypeError(".vertexvis.protobuf.stream.
|
|
8594
|
-
message.
|
|
8595
|
-
}
|
|
8596
|
-
if (object.changeVisibility != null) {
|
|
8597
|
-
if (typeof object.changeVisibility !== "object")
|
|
8598
|
-
throw TypeError(".vertexvis.protobuf.stream.OperationType.changeVisibility: object expected");
|
|
8599
|
-
message.changeVisibility = $root.vertexvis.protobuf.stream.ChangeVisibilityOperation.fromObject(object.changeVisibility);
|
|
8600
|
-
}
|
|
8601
|
-
if (object.changeTransform != null) {
|
|
8602
|
-
if (typeof object.changeTransform !== "object")
|
|
8603
|
-
throw TypeError(".vertexvis.protobuf.stream.OperationType.changeTransform: object expected");
|
|
8604
|
-
message.changeTransform = $root.vertexvis.protobuf.stream.ChangeTransformOperation.fromObject(object.changeTransform);
|
|
8605
|
-
}
|
|
8606
|
-
if (object.changeSelection != null) {
|
|
8607
|
-
if (typeof object.changeSelection !== "object")
|
|
8608
|
-
throw TypeError(".vertexvis.protobuf.stream.OperationType.changeSelection: object expected");
|
|
8609
|
-
message.changeSelection = $root.vertexvis.protobuf.stream.ChangeSelectionOperation.fromObject(object.changeSelection);
|
|
10203
|
+
let message = new $root.vertexvis.protobuf.stream.AndExpression();
|
|
10204
|
+
if (object.first != null) {
|
|
10205
|
+
if (typeof object.first !== "object")
|
|
10206
|
+
throw TypeError(".vertexvis.protobuf.stream.AndExpression.first: object expected");
|
|
10207
|
+
message.first = $root.vertexvis.protobuf.stream.QueryExpression.fromObject(object.first);
|
|
8610
10208
|
}
|
|
8611
|
-
if (object.
|
|
8612
|
-
if (typeof object.
|
|
8613
|
-
throw TypeError(".vertexvis.protobuf.stream.
|
|
8614
|
-
message.
|
|
10209
|
+
if (object.second != null) {
|
|
10210
|
+
if (typeof object.second !== "object")
|
|
10211
|
+
throw TypeError(".vertexvis.protobuf.stream.AndExpression.second: object expected");
|
|
10212
|
+
message.second = $root.vertexvis.protobuf.stream.QueryExpression.fromObject(object.second);
|
|
8615
10213
|
}
|
|
8616
10214
|
return message;
|
|
8617
10215
|
};
|
|
8618
10216
|
|
|
8619
10217
|
/**
|
|
8620
|
-
* Creates a plain object from an
|
|
10218
|
+
* Creates a plain object from an AndExpression message. Also converts values to other types if specified.
|
|
8621
10219
|
* @function toObject
|
|
8622
|
-
* @memberof vertexvis.protobuf.stream.
|
|
10220
|
+
* @memberof vertexvis.protobuf.stream.AndExpression
|
|
8623
10221
|
* @static
|
|
8624
|
-
* @param {vertexvis.protobuf.stream.
|
|
10222
|
+
* @param {vertexvis.protobuf.stream.AndExpression} message AndExpression
|
|
8625
10223
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8626
10224
|
* @returns {Object.<string,*>} Plain object
|
|
8627
10225
|
*/
|
|
8628
|
-
|
|
10226
|
+
AndExpression.toObject = function toObject(message, options) {
|
|
8629
10227
|
if (!options)
|
|
8630
10228
|
options = {};
|
|
8631
10229
|
let object = {};
|
|
8632
|
-
if (
|
|
8633
|
-
object.
|
|
8634
|
-
|
|
8635
|
-
object.value = "changeMaterial";
|
|
8636
|
-
}
|
|
8637
|
-
if (message.changeVisibility != null && message.hasOwnProperty("changeVisibility")) {
|
|
8638
|
-
object.changeVisibility = $root.vertexvis.protobuf.stream.ChangeVisibilityOperation.toObject(message.changeVisibility, options);
|
|
8639
|
-
if (options.oneofs)
|
|
8640
|
-
object.value = "changeVisibility";
|
|
8641
|
-
}
|
|
8642
|
-
if (message.changeTransform != null && message.hasOwnProperty("changeTransform")) {
|
|
8643
|
-
object.changeTransform = $root.vertexvis.protobuf.stream.ChangeTransformOperation.toObject(message.changeTransform, options);
|
|
8644
|
-
if (options.oneofs)
|
|
8645
|
-
object.value = "changeTransform";
|
|
8646
|
-
}
|
|
8647
|
-
if (message.changeSelection != null && message.hasOwnProperty("changeSelection")) {
|
|
8648
|
-
object.changeSelection = $root.vertexvis.protobuf.stream.ChangeSelectionOperation.toObject(message.changeSelection, options);
|
|
8649
|
-
if (options.oneofs)
|
|
8650
|
-
object.value = "changeSelection";
|
|
8651
|
-
}
|
|
8652
|
-
if (message.clearTransform != null && message.hasOwnProperty("clearTransform")) {
|
|
8653
|
-
object.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.toObject(message.clearTransform, options);
|
|
8654
|
-
if (options.oneofs)
|
|
8655
|
-
object.value = "clearTransform";
|
|
10230
|
+
if (options.defaults) {
|
|
10231
|
+
object.first = null;
|
|
10232
|
+
object.second = null;
|
|
8656
10233
|
}
|
|
10234
|
+
if (message.first != null && message.hasOwnProperty("first"))
|
|
10235
|
+
object.first = $root.vertexvis.protobuf.stream.QueryExpression.toObject(message.first, options);
|
|
10236
|
+
if (message.second != null && message.hasOwnProperty("second"))
|
|
10237
|
+
object.second = $root.vertexvis.protobuf.stream.QueryExpression.toObject(message.second, options);
|
|
8657
10238
|
return object;
|
|
8658
10239
|
};
|
|
8659
10240
|
|
|
8660
10241
|
/**
|
|
8661
|
-
* Converts this
|
|
10242
|
+
* Converts this AndExpression to JSON.
|
|
8662
10243
|
* @function toJSON
|
|
8663
|
-
* @memberof vertexvis.protobuf.stream.
|
|
10244
|
+
* @memberof vertexvis.protobuf.stream.AndExpression
|
|
8664
10245
|
* @instance
|
|
8665
10246
|
* @returns {Object.<string,*>} JSON object
|
|
8666
10247
|
*/
|
|
8667
|
-
|
|
10248
|
+
AndExpression.prototype.toJSON = function toJSON() {
|
|
8668
10249
|
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
8669
10250
|
};
|
|
8670
10251
|
|
|
8671
|
-
return
|
|
10252
|
+
return AndExpression;
|
|
8672
10253
|
})();
|
|
8673
10254
|
|
|
8674
10255
|
stream.SceneOperation = (function() {
|
|
@@ -8686,7 +10267,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8686
10267
|
* @property {vertexvis.protobuf.stream.IMetadataFilterQuery|null} [metadata] SceneOperation metadata
|
|
8687
10268
|
* @property {vertexvis.protobuf.stream.IOverrideQuery|null} [override] SceneOperation override
|
|
8688
10269
|
* @property {vertexvis.protobuf.stream.IVolumeIntersectionQuery|null} [volume] SceneOperation volume
|
|
10270
|
+
* @property {vertexvis.protobuf.stream.IQueryCollection|null} [not] SceneOperation not
|
|
8689
10271
|
* @property {Array.<vertexvis.protobuf.stream.IOperationType>|null} [operationTypes] SceneOperation operationTypes
|
|
10272
|
+
* @property {vertexvis.protobuf.stream.IQueryExpression|null} [queryExpression] SceneOperation queryExpression
|
|
8690
10273
|
*/
|
|
8691
10274
|
|
|
8692
10275
|
/**
|
|
@@ -8777,6 +10360,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8777
10360
|
*/
|
|
8778
10361
|
SceneOperation.prototype.volume = null;
|
|
8779
10362
|
|
|
10363
|
+
/**
|
|
10364
|
+
* SceneOperation not.
|
|
10365
|
+
* @member {vertexvis.protobuf.stream.IQueryCollection|null|undefined} not
|
|
10366
|
+
* @memberof vertexvis.protobuf.stream.SceneOperation
|
|
10367
|
+
* @instance
|
|
10368
|
+
*/
|
|
10369
|
+
SceneOperation.prototype.not = null;
|
|
10370
|
+
|
|
8780
10371
|
/**
|
|
8781
10372
|
* SceneOperation operationTypes.
|
|
8782
10373
|
* @member {Array.<vertexvis.protobuf.stream.IOperationType>} operationTypes
|
|
@@ -8785,17 +10376,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8785
10376
|
*/
|
|
8786
10377
|
SceneOperation.prototype.operationTypes = $util.emptyArray;
|
|
8787
10378
|
|
|
10379
|
+
/**
|
|
10380
|
+
* SceneOperation queryExpression.
|
|
10381
|
+
* @member {vertexvis.protobuf.stream.IQueryExpression|null|undefined} queryExpression
|
|
10382
|
+
* @memberof vertexvis.protobuf.stream.SceneOperation
|
|
10383
|
+
* @instance
|
|
10384
|
+
*/
|
|
10385
|
+
SceneOperation.prototype.queryExpression = null;
|
|
10386
|
+
|
|
8788
10387
|
// OneOf field names bound to virtual getters and setters
|
|
8789
10388
|
let $oneOfFields;
|
|
8790
10389
|
|
|
8791
10390
|
/**
|
|
8792
10391
|
* SceneOperation query.
|
|
8793
|
-
* @member {"item"|"or"|"and"|"all"|"point"|"sceneTreeRange"|"metadata"|"override"|"volume"|undefined} query
|
|
10392
|
+
* @member {"item"|"or"|"and"|"all"|"point"|"sceneTreeRange"|"metadata"|"override"|"volume"|"not"|undefined} query
|
|
8794
10393
|
* @memberof vertexvis.protobuf.stream.SceneOperation
|
|
8795
10394
|
* @instance
|
|
8796
10395
|
*/
|
|
8797
10396
|
Object.defineProperty(SceneOperation.prototype, "query", {
|
|
8798
|
-
get: $util.oneOfGetter($oneOfFields = ["item", "or", "and", "all", "point", "sceneTreeRange", "metadata", "override", "volume"]),
|
|
10397
|
+
get: $util.oneOfGetter($oneOfFields = ["item", "or", "and", "all", "point", "sceneTreeRange", "metadata", "override", "volume", "not"]),
|
|
8799
10398
|
set: $util.oneOfSetter($oneOfFields)
|
|
8800
10399
|
});
|
|
8801
10400
|
|
|
@@ -8844,6 +10443,10 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8844
10443
|
$root.vertexvis.protobuf.stream.OverrideQuery.encode(message.override, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
8845
10444
|
if (message.volume != null && Object.hasOwnProperty.call(message, "volume"))
|
|
8846
10445
|
$root.vertexvis.protobuf.stream.VolumeIntersectionQuery.encode(message.volume, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
10446
|
+
if (message.not != null && Object.hasOwnProperty.call(message, "not"))
|
|
10447
|
+
$root.vertexvis.protobuf.stream.QueryCollection.encode(message.not, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
10448
|
+
if (message.queryExpression != null && Object.hasOwnProperty.call(message, "queryExpression"))
|
|
10449
|
+
$root.vertexvis.protobuf.stream.QueryExpression.encode(message.queryExpression, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
8847
10450
|
return writer;
|
|
8848
10451
|
};
|
|
8849
10452
|
|
|
@@ -8905,11 +10508,17 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8905
10508
|
case 10:
|
|
8906
10509
|
message.volume = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.decode(reader, reader.uint32());
|
|
8907
10510
|
break;
|
|
10511
|
+
case 11:
|
|
10512
|
+
message.not = $root.vertexvis.protobuf.stream.QueryCollection.decode(reader, reader.uint32());
|
|
10513
|
+
break;
|
|
8908
10514
|
case 4:
|
|
8909
10515
|
if (!(message.operationTypes && message.operationTypes.length))
|
|
8910
10516
|
message.operationTypes = [];
|
|
8911
10517
|
message.operationTypes.push($root.vertexvis.protobuf.stream.OperationType.decode(reader, reader.uint32()));
|
|
8912
10518
|
break;
|
|
10519
|
+
case 12:
|
|
10520
|
+
message.queryExpression = $root.vertexvis.protobuf.stream.QueryExpression.decode(reader, reader.uint32());
|
|
10521
|
+
break;
|
|
8913
10522
|
default:
|
|
8914
10523
|
reader.skipType(tag & 7);
|
|
8915
10524
|
break;
|
|
@@ -9034,6 +10643,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9034
10643
|
return "volume." + error;
|
|
9035
10644
|
}
|
|
9036
10645
|
}
|
|
10646
|
+
if (message.not != null && message.hasOwnProperty("not")) {
|
|
10647
|
+
if (properties.query === 1)
|
|
10648
|
+
return "query: multiple values";
|
|
10649
|
+
properties.query = 1;
|
|
10650
|
+
{
|
|
10651
|
+
let error = $root.vertexvis.protobuf.stream.QueryCollection.verify(message.not);
|
|
10652
|
+
if (error)
|
|
10653
|
+
return "not." + error;
|
|
10654
|
+
}
|
|
10655
|
+
}
|
|
9037
10656
|
if (message.operationTypes != null && message.hasOwnProperty("operationTypes")) {
|
|
9038
10657
|
if (!Array.isArray(message.operationTypes))
|
|
9039
10658
|
return "operationTypes: array expected";
|
|
@@ -9043,6 +10662,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9043
10662
|
return "operationTypes." + error;
|
|
9044
10663
|
}
|
|
9045
10664
|
}
|
|
10665
|
+
if (message.queryExpression != null && message.hasOwnProperty("queryExpression")) {
|
|
10666
|
+
let error = $root.vertexvis.protobuf.stream.QueryExpression.verify(message.queryExpression);
|
|
10667
|
+
if (error)
|
|
10668
|
+
return "queryExpression." + error;
|
|
10669
|
+
}
|
|
9046
10670
|
return null;
|
|
9047
10671
|
};
|
|
9048
10672
|
|
|
@@ -9103,6 +10727,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9103
10727
|
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.volume: object expected");
|
|
9104
10728
|
message.volume = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.fromObject(object.volume);
|
|
9105
10729
|
}
|
|
10730
|
+
if (object.not != null) {
|
|
10731
|
+
if (typeof object.not !== "object")
|
|
10732
|
+
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.not: object expected");
|
|
10733
|
+
message.not = $root.vertexvis.protobuf.stream.QueryCollection.fromObject(object.not);
|
|
10734
|
+
}
|
|
9106
10735
|
if (object.operationTypes) {
|
|
9107
10736
|
if (!Array.isArray(object.operationTypes))
|
|
9108
10737
|
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.operationTypes: array expected");
|
|
@@ -9113,6 +10742,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9113
10742
|
message.operationTypes[i] = $root.vertexvis.protobuf.stream.OperationType.fromObject(object.operationTypes[i]);
|
|
9114
10743
|
}
|
|
9115
10744
|
}
|
|
10745
|
+
if (object.queryExpression != null) {
|
|
10746
|
+
if (typeof object.queryExpression !== "object")
|
|
10747
|
+
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.queryExpression: object expected");
|
|
10748
|
+
message.queryExpression = $root.vertexvis.protobuf.stream.QueryExpression.fromObject(object.queryExpression);
|
|
10749
|
+
}
|
|
9116
10750
|
return message;
|
|
9117
10751
|
};
|
|
9118
10752
|
|
|
@@ -9131,6 +10765,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9131
10765
|
let object = {};
|
|
9132
10766
|
if (options.arrays || options.defaults)
|
|
9133
10767
|
object.operationTypes = [];
|
|
10768
|
+
if (options.defaults)
|
|
10769
|
+
object.queryExpression = null;
|
|
9134
10770
|
if (message.item != null && message.hasOwnProperty("item")) {
|
|
9135
10771
|
object.item = $root.vertexvis.protobuf.stream.ItemQuery.toObject(message.item, options);
|
|
9136
10772
|
if (options.oneofs)
|
|
@@ -9181,6 +10817,13 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9181
10817
|
if (options.oneofs)
|
|
9182
10818
|
object.query = "volume";
|
|
9183
10819
|
}
|
|
10820
|
+
if (message.not != null && message.hasOwnProperty("not")) {
|
|
10821
|
+
object.not = $root.vertexvis.protobuf.stream.QueryCollection.toObject(message.not, options);
|
|
10822
|
+
if (options.oneofs)
|
|
10823
|
+
object.query = "not";
|
|
10824
|
+
}
|
|
10825
|
+
if (message.queryExpression != null && message.hasOwnProperty("queryExpression"))
|
|
10826
|
+
object.queryExpression = $root.vertexvis.protobuf.stream.QueryExpression.toObject(message.queryExpression, options);
|
|
9184
10827
|
return object;
|
|
9185
10828
|
};
|
|
9186
10829
|
|
|
@@ -14903,6 +16546,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14903
16546
|
* @property {vertexvis.protobuf.stream.IStreamAttributes|null} [streamAttributes] StartStreamPayload streamAttributes
|
|
14904
16547
|
* @property {google.protobuf.IStringValue|null} [streamKey] StartStreamPayload streamKey
|
|
14905
16548
|
* @property {vertexvis.protobuf.core.IUuid|null} [sceneViewStateId] StartStreamPayload sceneViewStateId
|
|
16549
|
+
* @property {google.protobuf.IStringValue|null} [sceneViewStateSuppliedId] StartStreamPayload sceneViewStateSuppliedId
|
|
14906
16550
|
*/
|
|
14907
16551
|
|
|
14908
16552
|
/**
|
|
@@ -14968,6 +16612,28 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14968
16612
|
*/
|
|
14969
16613
|
StartStreamPayload.prototype.sceneViewStateId = null;
|
|
14970
16614
|
|
|
16615
|
+
/**
|
|
16616
|
+
* StartStreamPayload sceneViewStateSuppliedId.
|
|
16617
|
+
* @member {google.protobuf.IStringValue|null|undefined} sceneViewStateSuppliedId
|
|
16618
|
+
* @memberof vertexvis.protobuf.stream.StartStreamPayload
|
|
16619
|
+
* @instance
|
|
16620
|
+
*/
|
|
16621
|
+
StartStreamPayload.prototype.sceneViewStateSuppliedId = null;
|
|
16622
|
+
|
|
16623
|
+
// OneOf field names bound to virtual getters and setters
|
|
16624
|
+
let $oneOfFields;
|
|
16625
|
+
|
|
16626
|
+
/**
|
|
16627
|
+
* StartStreamPayload sceneViewStateIdentifier.
|
|
16628
|
+
* @member {"sceneViewStateId"|"sceneViewStateSuppliedId"|undefined} sceneViewStateIdentifier
|
|
16629
|
+
* @memberof vertexvis.protobuf.stream.StartStreamPayload
|
|
16630
|
+
* @instance
|
|
16631
|
+
*/
|
|
16632
|
+
Object.defineProperty(StartStreamPayload.prototype, "sceneViewStateIdentifier", {
|
|
16633
|
+
get: $util.oneOfGetter($oneOfFields = ["sceneViewStateId", "sceneViewStateSuppliedId"]),
|
|
16634
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
16635
|
+
});
|
|
16636
|
+
|
|
14971
16637
|
/**
|
|
14972
16638
|
* Creates a new StartStreamPayload instance using the specified properties.
|
|
14973
16639
|
* @function create
|
|
@@ -15004,6 +16670,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15004
16670
|
$root.google.protobuf.StringValue.encode(message.streamKey, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
15005
16671
|
if (message.sceneViewStateId != null && Object.hasOwnProperty.call(message, "sceneViewStateId"))
|
|
15006
16672
|
$root.vertexvis.protobuf.core.Uuid.encode(message.sceneViewStateId, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
16673
|
+
if (message.sceneViewStateSuppliedId != null && Object.hasOwnProperty.call(message, "sceneViewStateSuppliedId"))
|
|
16674
|
+
$root.google.protobuf.StringValue.encode(message.sceneViewStateSuppliedId, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
15007
16675
|
return writer;
|
|
15008
16676
|
};
|
|
15009
16677
|
|
|
@@ -15056,6 +16724,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15056
16724
|
case 6:
|
|
15057
16725
|
message.sceneViewStateId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
|
|
15058
16726
|
break;
|
|
16727
|
+
case 7:
|
|
16728
|
+
message.sceneViewStateSuppliedId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
16729
|
+
break;
|
|
15059
16730
|
default:
|
|
15060
16731
|
reader.skipType(tag & 7);
|
|
15061
16732
|
break;
|
|
@@ -15091,6 +16762,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15091
16762
|
StartStreamPayload.verify = function verify(message) {
|
|
15092
16763
|
if (typeof message !== "object" || message === null)
|
|
15093
16764
|
return "object expected";
|
|
16765
|
+
let properties = {};
|
|
15094
16766
|
if (message.dimensions != null && message.hasOwnProperty("dimensions")) {
|
|
15095
16767
|
let error = $root.vertexvis.protobuf.stream.Dimensions.verify(message.dimensions);
|
|
15096
16768
|
if (error)
|
|
@@ -15117,9 +16789,22 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15117
16789
|
return "streamKey." + error;
|
|
15118
16790
|
}
|
|
15119
16791
|
if (message.sceneViewStateId != null && message.hasOwnProperty("sceneViewStateId")) {
|
|
15120
|
-
|
|
15121
|
-
|
|
15122
|
-
|
|
16792
|
+
properties.sceneViewStateIdentifier = 1;
|
|
16793
|
+
{
|
|
16794
|
+
let error = $root.vertexvis.protobuf.core.Uuid.verify(message.sceneViewStateId);
|
|
16795
|
+
if (error)
|
|
16796
|
+
return "sceneViewStateId." + error;
|
|
16797
|
+
}
|
|
16798
|
+
}
|
|
16799
|
+
if (message.sceneViewStateSuppliedId != null && message.hasOwnProperty("sceneViewStateSuppliedId")) {
|
|
16800
|
+
if (properties.sceneViewStateIdentifier === 1)
|
|
16801
|
+
return "sceneViewStateIdentifier: multiple values";
|
|
16802
|
+
properties.sceneViewStateIdentifier = 1;
|
|
16803
|
+
{
|
|
16804
|
+
let error = $root.google.protobuf.StringValue.verify(message.sceneViewStateSuppliedId);
|
|
16805
|
+
if (error)
|
|
16806
|
+
return "sceneViewStateSuppliedId." + error;
|
|
16807
|
+
}
|
|
15123
16808
|
}
|
|
15124
16809
|
return null;
|
|
15125
16810
|
};
|
|
@@ -15166,6 +16851,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15166
16851
|
throw TypeError(".vertexvis.protobuf.stream.StartStreamPayload.sceneViewStateId: object expected");
|
|
15167
16852
|
message.sceneViewStateId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.sceneViewStateId);
|
|
15168
16853
|
}
|
|
16854
|
+
if (object.sceneViewStateSuppliedId != null) {
|
|
16855
|
+
if (typeof object.sceneViewStateSuppliedId !== "object")
|
|
16856
|
+
throw TypeError(".vertexvis.protobuf.stream.StartStreamPayload.sceneViewStateSuppliedId: object expected");
|
|
16857
|
+
message.sceneViewStateSuppliedId = $root.google.protobuf.StringValue.fromObject(object.sceneViewStateSuppliedId);
|
|
16858
|
+
}
|
|
15169
16859
|
return message;
|
|
15170
16860
|
};
|
|
15171
16861
|
|
|
@@ -15188,7 +16878,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15188
16878
|
object.frameBackgroundColor = null;
|
|
15189
16879
|
object.streamAttributes = null;
|
|
15190
16880
|
object.streamKey = null;
|
|
15191
|
-
object.sceneViewStateId = null;
|
|
15192
16881
|
}
|
|
15193
16882
|
if (message.dimensions != null && message.hasOwnProperty("dimensions"))
|
|
15194
16883
|
object.dimensions = $root.vertexvis.protobuf.stream.Dimensions.toObject(message.dimensions, options);
|
|
@@ -15200,8 +16889,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15200
16889
|
object.streamAttributes = $root.vertexvis.protobuf.stream.StreamAttributes.toObject(message.streamAttributes, options);
|
|
15201
16890
|
if (message.streamKey != null && message.hasOwnProperty("streamKey"))
|
|
15202
16891
|
object.streamKey = $root.google.protobuf.StringValue.toObject(message.streamKey, options);
|
|
15203
|
-
if (message.sceneViewStateId != null && message.hasOwnProperty("sceneViewStateId"))
|
|
16892
|
+
if (message.sceneViewStateId != null && message.hasOwnProperty("sceneViewStateId")) {
|
|
15204
16893
|
object.sceneViewStateId = $root.vertexvis.protobuf.core.Uuid.toObject(message.sceneViewStateId, options);
|
|
16894
|
+
if (options.oneofs)
|
|
16895
|
+
object.sceneViewStateIdentifier = "sceneViewStateId";
|
|
16896
|
+
}
|
|
16897
|
+
if (message.sceneViewStateSuppliedId != null && message.hasOwnProperty("sceneViewStateSuppliedId")) {
|
|
16898
|
+
object.sceneViewStateSuppliedId = $root.google.protobuf.StringValue.toObject(message.sceneViewStateSuppliedId, options);
|
|
16899
|
+
if (options.oneofs)
|
|
16900
|
+
object.sceneViewStateIdentifier = "sceneViewStateSuppliedId";
|
|
16901
|
+
}
|
|
15205
16902
|
return object;
|
|
15206
16903
|
};
|
|
15207
16904
|
|
|
@@ -18488,6 +20185,30 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18488
20185
|
return FlyToPayload;
|
|
18489
20186
|
})();
|
|
18490
20187
|
|
|
20188
|
+
/**
|
|
20189
|
+
* SceneViewStateFeature enum.
|
|
20190
|
+
* @name vertexvis.protobuf.stream.SceneViewStateFeature
|
|
20191
|
+
* @enum {number}
|
|
20192
|
+
* @property {number} SCENE_VIEW_STATE_FEATURE_INVALID=0 SCENE_VIEW_STATE_FEATURE_INVALID value
|
|
20193
|
+
* @property {number} SCENE_VIEW_STATE_FEATURE_CAMERA=1 SCENE_VIEW_STATE_FEATURE_CAMERA value
|
|
20194
|
+
* @property {number} SCENE_VIEW_STATE_FEATURE_MATERIAL_OVERRIDE=2 SCENE_VIEW_STATE_FEATURE_MATERIAL_OVERRIDE value
|
|
20195
|
+
* @property {number} SCENE_VIEW_STATE_FEATURE_SELECTION=3 SCENE_VIEW_STATE_FEATURE_SELECTION value
|
|
20196
|
+
* @property {number} SCENE_VIEW_STATE_FEATURE_VISIBILITY=4 SCENE_VIEW_STATE_FEATURE_VISIBILITY value
|
|
20197
|
+
* @property {number} SCENE_VIEW_STATE_FEATURE_TRANSFORM=5 SCENE_VIEW_STATE_FEATURE_TRANSFORM value
|
|
20198
|
+
* @property {number} SCENE_VIEW_STATE_FEATURE_CROSS_SECTION=6 SCENE_VIEW_STATE_FEATURE_CROSS_SECTION value
|
|
20199
|
+
*/
|
|
20200
|
+
stream.SceneViewStateFeature = (function() {
|
|
20201
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
20202
|
+
values[valuesById[0] = "SCENE_VIEW_STATE_FEATURE_INVALID"] = 0;
|
|
20203
|
+
values[valuesById[1] = "SCENE_VIEW_STATE_FEATURE_CAMERA"] = 1;
|
|
20204
|
+
values[valuesById[2] = "SCENE_VIEW_STATE_FEATURE_MATERIAL_OVERRIDE"] = 2;
|
|
20205
|
+
values[valuesById[3] = "SCENE_VIEW_STATE_FEATURE_SELECTION"] = 3;
|
|
20206
|
+
values[valuesById[4] = "SCENE_VIEW_STATE_FEATURE_VISIBILITY"] = 4;
|
|
20207
|
+
values[valuesById[5] = "SCENE_VIEW_STATE_FEATURE_TRANSFORM"] = 5;
|
|
20208
|
+
values[valuesById[6] = "SCENE_VIEW_STATE_FEATURE_CROSS_SECTION"] = 6;
|
|
20209
|
+
return values;
|
|
20210
|
+
})();
|
|
20211
|
+
|
|
18491
20212
|
stream.LoadSceneViewStatePayload = (function() {
|
|
18492
20213
|
|
|
18493
20214
|
/**
|
|
@@ -18495,7 +20216,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18495
20216
|
* @memberof vertexvis.protobuf.stream
|
|
18496
20217
|
* @interface ILoadSceneViewStatePayload
|
|
18497
20218
|
* @property {vertexvis.protobuf.core.IUuid|null} [sceneViewStateId] LoadSceneViewStatePayload sceneViewStateId
|
|
20219
|
+
* @property {google.protobuf.IStringValue|null} [sceneViewStateSuppliedId] LoadSceneViewStatePayload sceneViewStateSuppliedId
|
|
18498
20220
|
* @property {google.protobuf.IStringValue|null} [frameCorrelationId] LoadSceneViewStatePayload frameCorrelationId
|
|
20221
|
+
* @property {Array.<vertexvis.protobuf.stream.SceneViewStateFeature>|null} [sceneViewStateFeatureSubset] LoadSceneViewStatePayload sceneViewStateFeatureSubset
|
|
18499
20222
|
*/
|
|
18500
20223
|
|
|
18501
20224
|
/**
|
|
@@ -18507,6 +20230,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18507
20230
|
* @param {vertexvis.protobuf.stream.ILoadSceneViewStatePayload=} [properties] Properties to set
|
|
18508
20231
|
*/
|
|
18509
20232
|
function LoadSceneViewStatePayload(properties) {
|
|
20233
|
+
this.sceneViewStateFeatureSubset = [];
|
|
18510
20234
|
if (properties)
|
|
18511
20235
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18512
20236
|
if (properties[keys[i]] != null)
|
|
@@ -18521,6 +20245,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18521
20245
|
*/
|
|
18522
20246
|
LoadSceneViewStatePayload.prototype.sceneViewStateId = null;
|
|
18523
20247
|
|
|
20248
|
+
/**
|
|
20249
|
+
* LoadSceneViewStatePayload sceneViewStateSuppliedId.
|
|
20250
|
+
* @member {google.protobuf.IStringValue|null|undefined} sceneViewStateSuppliedId
|
|
20251
|
+
* @memberof vertexvis.protobuf.stream.LoadSceneViewStatePayload
|
|
20252
|
+
* @instance
|
|
20253
|
+
*/
|
|
20254
|
+
LoadSceneViewStatePayload.prototype.sceneViewStateSuppliedId = null;
|
|
20255
|
+
|
|
18524
20256
|
/**
|
|
18525
20257
|
* LoadSceneViewStatePayload frameCorrelationId.
|
|
18526
20258
|
* @member {google.protobuf.IStringValue|null|undefined} frameCorrelationId
|
|
@@ -18529,6 +20261,28 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18529
20261
|
*/
|
|
18530
20262
|
LoadSceneViewStatePayload.prototype.frameCorrelationId = null;
|
|
18531
20263
|
|
|
20264
|
+
/**
|
|
20265
|
+
* LoadSceneViewStatePayload sceneViewStateFeatureSubset.
|
|
20266
|
+
* @member {Array.<vertexvis.protobuf.stream.SceneViewStateFeature>} sceneViewStateFeatureSubset
|
|
20267
|
+
* @memberof vertexvis.protobuf.stream.LoadSceneViewStatePayload
|
|
20268
|
+
* @instance
|
|
20269
|
+
*/
|
|
20270
|
+
LoadSceneViewStatePayload.prototype.sceneViewStateFeatureSubset = $util.emptyArray;
|
|
20271
|
+
|
|
20272
|
+
// OneOf field names bound to virtual getters and setters
|
|
20273
|
+
let $oneOfFields;
|
|
20274
|
+
|
|
20275
|
+
/**
|
|
20276
|
+
* LoadSceneViewStatePayload sceneViewStateIdentifier.
|
|
20277
|
+
* @member {"sceneViewStateId"|"sceneViewStateSuppliedId"|undefined} sceneViewStateIdentifier
|
|
20278
|
+
* @memberof vertexvis.protobuf.stream.LoadSceneViewStatePayload
|
|
20279
|
+
* @instance
|
|
20280
|
+
*/
|
|
20281
|
+
Object.defineProperty(LoadSceneViewStatePayload.prototype, "sceneViewStateIdentifier", {
|
|
20282
|
+
get: $util.oneOfGetter($oneOfFields = ["sceneViewStateId", "sceneViewStateSuppliedId"]),
|
|
20283
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20284
|
+
});
|
|
20285
|
+
|
|
18532
20286
|
/**
|
|
18533
20287
|
* Creates a new LoadSceneViewStatePayload instance using the specified properties.
|
|
18534
20288
|
* @function create
|
|
@@ -18557,6 +20311,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18557
20311
|
$root.vertexvis.protobuf.core.Uuid.encode(message.sceneViewStateId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
18558
20312
|
if (message.frameCorrelationId != null && Object.hasOwnProperty.call(message, "frameCorrelationId"))
|
|
18559
20313
|
$root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
20314
|
+
if (message.sceneViewStateFeatureSubset != null && message.sceneViewStateFeatureSubset.length) {
|
|
20315
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork();
|
|
20316
|
+
for (let i = 0; i < message.sceneViewStateFeatureSubset.length; ++i)
|
|
20317
|
+
writer.int32(message.sceneViewStateFeatureSubset[i]);
|
|
20318
|
+
writer.ldelim();
|
|
20319
|
+
}
|
|
20320
|
+
if (message.sceneViewStateSuppliedId != null && Object.hasOwnProperty.call(message, "sceneViewStateSuppliedId"))
|
|
20321
|
+
$root.google.protobuf.StringValue.encode(message.sceneViewStateSuppliedId, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
18560
20322
|
return writer;
|
|
18561
20323
|
};
|
|
18562
20324
|
|
|
@@ -18594,9 +20356,22 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18594
20356
|
case 1:
|
|
18595
20357
|
message.sceneViewStateId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
|
|
18596
20358
|
break;
|
|
20359
|
+
case 4:
|
|
20360
|
+
message.sceneViewStateSuppliedId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
20361
|
+
break;
|
|
18597
20362
|
case 2:
|
|
18598
20363
|
message.frameCorrelationId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
18599
20364
|
break;
|
|
20365
|
+
case 3:
|
|
20366
|
+
if (!(message.sceneViewStateFeatureSubset && message.sceneViewStateFeatureSubset.length))
|
|
20367
|
+
message.sceneViewStateFeatureSubset = [];
|
|
20368
|
+
if ((tag & 7) === 2) {
|
|
20369
|
+
let end2 = reader.uint32() + reader.pos;
|
|
20370
|
+
while (reader.pos < end2)
|
|
20371
|
+
message.sceneViewStateFeatureSubset.push(reader.int32());
|
|
20372
|
+
} else
|
|
20373
|
+
message.sceneViewStateFeatureSubset.push(reader.int32());
|
|
20374
|
+
break;
|
|
18600
20375
|
default:
|
|
18601
20376
|
reader.skipType(tag & 7);
|
|
18602
20377
|
break;
|
|
@@ -18632,16 +20407,47 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18632
20407
|
LoadSceneViewStatePayload.verify = function verify(message) {
|
|
18633
20408
|
if (typeof message !== "object" || message === null)
|
|
18634
20409
|
return "object expected";
|
|
20410
|
+
let properties = {};
|
|
18635
20411
|
if (message.sceneViewStateId != null && message.hasOwnProperty("sceneViewStateId")) {
|
|
18636
|
-
|
|
18637
|
-
|
|
18638
|
-
|
|
20412
|
+
properties.sceneViewStateIdentifier = 1;
|
|
20413
|
+
{
|
|
20414
|
+
let error = $root.vertexvis.protobuf.core.Uuid.verify(message.sceneViewStateId);
|
|
20415
|
+
if (error)
|
|
20416
|
+
return "sceneViewStateId." + error;
|
|
20417
|
+
}
|
|
20418
|
+
}
|
|
20419
|
+
if (message.sceneViewStateSuppliedId != null && message.hasOwnProperty("sceneViewStateSuppliedId")) {
|
|
20420
|
+
if (properties.sceneViewStateIdentifier === 1)
|
|
20421
|
+
return "sceneViewStateIdentifier: multiple values";
|
|
20422
|
+
properties.sceneViewStateIdentifier = 1;
|
|
20423
|
+
{
|
|
20424
|
+
let error = $root.google.protobuf.StringValue.verify(message.sceneViewStateSuppliedId);
|
|
20425
|
+
if (error)
|
|
20426
|
+
return "sceneViewStateSuppliedId." + error;
|
|
20427
|
+
}
|
|
18639
20428
|
}
|
|
18640
20429
|
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId")) {
|
|
18641
20430
|
let error = $root.google.protobuf.StringValue.verify(message.frameCorrelationId);
|
|
18642
20431
|
if (error)
|
|
18643
20432
|
return "frameCorrelationId." + error;
|
|
18644
20433
|
}
|
|
20434
|
+
if (message.sceneViewStateFeatureSubset != null && message.hasOwnProperty("sceneViewStateFeatureSubset")) {
|
|
20435
|
+
if (!Array.isArray(message.sceneViewStateFeatureSubset))
|
|
20436
|
+
return "sceneViewStateFeatureSubset: array expected";
|
|
20437
|
+
for (let i = 0; i < message.sceneViewStateFeatureSubset.length; ++i)
|
|
20438
|
+
switch (message.sceneViewStateFeatureSubset[i]) {
|
|
20439
|
+
default:
|
|
20440
|
+
return "sceneViewStateFeatureSubset: enum value[] expected";
|
|
20441
|
+
case 0:
|
|
20442
|
+
case 1:
|
|
20443
|
+
case 2:
|
|
20444
|
+
case 3:
|
|
20445
|
+
case 4:
|
|
20446
|
+
case 5:
|
|
20447
|
+
case 6:
|
|
20448
|
+
break;
|
|
20449
|
+
}
|
|
20450
|
+
}
|
|
18645
20451
|
return null;
|
|
18646
20452
|
};
|
|
18647
20453
|
|
|
@@ -18662,11 +20468,53 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18662
20468
|
throw TypeError(".vertexvis.protobuf.stream.LoadSceneViewStatePayload.sceneViewStateId: object expected");
|
|
18663
20469
|
message.sceneViewStateId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.sceneViewStateId);
|
|
18664
20470
|
}
|
|
20471
|
+
if (object.sceneViewStateSuppliedId != null) {
|
|
20472
|
+
if (typeof object.sceneViewStateSuppliedId !== "object")
|
|
20473
|
+
throw TypeError(".vertexvis.protobuf.stream.LoadSceneViewStatePayload.sceneViewStateSuppliedId: object expected");
|
|
20474
|
+
message.sceneViewStateSuppliedId = $root.google.protobuf.StringValue.fromObject(object.sceneViewStateSuppliedId);
|
|
20475
|
+
}
|
|
18665
20476
|
if (object.frameCorrelationId != null) {
|
|
18666
20477
|
if (typeof object.frameCorrelationId !== "object")
|
|
18667
20478
|
throw TypeError(".vertexvis.protobuf.stream.LoadSceneViewStatePayload.frameCorrelationId: object expected");
|
|
18668
20479
|
message.frameCorrelationId = $root.google.protobuf.StringValue.fromObject(object.frameCorrelationId);
|
|
18669
20480
|
}
|
|
20481
|
+
if (object.sceneViewStateFeatureSubset) {
|
|
20482
|
+
if (!Array.isArray(object.sceneViewStateFeatureSubset))
|
|
20483
|
+
throw TypeError(".vertexvis.protobuf.stream.LoadSceneViewStatePayload.sceneViewStateFeatureSubset: array expected");
|
|
20484
|
+
message.sceneViewStateFeatureSubset = [];
|
|
20485
|
+
for (let i = 0; i < object.sceneViewStateFeatureSubset.length; ++i)
|
|
20486
|
+
switch (object.sceneViewStateFeatureSubset[i]) {
|
|
20487
|
+
default:
|
|
20488
|
+
case "SCENE_VIEW_STATE_FEATURE_INVALID":
|
|
20489
|
+
case 0:
|
|
20490
|
+
message.sceneViewStateFeatureSubset[i] = 0;
|
|
20491
|
+
break;
|
|
20492
|
+
case "SCENE_VIEW_STATE_FEATURE_CAMERA":
|
|
20493
|
+
case 1:
|
|
20494
|
+
message.sceneViewStateFeatureSubset[i] = 1;
|
|
20495
|
+
break;
|
|
20496
|
+
case "SCENE_VIEW_STATE_FEATURE_MATERIAL_OVERRIDE":
|
|
20497
|
+
case 2:
|
|
20498
|
+
message.sceneViewStateFeatureSubset[i] = 2;
|
|
20499
|
+
break;
|
|
20500
|
+
case "SCENE_VIEW_STATE_FEATURE_SELECTION":
|
|
20501
|
+
case 3:
|
|
20502
|
+
message.sceneViewStateFeatureSubset[i] = 3;
|
|
20503
|
+
break;
|
|
20504
|
+
case "SCENE_VIEW_STATE_FEATURE_VISIBILITY":
|
|
20505
|
+
case 4:
|
|
20506
|
+
message.sceneViewStateFeatureSubset[i] = 4;
|
|
20507
|
+
break;
|
|
20508
|
+
case "SCENE_VIEW_STATE_FEATURE_TRANSFORM":
|
|
20509
|
+
case 5:
|
|
20510
|
+
message.sceneViewStateFeatureSubset[i] = 5;
|
|
20511
|
+
break;
|
|
20512
|
+
case "SCENE_VIEW_STATE_FEATURE_CROSS_SECTION":
|
|
20513
|
+
case 6:
|
|
20514
|
+
message.sceneViewStateFeatureSubset[i] = 6;
|
|
20515
|
+
break;
|
|
20516
|
+
}
|
|
20517
|
+
}
|
|
18670
20518
|
return message;
|
|
18671
20519
|
};
|
|
18672
20520
|
|
|
@@ -18683,14 +20531,27 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18683
20531
|
if (!options)
|
|
18684
20532
|
options = {};
|
|
18685
20533
|
let object = {};
|
|
18686
|
-
if (options.defaults)
|
|
18687
|
-
object.
|
|
20534
|
+
if (options.arrays || options.defaults)
|
|
20535
|
+
object.sceneViewStateFeatureSubset = [];
|
|
20536
|
+
if (options.defaults)
|
|
18688
20537
|
object.frameCorrelationId = null;
|
|
18689
|
-
|
|
18690
|
-
if (message.sceneViewStateId != null && message.hasOwnProperty("sceneViewStateId"))
|
|
20538
|
+
if (message.sceneViewStateId != null && message.hasOwnProperty("sceneViewStateId")) {
|
|
18691
20539
|
object.sceneViewStateId = $root.vertexvis.protobuf.core.Uuid.toObject(message.sceneViewStateId, options);
|
|
20540
|
+
if (options.oneofs)
|
|
20541
|
+
object.sceneViewStateIdentifier = "sceneViewStateId";
|
|
20542
|
+
}
|
|
18692
20543
|
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
|
|
18693
20544
|
object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
|
|
20545
|
+
if (message.sceneViewStateFeatureSubset && message.sceneViewStateFeatureSubset.length) {
|
|
20546
|
+
object.sceneViewStateFeatureSubset = [];
|
|
20547
|
+
for (let j = 0; j < message.sceneViewStateFeatureSubset.length; ++j)
|
|
20548
|
+
object.sceneViewStateFeatureSubset[j] = options.enums === String ? $root.vertexvis.protobuf.stream.SceneViewStateFeature[message.sceneViewStateFeatureSubset[j]] : message.sceneViewStateFeatureSubset[j];
|
|
20549
|
+
}
|
|
20550
|
+
if (message.sceneViewStateSuppliedId != null && message.hasOwnProperty("sceneViewStateSuppliedId")) {
|
|
20551
|
+
object.sceneViewStateSuppliedId = $root.google.protobuf.StringValue.toObject(message.sceneViewStateSuppliedId, options);
|
|
20552
|
+
if (options.oneofs)
|
|
20553
|
+
object.sceneViewStateIdentifier = "sceneViewStateSuppliedId";
|
|
20554
|
+
}
|
|
18694
20555
|
return object;
|
|
18695
20556
|
};
|
|
18696
20557
|
|