@vertexvis/stream-api 0.12.0-canary.3 → 0.12.0-canary.30
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 +1809 -212
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +1655 -59
- package/dist/bundle.esm.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/streamApi.d.ts +35 -4
- package/dist/testing/fixtures/index.d.ts +3 -2
- package/dist/testing/fixtures/responses.d.ts +20 -0
- package/dist/testing/webSocketClientMock.d.ts +4 -2
- package/dist/types.d.ts +12 -0
- package/dist/webSocketClient.d.ts +1 -0
- package/package.json +5 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -7155,6 +7155,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7155
7155
|
* @property {vertexvis.protobuf.stream.IDepthBufferAttributes|null} [depthBuffers] StreamAttributes depthBuffers
|
|
7156
7156
|
* @property {vertexvis.protobuf.stream.IFeatureLineAttributes|null} [featureLines] StreamAttributes featureLines
|
|
7157
7157
|
* @property {vertexvis.protobuf.stream.IFeatureHighlightAttributes|null} [featureHighlighting] StreamAttributes featureHighlighting
|
|
7158
|
+
* @property {vertexvis.protobuf.stream.IFeatureMapAttributes|null} [featureMaps] StreamAttributes featureMaps
|
|
7158
7159
|
*/
|
|
7159
7160
|
|
|
7160
7161
|
/**
|
|
@@ -7204,6 +7205,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7204
7205
|
*/
|
|
7205
7206
|
StreamAttributes.prototype.featureHighlighting = null;
|
|
7206
7207
|
|
|
7208
|
+
/**
|
|
7209
|
+
* StreamAttributes featureMaps.
|
|
7210
|
+
* @member {vertexvis.protobuf.stream.IFeatureMapAttributes|null|undefined} featureMaps
|
|
7211
|
+
* @memberof vertexvis.protobuf.stream.StreamAttributes
|
|
7212
|
+
* @instance
|
|
7213
|
+
*/
|
|
7214
|
+
StreamAttributes.prototype.featureMaps = null;
|
|
7215
|
+
|
|
7207
7216
|
/**
|
|
7208
7217
|
* Creates a new StreamAttributes instance using the specified properties.
|
|
7209
7218
|
* @function create
|
|
@@ -7236,6 +7245,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7236
7245
|
$root.vertexvis.protobuf.stream.FeatureLineAttributes.encode(message.featureLines, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
7237
7246
|
if (message.featureHighlighting != null && Object.hasOwnProperty.call(message, "featureHighlighting"))
|
|
7238
7247
|
$root.vertexvis.protobuf.stream.FeatureHighlightAttributes.encode(message.featureHighlighting, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
7248
|
+
if (message.featureMaps != null && Object.hasOwnProperty.call(message, "featureMaps"))
|
|
7249
|
+
$root.vertexvis.protobuf.stream.FeatureMapAttributes.encode(message.featureMaps, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
7239
7250
|
return writer;
|
|
7240
7251
|
};
|
|
7241
7252
|
|
|
@@ -7282,6 +7293,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7282
7293
|
case 4:
|
|
7283
7294
|
message.featureHighlighting = $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.decode(reader, reader.uint32());
|
|
7284
7295
|
break;
|
|
7296
|
+
case 5:
|
|
7297
|
+
message.featureMaps = $root.vertexvis.protobuf.stream.FeatureMapAttributes.decode(reader, reader.uint32());
|
|
7298
|
+
break;
|
|
7285
7299
|
default:
|
|
7286
7300
|
reader.skipType(tag & 7);
|
|
7287
7301
|
break;
|
|
@@ -7337,6 +7351,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7337
7351
|
if (error)
|
|
7338
7352
|
return "featureHighlighting." + error;
|
|
7339
7353
|
}
|
|
7354
|
+
if (message.featureMaps != null && message.hasOwnProperty("featureMaps")) {
|
|
7355
|
+
let error = $root.vertexvis.protobuf.stream.FeatureMapAttributes.verify(message.featureMaps);
|
|
7356
|
+
if (error)
|
|
7357
|
+
return "featureMaps." + error;
|
|
7358
|
+
}
|
|
7340
7359
|
return null;
|
|
7341
7360
|
};
|
|
7342
7361
|
|
|
@@ -7372,6 +7391,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7372
7391
|
throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.featureHighlighting: object expected");
|
|
7373
7392
|
message.featureHighlighting = $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.fromObject(object.featureHighlighting);
|
|
7374
7393
|
}
|
|
7394
|
+
if (object.featureMaps != null) {
|
|
7395
|
+
if (typeof object.featureMaps !== "object")
|
|
7396
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.featureMaps: object expected");
|
|
7397
|
+
message.featureMaps = $root.vertexvis.protobuf.stream.FeatureMapAttributes.fromObject(object.featureMaps);
|
|
7398
|
+
}
|
|
7375
7399
|
return message;
|
|
7376
7400
|
};
|
|
7377
7401
|
|
|
@@ -7393,6 +7417,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7393
7417
|
object.depthBuffers = null;
|
|
7394
7418
|
object.featureLines = null;
|
|
7395
7419
|
object.featureHighlighting = null;
|
|
7420
|
+
object.featureMaps = null;
|
|
7396
7421
|
}
|
|
7397
7422
|
if (message.experimentalGhosting != null && message.hasOwnProperty("experimentalGhosting"))
|
|
7398
7423
|
object.experimentalGhosting = $root.vertexvis.protobuf.stream.GhostingAttributes.toObject(message.experimentalGhosting, options);
|
|
@@ -7402,6 +7427,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7402
7427
|
object.featureLines = $root.vertexvis.protobuf.stream.FeatureLineAttributes.toObject(message.featureLines, options);
|
|
7403
7428
|
if (message.featureHighlighting != null && message.hasOwnProperty("featureHighlighting"))
|
|
7404
7429
|
object.featureHighlighting = $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.toObject(message.featureHighlighting, options);
|
|
7430
|
+
if (message.featureMaps != null && message.hasOwnProperty("featureMaps"))
|
|
7431
|
+
object.featureMaps = $root.vertexvis.protobuf.stream.FeatureMapAttributes.toObject(message.featureMaps, options);
|
|
7405
7432
|
return object;
|
|
7406
7433
|
};
|
|
7407
7434
|
|
|
@@ -7877,6 +7904,244 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7877
7904
|
return DepthBufferAttributes;
|
|
7878
7905
|
})();
|
|
7879
7906
|
|
|
7907
|
+
stream.FeatureMapAttributes = (function() {
|
|
7908
|
+
|
|
7909
|
+
/**
|
|
7910
|
+
* Properties of a FeatureMapAttributes.
|
|
7911
|
+
* @memberof vertexvis.protobuf.stream
|
|
7912
|
+
* @interface IFeatureMapAttributes
|
|
7913
|
+
* @property {google.protobuf.IBoolValue|null} [enabled] FeatureMapAttributes enabled
|
|
7914
|
+
* @property {vertexvis.protobuf.stream.FrameType|null} [frameType] FeatureMapAttributes frameType
|
|
7915
|
+
*/
|
|
7916
|
+
|
|
7917
|
+
/**
|
|
7918
|
+
* Constructs a new FeatureMapAttributes.
|
|
7919
|
+
* @memberof vertexvis.protobuf.stream
|
|
7920
|
+
* @classdesc Represents a FeatureMapAttributes.
|
|
7921
|
+
* @implements IFeatureMapAttributes
|
|
7922
|
+
* @constructor
|
|
7923
|
+
* @param {vertexvis.protobuf.stream.IFeatureMapAttributes=} [properties] Properties to set
|
|
7924
|
+
*/
|
|
7925
|
+
function FeatureMapAttributes(properties) {
|
|
7926
|
+
if (properties)
|
|
7927
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7928
|
+
if (properties[keys[i]] != null)
|
|
7929
|
+
this[keys[i]] = properties[keys[i]];
|
|
7930
|
+
}
|
|
7931
|
+
|
|
7932
|
+
/**
|
|
7933
|
+
* FeatureMapAttributes enabled.
|
|
7934
|
+
* @member {google.protobuf.IBoolValue|null|undefined} enabled
|
|
7935
|
+
* @memberof vertexvis.protobuf.stream.FeatureMapAttributes
|
|
7936
|
+
* @instance
|
|
7937
|
+
*/
|
|
7938
|
+
FeatureMapAttributes.prototype.enabled = null;
|
|
7939
|
+
|
|
7940
|
+
/**
|
|
7941
|
+
* FeatureMapAttributes frameType.
|
|
7942
|
+
* @member {vertexvis.protobuf.stream.FrameType} frameType
|
|
7943
|
+
* @memberof vertexvis.protobuf.stream.FeatureMapAttributes
|
|
7944
|
+
* @instance
|
|
7945
|
+
*/
|
|
7946
|
+
FeatureMapAttributes.prototype.frameType = 0;
|
|
7947
|
+
|
|
7948
|
+
/**
|
|
7949
|
+
* Creates a new FeatureMapAttributes instance using the specified properties.
|
|
7950
|
+
* @function create
|
|
7951
|
+
* @memberof vertexvis.protobuf.stream.FeatureMapAttributes
|
|
7952
|
+
* @static
|
|
7953
|
+
* @param {vertexvis.protobuf.stream.IFeatureMapAttributes=} [properties] Properties to set
|
|
7954
|
+
* @returns {vertexvis.protobuf.stream.FeatureMapAttributes} FeatureMapAttributes instance
|
|
7955
|
+
*/
|
|
7956
|
+
FeatureMapAttributes.create = function create(properties) {
|
|
7957
|
+
return new FeatureMapAttributes(properties);
|
|
7958
|
+
};
|
|
7959
|
+
|
|
7960
|
+
/**
|
|
7961
|
+
* Encodes the specified FeatureMapAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.FeatureMapAttributes.verify|verify} messages.
|
|
7962
|
+
* @function encode
|
|
7963
|
+
* @memberof vertexvis.protobuf.stream.FeatureMapAttributes
|
|
7964
|
+
* @static
|
|
7965
|
+
* @param {vertexvis.protobuf.stream.IFeatureMapAttributes} message FeatureMapAttributes message or plain object to encode
|
|
7966
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7967
|
+
* @returns {$protobuf.Writer} Writer
|
|
7968
|
+
*/
|
|
7969
|
+
FeatureMapAttributes.encode = function encode(message, writer) {
|
|
7970
|
+
if (!writer)
|
|
7971
|
+
writer = $Writer.create();
|
|
7972
|
+
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
|
|
7973
|
+
$root.google.protobuf.BoolValue.encode(message.enabled, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
7974
|
+
if (message.frameType != null && Object.hasOwnProperty.call(message, "frameType"))
|
|
7975
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.frameType);
|
|
7976
|
+
return writer;
|
|
7977
|
+
};
|
|
7978
|
+
|
|
7979
|
+
/**
|
|
7980
|
+
* Encodes the specified FeatureMapAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.FeatureMapAttributes.verify|verify} messages.
|
|
7981
|
+
* @function encodeDelimited
|
|
7982
|
+
* @memberof vertexvis.protobuf.stream.FeatureMapAttributes
|
|
7983
|
+
* @static
|
|
7984
|
+
* @param {vertexvis.protobuf.stream.IFeatureMapAttributes} message FeatureMapAttributes message or plain object to encode
|
|
7985
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7986
|
+
* @returns {$protobuf.Writer} Writer
|
|
7987
|
+
*/
|
|
7988
|
+
FeatureMapAttributes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7989
|
+
return this.encode(message, writer).ldelim();
|
|
7990
|
+
};
|
|
7991
|
+
|
|
7992
|
+
/**
|
|
7993
|
+
* Decodes a FeatureMapAttributes message from the specified reader or buffer.
|
|
7994
|
+
* @function decode
|
|
7995
|
+
* @memberof vertexvis.protobuf.stream.FeatureMapAttributes
|
|
7996
|
+
* @static
|
|
7997
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7998
|
+
* @param {number} [length] Message length if known beforehand
|
|
7999
|
+
* @returns {vertexvis.protobuf.stream.FeatureMapAttributes} FeatureMapAttributes
|
|
8000
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8001
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8002
|
+
*/
|
|
8003
|
+
FeatureMapAttributes.decode = function decode(reader, length) {
|
|
8004
|
+
if (!(reader instanceof $Reader))
|
|
8005
|
+
reader = $Reader.create(reader);
|
|
8006
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.FeatureMapAttributes();
|
|
8007
|
+
while (reader.pos < end) {
|
|
8008
|
+
let tag = reader.uint32();
|
|
8009
|
+
switch (tag >>> 3) {
|
|
8010
|
+
case 1:
|
|
8011
|
+
message.enabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
|
|
8012
|
+
break;
|
|
8013
|
+
case 2:
|
|
8014
|
+
message.frameType = reader.int32();
|
|
8015
|
+
break;
|
|
8016
|
+
default:
|
|
8017
|
+
reader.skipType(tag & 7);
|
|
8018
|
+
break;
|
|
8019
|
+
}
|
|
8020
|
+
}
|
|
8021
|
+
return message;
|
|
8022
|
+
};
|
|
8023
|
+
|
|
8024
|
+
/**
|
|
8025
|
+
* Decodes a FeatureMapAttributes message from the specified reader or buffer, length delimited.
|
|
8026
|
+
* @function decodeDelimited
|
|
8027
|
+
* @memberof vertexvis.protobuf.stream.FeatureMapAttributes
|
|
8028
|
+
* @static
|
|
8029
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8030
|
+
* @returns {vertexvis.protobuf.stream.FeatureMapAttributes} FeatureMapAttributes
|
|
8031
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8032
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8033
|
+
*/
|
|
8034
|
+
FeatureMapAttributes.decodeDelimited = function decodeDelimited(reader) {
|
|
8035
|
+
if (!(reader instanceof $Reader))
|
|
8036
|
+
reader = new $Reader(reader);
|
|
8037
|
+
return this.decode(reader, reader.uint32());
|
|
8038
|
+
};
|
|
8039
|
+
|
|
8040
|
+
/**
|
|
8041
|
+
* Verifies a FeatureMapAttributes message.
|
|
8042
|
+
* @function verify
|
|
8043
|
+
* @memberof vertexvis.protobuf.stream.FeatureMapAttributes
|
|
8044
|
+
* @static
|
|
8045
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8046
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8047
|
+
*/
|
|
8048
|
+
FeatureMapAttributes.verify = function verify(message) {
|
|
8049
|
+
if (typeof message !== "object" || message === null)
|
|
8050
|
+
return "object expected";
|
|
8051
|
+
if (message.enabled != null && message.hasOwnProperty("enabled")) {
|
|
8052
|
+
let error = $root.google.protobuf.BoolValue.verify(message.enabled);
|
|
8053
|
+
if (error)
|
|
8054
|
+
return "enabled." + error;
|
|
8055
|
+
}
|
|
8056
|
+
if (message.frameType != null && message.hasOwnProperty("frameType"))
|
|
8057
|
+
switch (message.frameType) {
|
|
8058
|
+
default:
|
|
8059
|
+
return "frameType: enum value expected";
|
|
8060
|
+
case 0:
|
|
8061
|
+
case 1:
|
|
8062
|
+
case 2:
|
|
8063
|
+
case 3:
|
|
8064
|
+
break;
|
|
8065
|
+
}
|
|
8066
|
+
return null;
|
|
8067
|
+
};
|
|
8068
|
+
|
|
8069
|
+
/**
|
|
8070
|
+
* Creates a FeatureMapAttributes message from a plain object. Also converts values to their respective internal types.
|
|
8071
|
+
* @function fromObject
|
|
8072
|
+
* @memberof vertexvis.protobuf.stream.FeatureMapAttributes
|
|
8073
|
+
* @static
|
|
8074
|
+
* @param {Object.<string,*>} object Plain object
|
|
8075
|
+
* @returns {vertexvis.protobuf.stream.FeatureMapAttributes} FeatureMapAttributes
|
|
8076
|
+
*/
|
|
8077
|
+
FeatureMapAttributes.fromObject = function fromObject(object) {
|
|
8078
|
+
if (object instanceof $root.vertexvis.protobuf.stream.FeatureMapAttributes)
|
|
8079
|
+
return object;
|
|
8080
|
+
let message = new $root.vertexvis.protobuf.stream.FeatureMapAttributes();
|
|
8081
|
+
if (object.enabled != null) {
|
|
8082
|
+
if (typeof object.enabled !== "object")
|
|
8083
|
+
throw TypeError(".vertexvis.protobuf.stream.FeatureMapAttributes.enabled: object expected");
|
|
8084
|
+
message.enabled = $root.google.protobuf.BoolValue.fromObject(object.enabled);
|
|
8085
|
+
}
|
|
8086
|
+
switch (object.frameType) {
|
|
8087
|
+
case "FRAME_TYPE_INVALID":
|
|
8088
|
+
case 0:
|
|
8089
|
+
message.frameType = 0;
|
|
8090
|
+
break;
|
|
8091
|
+
case "FRAME_TYPE_ALL":
|
|
8092
|
+
case 1:
|
|
8093
|
+
message.frameType = 1;
|
|
8094
|
+
break;
|
|
8095
|
+
case "FRAME_TYPE_TRANSITION":
|
|
8096
|
+
case 2:
|
|
8097
|
+
message.frameType = 2;
|
|
8098
|
+
break;
|
|
8099
|
+
case "FRAME_TYPE_FINAL":
|
|
8100
|
+
case 3:
|
|
8101
|
+
message.frameType = 3;
|
|
8102
|
+
break;
|
|
8103
|
+
}
|
|
8104
|
+
return message;
|
|
8105
|
+
};
|
|
8106
|
+
|
|
8107
|
+
/**
|
|
8108
|
+
* Creates a plain object from a FeatureMapAttributes message. Also converts values to other types if specified.
|
|
8109
|
+
* @function toObject
|
|
8110
|
+
* @memberof vertexvis.protobuf.stream.FeatureMapAttributes
|
|
8111
|
+
* @static
|
|
8112
|
+
* @param {vertexvis.protobuf.stream.FeatureMapAttributes} message FeatureMapAttributes
|
|
8113
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8114
|
+
* @returns {Object.<string,*>} Plain object
|
|
8115
|
+
*/
|
|
8116
|
+
FeatureMapAttributes.toObject = function toObject(message, options) {
|
|
8117
|
+
if (!options)
|
|
8118
|
+
options = {};
|
|
8119
|
+
let object = {};
|
|
8120
|
+
if (options.defaults) {
|
|
8121
|
+
object.enabled = null;
|
|
8122
|
+
object.frameType = options.enums === String ? "FRAME_TYPE_INVALID" : 0;
|
|
8123
|
+
}
|
|
8124
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
8125
|
+
object.enabled = $root.google.protobuf.BoolValue.toObject(message.enabled, options);
|
|
8126
|
+
if (message.frameType != null && message.hasOwnProperty("frameType"))
|
|
8127
|
+
object.frameType = options.enums === String ? $root.vertexvis.protobuf.stream.FrameType[message.frameType] : message.frameType;
|
|
8128
|
+
return object;
|
|
8129
|
+
};
|
|
8130
|
+
|
|
8131
|
+
/**
|
|
8132
|
+
* Converts this FeatureMapAttributes to JSON.
|
|
8133
|
+
* @function toJSON
|
|
8134
|
+
* @memberof vertexvis.protobuf.stream.FeatureMapAttributes
|
|
8135
|
+
* @instance
|
|
8136
|
+
* @returns {Object.<string,*>} JSON object
|
|
8137
|
+
*/
|
|
8138
|
+
FeatureMapAttributes.prototype.toJSON = function toJSON() {
|
|
8139
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
8140
|
+
};
|
|
8141
|
+
|
|
8142
|
+
return FeatureMapAttributes;
|
|
8143
|
+
})();
|
|
8144
|
+
|
|
7880
8145
|
stream.AnimationAttributes = (function() {
|
|
7881
8146
|
|
|
7882
8147
|
/**
|
|
@@ -9372,7 +9637,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9372
9637
|
* @memberof vertexvis.protobuf.stream
|
|
9373
9638
|
* @interface IFeatureHighlightAttributes
|
|
9374
9639
|
* @property {vertexvis.protobuf.core.IRGBi|null} [highlightColor] FeatureHighlightAttributes highlightColor
|
|
9375
|
-
* @property {
|
|
9640
|
+
* @property {google.protobuf.IFloatValue|null} [occludedOpacity] FeatureHighlightAttributes occludedOpacity
|
|
9376
9641
|
* @property {vertexvis.protobuf.stream.IFeatureLineAttributes|null} [outline] FeatureHighlightAttributes outline
|
|
9377
9642
|
*/
|
|
9378
9643
|
|
|
@@ -9401,11 +9666,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9401
9666
|
|
|
9402
9667
|
/**
|
|
9403
9668
|
* FeatureHighlightAttributes occludedOpacity.
|
|
9404
|
-
* @member {
|
|
9669
|
+
* @member {google.protobuf.IFloatValue|null|undefined} occludedOpacity
|
|
9405
9670
|
* @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
|
|
9406
9671
|
* @instance
|
|
9407
9672
|
*/
|
|
9408
|
-
FeatureHighlightAttributes.prototype.occludedOpacity =
|
|
9673
|
+
FeatureHighlightAttributes.prototype.occludedOpacity = null;
|
|
9409
9674
|
|
|
9410
9675
|
/**
|
|
9411
9676
|
* FeatureHighlightAttributes outline.
|
|
@@ -9442,7 +9707,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9442
9707
|
if (message.highlightColor != null && Object.hasOwnProperty.call(message, "highlightColor"))
|
|
9443
9708
|
$root.vertexvis.protobuf.core.RGBi.encode(message.highlightColor, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
9444
9709
|
if (message.occludedOpacity != null && Object.hasOwnProperty.call(message, "occludedOpacity"))
|
|
9445
|
-
writer.uint32(/* id 2, wireType
|
|
9710
|
+
$root.google.protobuf.FloatValue.encode(message.occludedOpacity, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
9446
9711
|
if (message.outline != null && Object.hasOwnProperty.call(message, "outline"))
|
|
9447
9712
|
$root.vertexvis.protobuf.stream.FeatureLineAttributes.encode(message.outline, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
9448
9713
|
return writer;
|
|
@@ -9483,7 +9748,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9483
9748
|
message.highlightColor = $root.vertexvis.protobuf.core.RGBi.decode(reader, reader.uint32());
|
|
9484
9749
|
break;
|
|
9485
9750
|
case 2:
|
|
9486
|
-
message.occludedOpacity = reader.
|
|
9751
|
+
message.occludedOpacity = $root.google.protobuf.FloatValue.decode(reader, reader.uint32());
|
|
9487
9752
|
break;
|
|
9488
9753
|
case 3:
|
|
9489
9754
|
message.outline = $root.vertexvis.protobuf.stream.FeatureLineAttributes.decode(reader, reader.uint32());
|
|
@@ -9528,9 +9793,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9528
9793
|
if (error)
|
|
9529
9794
|
return "highlightColor." + error;
|
|
9530
9795
|
}
|
|
9531
|
-
if (message.occludedOpacity != null && message.hasOwnProperty("occludedOpacity"))
|
|
9532
|
-
|
|
9533
|
-
|
|
9796
|
+
if (message.occludedOpacity != null && message.hasOwnProperty("occludedOpacity")) {
|
|
9797
|
+
let error = $root.google.protobuf.FloatValue.verify(message.occludedOpacity);
|
|
9798
|
+
if (error)
|
|
9799
|
+
return "occludedOpacity." + error;
|
|
9800
|
+
}
|
|
9534
9801
|
if (message.outline != null && message.hasOwnProperty("outline")) {
|
|
9535
9802
|
let error = $root.vertexvis.protobuf.stream.FeatureLineAttributes.verify(message.outline);
|
|
9536
9803
|
if (error)
|
|
@@ -9556,8 +9823,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9556
9823
|
throw TypeError(".vertexvis.protobuf.stream.FeatureHighlightAttributes.highlightColor: object expected");
|
|
9557
9824
|
message.highlightColor = $root.vertexvis.protobuf.core.RGBi.fromObject(object.highlightColor);
|
|
9558
9825
|
}
|
|
9559
|
-
if (object.occludedOpacity != null)
|
|
9560
|
-
|
|
9826
|
+
if (object.occludedOpacity != null) {
|
|
9827
|
+
if (typeof object.occludedOpacity !== "object")
|
|
9828
|
+
throw TypeError(".vertexvis.protobuf.stream.FeatureHighlightAttributes.occludedOpacity: object expected");
|
|
9829
|
+
message.occludedOpacity = $root.google.protobuf.FloatValue.fromObject(object.occludedOpacity);
|
|
9830
|
+
}
|
|
9561
9831
|
if (object.outline != null) {
|
|
9562
9832
|
if (typeof object.outline !== "object")
|
|
9563
9833
|
throw TypeError(".vertexvis.protobuf.stream.FeatureHighlightAttributes.outline: object expected");
|
|
@@ -9581,13 +9851,13 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9581
9851
|
let object = {};
|
|
9582
9852
|
if (options.defaults) {
|
|
9583
9853
|
object.highlightColor = null;
|
|
9584
|
-
object.occludedOpacity =
|
|
9854
|
+
object.occludedOpacity = null;
|
|
9585
9855
|
object.outline = null;
|
|
9586
9856
|
}
|
|
9587
9857
|
if (message.highlightColor != null && message.hasOwnProperty("highlightColor"))
|
|
9588
9858
|
object.highlightColor = $root.vertexvis.protobuf.core.RGBi.toObject(message.highlightColor, options);
|
|
9589
9859
|
if (message.occludedOpacity != null && message.hasOwnProperty("occludedOpacity"))
|
|
9590
|
-
object.occludedOpacity =
|
|
9860
|
+
object.occludedOpacity = $root.google.protobuf.FloatValue.toObject(message.occludedOpacity, options);
|
|
9591
9861
|
if (message.outline != null && message.hasOwnProperty("outline"))
|
|
9592
9862
|
object.outline = $root.vertexvis.protobuf.stream.FeatureLineAttributes.toObject(message.outline, options);
|
|
9593
9863
|
return object;
|
|
@@ -9607,25 +9877,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9607
9877
|
return FeatureHighlightAttributes;
|
|
9608
9878
|
})();
|
|
9609
9879
|
|
|
9610
|
-
stream.
|
|
9880
|
+
stream.Token = (function() {
|
|
9611
9881
|
|
|
9612
9882
|
/**
|
|
9613
|
-
* Properties of
|
|
9883
|
+
* Properties of a Token.
|
|
9614
9884
|
* @memberof vertexvis.protobuf.stream
|
|
9615
|
-
* @interface
|
|
9616
|
-
* @property {
|
|
9617
|
-
* @property {
|
|
9885
|
+
* @interface IToken
|
|
9886
|
+
* @property {string|null} [token] Token token
|
|
9887
|
+
* @property {number|null} [expiresIn] Token expiresIn
|
|
9618
9888
|
*/
|
|
9619
9889
|
|
|
9620
9890
|
/**
|
|
9621
|
-
* Constructs a new
|
|
9891
|
+
* Constructs a new Token.
|
|
9622
9892
|
* @memberof vertexvis.protobuf.stream
|
|
9623
|
-
* @classdesc Represents
|
|
9624
|
-
* @implements
|
|
9893
|
+
* @classdesc Represents a Token.
|
|
9894
|
+
* @implements IToken
|
|
9625
9895
|
* @constructor
|
|
9626
|
-
* @param {vertexvis.protobuf.stream.
|
|
9896
|
+
* @param {vertexvis.protobuf.stream.IToken=} [properties] Properties to set
|
|
9627
9897
|
*/
|
|
9628
|
-
function
|
|
9898
|
+
function Token(properties) {
|
|
9629
9899
|
if (properties)
|
|
9630
9900
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9631
9901
|
if (properties[keys[i]] != null)
|
|
@@ -9633,88 +9903,88 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9633
9903
|
}
|
|
9634
9904
|
|
|
9635
9905
|
/**
|
|
9636
|
-
*
|
|
9637
|
-
* @member {
|
|
9638
|
-
* @memberof vertexvis.protobuf.stream.
|
|
9906
|
+
* Token token.
|
|
9907
|
+
* @member {string} token
|
|
9908
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9639
9909
|
* @instance
|
|
9640
9910
|
*/
|
|
9641
|
-
|
|
9911
|
+
Token.prototype.token = "";
|
|
9642
9912
|
|
|
9643
9913
|
/**
|
|
9644
|
-
*
|
|
9645
|
-
* @member {
|
|
9646
|
-
* @memberof vertexvis.protobuf.stream.
|
|
9914
|
+
* Token expiresIn.
|
|
9915
|
+
* @member {number} expiresIn
|
|
9916
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9647
9917
|
* @instance
|
|
9648
9918
|
*/
|
|
9649
|
-
|
|
9919
|
+
Token.prototype.expiresIn = 0;
|
|
9650
9920
|
|
|
9651
9921
|
/**
|
|
9652
|
-
* Creates a new
|
|
9922
|
+
* Creates a new Token instance using the specified properties.
|
|
9653
9923
|
* @function create
|
|
9654
|
-
* @memberof vertexvis.protobuf.stream.
|
|
9924
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9655
9925
|
* @static
|
|
9656
|
-
* @param {vertexvis.protobuf.stream.
|
|
9657
|
-
* @returns {vertexvis.protobuf.stream.
|
|
9926
|
+
* @param {vertexvis.protobuf.stream.IToken=} [properties] Properties to set
|
|
9927
|
+
* @returns {vertexvis.protobuf.stream.Token} Token instance
|
|
9658
9928
|
*/
|
|
9659
|
-
|
|
9660
|
-
return new
|
|
9929
|
+
Token.create = function create(properties) {
|
|
9930
|
+
return new Token(properties);
|
|
9661
9931
|
};
|
|
9662
9932
|
|
|
9663
9933
|
/**
|
|
9664
|
-
* Encodes the specified
|
|
9934
|
+
* Encodes the specified Token message. Does not implicitly {@link vertexvis.protobuf.stream.Token.verify|verify} messages.
|
|
9665
9935
|
* @function encode
|
|
9666
|
-
* @memberof vertexvis.protobuf.stream.
|
|
9936
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9667
9937
|
* @static
|
|
9668
|
-
* @param {vertexvis.protobuf.stream.
|
|
9938
|
+
* @param {vertexvis.protobuf.stream.IToken} message Token message or plain object to encode
|
|
9669
9939
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9670
9940
|
* @returns {$protobuf.Writer} Writer
|
|
9671
9941
|
*/
|
|
9672
|
-
|
|
9942
|
+
Token.encode = function encode(message, writer) {
|
|
9673
9943
|
if (!writer)
|
|
9674
9944
|
writer = $Writer.create();
|
|
9675
|
-
if (message.
|
|
9676
|
-
|
|
9677
|
-
if (message.
|
|
9678
|
-
|
|
9945
|
+
if (message.token != null && Object.hasOwnProperty.call(message, "token"))
|
|
9946
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.token);
|
|
9947
|
+
if (message.expiresIn != null && Object.hasOwnProperty.call(message, "expiresIn"))
|
|
9948
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.expiresIn);
|
|
9679
9949
|
return writer;
|
|
9680
9950
|
};
|
|
9681
9951
|
|
|
9682
9952
|
/**
|
|
9683
|
-
* Encodes the specified
|
|
9953
|
+
* Encodes the specified Token message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.Token.verify|verify} messages.
|
|
9684
9954
|
* @function encodeDelimited
|
|
9685
|
-
* @memberof vertexvis.protobuf.stream.
|
|
9955
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9686
9956
|
* @static
|
|
9687
|
-
* @param {vertexvis.protobuf.stream.
|
|
9957
|
+
* @param {vertexvis.protobuf.stream.IToken} message Token message or plain object to encode
|
|
9688
9958
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9689
9959
|
* @returns {$protobuf.Writer} Writer
|
|
9690
9960
|
*/
|
|
9691
|
-
|
|
9961
|
+
Token.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9692
9962
|
return this.encode(message, writer).ldelim();
|
|
9693
9963
|
};
|
|
9694
9964
|
|
|
9695
9965
|
/**
|
|
9696
|
-
* Decodes
|
|
9966
|
+
* Decodes a Token message from the specified reader or buffer.
|
|
9697
9967
|
* @function decode
|
|
9698
|
-
* @memberof vertexvis.protobuf.stream.
|
|
9968
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9699
9969
|
* @static
|
|
9700
9970
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9701
9971
|
* @param {number} [length] Message length if known beforehand
|
|
9702
|
-
* @returns {vertexvis.protobuf.stream.
|
|
9972
|
+
* @returns {vertexvis.protobuf.stream.Token} Token
|
|
9703
9973
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9704
9974
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9705
9975
|
*/
|
|
9706
|
-
|
|
9976
|
+
Token.decode = function decode(reader, length) {
|
|
9707
9977
|
if (!(reader instanceof $Reader))
|
|
9708
9978
|
reader = $Reader.create(reader);
|
|
9709
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.
|
|
9979
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.Token();
|
|
9710
9980
|
while (reader.pos < end) {
|
|
9711
9981
|
let tag = reader.uint32();
|
|
9712
9982
|
switch (tag >>> 3) {
|
|
9713
9983
|
case 1:
|
|
9714
|
-
message.
|
|
9984
|
+
message.token = reader.string();
|
|
9715
9985
|
break;
|
|
9716
9986
|
case 2:
|
|
9717
|
-
message.
|
|
9987
|
+
message.expiresIn = reader.uint32();
|
|
9718
9988
|
break;
|
|
9719
9989
|
default:
|
|
9720
9990
|
reader.skipType(tag & 7);
|
|
@@ -9725,47 +9995,257 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9725
9995
|
};
|
|
9726
9996
|
|
|
9727
9997
|
/**
|
|
9728
|
-
* Decodes
|
|
9998
|
+
* Decodes a Token message from the specified reader or buffer, length delimited.
|
|
9729
9999
|
* @function decodeDelimited
|
|
9730
|
-
* @memberof vertexvis.protobuf.stream.
|
|
10000
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9731
10001
|
* @static
|
|
9732
10002
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9733
|
-
* @returns {vertexvis.protobuf.stream.
|
|
10003
|
+
* @returns {vertexvis.protobuf.stream.Token} Token
|
|
9734
10004
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9735
10005
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9736
10006
|
*/
|
|
9737
|
-
|
|
10007
|
+
Token.decodeDelimited = function decodeDelimited(reader) {
|
|
9738
10008
|
if (!(reader instanceof $Reader))
|
|
9739
10009
|
reader = new $Reader(reader);
|
|
9740
10010
|
return this.decode(reader, reader.uint32());
|
|
9741
10011
|
};
|
|
9742
10012
|
|
|
9743
10013
|
/**
|
|
9744
|
-
* Verifies
|
|
10014
|
+
* Verifies a Token message.
|
|
9745
10015
|
* @function verify
|
|
9746
|
-
* @memberof vertexvis.protobuf.stream.
|
|
10016
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9747
10017
|
* @static
|
|
9748
10018
|
* @param {Object.<string,*>} message Plain object to verify
|
|
9749
10019
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9750
10020
|
*/
|
|
9751
|
-
|
|
10021
|
+
Token.verify = function verify(message) {
|
|
9752
10022
|
if (typeof message !== "object" || message === null)
|
|
9753
10023
|
return "object expected";
|
|
9754
|
-
if (message.
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
let error = $root.google.protobuf.StringValue.verify(message.details);
|
|
9761
|
-
if (error)
|
|
9762
|
-
return "details." + error;
|
|
9763
|
-
}
|
|
10024
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
10025
|
+
if (!$util.isString(message.token))
|
|
10026
|
+
return "token: string expected";
|
|
10027
|
+
if (message.expiresIn != null && message.hasOwnProperty("expiresIn"))
|
|
10028
|
+
if (!$util.isInteger(message.expiresIn))
|
|
10029
|
+
return "expiresIn: integer expected";
|
|
9764
10030
|
return null;
|
|
9765
10031
|
};
|
|
9766
10032
|
|
|
9767
10033
|
/**
|
|
9768
|
-
* Creates
|
|
10034
|
+
* Creates a Token message from a plain object. Also converts values to their respective internal types.
|
|
10035
|
+
* @function fromObject
|
|
10036
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
10037
|
+
* @static
|
|
10038
|
+
* @param {Object.<string,*>} object Plain object
|
|
10039
|
+
* @returns {vertexvis.protobuf.stream.Token} Token
|
|
10040
|
+
*/
|
|
10041
|
+
Token.fromObject = function fromObject(object) {
|
|
10042
|
+
if (object instanceof $root.vertexvis.protobuf.stream.Token)
|
|
10043
|
+
return object;
|
|
10044
|
+
let message = new $root.vertexvis.protobuf.stream.Token();
|
|
10045
|
+
if (object.token != null)
|
|
10046
|
+
message.token = String(object.token);
|
|
10047
|
+
if (object.expiresIn != null)
|
|
10048
|
+
message.expiresIn = object.expiresIn >>> 0;
|
|
10049
|
+
return message;
|
|
10050
|
+
};
|
|
10051
|
+
|
|
10052
|
+
/**
|
|
10053
|
+
* Creates a plain object from a Token message. Also converts values to other types if specified.
|
|
10054
|
+
* @function toObject
|
|
10055
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
10056
|
+
* @static
|
|
10057
|
+
* @param {vertexvis.protobuf.stream.Token} message Token
|
|
10058
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10059
|
+
* @returns {Object.<string,*>} Plain object
|
|
10060
|
+
*/
|
|
10061
|
+
Token.toObject = function toObject(message, options) {
|
|
10062
|
+
if (!options)
|
|
10063
|
+
options = {};
|
|
10064
|
+
let object = {};
|
|
10065
|
+
if (options.defaults) {
|
|
10066
|
+
object.token = "";
|
|
10067
|
+
object.expiresIn = 0;
|
|
10068
|
+
}
|
|
10069
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
10070
|
+
object.token = message.token;
|
|
10071
|
+
if (message.expiresIn != null && message.hasOwnProperty("expiresIn"))
|
|
10072
|
+
object.expiresIn = message.expiresIn;
|
|
10073
|
+
return object;
|
|
10074
|
+
};
|
|
10075
|
+
|
|
10076
|
+
/**
|
|
10077
|
+
* Converts this Token to JSON.
|
|
10078
|
+
* @function toJSON
|
|
10079
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
10080
|
+
* @instance
|
|
10081
|
+
* @returns {Object.<string,*>} JSON object
|
|
10082
|
+
*/
|
|
10083
|
+
Token.prototype.toJSON = function toJSON() {
|
|
10084
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
10085
|
+
};
|
|
10086
|
+
|
|
10087
|
+
return Token;
|
|
10088
|
+
})();
|
|
10089
|
+
|
|
10090
|
+
stream.Error = (function() {
|
|
10091
|
+
|
|
10092
|
+
/**
|
|
10093
|
+
* Properties of an Error.
|
|
10094
|
+
* @memberof vertexvis.protobuf.stream
|
|
10095
|
+
* @interface IError
|
|
10096
|
+
* @property {google.protobuf.IStringValue|null} [message] Error message
|
|
10097
|
+
* @property {google.protobuf.IStringValue|null} [details] Error details
|
|
10098
|
+
*/
|
|
10099
|
+
|
|
10100
|
+
/**
|
|
10101
|
+
* Constructs a new Error.
|
|
10102
|
+
* @memberof vertexvis.protobuf.stream
|
|
10103
|
+
* @classdesc Represents an Error.
|
|
10104
|
+
* @implements IError
|
|
10105
|
+
* @constructor
|
|
10106
|
+
* @param {vertexvis.protobuf.stream.IError=} [properties] Properties to set
|
|
10107
|
+
*/
|
|
10108
|
+
function Error(properties) {
|
|
10109
|
+
if (properties)
|
|
10110
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10111
|
+
if (properties[keys[i]] != null)
|
|
10112
|
+
this[keys[i]] = properties[keys[i]];
|
|
10113
|
+
}
|
|
10114
|
+
|
|
10115
|
+
/**
|
|
10116
|
+
* Error message.
|
|
10117
|
+
* @member {google.protobuf.IStringValue|null|undefined} message
|
|
10118
|
+
* @memberof vertexvis.protobuf.stream.Error
|
|
10119
|
+
* @instance
|
|
10120
|
+
*/
|
|
10121
|
+
Error.prototype.message = null;
|
|
10122
|
+
|
|
10123
|
+
/**
|
|
10124
|
+
* Error details.
|
|
10125
|
+
* @member {google.protobuf.IStringValue|null|undefined} details
|
|
10126
|
+
* @memberof vertexvis.protobuf.stream.Error
|
|
10127
|
+
* @instance
|
|
10128
|
+
*/
|
|
10129
|
+
Error.prototype.details = null;
|
|
10130
|
+
|
|
10131
|
+
/**
|
|
10132
|
+
* Creates a new Error instance using the specified properties.
|
|
10133
|
+
* @function create
|
|
10134
|
+
* @memberof vertexvis.protobuf.stream.Error
|
|
10135
|
+
* @static
|
|
10136
|
+
* @param {vertexvis.protobuf.stream.IError=} [properties] Properties to set
|
|
10137
|
+
* @returns {vertexvis.protobuf.stream.Error} Error instance
|
|
10138
|
+
*/
|
|
10139
|
+
Error.create = function create(properties) {
|
|
10140
|
+
return new Error(properties);
|
|
10141
|
+
};
|
|
10142
|
+
|
|
10143
|
+
/**
|
|
10144
|
+
* Encodes the specified Error message. Does not implicitly {@link vertexvis.protobuf.stream.Error.verify|verify} messages.
|
|
10145
|
+
* @function encode
|
|
10146
|
+
* @memberof vertexvis.protobuf.stream.Error
|
|
10147
|
+
* @static
|
|
10148
|
+
* @param {vertexvis.protobuf.stream.IError} message Error message or plain object to encode
|
|
10149
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10150
|
+
* @returns {$protobuf.Writer} Writer
|
|
10151
|
+
*/
|
|
10152
|
+
Error.encode = function encode(message, writer) {
|
|
10153
|
+
if (!writer)
|
|
10154
|
+
writer = $Writer.create();
|
|
10155
|
+
if (message.message != null && Object.hasOwnProperty.call(message, "message"))
|
|
10156
|
+
$root.google.protobuf.StringValue.encode(message.message, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
10157
|
+
if (message.details != null && Object.hasOwnProperty.call(message, "details"))
|
|
10158
|
+
$root.google.protobuf.StringValue.encode(message.details, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
10159
|
+
return writer;
|
|
10160
|
+
};
|
|
10161
|
+
|
|
10162
|
+
/**
|
|
10163
|
+
* Encodes the specified Error message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.Error.verify|verify} messages.
|
|
10164
|
+
* @function encodeDelimited
|
|
10165
|
+
* @memberof vertexvis.protobuf.stream.Error
|
|
10166
|
+
* @static
|
|
10167
|
+
* @param {vertexvis.protobuf.stream.IError} message Error message or plain object to encode
|
|
10168
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10169
|
+
* @returns {$protobuf.Writer} Writer
|
|
10170
|
+
*/
|
|
10171
|
+
Error.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10172
|
+
return this.encode(message, writer).ldelim();
|
|
10173
|
+
};
|
|
10174
|
+
|
|
10175
|
+
/**
|
|
10176
|
+
* Decodes an Error message from the specified reader or buffer.
|
|
10177
|
+
* @function decode
|
|
10178
|
+
* @memberof vertexvis.protobuf.stream.Error
|
|
10179
|
+
* @static
|
|
10180
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10181
|
+
* @param {number} [length] Message length if known beforehand
|
|
10182
|
+
* @returns {vertexvis.protobuf.stream.Error} Error
|
|
10183
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10184
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10185
|
+
*/
|
|
10186
|
+
Error.decode = function decode(reader, length) {
|
|
10187
|
+
if (!(reader instanceof $Reader))
|
|
10188
|
+
reader = $Reader.create(reader);
|
|
10189
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.Error();
|
|
10190
|
+
while (reader.pos < end) {
|
|
10191
|
+
let tag = reader.uint32();
|
|
10192
|
+
switch (tag >>> 3) {
|
|
10193
|
+
case 1:
|
|
10194
|
+
message.message = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
10195
|
+
break;
|
|
10196
|
+
case 2:
|
|
10197
|
+
message.details = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
10198
|
+
break;
|
|
10199
|
+
default:
|
|
10200
|
+
reader.skipType(tag & 7);
|
|
10201
|
+
break;
|
|
10202
|
+
}
|
|
10203
|
+
}
|
|
10204
|
+
return message;
|
|
10205
|
+
};
|
|
10206
|
+
|
|
10207
|
+
/**
|
|
10208
|
+
* Decodes an Error message from the specified reader or buffer, length delimited.
|
|
10209
|
+
* @function decodeDelimited
|
|
10210
|
+
* @memberof vertexvis.protobuf.stream.Error
|
|
10211
|
+
* @static
|
|
10212
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10213
|
+
* @returns {vertexvis.protobuf.stream.Error} Error
|
|
10214
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10215
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10216
|
+
*/
|
|
10217
|
+
Error.decodeDelimited = function decodeDelimited(reader) {
|
|
10218
|
+
if (!(reader instanceof $Reader))
|
|
10219
|
+
reader = new $Reader(reader);
|
|
10220
|
+
return this.decode(reader, reader.uint32());
|
|
10221
|
+
};
|
|
10222
|
+
|
|
10223
|
+
/**
|
|
10224
|
+
* Verifies an Error message.
|
|
10225
|
+
* @function verify
|
|
10226
|
+
* @memberof vertexvis.protobuf.stream.Error
|
|
10227
|
+
* @static
|
|
10228
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10229
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10230
|
+
*/
|
|
10231
|
+
Error.verify = function verify(message) {
|
|
10232
|
+
if (typeof message !== "object" || message === null)
|
|
10233
|
+
return "object expected";
|
|
10234
|
+
if (message.message != null && message.hasOwnProperty("message")) {
|
|
10235
|
+
let error = $root.google.protobuf.StringValue.verify(message.message);
|
|
10236
|
+
if (error)
|
|
10237
|
+
return "message." + error;
|
|
10238
|
+
}
|
|
10239
|
+
if (message.details != null && message.hasOwnProperty("details")) {
|
|
10240
|
+
let error = $root.google.protobuf.StringValue.verify(message.details);
|
|
10241
|
+
if (error)
|
|
10242
|
+
return "details." + error;
|
|
10243
|
+
}
|
|
10244
|
+
return null;
|
|
10245
|
+
};
|
|
10246
|
+
|
|
10247
|
+
/**
|
|
10248
|
+
* Creates an Error message from a plain object. Also converts values to their respective internal types.
|
|
9769
10249
|
* @function fromObject
|
|
9770
10250
|
* @memberof vertexvis.protobuf.stream.Error
|
|
9771
10251
|
* @static
|
|
@@ -10832,6 +11312,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
10832
11312
|
* @property {vertexvis.protobuf.stream.ILoadSceneViewStatePayload|null} [loadSceneViewState] StreamRequest loadSceneViewState
|
|
10833
11313
|
* @property {vertexvis.protobuf.stream.IUpdateCrossSectioningPayload|null} [updateCrossSectioning] StreamRequest updateCrossSectioning
|
|
10834
11314
|
* @property {vertexvis.protobuf.stream.IGetStencilBufferPayload|null} [getStencilBuffer] StreamRequest getStencilBuffer
|
|
11315
|
+
* @property {vertexvis.protobuf.stream.IResetViewPlayload|null} [resetView] StreamRequest resetView
|
|
11316
|
+
* @property {vertexvis.protobuf.stream.IRefreshTokenPayload|null} [refreshToken] StreamRequest refreshToken
|
|
10835
11317
|
*/
|
|
10836
11318
|
|
|
10837
11319
|
/**
|
|
@@ -10993,17 +11475,33 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
10993
11475
|
*/
|
|
10994
11476
|
StreamRequest.prototype.getStencilBuffer = null;
|
|
10995
11477
|
|
|
11478
|
+
/**
|
|
11479
|
+
* StreamRequest resetView.
|
|
11480
|
+
* @member {vertexvis.protobuf.stream.IResetViewPlayload|null|undefined} resetView
|
|
11481
|
+
* @memberof vertexvis.protobuf.stream.StreamRequest
|
|
11482
|
+
* @instance
|
|
11483
|
+
*/
|
|
11484
|
+
StreamRequest.prototype.resetView = null;
|
|
11485
|
+
|
|
11486
|
+
/**
|
|
11487
|
+
* StreamRequest refreshToken.
|
|
11488
|
+
* @member {vertexvis.protobuf.stream.IRefreshTokenPayload|null|undefined} refreshToken
|
|
11489
|
+
* @memberof vertexvis.protobuf.stream.StreamRequest
|
|
11490
|
+
* @instance
|
|
11491
|
+
*/
|
|
11492
|
+
StreamRequest.prototype.refreshToken = null;
|
|
11493
|
+
|
|
10996
11494
|
// OneOf field names bound to virtual getters and setters
|
|
10997
11495
|
let $oneOfFields;
|
|
10998
11496
|
|
|
10999
11497
|
/**
|
|
11000
11498
|
* StreamRequest payload.
|
|
11001
|
-
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|undefined} payload
|
|
11499
|
+
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|"resetView"|"refreshToken"|undefined} payload
|
|
11002
11500
|
* @memberof vertexvis.protobuf.stream.StreamRequest
|
|
11003
11501
|
* @instance
|
|
11004
11502
|
*/
|
|
11005
11503
|
Object.defineProperty(StreamRequest.prototype, "payload", {
|
|
11006
|
-
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer"]),
|
|
11504
|
+
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer", "resetView", "refreshToken"]),
|
|
11007
11505
|
set: $util.oneOfSetter($oneOfFields)
|
|
11008
11506
|
});
|
|
11009
11507
|
|
|
@@ -11067,6 +11565,10 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11067
11565
|
$root.vertexvis.protobuf.stream.UpdateCrossSectioningPayload.encode(message.updateCrossSectioning, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
11068
11566
|
if (message.getStencilBuffer != null && Object.hasOwnProperty.call(message, "getStencilBuffer"))
|
|
11069
11567
|
$root.vertexvis.protobuf.stream.GetStencilBufferPayload.encode(message.getStencilBuffer, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
11568
|
+
if (message.resetView != null && Object.hasOwnProperty.call(message, "resetView"))
|
|
11569
|
+
$root.vertexvis.protobuf.stream.ResetViewPlayload.encode(message.resetView, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
11570
|
+
if (message.refreshToken != null && Object.hasOwnProperty.call(message, "refreshToken"))
|
|
11571
|
+
$root.vertexvis.protobuf.stream.RefreshTokenPayload.encode(message.refreshToken, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
11070
11572
|
return writer;
|
|
11071
11573
|
};
|
|
11072
11574
|
|
|
@@ -11155,6 +11657,12 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11155
11657
|
case 18:
|
|
11156
11658
|
message.getStencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferPayload.decode(reader, reader.uint32());
|
|
11157
11659
|
break;
|
|
11660
|
+
case 19:
|
|
11661
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.decode(reader, reader.uint32());
|
|
11662
|
+
break;
|
|
11663
|
+
case 20:
|
|
11664
|
+
message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenPayload.decode(reader, reader.uint32());
|
|
11665
|
+
break;
|
|
11158
11666
|
default:
|
|
11159
11667
|
reader.skipType(tag & 7);
|
|
11160
11668
|
break;
|
|
@@ -11364,6 +11872,26 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11364
11872
|
return "getStencilBuffer." + error;
|
|
11365
11873
|
}
|
|
11366
11874
|
}
|
|
11875
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
11876
|
+
if (properties.payload === 1)
|
|
11877
|
+
return "payload: multiple values";
|
|
11878
|
+
properties.payload = 1;
|
|
11879
|
+
{
|
|
11880
|
+
let error = $root.vertexvis.protobuf.stream.ResetViewPlayload.verify(message.resetView);
|
|
11881
|
+
if (error)
|
|
11882
|
+
return "resetView." + error;
|
|
11883
|
+
}
|
|
11884
|
+
}
|
|
11885
|
+
if (message.refreshToken != null && message.hasOwnProperty("refreshToken")) {
|
|
11886
|
+
if (properties.payload === 1)
|
|
11887
|
+
return "payload: multiple values";
|
|
11888
|
+
properties.payload = 1;
|
|
11889
|
+
{
|
|
11890
|
+
let error = $root.vertexvis.protobuf.stream.RefreshTokenPayload.verify(message.refreshToken);
|
|
11891
|
+
if (error)
|
|
11892
|
+
return "refreshToken." + error;
|
|
11893
|
+
}
|
|
11894
|
+
}
|
|
11367
11895
|
return null;
|
|
11368
11896
|
};
|
|
11369
11897
|
|
|
@@ -11469,6 +11997,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11469
11997
|
throw TypeError(".vertexvis.protobuf.stream.StreamRequest.getStencilBuffer: object expected");
|
|
11470
11998
|
message.getStencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferPayload.fromObject(object.getStencilBuffer);
|
|
11471
11999
|
}
|
|
12000
|
+
if (object.resetView != null) {
|
|
12001
|
+
if (typeof object.resetView !== "object")
|
|
12002
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamRequest.resetView: object expected");
|
|
12003
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.fromObject(object.resetView);
|
|
12004
|
+
}
|
|
12005
|
+
if (object.refreshToken != null) {
|
|
12006
|
+
if (typeof object.refreshToken !== "object")
|
|
12007
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamRequest.refreshToken: object expected");
|
|
12008
|
+
message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenPayload.fromObject(object.refreshToken);
|
|
12009
|
+
}
|
|
11472
12010
|
return message;
|
|
11473
12011
|
};
|
|
11474
12012
|
|
|
@@ -11574,6 +12112,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11574
12112
|
if (options.oneofs)
|
|
11575
12113
|
object.payload = "getStencilBuffer";
|
|
11576
12114
|
}
|
|
12115
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
12116
|
+
object.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.toObject(message.resetView, options);
|
|
12117
|
+
if (options.oneofs)
|
|
12118
|
+
object.payload = "resetView";
|
|
12119
|
+
}
|
|
12120
|
+
if (message.refreshToken != null && message.hasOwnProperty("refreshToken")) {
|
|
12121
|
+
object.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenPayload.toObject(message.refreshToken, options);
|
|
12122
|
+
if (options.oneofs)
|
|
12123
|
+
object.payload = "refreshToken";
|
|
12124
|
+
}
|
|
11577
12125
|
return object;
|
|
11578
12126
|
};
|
|
11579
12127
|
|
|
@@ -13740,6 +14288,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13740
14288
|
* @property {Uint8Array|null} [image] DrawFramePayload image
|
|
13741
14289
|
* @property {Array.<string>|null} [frameCorrelationIds] DrawFramePayload frameCorrelationIds
|
|
13742
14290
|
* @property {google.protobuf.IBytesValue|null} [depthBuffer] DrawFramePayload depthBuffer
|
|
14291
|
+
* @property {google.protobuf.IBytesValue|null} [featureMap] DrawFramePayload featureMap
|
|
13743
14292
|
*/
|
|
13744
14293
|
|
|
13745
14294
|
/**
|
|
@@ -13806,6 +14355,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13806
14355
|
*/
|
|
13807
14356
|
DrawFramePayload.prototype.depthBuffer = null;
|
|
13808
14357
|
|
|
14358
|
+
/**
|
|
14359
|
+
* DrawFramePayload featureMap.
|
|
14360
|
+
* @member {google.protobuf.IBytesValue|null|undefined} featureMap
|
|
14361
|
+
* @memberof vertexvis.protobuf.stream.DrawFramePayload
|
|
14362
|
+
* @instance
|
|
14363
|
+
*/
|
|
14364
|
+
DrawFramePayload.prototype.featureMap = null;
|
|
14365
|
+
|
|
13809
14366
|
/**
|
|
13810
14367
|
* Creates a new DrawFramePayload instance using the specified properties.
|
|
13811
14368
|
* @function create
|
|
@@ -13843,6 +14400,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13843
14400
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.frameCorrelationIds[i]);
|
|
13844
14401
|
if (message.depthBuffer != null && Object.hasOwnProperty.call(message, "depthBuffer"))
|
|
13845
14402
|
$root.google.protobuf.BytesValue.encode(message.depthBuffer, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
14403
|
+
if (message.featureMap != null && Object.hasOwnProperty.call(message, "featureMap"))
|
|
14404
|
+
$root.google.protobuf.BytesValue.encode(message.featureMap, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
13846
14405
|
return writer;
|
|
13847
14406
|
};
|
|
13848
14407
|
|
|
@@ -13897,6 +14456,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13897
14456
|
case 6:
|
|
13898
14457
|
message.depthBuffer = $root.google.protobuf.BytesValue.decode(reader, reader.uint32());
|
|
13899
14458
|
break;
|
|
14459
|
+
case 7:
|
|
14460
|
+
message.featureMap = $root.google.protobuf.BytesValue.decode(reader, reader.uint32());
|
|
14461
|
+
break;
|
|
13900
14462
|
default:
|
|
13901
14463
|
reader.skipType(tag & 7);
|
|
13902
14464
|
break;
|
|
@@ -13960,6 +14522,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13960
14522
|
if (error)
|
|
13961
14523
|
return "depthBuffer." + error;
|
|
13962
14524
|
}
|
|
14525
|
+
if (message.featureMap != null && message.hasOwnProperty("featureMap")) {
|
|
14526
|
+
let error = $root.google.protobuf.BytesValue.verify(message.featureMap);
|
|
14527
|
+
if (error)
|
|
14528
|
+
return "featureMap." + error;
|
|
14529
|
+
}
|
|
13963
14530
|
return null;
|
|
13964
14531
|
};
|
|
13965
14532
|
|
|
@@ -14004,6 +14571,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14004
14571
|
throw TypeError(".vertexvis.protobuf.stream.DrawFramePayload.depthBuffer: object expected");
|
|
14005
14572
|
message.depthBuffer = $root.google.protobuf.BytesValue.fromObject(object.depthBuffer);
|
|
14006
14573
|
}
|
|
14574
|
+
if (object.featureMap != null) {
|
|
14575
|
+
if (typeof object.featureMap !== "object")
|
|
14576
|
+
throw TypeError(".vertexvis.protobuf.stream.DrawFramePayload.featureMap: object expected");
|
|
14577
|
+
message.featureMap = $root.google.protobuf.BytesValue.fromObject(object.featureMap);
|
|
14578
|
+
}
|
|
14007
14579
|
return message;
|
|
14008
14580
|
};
|
|
14009
14581
|
|
|
@@ -14034,6 +14606,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14034
14606
|
object.image = $util.newBuffer(object.image);
|
|
14035
14607
|
}
|
|
14036
14608
|
object.depthBuffer = null;
|
|
14609
|
+
object.featureMap = null;
|
|
14037
14610
|
}
|
|
14038
14611
|
if (message.sequenceNumber != null && message.hasOwnProperty("sequenceNumber"))
|
|
14039
14612
|
object.sequenceNumber = message.sequenceNumber;
|
|
@@ -14050,6 +14623,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14050
14623
|
}
|
|
14051
14624
|
if (message.depthBuffer != null && message.hasOwnProperty("depthBuffer"))
|
|
14052
14625
|
object.depthBuffer = $root.google.protobuf.BytesValue.toObject(message.depthBuffer, options);
|
|
14626
|
+
if (message.featureMap != null && message.hasOwnProperty("featureMap"))
|
|
14627
|
+
object.featureMap = $root.google.protobuf.BytesValue.toObject(message.featureMap, options);
|
|
14053
14628
|
return object;
|
|
14054
14629
|
};
|
|
14055
14630
|
|
|
@@ -15270,25 +15845,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15270
15845
|
return LoadSceneViewStatePayload;
|
|
15271
15846
|
})();
|
|
15272
15847
|
|
|
15273
|
-
stream.
|
|
15848
|
+
stream.ResetViewPlayload = (function() {
|
|
15274
15849
|
|
|
15275
15850
|
/**
|
|
15276
|
-
* Properties of
|
|
15851
|
+
* Properties of a ResetViewPlayload.
|
|
15277
15852
|
* @memberof vertexvis.protobuf.stream
|
|
15278
|
-
* @interface
|
|
15279
|
-
* @property {
|
|
15280
|
-
* @property {
|
|
15853
|
+
* @interface IResetViewPlayload
|
|
15854
|
+
* @property {google.protobuf.IStringValue|null} [frameCorrelationId] ResetViewPlayload frameCorrelationId
|
|
15855
|
+
* @property {boolean|null} [includeCamera] ResetViewPlayload includeCamera
|
|
15281
15856
|
*/
|
|
15282
15857
|
|
|
15283
15858
|
/**
|
|
15284
|
-
* Constructs a new
|
|
15859
|
+
* Constructs a new ResetViewPlayload.
|
|
15285
15860
|
* @memberof vertexvis.protobuf.stream
|
|
15286
|
-
* @classdesc Represents
|
|
15287
|
-
* @implements
|
|
15861
|
+
* @classdesc Represents a ResetViewPlayload.
|
|
15862
|
+
* @implements IResetViewPlayload
|
|
15288
15863
|
* @constructor
|
|
15289
|
-
* @param {vertexvis.protobuf.stream.
|
|
15864
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload=} [properties] Properties to set
|
|
15290
15865
|
*/
|
|
15291
|
-
function
|
|
15866
|
+
function ResetViewPlayload(properties) {
|
|
15292
15867
|
if (properties)
|
|
15293
15868
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15294
15869
|
if (properties[keys[i]] != null)
|
|
@@ -15296,28 +15871,243 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15296
15871
|
}
|
|
15297
15872
|
|
|
15298
15873
|
/**
|
|
15299
|
-
*
|
|
15300
|
-
* @member {
|
|
15301
|
-
* @memberof vertexvis.protobuf.stream.
|
|
15874
|
+
* ResetViewPlayload frameCorrelationId.
|
|
15875
|
+
* @member {google.protobuf.IStringValue|null|undefined} frameCorrelationId
|
|
15876
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15302
15877
|
* @instance
|
|
15303
15878
|
*/
|
|
15304
|
-
|
|
15879
|
+
ResetViewPlayload.prototype.frameCorrelationId = null;
|
|
15305
15880
|
|
|
15306
15881
|
/**
|
|
15307
|
-
*
|
|
15308
|
-
* @member {
|
|
15309
|
-
* @memberof vertexvis.protobuf.stream.
|
|
15882
|
+
* ResetViewPlayload includeCamera.
|
|
15883
|
+
* @member {boolean} includeCamera
|
|
15884
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15310
15885
|
* @instance
|
|
15311
15886
|
*/
|
|
15312
|
-
|
|
15887
|
+
ResetViewPlayload.prototype.includeCamera = false;
|
|
15313
15888
|
|
|
15314
15889
|
/**
|
|
15315
|
-
* Creates a new
|
|
15890
|
+
* Creates a new ResetViewPlayload instance using the specified properties.
|
|
15316
15891
|
* @function create
|
|
15317
|
-
* @memberof vertexvis.protobuf.stream.
|
|
15892
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15318
15893
|
* @static
|
|
15319
|
-
* @param {vertexvis.protobuf.stream.
|
|
15320
|
-
* @returns {vertexvis.protobuf.stream.
|
|
15894
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload=} [properties] Properties to set
|
|
15895
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload instance
|
|
15896
|
+
*/
|
|
15897
|
+
ResetViewPlayload.create = function create(properties) {
|
|
15898
|
+
return new ResetViewPlayload(properties);
|
|
15899
|
+
};
|
|
15900
|
+
|
|
15901
|
+
/**
|
|
15902
|
+
* Encodes the specified ResetViewPlayload message. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewPlayload.verify|verify} messages.
|
|
15903
|
+
* @function encode
|
|
15904
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15905
|
+
* @static
|
|
15906
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload} message ResetViewPlayload message or plain object to encode
|
|
15907
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15908
|
+
* @returns {$protobuf.Writer} Writer
|
|
15909
|
+
*/
|
|
15910
|
+
ResetViewPlayload.encode = function encode(message, writer) {
|
|
15911
|
+
if (!writer)
|
|
15912
|
+
writer = $Writer.create();
|
|
15913
|
+
if (message.frameCorrelationId != null && Object.hasOwnProperty.call(message, "frameCorrelationId"))
|
|
15914
|
+
$root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15915
|
+
if (message.includeCamera != null && Object.hasOwnProperty.call(message, "includeCamera"))
|
|
15916
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeCamera);
|
|
15917
|
+
return writer;
|
|
15918
|
+
};
|
|
15919
|
+
|
|
15920
|
+
/**
|
|
15921
|
+
* Encodes the specified ResetViewPlayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewPlayload.verify|verify} messages.
|
|
15922
|
+
* @function encodeDelimited
|
|
15923
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15924
|
+
* @static
|
|
15925
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload} message ResetViewPlayload message or plain object to encode
|
|
15926
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15927
|
+
* @returns {$protobuf.Writer} Writer
|
|
15928
|
+
*/
|
|
15929
|
+
ResetViewPlayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15930
|
+
return this.encode(message, writer).ldelim();
|
|
15931
|
+
};
|
|
15932
|
+
|
|
15933
|
+
/**
|
|
15934
|
+
* Decodes a ResetViewPlayload message from the specified reader or buffer.
|
|
15935
|
+
* @function decode
|
|
15936
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15937
|
+
* @static
|
|
15938
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15939
|
+
* @param {number} [length] Message length if known beforehand
|
|
15940
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
15941
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15942
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15943
|
+
*/
|
|
15944
|
+
ResetViewPlayload.decode = function decode(reader, length) {
|
|
15945
|
+
if (!(reader instanceof $Reader))
|
|
15946
|
+
reader = $Reader.create(reader);
|
|
15947
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ResetViewPlayload();
|
|
15948
|
+
while (reader.pos < end) {
|
|
15949
|
+
let tag = reader.uint32();
|
|
15950
|
+
switch (tag >>> 3) {
|
|
15951
|
+
case 1:
|
|
15952
|
+
message.frameCorrelationId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
15953
|
+
break;
|
|
15954
|
+
case 2:
|
|
15955
|
+
message.includeCamera = reader.bool();
|
|
15956
|
+
break;
|
|
15957
|
+
default:
|
|
15958
|
+
reader.skipType(tag & 7);
|
|
15959
|
+
break;
|
|
15960
|
+
}
|
|
15961
|
+
}
|
|
15962
|
+
return message;
|
|
15963
|
+
};
|
|
15964
|
+
|
|
15965
|
+
/**
|
|
15966
|
+
* Decodes a ResetViewPlayload message from the specified reader or buffer, length delimited.
|
|
15967
|
+
* @function decodeDelimited
|
|
15968
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15969
|
+
* @static
|
|
15970
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15971
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
15972
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15973
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15974
|
+
*/
|
|
15975
|
+
ResetViewPlayload.decodeDelimited = function decodeDelimited(reader) {
|
|
15976
|
+
if (!(reader instanceof $Reader))
|
|
15977
|
+
reader = new $Reader(reader);
|
|
15978
|
+
return this.decode(reader, reader.uint32());
|
|
15979
|
+
};
|
|
15980
|
+
|
|
15981
|
+
/**
|
|
15982
|
+
* Verifies a ResetViewPlayload message.
|
|
15983
|
+
* @function verify
|
|
15984
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15985
|
+
* @static
|
|
15986
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15987
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15988
|
+
*/
|
|
15989
|
+
ResetViewPlayload.verify = function verify(message) {
|
|
15990
|
+
if (typeof message !== "object" || message === null)
|
|
15991
|
+
return "object expected";
|
|
15992
|
+
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId")) {
|
|
15993
|
+
let error = $root.google.protobuf.StringValue.verify(message.frameCorrelationId);
|
|
15994
|
+
if (error)
|
|
15995
|
+
return "frameCorrelationId." + error;
|
|
15996
|
+
}
|
|
15997
|
+
if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
|
|
15998
|
+
if (typeof message.includeCamera !== "boolean")
|
|
15999
|
+
return "includeCamera: boolean expected";
|
|
16000
|
+
return null;
|
|
16001
|
+
};
|
|
16002
|
+
|
|
16003
|
+
/**
|
|
16004
|
+
* Creates a ResetViewPlayload message from a plain object. Also converts values to their respective internal types.
|
|
16005
|
+
* @function fromObject
|
|
16006
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
16007
|
+
* @static
|
|
16008
|
+
* @param {Object.<string,*>} object Plain object
|
|
16009
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
16010
|
+
*/
|
|
16011
|
+
ResetViewPlayload.fromObject = function fromObject(object) {
|
|
16012
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ResetViewPlayload)
|
|
16013
|
+
return object;
|
|
16014
|
+
let message = new $root.vertexvis.protobuf.stream.ResetViewPlayload();
|
|
16015
|
+
if (object.frameCorrelationId != null) {
|
|
16016
|
+
if (typeof object.frameCorrelationId !== "object")
|
|
16017
|
+
throw TypeError(".vertexvis.protobuf.stream.ResetViewPlayload.frameCorrelationId: object expected");
|
|
16018
|
+
message.frameCorrelationId = $root.google.protobuf.StringValue.fromObject(object.frameCorrelationId);
|
|
16019
|
+
}
|
|
16020
|
+
if (object.includeCamera != null)
|
|
16021
|
+
message.includeCamera = Boolean(object.includeCamera);
|
|
16022
|
+
return message;
|
|
16023
|
+
};
|
|
16024
|
+
|
|
16025
|
+
/**
|
|
16026
|
+
* Creates a plain object from a ResetViewPlayload message. Also converts values to other types if specified.
|
|
16027
|
+
* @function toObject
|
|
16028
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
16029
|
+
* @static
|
|
16030
|
+
* @param {vertexvis.protobuf.stream.ResetViewPlayload} message ResetViewPlayload
|
|
16031
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16032
|
+
* @returns {Object.<string,*>} Plain object
|
|
16033
|
+
*/
|
|
16034
|
+
ResetViewPlayload.toObject = function toObject(message, options) {
|
|
16035
|
+
if (!options)
|
|
16036
|
+
options = {};
|
|
16037
|
+
let object = {};
|
|
16038
|
+
if (options.defaults) {
|
|
16039
|
+
object.frameCorrelationId = null;
|
|
16040
|
+
object.includeCamera = false;
|
|
16041
|
+
}
|
|
16042
|
+
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
|
|
16043
|
+
object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
|
|
16044
|
+
if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
|
|
16045
|
+
object.includeCamera = message.includeCamera;
|
|
16046
|
+
return object;
|
|
16047
|
+
};
|
|
16048
|
+
|
|
16049
|
+
/**
|
|
16050
|
+
* Converts this ResetViewPlayload to JSON.
|
|
16051
|
+
* @function toJSON
|
|
16052
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
16053
|
+
* @instance
|
|
16054
|
+
* @returns {Object.<string,*>} JSON object
|
|
16055
|
+
*/
|
|
16056
|
+
ResetViewPlayload.prototype.toJSON = function toJSON() {
|
|
16057
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
16058
|
+
};
|
|
16059
|
+
|
|
16060
|
+
return ResetViewPlayload;
|
|
16061
|
+
})();
|
|
16062
|
+
|
|
16063
|
+
stream.UpdateCrossSectioningPayload = (function() {
|
|
16064
|
+
|
|
16065
|
+
/**
|
|
16066
|
+
* Properties of an UpdateCrossSectioningPayload.
|
|
16067
|
+
* @memberof vertexvis.protobuf.stream
|
|
16068
|
+
* @interface IUpdateCrossSectioningPayload
|
|
16069
|
+
* @property {vertexvis.protobuf.stream.ICrossSectioning|null} [crossSectioning] UpdateCrossSectioningPayload crossSectioning
|
|
16070
|
+
* @property {google.protobuf.IStringValue|null} [frameCorrelationId] UpdateCrossSectioningPayload frameCorrelationId
|
|
16071
|
+
*/
|
|
16072
|
+
|
|
16073
|
+
/**
|
|
16074
|
+
* Constructs a new UpdateCrossSectioningPayload.
|
|
16075
|
+
* @memberof vertexvis.protobuf.stream
|
|
16076
|
+
* @classdesc Represents an UpdateCrossSectioningPayload.
|
|
16077
|
+
* @implements IUpdateCrossSectioningPayload
|
|
16078
|
+
* @constructor
|
|
16079
|
+
* @param {vertexvis.protobuf.stream.IUpdateCrossSectioningPayload=} [properties] Properties to set
|
|
16080
|
+
*/
|
|
16081
|
+
function UpdateCrossSectioningPayload(properties) {
|
|
16082
|
+
if (properties)
|
|
16083
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16084
|
+
if (properties[keys[i]] != null)
|
|
16085
|
+
this[keys[i]] = properties[keys[i]];
|
|
16086
|
+
}
|
|
16087
|
+
|
|
16088
|
+
/**
|
|
16089
|
+
* UpdateCrossSectioningPayload crossSectioning.
|
|
16090
|
+
* @member {vertexvis.protobuf.stream.ICrossSectioning|null|undefined} crossSectioning
|
|
16091
|
+
* @memberof vertexvis.protobuf.stream.UpdateCrossSectioningPayload
|
|
16092
|
+
* @instance
|
|
16093
|
+
*/
|
|
16094
|
+
UpdateCrossSectioningPayload.prototype.crossSectioning = null;
|
|
16095
|
+
|
|
16096
|
+
/**
|
|
16097
|
+
* UpdateCrossSectioningPayload frameCorrelationId.
|
|
16098
|
+
* @member {google.protobuf.IStringValue|null|undefined} frameCorrelationId
|
|
16099
|
+
* @memberof vertexvis.protobuf.stream.UpdateCrossSectioningPayload
|
|
16100
|
+
* @instance
|
|
16101
|
+
*/
|
|
16102
|
+
UpdateCrossSectioningPayload.prototype.frameCorrelationId = null;
|
|
16103
|
+
|
|
16104
|
+
/**
|
|
16105
|
+
* Creates a new UpdateCrossSectioningPayload instance using the specified properties.
|
|
16106
|
+
* @function create
|
|
16107
|
+
* @memberof vertexvis.protobuf.stream.UpdateCrossSectioningPayload
|
|
16108
|
+
* @static
|
|
16109
|
+
* @param {vertexvis.protobuf.stream.IUpdateCrossSectioningPayload=} [properties] Properties to set
|
|
16110
|
+
* @returns {vertexvis.protobuf.stream.UpdateCrossSectioningPayload} UpdateCrossSectioningPayload instance
|
|
15321
16111
|
*/
|
|
15322
16112
|
UpdateCrossSectioningPayload.create = function create(properties) {
|
|
15323
16113
|
return new UpdateCrossSectioningPayload(properties);
|
|
@@ -15453,60 +16243,247 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15453
16243
|
};
|
|
15454
16244
|
|
|
15455
16245
|
/**
|
|
15456
|
-
* Creates a plain object from an UpdateCrossSectioningPayload message. Also converts values to other types if specified.
|
|
16246
|
+
* Creates a plain object from an UpdateCrossSectioningPayload message. Also converts values to other types if specified.
|
|
16247
|
+
* @function toObject
|
|
16248
|
+
* @memberof vertexvis.protobuf.stream.UpdateCrossSectioningPayload
|
|
16249
|
+
* @static
|
|
16250
|
+
* @param {vertexvis.protobuf.stream.UpdateCrossSectioningPayload} message UpdateCrossSectioningPayload
|
|
16251
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16252
|
+
* @returns {Object.<string,*>} Plain object
|
|
16253
|
+
*/
|
|
16254
|
+
UpdateCrossSectioningPayload.toObject = function toObject(message, options) {
|
|
16255
|
+
if (!options)
|
|
16256
|
+
options = {};
|
|
16257
|
+
let object = {};
|
|
16258
|
+
if (options.defaults) {
|
|
16259
|
+
object.crossSectioning = null;
|
|
16260
|
+
object.frameCorrelationId = null;
|
|
16261
|
+
}
|
|
16262
|
+
if (message.crossSectioning != null && message.hasOwnProperty("crossSectioning"))
|
|
16263
|
+
object.crossSectioning = $root.vertexvis.protobuf.stream.CrossSectioning.toObject(message.crossSectioning, options);
|
|
16264
|
+
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
|
|
16265
|
+
object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
|
|
16266
|
+
return object;
|
|
16267
|
+
};
|
|
16268
|
+
|
|
16269
|
+
/**
|
|
16270
|
+
* Converts this UpdateCrossSectioningPayload to JSON.
|
|
16271
|
+
* @function toJSON
|
|
16272
|
+
* @memberof vertexvis.protobuf.stream.UpdateCrossSectioningPayload
|
|
16273
|
+
* @instance
|
|
16274
|
+
* @returns {Object.<string,*>} JSON object
|
|
16275
|
+
*/
|
|
16276
|
+
UpdateCrossSectioningPayload.prototype.toJSON = function toJSON() {
|
|
16277
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
16278
|
+
};
|
|
16279
|
+
|
|
16280
|
+
return UpdateCrossSectioningPayload;
|
|
16281
|
+
})();
|
|
16282
|
+
|
|
16283
|
+
stream.GetStencilBufferPayload = (function() {
|
|
16284
|
+
|
|
16285
|
+
/**
|
|
16286
|
+
* Properties of a GetStencilBufferPayload.
|
|
16287
|
+
* @memberof vertexvis.protobuf.stream
|
|
16288
|
+
* @interface IGetStencilBufferPayload
|
|
16289
|
+
* @property {boolean|null} [includeDepthBuffer] GetStencilBufferPayload includeDepthBuffer
|
|
16290
|
+
*/
|
|
16291
|
+
|
|
16292
|
+
/**
|
|
16293
|
+
* Constructs a new GetStencilBufferPayload.
|
|
16294
|
+
* @memberof vertexvis.protobuf.stream
|
|
16295
|
+
* @classdesc Represents a GetStencilBufferPayload.
|
|
16296
|
+
* @implements IGetStencilBufferPayload
|
|
16297
|
+
* @constructor
|
|
16298
|
+
* @param {vertexvis.protobuf.stream.IGetStencilBufferPayload=} [properties] Properties to set
|
|
16299
|
+
*/
|
|
16300
|
+
function GetStencilBufferPayload(properties) {
|
|
16301
|
+
if (properties)
|
|
16302
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16303
|
+
if (properties[keys[i]] != null)
|
|
16304
|
+
this[keys[i]] = properties[keys[i]];
|
|
16305
|
+
}
|
|
16306
|
+
|
|
16307
|
+
/**
|
|
16308
|
+
* GetStencilBufferPayload includeDepthBuffer.
|
|
16309
|
+
* @member {boolean} includeDepthBuffer
|
|
16310
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
16311
|
+
* @instance
|
|
16312
|
+
*/
|
|
16313
|
+
GetStencilBufferPayload.prototype.includeDepthBuffer = false;
|
|
16314
|
+
|
|
16315
|
+
/**
|
|
16316
|
+
* Creates a new GetStencilBufferPayload instance using the specified properties.
|
|
16317
|
+
* @function create
|
|
16318
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
16319
|
+
* @static
|
|
16320
|
+
* @param {vertexvis.protobuf.stream.IGetStencilBufferPayload=} [properties] Properties to set
|
|
16321
|
+
* @returns {vertexvis.protobuf.stream.GetStencilBufferPayload} GetStencilBufferPayload instance
|
|
16322
|
+
*/
|
|
16323
|
+
GetStencilBufferPayload.create = function create(properties) {
|
|
16324
|
+
return new GetStencilBufferPayload(properties);
|
|
16325
|
+
};
|
|
16326
|
+
|
|
16327
|
+
/**
|
|
16328
|
+
* Encodes the specified GetStencilBufferPayload message. Does not implicitly {@link vertexvis.protobuf.stream.GetStencilBufferPayload.verify|verify} messages.
|
|
16329
|
+
* @function encode
|
|
16330
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
16331
|
+
* @static
|
|
16332
|
+
* @param {vertexvis.protobuf.stream.IGetStencilBufferPayload} message GetStencilBufferPayload message or plain object to encode
|
|
16333
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16334
|
+
* @returns {$protobuf.Writer} Writer
|
|
16335
|
+
*/
|
|
16336
|
+
GetStencilBufferPayload.encode = function encode(message, writer) {
|
|
16337
|
+
if (!writer)
|
|
16338
|
+
writer = $Writer.create();
|
|
16339
|
+
if (message.includeDepthBuffer != null && Object.hasOwnProperty.call(message, "includeDepthBuffer"))
|
|
16340
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.includeDepthBuffer);
|
|
16341
|
+
return writer;
|
|
16342
|
+
};
|
|
16343
|
+
|
|
16344
|
+
/**
|
|
16345
|
+
* Encodes the specified GetStencilBufferPayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.GetStencilBufferPayload.verify|verify} messages.
|
|
16346
|
+
* @function encodeDelimited
|
|
16347
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
16348
|
+
* @static
|
|
16349
|
+
* @param {vertexvis.protobuf.stream.IGetStencilBufferPayload} message GetStencilBufferPayload message or plain object to encode
|
|
16350
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16351
|
+
* @returns {$protobuf.Writer} Writer
|
|
16352
|
+
*/
|
|
16353
|
+
GetStencilBufferPayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16354
|
+
return this.encode(message, writer).ldelim();
|
|
16355
|
+
};
|
|
16356
|
+
|
|
16357
|
+
/**
|
|
16358
|
+
* Decodes a GetStencilBufferPayload message from the specified reader or buffer.
|
|
16359
|
+
* @function decode
|
|
16360
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
16361
|
+
* @static
|
|
16362
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16363
|
+
* @param {number} [length] Message length if known beforehand
|
|
16364
|
+
* @returns {vertexvis.protobuf.stream.GetStencilBufferPayload} GetStencilBufferPayload
|
|
16365
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16366
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16367
|
+
*/
|
|
16368
|
+
GetStencilBufferPayload.decode = function decode(reader, length) {
|
|
16369
|
+
if (!(reader instanceof $Reader))
|
|
16370
|
+
reader = $Reader.create(reader);
|
|
16371
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.GetStencilBufferPayload();
|
|
16372
|
+
while (reader.pos < end) {
|
|
16373
|
+
let tag = reader.uint32();
|
|
16374
|
+
switch (tag >>> 3) {
|
|
16375
|
+
case 1:
|
|
16376
|
+
message.includeDepthBuffer = reader.bool();
|
|
16377
|
+
break;
|
|
16378
|
+
default:
|
|
16379
|
+
reader.skipType(tag & 7);
|
|
16380
|
+
break;
|
|
16381
|
+
}
|
|
16382
|
+
}
|
|
16383
|
+
return message;
|
|
16384
|
+
};
|
|
16385
|
+
|
|
16386
|
+
/**
|
|
16387
|
+
* Decodes a GetStencilBufferPayload message from the specified reader or buffer, length delimited.
|
|
16388
|
+
* @function decodeDelimited
|
|
16389
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
16390
|
+
* @static
|
|
16391
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16392
|
+
* @returns {vertexvis.protobuf.stream.GetStencilBufferPayload} GetStencilBufferPayload
|
|
16393
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16394
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16395
|
+
*/
|
|
16396
|
+
GetStencilBufferPayload.decodeDelimited = function decodeDelimited(reader) {
|
|
16397
|
+
if (!(reader instanceof $Reader))
|
|
16398
|
+
reader = new $Reader(reader);
|
|
16399
|
+
return this.decode(reader, reader.uint32());
|
|
16400
|
+
};
|
|
16401
|
+
|
|
16402
|
+
/**
|
|
16403
|
+
* Verifies a GetStencilBufferPayload message.
|
|
16404
|
+
* @function verify
|
|
16405
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
16406
|
+
* @static
|
|
16407
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
16408
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16409
|
+
*/
|
|
16410
|
+
GetStencilBufferPayload.verify = function verify(message) {
|
|
16411
|
+
if (typeof message !== "object" || message === null)
|
|
16412
|
+
return "object expected";
|
|
16413
|
+
if (message.includeDepthBuffer != null && message.hasOwnProperty("includeDepthBuffer"))
|
|
16414
|
+
if (typeof message.includeDepthBuffer !== "boolean")
|
|
16415
|
+
return "includeDepthBuffer: boolean expected";
|
|
16416
|
+
return null;
|
|
16417
|
+
};
|
|
16418
|
+
|
|
16419
|
+
/**
|
|
16420
|
+
* Creates a GetStencilBufferPayload message from a plain object. Also converts values to their respective internal types.
|
|
16421
|
+
* @function fromObject
|
|
16422
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
16423
|
+
* @static
|
|
16424
|
+
* @param {Object.<string,*>} object Plain object
|
|
16425
|
+
* @returns {vertexvis.protobuf.stream.GetStencilBufferPayload} GetStencilBufferPayload
|
|
16426
|
+
*/
|
|
16427
|
+
GetStencilBufferPayload.fromObject = function fromObject(object) {
|
|
16428
|
+
if (object instanceof $root.vertexvis.protobuf.stream.GetStencilBufferPayload)
|
|
16429
|
+
return object;
|
|
16430
|
+
let message = new $root.vertexvis.protobuf.stream.GetStencilBufferPayload();
|
|
16431
|
+
if (object.includeDepthBuffer != null)
|
|
16432
|
+
message.includeDepthBuffer = Boolean(object.includeDepthBuffer);
|
|
16433
|
+
return message;
|
|
16434
|
+
};
|
|
16435
|
+
|
|
16436
|
+
/**
|
|
16437
|
+
* Creates a plain object from a GetStencilBufferPayload message. Also converts values to other types if specified.
|
|
15457
16438
|
* @function toObject
|
|
15458
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16439
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
15459
16440
|
* @static
|
|
15460
|
-
* @param {vertexvis.protobuf.stream.
|
|
16441
|
+
* @param {vertexvis.protobuf.stream.GetStencilBufferPayload} message GetStencilBufferPayload
|
|
15461
16442
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15462
16443
|
* @returns {Object.<string,*>} Plain object
|
|
15463
16444
|
*/
|
|
15464
|
-
|
|
16445
|
+
GetStencilBufferPayload.toObject = function toObject(message, options) {
|
|
15465
16446
|
if (!options)
|
|
15466
16447
|
options = {};
|
|
15467
16448
|
let object = {};
|
|
15468
|
-
if (options.defaults)
|
|
15469
|
-
object.
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
if (message.crossSectioning != null && message.hasOwnProperty("crossSectioning"))
|
|
15473
|
-
object.crossSectioning = $root.vertexvis.protobuf.stream.CrossSectioning.toObject(message.crossSectioning, options);
|
|
15474
|
-
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
|
|
15475
|
-
object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
|
|
16449
|
+
if (options.defaults)
|
|
16450
|
+
object.includeDepthBuffer = false;
|
|
16451
|
+
if (message.includeDepthBuffer != null && message.hasOwnProperty("includeDepthBuffer"))
|
|
16452
|
+
object.includeDepthBuffer = message.includeDepthBuffer;
|
|
15476
16453
|
return object;
|
|
15477
16454
|
};
|
|
15478
16455
|
|
|
15479
16456
|
/**
|
|
15480
|
-
* Converts this
|
|
16457
|
+
* Converts this GetStencilBufferPayload to JSON.
|
|
15481
16458
|
* @function toJSON
|
|
15482
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16459
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
15483
16460
|
* @instance
|
|
15484
16461
|
* @returns {Object.<string,*>} JSON object
|
|
15485
16462
|
*/
|
|
15486
|
-
|
|
16463
|
+
GetStencilBufferPayload.prototype.toJSON = function toJSON() {
|
|
15487
16464
|
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
15488
16465
|
};
|
|
15489
16466
|
|
|
15490
|
-
return
|
|
16467
|
+
return GetStencilBufferPayload;
|
|
15491
16468
|
})();
|
|
15492
16469
|
|
|
15493
|
-
stream.
|
|
16470
|
+
stream.RefreshTokenPayload = (function() {
|
|
15494
16471
|
|
|
15495
16472
|
/**
|
|
15496
|
-
* Properties of a
|
|
16473
|
+
* Properties of a RefreshTokenPayload.
|
|
15497
16474
|
* @memberof vertexvis.protobuf.stream
|
|
15498
|
-
* @interface
|
|
16475
|
+
* @interface IRefreshTokenPayload
|
|
15499
16476
|
*/
|
|
15500
16477
|
|
|
15501
16478
|
/**
|
|
15502
|
-
* Constructs a new
|
|
16479
|
+
* Constructs a new RefreshTokenPayload.
|
|
15503
16480
|
* @memberof vertexvis.protobuf.stream
|
|
15504
|
-
* @classdesc Represents a
|
|
15505
|
-
* @implements
|
|
16481
|
+
* @classdesc Represents a RefreshTokenPayload.
|
|
16482
|
+
* @implements IRefreshTokenPayload
|
|
15506
16483
|
* @constructor
|
|
15507
|
-
* @param {vertexvis.protobuf.stream.
|
|
16484
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenPayload=} [properties] Properties to set
|
|
15508
16485
|
*/
|
|
15509
|
-
function
|
|
16486
|
+
function RefreshTokenPayload(properties) {
|
|
15510
16487
|
if (properties)
|
|
15511
16488
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15512
16489
|
if (properties[keys[i]] != null)
|
|
@@ -15514,60 +16491,60 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15514
16491
|
}
|
|
15515
16492
|
|
|
15516
16493
|
/**
|
|
15517
|
-
* Creates a new
|
|
16494
|
+
* Creates a new RefreshTokenPayload instance using the specified properties.
|
|
15518
16495
|
* @function create
|
|
15519
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16496
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15520
16497
|
* @static
|
|
15521
|
-
* @param {vertexvis.protobuf.stream.
|
|
15522
|
-
* @returns {vertexvis.protobuf.stream.
|
|
16498
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenPayload=} [properties] Properties to set
|
|
16499
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload instance
|
|
15523
16500
|
*/
|
|
15524
|
-
|
|
15525
|
-
return new
|
|
16501
|
+
RefreshTokenPayload.create = function create(properties) {
|
|
16502
|
+
return new RefreshTokenPayload(properties);
|
|
15526
16503
|
};
|
|
15527
16504
|
|
|
15528
16505
|
/**
|
|
15529
|
-
* Encodes the specified
|
|
16506
|
+
* Encodes the specified RefreshTokenPayload message. Does not implicitly {@link vertexvis.protobuf.stream.RefreshTokenPayload.verify|verify} messages.
|
|
15530
16507
|
* @function encode
|
|
15531
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16508
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15532
16509
|
* @static
|
|
15533
|
-
* @param {vertexvis.protobuf.stream.
|
|
16510
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenPayload} message RefreshTokenPayload message or plain object to encode
|
|
15534
16511
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15535
16512
|
* @returns {$protobuf.Writer} Writer
|
|
15536
16513
|
*/
|
|
15537
|
-
|
|
16514
|
+
RefreshTokenPayload.encode = function encode(message, writer) {
|
|
15538
16515
|
if (!writer)
|
|
15539
16516
|
writer = $Writer.create();
|
|
15540
16517
|
return writer;
|
|
15541
16518
|
};
|
|
15542
16519
|
|
|
15543
16520
|
/**
|
|
15544
|
-
* Encodes the specified
|
|
16521
|
+
* Encodes the specified RefreshTokenPayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.RefreshTokenPayload.verify|verify} messages.
|
|
15545
16522
|
* @function encodeDelimited
|
|
15546
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16523
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15547
16524
|
* @static
|
|
15548
|
-
* @param {vertexvis.protobuf.stream.
|
|
16525
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenPayload} message RefreshTokenPayload message or plain object to encode
|
|
15549
16526
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15550
16527
|
* @returns {$protobuf.Writer} Writer
|
|
15551
16528
|
*/
|
|
15552
|
-
|
|
16529
|
+
RefreshTokenPayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15553
16530
|
return this.encode(message, writer).ldelim();
|
|
15554
16531
|
};
|
|
15555
16532
|
|
|
15556
16533
|
/**
|
|
15557
|
-
* Decodes a
|
|
16534
|
+
* Decodes a RefreshTokenPayload message from the specified reader or buffer.
|
|
15558
16535
|
* @function decode
|
|
15559
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16536
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15560
16537
|
* @static
|
|
15561
16538
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15562
16539
|
* @param {number} [length] Message length if known beforehand
|
|
15563
|
-
* @returns {vertexvis.protobuf.stream.
|
|
16540
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload
|
|
15564
16541
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15565
16542
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15566
16543
|
*/
|
|
15567
|
-
|
|
16544
|
+
RefreshTokenPayload.decode = function decode(reader, length) {
|
|
15568
16545
|
if (!(reader instanceof $Reader))
|
|
15569
16546
|
reader = $Reader.create(reader);
|
|
15570
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.
|
|
16547
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.RefreshTokenPayload();
|
|
15571
16548
|
while (reader.pos < end) {
|
|
15572
16549
|
let tag = reader.uint32();
|
|
15573
16550
|
switch (tag >>> 3) {
|
|
@@ -15580,74 +16557,74 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15580
16557
|
};
|
|
15581
16558
|
|
|
15582
16559
|
/**
|
|
15583
|
-
* Decodes a
|
|
16560
|
+
* Decodes a RefreshTokenPayload message from the specified reader or buffer, length delimited.
|
|
15584
16561
|
* @function decodeDelimited
|
|
15585
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16562
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15586
16563
|
* @static
|
|
15587
16564
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15588
|
-
* @returns {vertexvis.protobuf.stream.
|
|
16565
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload
|
|
15589
16566
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15590
16567
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15591
16568
|
*/
|
|
15592
|
-
|
|
16569
|
+
RefreshTokenPayload.decodeDelimited = function decodeDelimited(reader) {
|
|
15593
16570
|
if (!(reader instanceof $Reader))
|
|
15594
16571
|
reader = new $Reader(reader);
|
|
15595
16572
|
return this.decode(reader, reader.uint32());
|
|
15596
16573
|
};
|
|
15597
16574
|
|
|
15598
16575
|
/**
|
|
15599
|
-
* Verifies a
|
|
16576
|
+
* Verifies a RefreshTokenPayload message.
|
|
15600
16577
|
* @function verify
|
|
15601
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16578
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15602
16579
|
* @static
|
|
15603
16580
|
* @param {Object.<string,*>} message Plain object to verify
|
|
15604
16581
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15605
16582
|
*/
|
|
15606
|
-
|
|
16583
|
+
RefreshTokenPayload.verify = function verify(message) {
|
|
15607
16584
|
if (typeof message !== "object" || message === null)
|
|
15608
16585
|
return "object expected";
|
|
15609
16586
|
return null;
|
|
15610
16587
|
};
|
|
15611
16588
|
|
|
15612
16589
|
/**
|
|
15613
|
-
* Creates a
|
|
16590
|
+
* Creates a RefreshTokenPayload message from a plain object. Also converts values to their respective internal types.
|
|
15614
16591
|
* @function fromObject
|
|
15615
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16592
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15616
16593
|
* @static
|
|
15617
16594
|
* @param {Object.<string,*>} object Plain object
|
|
15618
|
-
* @returns {vertexvis.protobuf.stream.
|
|
16595
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload
|
|
15619
16596
|
*/
|
|
15620
|
-
|
|
15621
|
-
if (object instanceof $root.vertexvis.protobuf.stream.
|
|
16597
|
+
RefreshTokenPayload.fromObject = function fromObject(object) {
|
|
16598
|
+
if (object instanceof $root.vertexvis.protobuf.stream.RefreshTokenPayload)
|
|
15622
16599
|
return object;
|
|
15623
|
-
return new $root.vertexvis.protobuf.stream.
|
|
16600
|
+
return new $root.vertexvis.protobuf.stream.RefreshTokenPayload();
|
|
15624
16601
|
};
|
|
15625
16602
|
|
|
15626
16603
|
/**
|
|
15627
|
-
* Creates a plain object from a
|
|
16604
|
+
* Creates a plain object from a RefreshTokenPayload message. Also converts values to other types if specified.
|
|
15628
16605
|
* @function toObject
|
|
15629
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16606
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15630
16607
|
* @static
|
|
15631
|
-
* @param {vertexvis.protobuf.stream.
|
|
16608
|
+
* @param {vertexvis.protobuf.stream.RefreshTokenPayload} message RefreshTokenPayload
|
|
15632
16609
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15633
16610
|
* @returns {Object.<string,*>} Plain object
|
|
15634
16611
|
*/
|
|
15635
|
-
|
|
16612
|
+
RefreshTokenPayload.toObject = function toObject() {
|
|
15636
16613
|
return {};
|
|
15637
16614
|
};
|
|
15638
16615
|
|
|
15639
16616
|
/**
|
|
15640
|
-
* Converts this
|
|
16617
|
+
* Converts this RefreshTokenPayload to JSON.
|
|
15641
16618
|
* @function toJSON
|
|
15642
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16619
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15643
16620
|
* @instance
|
|
15644
16621
|
* @returns {Object.<string,*>} JSON object
|
|
15645
16622
|
*/
|
|
15646
|
-
|
|
16623
|
+
RefreshTokenPayload.prototype.toJSON = function toJSON() {
|
|
15647
16624
|
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
15648
16625
|
};
|
|
15649
16626
|
|
|
15650
|
-
return
|
|
16627
|
+
return RefreshTokenPayload;
|
|
15651
16628
|
})();
|
|
15652
16629
|
|
|
15653
16630
|
stream.StreamResponse = (function() {
|
|
@@ -15673,6 +16650,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15673
16650
|
* @property {vertexvis.protobuf.stream.ILoadSceneViewStateResult|null} [loadSceneViewState] StreamResponse loadSceneViewState
|
|
15674
16651
|
* @property {vertexvis.protobuf.stream.IUpdateCrossSectioningResult|null} [updateCrossSectioning] StreamResponse updateCrossSectioning
|
|
15675
16652
|
* @property {vertexvis.protobuf.stream.IGetStencilBufferResult|null} [stencilBuffer] StreamResponse stencilBuffer
|
|
16653
|
+
* @property {vertexvis.protobuf.stream.IResetViewResult|null} [resetView] StreamResponse resetView
|
|
16654
|
+
* @property {vertexvis.protobuf.stream.IRefreshTokenResult|null} [refreshToken] StreamResponse refreshToken
|
|
15676
16655
|
*/
|
|
15677
16656
|
|
|
15678
16657
|
/**
|
|
@@ -15826,17 +16805,33 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15826
16805
|
*/
|
|
15827
16806
|
StreamResponse.prototype.stencilBuffer = null;
|
|
15828
16807
|
|
|
16808
|
+
/**
|
|
16809
|
+
* StreamResponse resetView.
|
|
16810
|
+
* @member {vertexvis.protobuf.stream.IResetViewResult|null|undefined} resetView
|
|
16811
|
+
* @memberof vertexvis.protobuf.stream.StreamResponse
|
|
16812
|
+
* @instance
|
|
16813
|
+
*/
|
|
16814
|
+
StreamResponse.prototype.resetView = null;
|
|
16815
|
+
|
|
16816
|
+
/**
|
|
16817
|
+
* StreamResponse refreshToken.
|
|
16818
|
+
* @member {vertexvis.protobuf.stream.IRefreshTokenResult|null|undefined} refreshToken
|
|
16819
|
+
* @memberof vertexvis.protobuf.stream.StreamResponse
|
|
16820
|
+
* @instance
|
|
16821
|
+
*/
|
|
16822
|
+
StreamResponse.prototype.refreshToken = null;
|
|
16823
|
+
|
|
15829
16824
|
// OneOf field names bound to virtual getters and setters
|
|
15830
16825
|
let $oneOfFields;
|
|
15831
16826
|
|
|
15832
16827
|
/**
|
|
15833
16828
|
* StreamResponse result.
|
|
15834
|
-
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|undefined} result
|
|
16829
|
+
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|"resetView"|"refreshToken"|undefined} result
|
|
15835
16830
|
* @memberof vertexvis.protobuf.stream.StreamResponse
|
|
15836
16831
|
* @instance
|
|
15837
16832
|
*/
|
|
15838
16833
|
Object.defineProperty(StreamResponse.prototype, "result", {
|
|
15839
|
-
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer"]),
|
|
16834
|
+
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer", "resetView", "refreshToken"]),
|
|
15840
16835
|
set: $util.oneOfSetter($oneOfFields)
|
|
15841
16836
|
});
|
|
15842
16837
|
|
|
@@ -15898,6 +16893,10 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15898
16893
|
$root.vertexvis.protobuf.stream.UpdateCrossSectioningResult.encode(message.updateCrossSectioning, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
15899
16894
|
if (message.stencilBuffer != null && Object.hasOwnProperty.call(message, "stencilBuffer"))
|
|
15900
16895
|
$root.vertexvis.protobuf.stream.GetStencilBufferResult.encode(message.stencilBuffer, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
16896
|
+
if (message.resetView != null && Object.hasOwnProperty.call(message, "resetView"))
|
|
16897
|
+
$root.vertexvis.protobuf.stream.ResetViewResult.encode(message.resetView, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
16898
|
+
if (message.refreshToken != null && Object.hasOwnProperty.call(message, "refreshToken"))
|
|
16899
|
+
$root.vertexvis.protobuf.stream.RefreshTokenResult.encode(message.refreshToken, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
15901
16900
|
return writer;
|
|
15902
16901
|
};
|
|
15903
16902
|
|
|
@@ -15983,6 +16982,12 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15983
16982
|
case 17:
|
|
15984
16983
|
message.stencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferResult.decode(reader, reader.uint32());
|
|
15985
16984
|
break;
|
|
16985
|
+
case 18:
|
|
16986
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.decode(reader, reader.uint32());
|
|
16987
|
+
break;
|
|
16988
|
+
case 19:
|
|
16989
|
+
message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenResult.decode(reader, reader.uint32());
|
|
16990
|
+
break;
|
|
15986
16991
|
default:
|
|
15987
16992
|
reader.skipType(tag & 7);
|
|
15988
16993
|
break;
|
|
@@ -16177,6 +17182,26 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16177
17182
|
return "stencilBuffer." + error;
|
|
16178
17183
|
}
|
|
16179
17184
|
}
|
|
17185
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
17186
|
+
if (properties.result === 1)
|
|
17187
|
+
return "result: multiple values";
|
|
17188
|
+
properties.result = 1;
|
|
17189
|
+
{
|
|
17190
|
+
let error = $root.vertexvis.protobuf.stream.ResetViewResult.verify(message.resetView);
|
|
17191
|
+
if (error)
|
|
17192
|
+
return "resetView." + error;
|
|
17193
|
+
}
|
|
17194
|
+
}
|
|
17195
|
+
if (message.refreshToken != null && message.hasOwnProperty("refreshToken")) {
|
|
17196
|
+
if (properties.result === 1)
|
|
17197
|
+
return "result: multiple values";
|
|
17198
|
+
properties.result = 1;
|
|
17199
|
+
{
|
|
17200
|
+
let error = $root.vertexvis.protobuf.stream.RefreshTokenResult.verify(message.refreshToken);
|
|
17201
|
+
if (error)
|
|
17202
|
+
return "refreshToken." + error;
|
|
17203
|
+
}
|
|
17204
|
+
}
|
|
16180
17205
|
return null;
|
|
16181
17206
|
};
|
|
16182
17207
|
|
|
@@ -16277,6 +17302,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16277
17302
|
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.stencilBuffer: object expected");
|
|
16278
17303
|
message.stencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferResult.fromObject(object.stencilBuffer);
|
|
16279
17304
|
}
|
|
17305
|
+
if (object.resetView != null) {
|
|
17306
|
+
if (typeof object.resetView !== "object")
|
|
17307
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.resetView: object expected");
|
|
17308
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.fromObject(object.resetView);
|
|
17309
|
+
}
|
|
17310
|
+
if (object.refreshToken != null) {
|
|
17311
|
+
if (typeof object.refreshToken !== "object")
|
|
17312
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.refreshToken: object expected");
|
|
17313
|
+
message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenResult.fromObject(object.refreshToken);
|
|
17314
|
+
}
|
|
16280
17315
|
return message;
|
|
16281
17316
|
};
|
|
16282
17317
|
|
|
@@ -16376,6 +17411,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16376
17411
|
if (options.oneofs)
|
|
16377
17412
|
object.result = "stencilBuffer";
|
|
16378
17413
|
}
|
|
17414
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
17415
|
+
object.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.toObject(message.resetView, options);
|
|
17416
|
+
if (options.oneofs)
|
|
17417
|
+
object.result = "resetView";
|
|
17418
|
+
}
|
|
17419
|
+
if (message.refreshToken != null && message.hasOwnProperty("refreshToken")) {
|
|
17420
|
+
object.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenResult.toObject(message.refreshToken, options);
|
|
17421
|
+
if (options.oneofs)
|
|
17422
|
+
object.result = "refreshToken";
|
|
17423
|
+
}
|
|
16379
17424
|
return object;
|
|
16380
17425
|
};
|
|
16381
17426
|
|
|
@@ -16404,6 +17449,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16404
17449
|
* @property {vertexvis.protobuf.core.IUuid|null} [sessionId] StartStreamResult sessionId
|
|
16405
17450
|
* @property {string|null} [jwt] StartStreamResult jwt
|
|
16406
17451
|
* @property {vertexvis.protobuf.stream.IOrientation|null} [worldOrientation] StartStreamResult worldOrientation
|
|
17452
|
+
* @property {vertexvis.protobuf.stream.IToken|null} [token] StartStreamResult token
|
|
16407
17453
|
*/
|
|
16408
17454
|
|
|
16409
17455
|
/**
|
|
@@ -16461,6 +17507,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16461
17507
|
*/
|
|
16462
17508
|
StartStreamResult.prototype.worldOrientation = null;
|
|
16463
17509
|
|
|
17510
|
+
/**
|
|
17511
|
+
* StartStreamResult token.
|
|
17512
|
+
* @member {vertexvis.protobuf.stream.IToken|null|undefined} token
|
|
17513
|
+
* @memberof vertexvis.protobuf.stream.StartStreamResult
|
|
17514
|
+
* @instance
|
|
17515
|
+
*/
|
|
17516
|
+
StartStreamResult.prototype.token = null;
|
|
17517
|
+
|
|
16464
17518
|
/**
|
|
16465
17519
|
* Creates a new StartStreamResult instance using the specified properties.
|
|
16466
17520
|
* @function create
|
|
@@ -16495,6 +17549,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16495
17549
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.jwt);
|
|
16496
17550
|
if (message.worldOrientation != null && Object.hasOwnProperty.call(message, "worldOrientation"))
|
|
16497
17551
|
$root.vertexvis.protobuf.stream.Orientation.encode(message.worldOrientation, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
17552
|
+
if (message.token != null && Object.hasOwnProperty.call(message, "token"))
|
|
17553
|
+
$root.vertexvis.protobuf.stream.Token.encode(message.token, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
16498
17554
|
return writer;
|
|
16499
17555
|
};
|
|
16500
17556
|
|
|
@@ -16544,6 +17600,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16544
17600
|
case 5:
|
|
16545
17601
|
message.worldOrientation = $root.vertexvis.protobuf.stream.Orientation.decode(reader, reader.uint32());
|
|
16546
17602
|
break;
|
|
17603
|
+
case 6:
|
|
17604
|
+
message.token = $root.vertexvis.protobuf.stream.Token.decode(reader, reader.uint32());
|
|
17605
|
+
break;
|
|
16547
17606
|
default:
|
|
16548
17607
|
reader.skipType(tag & 7);
|
|
16549
17608
|
break;
|
|
@@ -16602,6 +17661,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16602
17661
|
if (error)
|
|
16603
17662
|
return "worldOrientation." + error;
|
|
16604
17663
|
}
|
|
17664
|
+
if (message.token != null && message.hasOwnProperty("token")) {
|
|
17665
|
+
let error = $root.vertexvis.protobuf.stream.Token.verify(message.token);
|
|
17666
|
+
if (error)
|
|
17667
|
+
return "token." + error;
|
|
17668
|
+
}
|
|
16605
17669
|
return null;
|
|
16606
17670
|
};
|
|
16607
17671
|
|
|
@@ -16639,6 +17703,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16639
17703
|
throw TypeError(".vertexvis.protobuf.stream.StartStreamResult.worldOrientation: object expected");
|
|
16640
17704
|
message.worldOrientation = $root.vertexvis.protobuf.stream.Orientation.fromObject(object.worldOrientation);
|
|
16641
17705
|
}
|
|
17706
|
+
if (object.token != null) {
|
|
17707
|
+
if (typeof object.token !== "object")
|
|
17708
|
+
throw TypeError(".vertexvis.protobuf.stream.StartStreamResult.token: object expected");
|
|
17709
|
+
message.token = $root.vertexvis.protobuf.stream.Token.fromObject(object.token);
|
|
17710
|
+
}
|
|
16642
17711
|
return message;
|
|
16643
17712
|
};
|
|
16644
17713
|
|
|
@@ -16661,6 +17730,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16661
17730
|
object.sessionId = null;
|
|
16662
17731
|
object.jwt = "";
|
|
16663
17732
|
object.worldOrientation = null;
|
|
17733
|
+
object.token = null;
|
|
16664
17734
|
}
|
|
16665
17735
|
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
16666
17736
|
object.streamId = $root.vertexvis.protobuf.core.Uuid.toObject(message.streamId, options);
|
|
@@ -16672,6 +17742,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16672
17742
|
object.jwt = message.jwt;
|
|
16673
17743
|
if (message.worldOrientation != null && message.hasOwnProperty("worldOrientation"))
|
|
16674
17744
|
object.worldOrientation = $root.vertexvis.protobuf.stream.Orientation.toObject(message.worldOrientation, options);
|
|
17745
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
17746
|
+
object.token = $root.vertexvis.protobuf.stream.Token.toObject(message.token, options);
|
|
16675
17747
|
return object;
|
|
16676
17748
|
};
|
|
16677
17749
|
|
|
@@ -17400,6 +18472,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17400
18472
|
* @memberof vertexvis.protobuf.stream
|
|
17401
18473
|
* @interface IReconnectResult
|
|
17402
18474
|
* @property {string|null} [jwt] ReconnectResult jwt
|
|
18475
|
+
* @property {vertexvis.protobuf.stream.IToken|null} [token] ReconnectResult token
|
|
17403
18476
|
*/
|
|
17404
18477
|
|
|
17405
18478
|
/**
|
|
@@ -17425,6 +18498,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17425
18498
|
*/
|
|
17426
18499
|
ReconnectResult.prototype.jwt = "";
|
|
17427
18500
|
|
|
18501
|
+
/**
|
|
18502
|
+
* ReconnectResult token.
|
|
18503
|
+
* @member {vertexvis.protobuf.stream.IToken|null|undefined} token
|
|
18504
|
+
* @memberof vertexvis.protobuf.stream.ReconnectResult
|
|
18505
|
+
* @instance
|
|
18506
|
+
*/
|
|
18507
|
+
ReconnectResult.prototype.token = null;
|
|
18508
|
+
|
|
17428
18509
|
/**
|
|
17429
18510
|
* Creates a new ReconnectResult instance using the specified properties.
|
|
17430
18511
|
* @function create
|
|
@@ -17451,6 +18532,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17451
18532
|
writer = $Writer.create();
|
|
17452
18533
|
if (message.jwt != null && Object.hasOwnProperty.call(message, "jwt"))
|
|
17453
18534
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.jwt);
|
|
18535
|
+
if (message.token != null && Object.hasOwnProperty.call(message, "token"))
|
|
18536
|
+
$root.vertexvis.protobuf.stream.Token.encode(message.token, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
17454
18537
|
return writer;
|
|
17455
18538
|
};
|
|
17456
18539
|
|
|
@@ -17488,6 +18571,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17488
18571
|
case 1:
|
|
17489
18572
|
message.jwt = reader.string();
|
|
17490
18573
|
break;
|
|
18574
|
+
case 2:
|
|
18575
|
+
message.token = $root.vertexvis.protobuf.stream.Token.decode(reader, reader.uint32());
|
|
18576
|
+
break;
|
|
17491
18577
|
default:
|
|
17492
18578
|
reader.skipType(tag & 7);
|
|
17493
18579
|
break;
|
|
@@ -17526,6 +18612,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17526
18612
|
if (message.jwt != null && message.hasOwnProperty("jwt"))
|
|
17527
18613
|
if (!$util.isString(message.jwt))
|
|
17528
18614
|
return "jwt: string expected";
|
|
18615
|
+
if (message.token != null && message.hasOwnProperty("token")) {
|
|
18616
|
+
let error = $root.vertexvis.protobuf.stream.Token.verify(message.token);
|
|
18617
|
+
if (error)
|
|
18618
|
+
return "token." + error;
|
|
18619
|
+
}
|
|
17529
18620
|
return null;
|
|
17530
18621
|
};
|
|
17531
18622
|
|
|
@@ -17543,6 +18634,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17543
18634
|
let message = new $root.vertexvis.protobuf.stream.ReconnectResult();
|
|
17544
18635
|
if (object.jwt != null)
|
|
17545
18636
|
message.jwt = String(object.jwt);
|
|
18637
|
+
if (object.token != null) {
|
|
18638
|
+
if (typeof object.token !== "object")
|
|
18639
|
+
throw TypeError(".vertexvis.protobuf.stream.ReconnectResult.token: object expected");
|
|
18640
|
+
message.token = $root.vertexvis.protobuf.stream.Token.fromObject(object.token);
|
|
18641
|
+
}
|
|
17546
18642
|
return message;
|
|
17547
18643
|
};
|
|
17548
18644
|
|
|
@@ -17559,10 +18655,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17559
18655
|
if (!options)
|
|
17560
18656
|
options = {};
|
|
17561
18657
|
let object = {};
|
|
17562
|
-
if (options.defaults)
|
|
18658
|
+
if (options.defaults) {
|
|
17563
18659
|
object.jwt = "";
|
|
18660
|
+
object.token = null;
|
|
18661
|
+
}
|
|
17564
18662
|
if (message.jwt != null && message.hasOwnProperty("jwt"))
|
|
17565
18663
|
object.jwt = message.jwt;
|
|
18664
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
18665
|
+
object.token = $root.vertexvis.protobuf.stream.Token.toObject(message.token, options);
|
|
17566
18666
|
return object;
|
|
17567
18667
|
};
|
|
17568
18668
|
|
|
@@ -18811,37 +19911,197 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18811
19911
|
* @param {Object.<string,*>} object Plain object
|
|
18812
19912
|
* @returns {vertexvis.protobuf.stream.LoadSceneViewStateResult} LoadSceneViewStateResult
|
|
18813
19913
|
*/
|
|
18814
|
-
LoadSceneViewStateResult.fromObject = function fromObject(object) {
|
|
18815
|
-
if (object instanceof $root.vertexvis.protobuf.stream.LoadSceneViewStateResult)
|
|
19914
|
+
LoadSceneViewStateResult.fromObject = function fromObject(object) {
|
|
19915
|
+
if (object instanceof $root.vertexvis.protobuf.stream.LoadSceneViewStateResult)
|
|
19916
|
+
return object;
|
|
19917
|
+
return new $root.vertexvis.protobuf.stream.LoadSceneViewStateResult();
|
|
19918
|
+
};
|
|
19919
|
+
|
|
19920
|
+
/**
|
|
19921
|
+
* Creates a plain object from a LoadSceneViewStateResult message. Also converts values to other types if specified.
|
|
19922
|
+
* @function toObject
|
|
19923
|
+
* @memberof vertexvis.protobuf.stream.LoadSceneViewStateResult
|
|
19924
|
+
* @static
|
|
19925
|
+
* @param {vertexvis.protobuf.stream.LoadSceneViewStateResult} message LoadSceneViewStateResult
|
|
19926
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19927
|
+
* @returns {Object.<string,*>} Plain object
|
|
19928
|
+
*/
|
|
19929
|
+
LoadSceneViewStateResult.toObject = function toObject() {
|
|
19930
|
+
return {};
|
|
19931
|
+
};
|
|
19932
|
+
|
|
19933
|
+
/**
|
|
19934
|
+
* Converts this LoadSceneViewStateResult to JSON.
|
|
19935
|
+
* @function toJSON
|
|
19936
|
+
* @memberof vertexvis.protobuf.stream.LoadSceneViewStateResult
|
|
19937
|
+
* @instance
|
|
19938
|
+
* @returns {Object.<string,*>} JSON object
|
|
19939
|
+
*/
|
|
19940
|
+
LoadSceneViewStateResult.prototype.toJSON = function toJSON() {
|
|
19941
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
19942
|
+
};
|
|
19943
|
+
|
|
19944
|
+
return LoadSceneViewStateResult;
|
|
19945
|
+
})();
|
|
19946
|
+
|
|
19947
|
+
stream.ResetViewResult = (function() {
|
|
19948
|
+
|
|
19949
|
+
/**
|
|
19950
|
+
* Properties of a ResetViewResult.
|
|
19951
|
+
* @memberof vertexvis.protobuf.stream
|
|
19952
|
+
* @interface IResetViewResult
|
|
19953
|
+
*/
|
|
19954
|
+
|
|
19955
|
+
/**
|
|
19956
|
+
* Constructs a new ResetViewResult.
|
|
19957
|
+
* @memberof vertexvis.protobuf.stream
|
|
19958
|
+
* @classdesc Represents a ResetViewResult.
|
|
19959
|
+
* @implements IResetViewResult
|
|
19960
|
+
* @constructor
|
|
19961
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult=} [properties] Properties to set
|
|
19962
|
+
*/
|
|
19963
|
+
function ResetViewResult(properties) {
|
|
19964
|
+
if (properties)
|
|
19965
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19966
|
+
if (properties[keys[i]] != null)
|
|
19967
|
+
this[keys[i]] = properties[keys[i]];
|
|
19968
|
+
}
|
|
19969
|
+
|
|
19970
|
+
/**
|
|
19971
|
+
* Creates a new ResetViewResult instance using the specified properties.
|
|
19972
|
+
* @function create
|
|
19973
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19974
|
+
* @static
|
|
19975
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult=} [properties] Properties to set
|
|
19976
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult instance
|
|
19977
|
+
*/
|
|
19978
|
+
ResetViewResult.create = function create(properties) {
|
|
19979
|
+
return new ResetViewResult(properties);
|
|
19980
|
+
};
|
|
19981
|
+
|
|
19982
|
+
/**
|
|
19983
|
+
* Encodes the specified ResetViewResult message. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewResult.verify|verify} messages.
|
|
19984
|
+
* @function encode
|
|
19985
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19986
|
+
* @static
|
|
19987
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult} message ResetViewResult message or plain object to encode
|
|
19988
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19989
|
+
* @returns {$protobuf.Writer} Writer
|
|
19990
|
+
*/
|
|
19991
|
+
ResetViewResult.encode = function encode(message, writer) {
|
|
19992
|
+
if (!writer)
|
|
19993
|
+
writer = $Writer.create();
|
|
19994
|
+
return writer;
|
|
19995
|
+
};
|
|
19996
|
+
|
|
19997
|
+
/**
|
|
19998
|
+
* Encodes the specified ResetViewResult message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewResult.verify|verify} messages.
|
|
19999
|
+
* @function encodeDelimited
|
|
20000
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
20001
|
+
* @static
|
|
20002
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult} message ResetViewResult message or plain object to encode
|
|
20003
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20004
|
+
* @returns {$protobuf.Writer} Writer
|
|
20005
|
+
*/
|
|
20006
|
+
ResetViewResult.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20007
|
+
return this.encode(message, writer).ldelim();
|
|
20008
|
+
};
|
|
20009
|
+
|
|
20010
|
+
/**
|
|
20011
|
+
* Decodes a ResetViewResult message from the specified reader or buffer.
|
|
20012
|
+
* @function decode
|
|
20013
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
20014
|
+
* @static
|
|
20015
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20016
|
+
* @param {number} [length] Message length if known beforehand
|
|
20017
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
|
|
20018
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20019
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20020
|
+
*/
|
|
20021
|
+
ResetViewResult.decode = function decode(reader, length) {
|
|
20022
|
+
if (!(reader instanceof $Reader))
|
|
20023
|
+
reader = $Reader.create(reader);
|
|
20024
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ResetViewResult();
|
|
20025
|
+
while (reader.pos < end) {
|
|
20026
|
+
let tag = reader.uint32();
|
|
20027
|
+
switch (tag >>> 3) {
|
|
20028
|
+
default:
|
|
20029
|
+
reader.skipType(tag & 7);
|
|
20030
|
+
break;
|
|
20031
|
+
}
|
|
20032
|
+
}
|
|
20033
|
+
return message;
|
|
20034
|
+
};
|
|
20035
|
+
|
|
20036
|
+
/**
|
|
20037
|
+
* Decodes a ResetViewResult message from the specified reader or buffer, length delimited.
|
|
20038
|
+
* @function decodeDelimited
|
|
20039
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
20040
|
+
* @static
|
|
20041
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20042
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
|
|
20043
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20044
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20045
|
+
*/
|
|
20046
|
+
ResetViewResult.decodeDelimited = function decodeDelimited(reader) {
|
|
20047
|
+
if (!(reader instanceof $Reader))
|
|
20048
|
+
reader = new $Reader(reader);
|
|
20049
|
+
return this.decode(reader, reader.uint32());
|
|
20050
|
+
};
|
|
20051
|
+
|
|
20052
|
+
/**
|
|
20053
|
+
* Verifies a ResetViewResult message.
|
|
20054
|
+
* @function verify
|
|
20055
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
20056
|
+
* @static
|
|
20057
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20058
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20059
|
+
*/
|
|
20060
|
+
ResetViewResult.verify = function verify(message) {
|
|
20061
|
+
if (typeof message !== "object" || message === null)
|
|
20062
|
+
return "object expected";
|
|
20063
|
+
return null;
|
|
20064
|
+
};
|
|
20065
|
+
|
|
20066
|
+
/**
|
|
20067
|
+
* Creates a ResetViewResult message from a plain object. Also converts values to their respective internal types.
|
|
20068
|
+
* @function fromObject
|
|
20069
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
20070
|
+
* @static
|
|
20071
|
+
* @param {Object.<string,*>} object Plain object
|
|
20072
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
|
|
20073
|
+
*/
|
|
20074
|
+
ResetViewResult.fromObject = function fromObject(object) {
|
|
20075
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ResetViewResult)
|
|
18816
20076
|
return object;
|
|
18817
|
-
return new $root.vertexvis.protobuf.stream.
|
|
20077
|
+
return new $root.vertexvis.protobuf.stream.ResetViewResult();
|
|
18818
20078
|
};
|
|
18819
20079
|
|
|
18820
20080
|
/**
|
|
18821
|
-
* Creates a plain object from a
|
|
20081
|
+
* Creates a plain object from a ResetViewResult message. Also converts values to other types if specified.
|
|
18822
20082
|
* @function toObject
|
|
18823
|
-
* @memberof vertexvis.protobuf.stream.
|
|
20083
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
18824
20084
|
* @static
|
|
18825
|
-
* @param {vertexvis.protobuf.stream.
|
|
20085
|
+
* @param {vertexvis.protobuf.stream.ResetViewResult} message ResetViewResult
|
|
18826
20086
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18827
20087
|
* @returns {Object.<string,*>} Plain object
|
|
18828
20088
|
*/
|
|
18829
|
-
|
|
20089
|
+
ResetViewResult.toObject = function toObject() {
|
|
18830
20090
|
return {};
|
|
18831
20091
|
};
|
|
18832
20092
|
|
|
18833
20093
|
/**
|
|
18834
|
-
* Converts this
|
|
20094
|
+
* Converts this ResetViewResult to JSON.
|
|
18835
20095
|
* @function toJSON
|
|
18836
|
-
* @memberof vertexvis.protobuf.stream.
|
|
20096
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
18837
20097
|
* @instance
|
|
18838
20098
|
* @returns {Object.<string,*>} JSON object
|
|
18839
20099
|
*/
|
|
18840
|
-
|
|
20100
|
+
ResetViewResult.prototype.toJSON = function toJSON() {
|
|
18841
20101
|
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
18842
20102
|
};
|
|
18843
20103
|
|
|
18844
|
-
return
|
|
20104
|
+
return ResetViewResult;
|
|
18845
20105
|
})();
|
|
18846
20106
|
|
|
18847
20107
|
stream.GetStencilBufferResult = (function() {
|
|
@@ -18852,6 +20112,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18852
20112
|
* @interface IGetStencilBufferResult
|
|
18853
20113
|
* @property {Uint8Array|null} [stencilBuffer] GetStencilBufferResult stencilBuffer
|
|
18854
20114
|
* @property {vertexvis.protobuf.stream.IImageAttributes|null} [imageAttributes] GetStencilBufferResult imageAttributes
|
|
20115
|
+
* @property {google.protobuf.IBytesValue|null} [depthBuffer] GetStencilBufferResult depthBuffer
|
|
18855
20116
|
*/
|
|
18856
20117
|
|
|
18857
20118
|
/**
|
|
@@ -18885,6 +20146,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18885
20146
|
*/
|
|
18886
20147
|
GetStencilBufferResult.prototype.imageAttributes = null;
|
|
18887
20148
|
|
|
20149
|
+
/**
|
|
20150
|
+
* GetStencilBufferResult depthBuffer.
|
|
20151
|
+
* @member {google.protobuf.IBytesValue|null|undefined} depthBuffer
|
|
20152
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferResult
|
|
20153
|
+
* @instance
|
|
20154
|
+
*/
|
|
20155
|
+
GetStencilBufferResult.prototype.depthBuffer = null;
|
|
20156
|
+
|
|
18888
20157
|
/**
|
|
18889
20158
|
* Creates a new GetStencilBufferResult instance using the specified properties.
|
|
18890
20159
|
* @function create
|
|
@@ -18913,6 +20182,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18913
20182
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.stencilBuffer);
|
|
18914
20183
|
if (message.imageAttributes != null && Object.hasOwnProperty.call(message, "imageAttributes"))
|
|
18915
20184
|
$root.vertexvis.protobuf.stream.ImageAttributes.encode(message.imageAttributes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
20185
|
+
if (message.depthBuffer != null && Object.hasOwnProperty.call(message, "depthBuffer"))
|
|
20186
|
+
$root.google.protobuf.BytesValue.encode(message.depthBuffer, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
18916
20187
|
return writer;
|
|
18917
20188
|
};
|
|
18918
20189
|
|
|
@@ -18953,6 +20224,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18953
20224
|
case 2:
|
|
18954
20225
|
message.imageAttributes = $root.vertexvis.protobuf.stream.ImageAttributes.decode(reader, reader.uint32());
|
|
18955
20226
|
break;
|
|
20227
|
+
case 3:
|
|
20228
|
+
message.depthBuffer = $root.google.protobuf.BytesValue.decode(reader, reader.uint32());
|
|
20229
|
+
break;
|
|
18956
20230
|
default:
|
|
18957
20231
|
reader.skipType(tag & 7);
|
|
18958
20232
|
break;
|
|
@@ -18996,6 +20270,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18996
20270
|
if (error)
|
|
18997
20271
|
return "imageAttributes." + error;
|
|
18998
20272
|
}
|
|
20273
|
+
if (message.depthBuffer != null && message.hasOwnProperty("depthBuffer")) {
|
|
20274
|
+
let error = $root.google.protobuf.BytesValue.verify(message.depthBuffer);
|
|
20275
|
+
if (error)
|
|
20276
|
+
return "depthBuffer." + error;
|
|
20277
|
+
}
|
|
18999
20278
|
return null;
|
|
19000
20279
|
};
|
|
19001
20280
|
|
|
@@ -19021,6 +20300,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19021
20300
|
throw TypeError(".vertexvis.protobuf.stream.GetStencilBufferResult.imageAttributes: object expected");
|
|
19022
20301
|
message.imageAttributes = $root.vertexvis.protobuf.stream.ImageAttributes.fromObject(object.imageAttributes);
|
|
19023
20302
|
}
|
|
20303
|
+
if (object.depthBuffer != null) {
|
|
20304
|
+
if (typeof object.depthBuffer !== "object")
|
|
20305
|
+
throw TypeError(".vertexvis.protobuf.stream.GetStencilBufferResult.depthBuffer: object expected");
|
|
20306
|
+
message.depthBuffer = $root.google.protobuf.BytesValue.fromObject(object.depthBuffer);
|
|
20307
|
+
}
|
|
19024
20308
|
return message;
|
|
19025
20309
|
};
|
|
19026
20310
|
|
|
@@ -19046,11 +20330,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19046
20330
|
object.stencilBuffer = $util.newBuffer(object.stencilBuffer);
|
|
19047
20331
|
}
|
|
19048
20332
|
object.imageAttributes = null;
|
|
20333
|
+
object.depthBuffer = null;
|
|
19049
20334
|
}
|
|
19050
20335
|
if (message.stencilBuffer != null && message.hasOwnProperty("stencilBuffer"))
|
|
19051
20336
|
object.stencilBuffer = options.bytes === String ? $util.base64.encode(message.stencilBuffer, 0, message.stencilBuffer.length) : options.bytes === Array ? Array.prototype.slice.call(message.stencilBuffer) : message.stencilBuffer;
|
|
19052
20337
|
if (message.imageAttributes != null && message.hasOwnProperty("imageAttributes"))
|
|
19053
20338
|
object.imageAttributes = $root.vertexvis.protobuf.stream.ImageAttributes.toObject(message.imageAttributes, options);
|
|
20339
|
+
if (message.depthBuffer != null && message.hasOwnProperty("depthBuffer"))
|
|
20340
|
+
object.depthBuffer = $root.google.protobuf.BytesValue.toObject(message.depthBuffer, options);
|
|
19054
20341
|
return object;
|
|
19055
20342
|
};
|
|
19056
20343
|
|
|
@@ -19068,6 +20355,198 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19068
20355
|
return GetStencilBufferResult;
|
|
19069
20356
|
})();
|
|
19070
20357
|
|
|
20358
|
+
stream.RefreshTokenResult = (function() {
|
|
20359
|
+
|
|
20360
|
+
/**
|
|
20361
|
+
* Properties of a RefreshTokenResult.
|
|
20362
|
+
* @memberof vertexvis.protobuf.stream
|
|
20363
|
+
* @interface IRefreshTokenResult
|
|
20364
|
+
* @property {vertexvis.protobuf.stream.IToken|null} [token] RefreshTokenResult token
|
|
20365
|
+
*/
|
|
20366
|
+
|
|
20367
|
+
/**
|
|
20368
|
+
* Constructs a new RefreshTokenResult.
|
|
20369
|
+
* @memberof vertexvis.protobuf.stream
|
|
20370
|
+
* @classdesc Represents a RefreshTokenResult.
|
|
20371
|
+
* @implements IRefreshTokenResult
|
|
20372
|
+
* @constructor
|
|
20373
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenResult=} [properties] Properties to set
|
|
20374
|
+
*/
|
|
20375
|
+
function RefreshTokenResult(properties) {
|
|
20376
|
+
if (properties)
|
|
20377
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20378
|
+
if (properties[keys[i]] != null)
|
|
20379
|
+
this[keys[i]] = properties[keys[i]];
|
|
20380
|
+
}
|
|
20381
|
+
|
|
20382
|
+
/**
|
|
20383
|
+
* RefreshTokenResult token.
|
|
20384
|
+
* @member {vertexvis.protobuf.stream.IToken|null|undefined} token
|
|
20385
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenResult
|
|
20386
|
+
* @instance
|
|
20387
|
+
*/
|
|
20388
|
+
RefreshTokenResult.prototype.token = null;
|
|
20389
|
+
|
|
20390
|
+
/**
|
|
20391
|
+
* Creates a new RefreshTokenResult instance using the specified properties.
|
|
20392
|
+
* @function create
|
|
20393
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenResult
|
|
20394
|
+
* @static
|
|
20395
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenResult=} [properties] Properties to set
|
|
20396
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenResult} RefreshTokenResult instance
|
|
20397
|
+
*/
|
|
20398
|
+
RefreshTokenResult.create = function create(properties) {
|
|
20399
|
+
return new RefreshTokenResult(properties);
|
|
20400
|
+
};
|
|
20401
|
+
|
|
20402
|
+
/**
|
|
20403
|
+
* Encodes the specified RefreshTokenResult message. Does not implicitly {@link vertexvis.protobuf.stream.RefreshTokenResult.verify|verify} messages.
|
|
20404
|
+
* @function encode
|
|
20405
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenResult
|
|
20406
|
+
* @static
|
|
20407
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenResult} message RefreshTokenResult message or plain object to encode
|
|
20408
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20409
|
+
* @returns {$protobuf.Writer} Writer
|
|
20410
|
+
*/
|
|
20411
|
+
RefreshTokenResult.encode = function encode(message, writer) {
|
|
20412
|
+
if (!writer)
|
|
20413
|
+
writer = $Writer.create();
|
|
20414
|
+
if (message.token != null && Object.hasOwnProperty.call(message, "token"))
|
|
20415
|
+
$root.vertexvis.protobuf.stream.Token.encode(message.token, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
20416
|
+
return writer;
|
|
20417
|
+
};
|
|
20418
|
+
|
|
20419
|
+
/**
|
|
20420
|
+
* Encodes the specified RefreshTokenResult message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.RefreshTokenResult.verify|verify} messages.
|
|
20421
|
+
* @function encodeDelimited
|
|
20422
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenResult
|
|
20423
|
+
* @static
|
|
20424
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenResult} message RefreshTokenResult message or plain object to encode
|
|
20425
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20426
|
+
* @returns {$protobuf.Writer} Writer
|
|
20427
|
+
*/
|
|
20428
|
+
RefreshTokenResult.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20429
|
+
return this.encode(message, writer).ldelim();
|
|
20430
|
+
};
|
|
20431
|
+
|
|
20432
|
+
/**
|
|
20433
|
+
* Decodes a RefreshTokenResult message from the specified reader or buffer.
|
|
20434
|
+
* @function decode
|
|
20435
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenResult
|
|
20436
|
+
* @static
|
|
20437
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20438
|
+
* @param {number} [length] Message length if known beforehand
|
|
20439
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenResult} RefreshTokenResult
|
|
20440
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20441
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20442
|
+
*/
|
|
20443
|
+
RefreshTokenResult.decode = function decode(reader, length) {
|
|
20444
|
+
if (!(reader instanceof $Reader))
|
|
20445
|
+
reader = $Reader.create(reader);
|
|
20446
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.RefreshTokenResult();
|
|
20447
|
+
while (reader.pos < end) {
|
|
20448
|
+
let tag = reader.uint32();
|
|
20449
|
+
switch (tag >>> 3) {
|
|
20450
|
+
case 1:
|
|
20451
|
+
message.token = $root.vertexvis.protobuf.stream.Token.decode(reader, reader.uint32());
|
|
20452
|
+
break;
|
|
20453
|
+
default:
|
|
20454
|
+
reader.skipType(tag & 7);
|
|
20455
|
+
break;
|
|
20456
|
+
}
|
|
20457
|
+
}
|
|
20458
|
+
return message;
|
|
20459
|
+
};
|
|
20460
|
+
|
|
20461
|
+
/**
|
|
20462
|
+
* Decodes a RefreshTokenResult message from the specified reader or buffer, length delimited.
|
|
20463
|
+
* @function decodeDelimited
|
|
20464
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenResult
|
|
20465
|
+
* @static
|
|
20466
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20467
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenResult} RefreshTokenResult
|
|
20468
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20469
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20470
|
+
*/
|
|
20471
|
+
RefreshTokenResult.decodeDelimited = function decodeDelimited(reader) {
|
|
20472
|
+
if (!(reader instanceof $Reader))
|
|
20473
|
+
reader = new $Reader(reader);
|
|
20474
|
+
return this.decode(reader, reader.uint32());
|
|
20475
|
+
};
|
|
20476
|
+
|
|
20477
|
+
/**
|
|
20478
|
+
* Verifies a RefreshTokenResult message.
|
|
20479
|
+
* @function verify
|
|
20480
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenResult
|
|
20481
|
+
* @static
|
|
20482
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20483
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20484
|
+
*/
|
|
20485
|
+
RefreshTokenResult.verify = function verify(message) {
|
|
20486
|
+
if (typeof message !== "object" || message === null)
|
|
20487
|
+
return "object expected";
|
|
20488
|
+
if (message.token != null && message.hasOwnProperty("token")) {
|
|
20489
|
+
let error = $root.vertexvis.protobuf.stream.Token.verify(message.token);
|
|
20490
|
+
if (error)
|
|
20491
|
+
return "token." + error;
|
|
20492
|
+
}
|
|
20493
|
+
return null;
|
|
20494
|
+
};
|
|
20495
|
+
|
|
20496
|
+
/**
|
|
20497
|
+
* Creates a RefreshTokenResult message from a plain object. Also converts values to their respective internal types.
|
|
20498
|
+
* @function fromObject
|
|
20499
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenResult
|
|
20500
|
+
* @static
|
|
20501
|
+
* @param {Object.<string,*>} object Plain object
|
|
20502
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenResult} RefreshTokenResult
|
|
20503
|
+
*/
|
|
20504
|
+
RefreshTokenResult.fromObject = function fromObject(object) {
|
|
20505
|
+
if (object instanceof $root.vertexvis.protobuf.stream.RefreshTokenResult)
|
|
20506
|
+
return object;
|
|
20507
|
+
let message = new $root.vertexvis.protobuf.stream.RefreshTokenResult();
|
|
20508
|
+
if (object.token != null) {
|
|
20509
|
+
if (typeof object.token !== "object")
|
|
20510
|
+
throw TypeError(".vertexvis.protobuf.stream.RefreshTokenResult.token: object expected");
|
|
20511
|
+
message.token = $root.vertexvis.protobuf.stream.Token.fromObject(object.token);
|
|
20512
|
+
}
|
|
20513
|
+
return message;
|
|
20514
|
+
};
|
|
20515
|
+
|
|
20516
|
+
/**
|
|
20517
|
+
* Creates a plain object from a RefreshTokenResult message. Also converts values to other types if specified.
|
|
20518
|
+
* @function toObject
|
|
20519
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenResult
|
|
20520
|
+
* @static
|
|
20521
|
+
* @param {vertexvis.protobuf.stream.RefreshTokenResult} message RefreshTokenResult
|
|
20522
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20523
|
+
* @returns {Object.<string,*>} Plain object
|
|
20524
|
+
*/
|
|
20525
|
+
RefreshTokenResult.toObject = function toObject(message, options) {
|
|
20526
|
+
if (!options)
|
|
20527
|
+
options = {};
|
|
20528
|
+
let object = {};
|
|
20529
|
+
if (options.defaults)
|
|
20530
|
+
object.token = null;
|
|
20531
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
20532
|
+
object.token = $root.vertexvis.protobuf.stream.Token.toObject(message.token, options);
|
|
20533
|
+
return object;
|
|
20534
|
+
};
|
|
20535
|
+
|
|
20536
|
+
/**
|
|
20537
|
+
* Converts this RefreshTokenResult to JSON.
|
|
20538
|
+
* @function toJSON
|
|
20539
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenResult
|
|
20540
|
+
* @instance
|
|
20541
|
+
* @returns {Object.<string,*>} JSON object
|
|
20542
|
+
*/
|
|
20543
|
+
RefreshTokenResult.prototype.toJSON = function toJSON() {
|
|
20544
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
20545
|
+
};
|
|
20546
|
+
|
|
20547
|
+
return RefreshTokenResult;
|
|
20548
|
+
})();
|
|
20549
|
+
|
|
19071
20550
|
stream.StreamEvent = (function() {
|
|
19072
20551
|
|
|
19073
20552
|
/**
|
|
@@ -30979,6 +32458,23 @@ function decode(bufferOrBytes) {
|
|
|
30979
32458
|
});
|
|
30980
32459
|
}
|
|
30981
32460
|
|
|
32461
|
+
var StreamRequestError = /** @class */ (function (_super) {
|
|
32462
|
+
tslib.__extends(StreamRequestError, _super);
|
|
32463
|
+
function StreamRequestError(requestId, requestPayload, summary, details) {
|
|
32464
|
+
var _this = _super.call(this, summary != null && summary.length > 0
|
|
32465
|
+
? "Stream request failed (" + summary + ")"
|
|
32466
|
+
: 'Stream request failed') || this;
|
|
32467
|
+
_this.requestId = requestId;
|
|
32468
|
+
_this.requestPayload = requestPayload;
|
|
32469
|
+
_this.summary = summary;
|
|
32470
|
+
_this.details = details;
|
|
32471
|
+
// Allows for `instanceof` checks. See https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
32472
|
+
Object.setPrototypeOf(_this, StreamRequestError.prototype);
|
|
32473
|
+
return _this;
|
|
32474
|
+
}
|
|
32475
|
+
return StreamRequestError;
|
|
32476
|
+
}(Error));
|
|
32477
|
+
|
|
30982
32478
|
var WebSocketClientImpl = /** @class */ (function () {
|
|
30983
32479
|
function WebSocketClientImpl() {
|
|
30984
32480
|
var _this = this;
|
|
@@ -32426,21 +33922,6 @@ function parseEpochMillis(millis) {
|
|
|
32426
33922
|
return { seconds: seconds * (millis < 0 ? -1 : 1), nanos: nanos };
|
|
32427
33923
|
}
|
|
32428
33924
|
|
|
32429
|
-
var StreamRequestError = /** @class */ (function (_super) {
|
|
32430
|
-
tslib.__extends(StreamRequestError, _super);
|
|
32431
|
-
function StreamRequestError(requestId, requestPayload, summary, details) {
|
|
32432
|
-
var _this = _super.call(this, summary != null && summary.length > 0
|
|
32433
|
-
? "Stream request failed (" + summary + ")"
|
|
32434
|
-
: 'Stream request failed') || this;
|
|
32435
|
-
_this.requestId = requestId;
|
|
32436
|
-
_this.requestPayload = requestPayload;
|
|
32437
|
-
_this.summary = summary;
|
|
32438
|
-
_this.details = details;
|
|
32439
|
-
return _this;
|
|
32440
|
-
}
|
|
32441
|
-
return StreamRequestError;
|
|
32442
|
-
}(Error));
|
|
32443
|
-
|
|
32444
33925
|
function defineParams() {
|
|
32445
33926
|
var definitions = [];
|
|
32446
33927
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -32512,14 +33993,17 @@ function defineSettings(getter, defaults, builder) {
|
|
|
32512
33993
|
* The API client to interact with Vertex's streaming API.
|
|
32513
33994
|
*/
|
|
32514
33995
|
var StreamApi = /** @class */ (function () {
|
|
32515
|
-
function StreamApi(websocket,
|
|
33996
|
+
function StreamApi(websocket, opts) {
|
|
32516
33997
|
if (websocket === void 0) { websocket = new WebSocketClientImpl(); }
|
|
32517
|
-
if (
|
|
33998
|
+
if (opts === void 0) { opts = {}; }
|
|
33999
|
+
var _a;
|
|
32518
34000
|
this.websocket = websocket;
|
|
32519
|
-
this.loggingEnabled = loggingEnabled;
|
|
32520
34001
|
this.onResponseDispatcher = new utils.EventDispatcher();
|
|
32521
34002
|
this.onRequestDispatcher = new utils.EventDispatcher();
|
|
32522
34003
|
this.onEventDispatcher = new utils.EventDispatcher();
|
|
34004
|
+
this.opts = {
|
|
34005
|
+
loggingEnabled: (_a = opts.loggingEnabled) !== null && _a !== void 0 ? _a : false,
|
|
34006
|
+
};
|
|
32523
34007
|
}
|
|
32524
34008
|
/**
|
|
32525
34009
|
* Initiates a websocket connection to Vertex's streaming API. Returns a
|
|
@@ -32576,6 +34060,14 @@ var StreamApi = /** @class */ (function () {
|
|
|
32576
34060
|
StreamApi.prototype.onEvent = function (handler) {
|
|
32577
34061
|
return this.onEventDispatcher.on(handler);
|
|
32578
34062
|
};
|
|
34063
|
+
/**
|
|
34064
|
+
* Adds a callback that is invoked when the websocket connection is closed.
|
|
34065
|
+
*
|
|
34066
|
+
* @param handler A handler function.
|
|
34067
|
+
*/
|
|
34068
|
+
StreamApi.prototype.onClose = function (handler) {
|
|
34069
|
+
return this.websocket.onClose(handler);
|
|
34070
|
+
};
|
|
32579
34071
|
/**
|
|
32580
34072
|
* Sends a request to initiate a streaming session.
|
|
32581
34073
|
*
|
|
@@ -32757,6 +34249,22 @@ var StreamApi = /** @class */ (function () {
|
|
|
32757
34249
|
if (withResponse === void 0) { withResponse = true; }
|
|
32758
34250
|
return this.sendRequest({ createSceneAlteration: payload }, withResponse);
|
|
32759
34251
|
};
|
|
34252
|
+
/**
|
|
34253
|
+
* Sends a request to reset all overrides for a given scene and optionally to
|
|
34254
|
+
* reset the camera to that of the base scene.
|
|
34255
|
+
*
|
|
34256
|
+
* Use `withResponse` to indicate if the server should reply with a response.
|
|
34257
|
+
* If `false`, the returned promise will complete immediately. Otherwise,
|
|
34258
|
+
* it'll complete when a response is received.
|
|
34259
|
+
*
|
|
34260
|
+
* @param payload The payload of the request.
|
|
34261
|
+
* @param withResponse Indicates if the server should reply with a response.
|
|
34262
|
+
* Defaults to `true`.
|
|
34263
|
+
*/
|
|
34264
|
+
StreamApi.prototype.resetSceneView = function (payload, withResponse) {
|
|
34265
|
+
if (withResponse === void 0) { withResponse = true; }
|
|
34266
|
+
return this.sendRequest({ resetView: payload }, withResponse);
|
|
34267
|
+
};
|
|
32760
34268
|
/**
|
|
32761
34269
|
* Sends a request to tell the rendering pipeline that an interaction has
|
|
32762
34270
|
* ended.
|
|
@@ -32822,8 +34330,20 @@ var StreamApi = /** @class */ (function () {
|
|
|
32822
34330
|
/**
|
|
32823
34331
|
* Sends a request to get a stencil buffer image for the current scene view.
|
|
32824
34332
|
*/
|
|
32825
|
-
StreamApi.prototype.getStencilBuffer = function (withResponse) {
|
|
32826
|
-
|
|
34333
|
+
StreamApi.prototype.getStencilBuffer = function (payload, withResponse) {
|
|
34334
|
+
if (withResponse === void 0) { withResponse = true; }
|
|
34335
|
+
return this.sendRequest({ getStencilBuffer: payload }, withResponse);
|
|
34336
|
+
};
|
|
34337
|
+
/**
|
|
34338
|
+
* Sends a request to retrieve a new token. This token can be used to
|
|
34339
|
+
* authenticate with other Vertex services.
|
|
34340
|
+
*
|
|
34341
|
+
* @param withResponse Indicates if the server should reply with a response.
|
|
34342
|
+
* @returns A promise that completes with the refreshed token.
|
|
34343
|
+
*/
|
|
34344
|
+
StreamApi.prototype.refreshToken = function (withResponse) {
|
|
34345
|
+
if (withResponse === void 0) { withResponse = true; }
|
|
34346
|
+
return this.sendRequest({ refreshToken: {} }, withResponse);
|
|
32827
34347
|
};
|
|
32828
34348
|
/**
|
|
32829
34349
|
* Acknowledges a successful request by sending a reply back to the server
|
|
@@ -32876,7 +34396,7 @@ var StreamApi = /** @class */ (function () {
|
|
|
32876
34396
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
32877
34397
|
other[_i - 1] = arguments[_i];
|
|
32878
34398
|
}
|
|
32879
|
-
if (this.loggingEnabled) {
|
|
34399
|
+
if (this.opts.loggingEnabled) {
|
|
32880
34400
|
console.debug.apply(console, tslib.__spreadArray([msg], other, false));
|
|
32881
34401
|
}
|
|
32882
34402
|
};
|
|
@@ -32917,6 +34437,23 @@ var StreamApi = /** @class */ (function () {
|
|
|
32917
34437
|
return StreamApi;
|
|
32918
34438
|
}());
|
|
32919
34439
|
|
|
34440
|
+
function event(req, meta) {
|
|
34441
|
+
return tslib.__assign({ sentAtTime: currentDateAsProtoTimestamp(), event: tslib.__assign({}, req) }, meta);
|
|
34442
|
+
}
|
|
34443
|
+
function animationCompleted(id) {
|
|
34444
|
+
var def = {
|
|
34445
|
+
animationId: { hex: id },
|
|
34446
|
+
};
|
|
34447
|
+
return event({
|
|
34448
|
+
animationCompleted: tslib.__assign({}, def),
|
|
34449
|
+
});
|
|
34450
|
+
}
|
|
34451
|
+
|
|
34452
|
+
var events = /*#__PURE__*/Object.freeze({
|
|
34453
|
+
__proto__: null,
|
|
34454
|
+
animationCompleted: animationCompleted
|
|
34455
|
+
});
|
|
34456
|
+
|
|
32920
34457
|
function request(req, meta) {
|
|
32921
34458
|
return tslib.__assign(tslib.__assign({ sentAtTime: currentDateAsProtoTimestamp() }, meta), { request: tslib.__assign({ requestId: req.requestId != null ? { value: req.requestId } : undefined }, req.payload) });
|
|
32922
34459
|
}
|
|
@@ -32963,7 +34500,7 @@ function gracefulReconnect(req, meta) {
|
|
|
32963
34500
|
};
|
|
32964
34501
|
return request({
|
|
32965
34502
|
requestId: req.requestId,
|
|
32966
|
-
payload: {
|
|
34503
|
+
payload: { gracefulReconnection: utils.Objects.defaults(req.payload, def) },
|
|
32967
34504
|
}, meta);
|
|
32968
34505
|
}
|
|
32969
34506
|
|
|
@@ -32973,44 +34510,102 @@ var requests = /*#__PURE__*/Object.freeze({
|
|
|
32973
34510
|
gracefulReconnect: gracefulReconnect
|
|
32974
34511
|
});
|
|
32975
34512
|
|
|
32976
|
-
function
|
|
32977
|
-
return tslib.__assign({ sentAtTime: currentDateAsProtoTimestamp(),
|
|
34513
|
+
function response(res, meta) {
|
|
34514
|
+
return tslib.__assign(tslib.__assign({ sentAtTime: currentDateAsProtoTimestamp() }, meta), { response: tslib.__assign({ requestId: res.requestId != null ? { value: res.requestId } : undefined }, res.result) });
|
|
32978
34515
|
}
|
|
32979
|
-
function
|
|
34516
|
+
function startStream(res, meta) {
|
|
34517
|
+
if (res === void 0) { res = {}; }
|
|
32980
34518
|
var def = {
|
|
32981
|
-
|
|
34519
|
+
streamId: { hex: utils.UUID.create() },
|
|
34520
|
+
sceneViewId: { hex: utils.UUID.create() },
|
|
34521
|
+
sessionId: { hex: utils.UUID.create() },
|
|
34522
|
+
jwt: 'jwt',
|
|
34523
|
+
token: { token: 'token', expiresIn: new Date().getTime() + 10000 },
|
|
34524
|
+
worldOrientation: {
|
|
34525
|
+
front: { x: 0, y: 0, z: 1 },
|
|
34526
|
+
up: { x: 0, y: 1, z: 0 },
|
|
34527
|
+
},
|
|
32982
34528
|
};
|
|
32983
|
-
return
|
|
32984
|
-
|
|
34529
|
+
return response({
|
|
34530
|
+
requestId: res.requestId,
|
|
34531
|
+
result: { startStream: utils.Objects.defaults(res.result, def) },
|
|
34532
|
+
}, meta);
|
|
34533
|
+
}
|
|
34534
|
+
function syncTime(res, meta) {
|
|
34535
|
+
if (res === void 0) { res = {}; }
|
|
34536
|
+
var def = { replyTime: { seconds: 1, nanos: 0 } };
|
|
34537
|
+
return response({
|
|
34538
|
+
requestId: res.requestId,
|
|
34539
|
+
result: { syncTime: utils.Objects.defaults(res.result, def) },
|
|
32985
34540
|
});
|
|
34541
|
+
}
|
|
34542
|
+
function reconnect(res, meta) {
|
|
34543
|
+
if (res === void 0) { res = {}; }
|
|
34544
|
+
var def = {
|
|
34545
|
+
jwt: 'jwt',
|
|
34546
|
+
token: { token: 'token', expiresIn: new Date().getTime() + 10000 },
|
|
34547
|
+
};
|
|
34548
|
+
return response({
|
|
34549
|
+
requestId: res.requestId,
|
|
34550
|
+
result: { reconnect: utils.Objects.defaults(res.result, def) },
|
|
34551
|
+
}, meta);
|
|
34552
|
+
}
|
|
34553
|
+
function loadSceneViewState(res, meta) {
|
|
34554
|
+
if (res === void 0) { res = {}; }
|
|
34555
|
+
var def = {};
|
|
34556
|
+
return response({
|
|
34557
|
+
requestId: res.requestId,
|
|
34558
|
+
result: { loadSceneViewState: utils.Objects.defaults(res.result, def) },
|
|
34559
|
+
}, meta);
|
|
34560
|
+
}
|
|
34561
|
+
function refreshToken(res, meta) {
|
|
34562
|
+
if (res === void 0) { res = {}; }
|
|
34563
|
+
var def = {
|
|
34564
|
+
token: { token: 'token', expiresIn: new Date().getTime() + 10000 },
|
|
34565
|
+
};
|
|
34566
|
+
return response({
|
|
34567
|
+
requestId: res.requestId,
|
|
34568
|
+
result: { refreshToken: utils.Objects.defaults(res.result, def) },
|
|
34569
|
+
}, meta);
|
|
32986
34570
|
}
|
|
32987
34571
|
|
|
32988
|
-
var
|
|
34572
|
+
var responses = /*#__PURE__*/Object.freeze({
|
|
32989
34573
|
__proto__: null,
|
|
32990
|
-
|
|
34574
|
+
startStream: startStream,
|
|
34575
|
+
syncTime: syncTime,
|
|
34576
|
+
reconnect: reconnect,
|
|
34577
|
+
loadSceneViewState: loadSceneViewState,
|
|
34578
|
+
refreshToken: refreshToken
|
|
32991
34579
|
});
|
|
32992
34580
|
|
|
32993
34581
|
var index = /*#__PURE__*/Object.freeze({
|
|
32994
34582
|
__proto__: null,
|
|
34583
|
+
Events: events,
|
|
32995
34584
|
Requests: requests,
|
|
32996
|
-
|
|
34585
|
+
Responses: responses
|
|
32997
34586
|
});
|
|
32998
34587
|
|
|
32999
34588
|
var WebSocketClientMock = /** @class */ (function () {
|
|
33000
34589
|
function WebSocketClientMock() {
|
|
33001
|
-
this.
|
|
34590
|
+
this.closeHandlers = new Set();
|
|
34591
|
+
this.msgHandlers = new Set();
|
|
33002
34592
|
this.sentMessages = new Array();
|
|
33003
34593
|
}
|
|
33004
34594
|
WebSocketClientMock.prototype.close = function () {
|
|
33005
|
-
|
|
34595
|
+
this.closeHandlers.forEach(function (handler) { return handler(new CloseEvent('close')); });
|
|
33006
34596
|
};
|
|
33007
34597
|
WebSocketClientMock.prototype.connect = function (descriptor) {
|
|
33008
34598
|
return Promise.resolve();
|
|
33009
34599
|
};
|
|
34600
|
+
WebSocketClientMock.prototype.onClose = function (handler) {
|
|
34601
|
+
var _this = this;
|
|
34602
|
+
this.closeHandlers.add(handler);
|
|
34603
|
+
return { dispose: function () { return _this.closeHandlers.delete(handler); } };
|
|
34604
|
+
};
|
|
33010
34605
|
WebSocketClientMock.prototype.onMessage = function (handler) {
|
|
33011
34606
|
var _this = this;
|
|
33012
|
-
this.
|
|
33013
|
-
return { dispose: function () { return _this.
|
|
34607
|
+
this.msgHandlers.add(handler);
|
|
34608
|
+
return { dispose: function () { return _this.msgHandlers.delete(handler); } };
|
|
33014
34609
|
};
|
|
33015
34610
|
WebSocketClientMock.prototype.send = function (data) {
|
|
33016
34611
|
this.sentMessages.push(data);
|
|
@@ -33025,7 +34620,7 @@ var WebSocketClientMock = /** @class */ (function () {
|
|
|
33025
34620
|
* @param data The websocket message data.
|
|
33026
34621
|
*/
|
|
33027
34622
|
WebSocketClientMock.prototype.receiveMessage = function (data) {
|
|
33028
|
-
this.
|
|
34623
|
+
this.msgHandlers.forEach(function (handler) {
|
|
33029
34624
|
return handler(new MessageEvent('message', { data: data }));
|
|
33030
34625
|
});
|
|
33031
34626
|
};
|
|
@@ -33035,7 +34630,8 @@ var WebSocketClientMock = /** @class */ (function () {
|
|
|
33035
34630
|
*/
|
|
33036
34631
|
WebSocketClientMock.prototype.reset = function () {
|
|
33037
34632
|
this.sentMessages = [];
|
|
33038
|
-
this.
|
|
34633
|
+
this.msgHandlers.clear();
|
|
34634
|
+
this.closeHandlers.clear();
|
|
33039
34635
|
};
|
|
33040
34636
|
/**
|
|
33041
34637
|
* Returns `true` if there are remaining sent messages..
|
|
@@ -33090,6 +34686,7 @@ var WebSocketClientMock = /** @class */ (function () {
|
|
|
33090
34686
|
|
|
33091
34687
|
exports.Fixtures = index;
|
|
33092
34688
|
exports.StreamApi = StreamApi;
|
|
34689
|
+
exports.StreamRequestError = StreamRequestError;
|
|
33093
34690
|
exports.WebSocketClientImpl = WebSocketClientImpl;
|
|
33094
34691
|
exports.WebSocketClientMock = WebSocketClientMock;
|
|
33095
34692
|
exports.currentDateAsProtoTimestamp = currentDateAsProtoTimestamp;
|