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