@vertexvis/stream-api 0.12.0-canary.4 → 0.12.0-canary.43
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 +1477 -177
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +1346 -47
- 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
|
@@ -9877,6 +9877,216 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9877
9877
|
return FeatureHighlightAttributes;
|
|
9878
9878
|
})();
|
|
9879
9879
|
|
|
9880
|
+
stream.Token = (function() {
|
|
9881
|
+
|
|
9882
|
+
/**
|
|
9883
|
+
* Properties of a Token.
|
|
9884
|
+
* @memberof vertexvis.protobuf.stream
|
|
9885
|
+
* @interface IToken
|
|
9886
|
+
* @property {string|null} [token] Token token
|
|
9887
|
+
* @property {number|null} [expiresIn] Token expiresIn
|
|
9888
|
+
*/
|
|
9889
|
+
|
|
9890
|
+
/**
|
|
9891
|
+
* Constructs a new Token.
|
|
9892
|
+
* @memberof vertexvis.protobuf.stream
|
|
9893
|
+
* @classdesc Represents a Token.
|
|
9894
|
+
* @implements IToken
|
|
9895
|
+
* @constructor
|
|
9896
|
+
* @param {vertexvis.protobuf.stream.IToken=} [properties] Properties to set
|
|
9897
|
+
*/
|
|
9898
|
+
function Token(properties) {
|
|
9899
|
+
if (properties)
|
|
9900
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9901
|
+
if (properties[keys[i]] != null)
|
|
9902
|
+
this[keys[i]] = properties[keys[i]];
|
|
9903
|
+
}
|
|
9904
|
+
|
|
9905
|
+
/**
|
|
9906
|
+
* Token token.
|
|
9907
|
+
* @member {string} token
|
|
9908
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9909
|
+
* @instance
|
|
9910
|
+
*/
|
|
9911
|
+
Token.prototype.token = "";
|
|
9912
|
+
|
|
9913
|
+
/**
|
|
9914
|
+
* Token expiresIn.
|
|
9915
|
+
* @member {number} expiresIn
|
|
9916
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9917
|
+
* @instance
|
|
9918
|
+
*/
|
|
9919
|
+
Token.prototype.expiresIn = 0;
|
|
9920
|
+
|
|
9921
|
+
/**
|
|
9922
|
+
* Creates a new Token instance using the specified properties.
|
|
9923
|
+
* @function create
|
|
9924
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9925
|
+
* @static
|
|
9926
|
+
* @param {vertexvis.protobuf.stream.IToken=} [properties] Properties to set
|
|
9927
|
+
* @returns {vertexvis.protobuf.stream.Token} Token instance
|
|
9928
|
+
*/
|
|
9929
|
+
Token.create = function create(properties) {
|
|
9930
|
+
return new Token(properties);
|
|
9931
|
+
};
|
|
9932
|
+
|
|
9933
|
+
/**
|
|
9934
|
+
* Encodes the specified Token message. Does not implicitly {@link vertexvis.protobuf.stream.Token.verify|verify} messages.
|
|
9935
|
+
* @function encode
|
|
9936
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9937
|
+
* @static
|
|
9938
|
+
* @param {vertexvis.protobuf.stream.IToken} message Token message or plain object to encode
|
|
9939
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9940
|
+
* @returns {$protobuf.Writer} Writer
|
|
9941
|
+
*/
|
|
9942
|
+
Token.encode = function encode(message, writer) {
|
|
9943
|
+
if (!writer)
|
|
9944
|
+
writer = $Writer.create();
|
|
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);
|
|
9949
|
+
return writer;
|
|
9950
|
+
};
|
|
9951
|
+
|
|
9952
|
+
/**
|
|
9953
|
+
* Encodes the specified Token message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.Token.verify|verify} messages.
|
|
9954
|
+
* @function encodeDelimited
|
|
9955
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9956
|
+
* @static
|
|
9957
|
+
* @param {vertexvis.protobuf.stream.IToken} message Token message or plain object to encode
|
|
9958
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9959
|
+
* @returns {$protobuf.Writer} Writer
|
|
9960
|
+
*/
|
|
9961
|
+
Token.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9962
|
+
return this.encode(message, writer).ldelim();
|
|
9963
|
+
};
|
|
9964
|
+
|
|
9965
|
+
/**
|
|
9966
|
+
* Decodes a Token message from the specified reader or buffer.
|
|
9967
|
+
* @function decode
|
|
9968
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
9969
|
+
* @static
|
|
9970
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9971
|
+
* @param {number} [length] Message length if known beforehand
|
|
9972
|
+
* @returns {vertexvis.protobuf.stream.Token} Token
|
|
9973
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9974
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9975
|
+
*/
|
|
9976
|
+
Token.decode = function decode(reader, length) {
|
|
9977
|
+
if (!(reader instanceof $Reader))
|
|
9978
|
+
reader = $Reader.create(reader);
|
|
9979
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.Token();
|
|
9980
|
+
while (reader.pos < end) {
|
|
9981
|
+
let tag = reader.uint32();
|
|
9982
|
+
switch (tag >>> 3) {
|
|
9983
|
+
case 1:
|
|
9984
|
+
message.token = reader.string();
|
|
9985
|
+
break;
|
|
9986
|
+
case 2:
|
|
9987
|
+
message.expiresIn = reader.uint32();
|
|
9988
|
+
break;
|
|
9989
|
+
default:
|
|
9990
|
+
reader.skipType(tag & 7);
|
|
9991
|
+
break;
|
|
9992
|
+
}
|
|
9993
|
+
}
|
|
9994
|
+
return message;
|
|
9995
|
+
};
|
|
9996
|
+
|
|
9997
|
+
/**
|
|
9998
|
+
* Decodes a Token message from the specified reader or buffer, length delimited.
|
|
9999
|
+
* @function decodeDelimited
|
|
10000
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
10001
|
+
* @static
|
|
10002
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10003
|
+
* @returns {vertexvis.protobuf.stream.Token} Token
|
|
10004
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10005
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10006
|
+
*/
|
|
10007
|
+
Token.decodeDelimited = function decodeDelimited(reader) {
|
|
10008
|
+
if (!(reader instanceof $Reader))
|
|
10009
|
+
reader = new $Reader(reader);
|
|
10010
|
+
return this.decode(reader, reader.uint32());
|
|
10011
|
+
};
|
|
10012
|
+
|
|
10013
|
+
/**
|
|
10014
|
+
* Verifies a Token message.
|
|
10015
|
+
* @function verify
|
|
10016
|
+
* @memberof vertexvis.protobuf.stream.Token
|
|
10017
|
+
* @static
|
|
10018
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10019
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10020
|
+
*/
|
|
10021
|
+
Token.verify = function verify(message) {
|
|
10022
|
+
if (typeof message !== "object" || message === null)
|
|
10023
|
+
return "object expected";
|
|
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";
|
|
10030
|
+
return null;
|
|
10031
|
+
};
|
|
10032
|
+
|
|
10033
|
+
/**
|
|
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
|
+
|
|
9880
10090
|
stream.Error = (function() {
|
|
9881
10091
|
|
|
9882
10092
|
/**
|
|
@@ -11102,6 +11312,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11102
11312
|
* @property {vertexvis.protobuf.stream.ILoadSceneViewStatePayload|null} [loadSceneViewState] StreamRequest loadSceneViewState
|
|
11103
11313
|
* @property {vertexvis.protobuf.stream.IUpdateCrossSectioningPayload|null} [updateCrossSectioning] StreamRequest updateCrossSectioning
|
|
11104
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
|
|
11105
11317
|
*/
|
|
11106
11318
|
|
|
11107
11319
|
/**
|
|
@@ -11263,17 +11475,33 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11263
11475
|
*/
|
|
11264
11476
|
StreamRequest.prototype.getStencilBuffer = null;
|
|
11265
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
|
+
|
|
11266
11494
|
// OneOf field names bound to virtual getters and setters
|
|
11267
11495
|
let $oneOfFields;
|
|
11268
11496
|
|
|
11269
11497
|
/**
|
|
11270
11498
|
* StreamRequest payload.
|
|
11271
|
-
* @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
|
|
11272
11500
|
* @memberof vertexvis.protobuf.stream.StreamRequest
|
|
11273
11501
|
* @instance
|
|
11274
11502
|
*/
|
|
11275
11503
|
Object.defineProperty(StreamRequest.prototype, "payload", {
|
|
11276
|
-
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"]),
|
|
11277
11505
|
set: $util.oneOfSetter($oneOfFields)
|
|
11278
11506
|
});
|
|
11279
11507
|
|
|
@@ -11337,6 +11565,10 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11337
11565
|
$root.vertexvis.protobuf.stream.UpdateCrossSectioningPayload.encode(message.updateCrossSectioning, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
11338
11566
|
if (message.getStencilBuffer != null && Object.hasOwnProperty.call(message, "getStencilBuffer"))
|
|
11339
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();
|
|
11340
11572
|
return writer;
|
|
11341
11573
|
};
|
|
11342
11574
|
|
|
@@ -11425,6 +11657,12 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11425
11657
|
case 18:
|
|
11426
11658
|
message.getStencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferPayload.decode(reader, reader.uint32());
|
|
11427
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;
|
|
11428
11666
|
default:
|
|
11429
11667
|
reader.skipType(tag & 7);
|
|
11430
11668
|
break;
|
|
@@ -11634,6 +11872,26 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11634
11872
|
return "getStencilBuffer." + error;
|
|
11635
11873
|
}
|
|
11636
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
|
+
}
|
|
11637
11895
|
return null;
|
|
11638
11896
|
};
|
|
11639
11897
|
|
|
@@ -11739,6 +11997,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11739
11997
|
throw TypeError(".vertexvis.protobuf.stream.StreamRequest.getStencilBuffer: object expected");
|
|
11740
11998
|
message.getStencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferPayload.fromObject(object.getStencilBuffer);
|
|
11741
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
|
+
}
|
|
11742
12010
|
return message;
|
|
11743
12011
|
};
|
|
11744
12012
|
|
|
@@ -11844,6 +12112,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11844
12112
|
if (options.oneofs)
|
|
11845
12113
|
object.payload = "getStencilBuffer";
|
|
11846
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
|
+
}
|
|
11847
12125
|
return object;
|
|
11848
12126
|
};
|
|
11849
12127
|
|
|
@@ -15567,25 +15845,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15567
15845
|
return LoadSceneViewStatePayload;
|
|
15568
15846
|
})();
|
|
15569
15847
|
|
|
15570
|
-
stream.
|
|
15848
|
+
stream.ResetViewPlayload = (function() {
|
|
15571
15849
|
|
|
15572
15850
|
/**
|
|
15573
|
-
* Properties of
|
|
15851
|
+
* Properties of a ResetViewPlayload.
|
|
15574
15852
|
* @memberof vertexvis.protobuf.stream
|
|
15575
|
-
* @interface
|
|
15576
|
-
* @property {
|
|
15577
|
-
* @property {
|
|
15853
|
+
* @interface IResetViewPlayload
|
|
15854
|
+
* @property {google.protobuf.IStringValue|null} [frameCorrelationId] ResetViewPlayload frameCorrelationId
|
|
15855
|
+
* @property {boolean|null} [includeCamera] ResetViewPlayload includeCamera
|
|
15578
15856
|
*/
|
|
15579
15857
|
|
|
15580
15858
|
/**
|
|
15581
|
-
* Constructs a new
|
|
15859
|
+
* Constructs a new ResetViewPlayload.
|
|
15582
15860
|
* @memberof vertexvis.protobuf.stream
|
|
15583
|
-
* @classdesc Represents
|
|
15584
|
-
* @implements
|
|
15861
|
+
* @classdesc Represents a ResetViewPlayload.
|
|
15862
|
+
* @implements IResetViewPlayload
|
|
15585
15863
|
* @constructor
|
|
15586
|
-
* @param {vertexvis.protobuf.stream.
|
|
15864
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload=} [properties] Properties to set
|
|
15587
15865
|
*/
|
|
15588
|
-
function
|
|
15866
|
+
function ResetViewPlayload(properties) {
|
|
15589
15867
|
if (properties)
|
|
15590
15868
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15591
15869
|
if (properties[keys[i]] != null)
|
|
@@ -15593,88 +15871,88 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15593
15871
|
}
|
|
15594
15872
|
|
|
15595
15873
|
/**
|
|
15596
|
-
*
|
|
15597
|
-
* @member {
|
|
15598
|
-
* @memberof vertexvis.protobuf.stream.
|
|
15874
|
+
* ResetViewPlayload frameCorrelationId.
|
|
15875
|
+
* @member {google.protobuf.IStringValue|null|undefined} frameCorrelationId
|
|
15876
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15599
15877
|
* @instance
|
|
15600
15878
|
*/
|
|
15601
|
-
|
|
15879
|
+
ResetViewPlayload.prototype.frameCorrelationId = null;
|
|
15602
15880
|
|
|
15603
15881
|
/**
|
|
15604
|
-
*
|
|
15605
|
-
* @member {
|
|
15606
|
-
* @memberof vertexvis.protobuf.stream.
|
|
15882
|
+
* ResetViewPlayload includeCamera.
|
|
15883
|
+
* @member {boolean} includeCamera
|
|
15884
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15607
15885
|
* @instance
|
|
15608
15886
|
*/
|
|
15609
|
-
|
|
15887
|
+
ResetViewPlayload.prototype.includeCamera = false;
|
|
15610
15888
|
|
|
15611
15889
|
/**
|
|
15612
|
-
* Creates a new
|
|
15890
|
+
* Creates a new ResetViewPlayload instance using the specified properties.
|
|
15613
15891
|
* @function create
|
|
15614
|
-
* @memberof vertexvis.protobuf.stream.
|
|
15892
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15615
15893
|
* @static
|
|
15616
|
-
* @param {vertexvis.protobuf.stream.
|
|
15617
|
-
* @returns {vertexvis.protobuf.stream.
|
|
15894
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload=} [properties] Properties to set
|
|
15895
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload instance
|
|
15618
15896
|
*/
|
|
15619
|
-
|
|
15620
|
-
return new
|
|
15897
|
+
ResetViewPlayload.create = function create(properties) {
|
|
15898
|
+
return new ResetViewPlayload(properties);
|
|
15621
15899
|
};
|
|
15622
15900
|
|
|
15623
15901
|
/**
|
|
15624
|
-
* Encodes the specified
|
|
15902
|
+
* Encodes the specified ResetViewPlayload message. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewPlayload.verify|verify} messages.
|
|
15625
15903
|
* @function encode
|
|
15626
|
-
* @memberof vertexvis.protobuf.stream.
|
|
15904
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15627
15905
|
* @static
|
|
15628
|
-
* @param {vertexvis.protobuf.stream.
|
|
15906
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload} message ResetViewPlayload message or plain object to encode
|
|
15629
15907
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15630
15908
|
* @returns {$protobuf.Writer} Writer
|
|
15631
15909
|
*/
|
|
15632
|
-
|
|
15910
|
+
ResetViewPlayload.encode = function encode(message, writer) {
|
|
15633
15911
|
if (!writer)
|
|
15634
15912
|
writer = $Writer.create();
|
|
15635
|
-
if (message.crossSectioning != null && Object.hasOwnProperty.call(message, "crossSectioning"))
|
|
15636
|
-
$root.vertexvis.protobuf.stream.CrossSectioning.encode(message.crossSectioning, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15637
15913
|
if (message.frameCorrelationId != null && Object.hasOwnProperty.call(message, "frameCorrelationId"))
|
|
15638
|
-
$root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id
|
|
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);
|
|
15639
15917
|
return writer;
|
|
15640
15918
|
};
|
|
15641
15919
|
|
|
15642
15920
|
/**
|
|
15643
|
-
* Encodes the specified
|
|
15921
|
+
* Encodes the specified ResetViewPlayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewPlayload.verify|verify} messages.
|
|
15644
15922
|
* @function encodeDelimited
|
|
15645
|
-
* @memberof vertexvis.protobuf.stream.
|
|
15923
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15646
15924
|
* @static
|
|
15647
|
-
* @param {vertexvis.protobuf.stream.
|
|
15925
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload} message ResetViewPlayload message or plain object to encode
|
|
15648
15926
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15649
15927
|
* @returns {$protobuf.Writer} Writer
|
|
15650
15928
|
*/
|
|
15651
|
-
|
|
15929
|
+
ResetViewPlayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15652
15930
|
return this.encode(message, writer).ldelim();
|
|
15653
15931
|
};
|
|
15654
15932
|
|
|
15655
15933
|
/**
|
|
15656
|
-
* Decodes
|
|
15934
|
+
* Decodes a ResetViewPlayload message from the specified reader or buffer.
|
|
15657
15935
|
* @function decode
|
|
15658
|
-
* @memberof vertexvis.protobuf.stream.
|
|
15936
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15659
15937
|
* @static
|
|
15660
15938
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15661
15939
|
* @param {number} [length] Message length if known beforehand
|
|
15662
|
-
* @returns {vertexvis.protobuf.stream.
|
|
15940
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
15663
15941
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15664
15942
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15665
15943
|
*/
|
|
15666
|
-
|
|
15944
|
+
ResetViewPlayload.decode = function decode(reader, length) {
|
|
15667
15945
|
if (!(reader instanceof $Reader))
|
|
15668
15946
|
reader = $Reader.create(reader);
|
|
15669
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.
|
|
15947
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ResetViewPlayload();
|
|
15670
15948
|
while (reader.pos < end) {
|
|
15671
15949
|
let tag = reader.uint32();
|
|
15672
15950
|
switch (tag >>> 3) {
|
|
15673
15951
|
case 1:
|
|
15674
|
-
message.
|
|
15952
|
+
message.frameCorrelationId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
15675
15953
|
break;
|
|
15676
15954
|
case 2:
|
|
15677
|
-
message.
|
|
15955
|
+
message.includeCamera = reader.bool();
|
|
15678
15956
|
break;
|
|
15679
15957
|
default:
|
|
15680
15958
|
reader.skipType(tag & 7);
|
|
@@ -15685,125 +15963,527 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15685
15963
|
};
|
|
15686
15964
|
|
|
15687
15965
|
/**
|
|
15688
|
-
* Decodes
|
|
15966
|
+
* Decodes a ResetViewPlayload message from the specified reader or buffer, length delimited.
|
|
15689
15967
|
* @function decodeDelimited
|
|
15690
|
-
* @memberof vertexvis.protobuf.stream.
|
|
15968
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15691
15969
|
* @static
|
|
15692
15970
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15693
|
-
* @returns {vertexvis.protobuf.stream.
|
|
15971
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
15694
15972
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15695
15973
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15696
15974
|
*/
|
|
15697
|
-
|
|
15975
|
+
ResetViewPlayload.decodeDelimited = function decodeDelimited(reader) {
|
|
15698
15976
|
if (!(reader instanceof $Reader))
|
|
15699
15977
|
reader = new $Reader(reader);
|
|
15700
15978
|
return this.decode(reader, reader.uint32());
|
|
15701
15979
|
};
|
|
15702
15980
|
|
|
15703
15981
|
/**
|
|
15704
|
-
* Verifies
|
|
15982
|
+
* Verifies a ResetViewPlayload message.
|
|
15705
15983
|
* @function verify
|
|
15706
|
-
* @memberof vertexvis.protobuf.stream.
|
|
15984
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15707
15985
|
* @static
|
|
15708
15986
|
* @param {Object.<string,*>} message Plain object to verify
|
|
15709
15987
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15710
15988
|
*/
|
|
15711
|
-
|
|
15989
|
+
ResetViewPlayload.verify = function verify(message) {
|
|
15712
15990
|
if (typeof message !== "object" || message === null)
|
|
15713
15991
|
return "object expected";
|
|
15714
|
-
if (message.crossSectioning != null && message.hasOwnProperty("crossSectioning")) {
|
|
15715
|
-
let error = $root.vertexvis.protobuf.stream.CrossSectioning.verify(message.crossSectioning);
|
|
15716
|
-
if (error)
|
|
15717
|
-
return "crossSectioning." + error;
|
|
15718
|
-
}
|
|
15719
15992
|
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId")) {
|
|
15720
15993
|
let error = $root.google.protobuf.StringValue.verify(message.frameCorrelationId);
|
|
15721
15994
|
if (error)
|
|
15722
15995
|
return "frameCorrelationId." + error;
|
|
15723
15996
|
}
|
|
15997
|
+
if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
|
|
15998
|
+
if (typeof message.includeCamera !== "boolean")
|
|
15999
|
+
return "includeCamera: boolean expected";
|
|
15724
16000
|
return null;
|
|
15725
16001
|
};
|
|
15726
16002
|
|
|
15727
16003
|
/**
|
|
15728
|
-
* Creates
|
|
16004
|
+
* Creates a ResetViewPlayload message from a plain object. Also converts values to their respective internal types.
|
|
15729
16005
|
* @function fromObject
|
|
15730
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16006
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15731
16007
|
* @static
|
|
15732
16008
|
* @param {Object.<string,*>} object Plain object
|
|
15733
|
-
* @returns {vertexvis.protobuf.stream.
|
|
16009
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
15734
16010
|
*/
|
|
15735
|
-
|
|
15736
|
-
if (object instanceof $root.vertexvis.protobuf.stream.
|
|
16011
|
+
ResetViewPlayload.fromObject = function fromObject(object) {
|
|
16012
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ResetViewPlayload)
|
|
15737
16013
|
return object;
|
|
15738
|
-
let message = new $root.vertexvis.protobuf.stream.
|
|
15739
|
-
if (object.crossSectioning != null) {
|
|
15740
|
-
if (typeof object.crossSectioning !== "object")
|
|
15741
|
-
throw TypeError(".vertexvis.protobuf.stream.UpdateCrossSectioningPayload.crossSectioning: object expected");
|
|
15742
|
-
message.crossSectioning = $root.vertexvis.protobuf.stream.CrossSectioning.fromObject(object.crossSectioning);
|
|
15743
|
-
}
|
|
16014
|
+
let message = new $root.vertexvis.protobuf.stream.ResetViewPlayload();
|
|
15744
16015
|
if (object.frameCorrelationId != null) {
|
|
15745
16016
|
if (typeof object.frameCorrelationId !== "object")
|
|
15746
|
-
throw TypeError(".vertexvis.protobuf.stream.
|
|
16017
|
+
throw TypeError(".vertexvis.protobuf.stream.ResetViewPlayload.frameCorrelationId: object expected");
|
|
15747
16018
|
message.frameCorrelationId = $root.google.protobuf.StringValue.fromObject(object.frameCorrelationId);
|
|
15748
16019
|
}
|
|
16020
|
+
if (object.includeCamera != null)
|
|
16021
|
+
message.includeCamera = Boolean(object.includeCamera);
|
|
15749
16022
|
return message;
|
|
15750
16023
|
};
|
|
15751
16024
|
|
|
15752
16025
|
/**
|
|
15753
|
-
* Creates a plain object from
|
|
16026
|
+
* Creates a plain object from a ResetViewPlayload message. Also converts values to other types if specified.
|
|
15754
16027
|
* @function toObject
|
|
15755
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16028
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15756
16029
|
* @static
|
|
15757
|
-
* @param {vertexvis.protobuf.stream.
|
|
16030
|
+
* @param {vertexvis.protobuf.stream.ResetViewPlayload} message ResetViewPlayload
|
|
15758
16031
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15759
16032
|
* @returns {Object.<string,*>} Plain object
|
|
15760
16033
|
*/
|
|
15761
|
-
|
|
16034
|
+
ResetViewPlayload.toObject = function toObject(message, options) {
|
|
15762
16035
|
if (!options)
|
|
15763
16036
|
options = {};
|
|
15764
16037
|
let object = {};
|
|
15765
16038
|
if (options.defaults) {
|
|
15766
|
-
object.crossSectioning = null;
|
|
15767
16039
|
object.frameCorrelationId = null;
|
|
16040
|
+
object.includeCamera = false;
|
|
15768
16041
|
}
|
|
15769
|
-
if (message.crossSectioning != null && message.hasOwnProperty("crossSectioning"))
|
|
15770
|
-
object.crossSectioning = $root.vertexvis.protobuf.stream.CrossSectioning.toObject(message.crossSectioning, options);
|
|
15771
16042
|
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
|
|
15772
16043
|
object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
|
|
16044
|
+
if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
|
|
16045
|
+
object.includeCamera = message.includeCamera;
|
|
15773
16046
|
return object;
|
|
15774
16047
|
};
|
|
15775
16048
|
|
|
15776
16049
|
/**
|
|
15777
|
-
* Converts this
|
|
16050
|
+
* Converts this ResetViewPlayload to JSON.
|
|
15778
16051
|
* @function toJSON
|
|
15779
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16052
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15780
16053
|
* @instance
|
|
15781
16054
|
* @returns {Object.<string,*>} JSON object
|
|
15782
16055
|
*/
|
|
15783
|
-
|
|
16056
|
+
ResetViewPlayload.prototype.toJSON = function toJSON() {
|
|
15784
16057
|
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
15785
16058
|
};
|
|
15786
16059
|
|
|
15787
|
-
return
|
|
16060
|
+
return ResetViewPlayload;
|
|
15788
16061
|
})();
|
|
15789
16062
|
|
|
15790
|
-
stream.
|
|
16063
|
+
stream.UpdateCrossSectioningPayload = (function() {
|
|
15791
16064
|
|
|
15792
16065
|
/**
|
|
15793
|
-
* Properties of
|
|
16066
|
+
* Properties of an UpdateCrossSectioningPayload.
|
|
15794
16067
|
* @memberof vertexvis.protobuf.stream
|
|
15795
|
-
* @interface
|
|
16068
|
+
* @interface IUpdateCrossSectioningPayload
|
|
16069
|
+
* @property {vertexvis.protobuf.stream.ICrossSectioning|null} [crossSectioning] UpdateCrossSectioningPayload crossSectioning
|
|
16070
|
+
* @property {google.protobuf.IStringValue|null} [frameCorrelationId] UpdateCrossSectioningPayload frameCorrelationId
|
|
15796
16071
|
*/
|
|
15797
16072
|
|
|
15798
16073
|
/**
|
|
15799
|
-
* Constructs a new
|
|
16074
|
+
* Constructs a new UpdateCrossSectioningPayload.
|
|
15800
16075
|
* @memberof vertexvis.protobuf.stream
|
|
15801
|
-
* @classdesc Represents
|
|
15802
|
-
* @implements
|
|
16076
|
+
* @classdesc Represents an UpdateCrossSectioningPayload.
|
|
16077
|
+
* @implements IUpdateCrossSectioningPayload
|
|
15803
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
|
|
16111
|
+
*/
|
|
16112
|
+
UpdateCrossSectioningPayload.create = function create(properties) {
|
|
16113
|
+
return new UpdateCrossSectioningPayload(properties);
|
|
16114
|
+
};
|
|
16115
|
+
|
|
16116
|
+
/**
|
|
16117
|
+
* Encodes the specified UpdateCrossSectioningPayload message. Does not implicitly {@link vertexvis.protobuf.stream.UpdateCrossSectioningPayload.verify|verify} messages.
|
|
16118
|
+
* @function encode
|
|
16119
|
+
* @memberof vertexvis.protobuf.stream.UpdateCrossSectioningPayload
|
|
16120
|
+
* @static
|
|
16121
|
+
* @param {vertexvis.protobuf.stream.IUpdateCrossSectioningPayload} message UpdateCrossSectioningPayload message or plain object to encode
|
|
16122
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16123
|
+
* @returns {$protobuf.Writer} Writer
|
|
16124
|
+
*/
|
|
16125
|
+
UpdateCrossSectioningPayload.encode = function encode(message, writer) {
|
|
16126
|
+
if (!writer)
|
|
16127
|
+
writer = $Writer.create();
|
|
16128
|
+
if (message.crossSectioning != null && Object.hasOwnProperty.call(message, "crossSectioning"))
|
|
16129
|
+
$root.vertexvis.protobuf.stream.CrossSectioning.encode(message.crossSectioning, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
16130
|
+
if (message.frameCorrelationId != null && Object.hasOwnProperty.call(message, "frameCorrelationId"))
|
|
16131
|
+
$root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
16132
|
+
return writer;
|
|
16133
|
+
};
|
|
16134
|
+
|
|
16135
|
+
/**
|
|
16136
|
+
* Encodes the specified UpdateCrossSectioningPayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.UpdateCrossSectioningPayload.verify|verify} messages.
|
|
16137
|
+
* @function encodeDelimited
|
|
16138
|
+
* @memberof vertexvis.protobuf.stream.UpdateCrossSectioningPayload
|
|
16139
|
+
* @static
|
|
16140
|
+
* @param {vertexvis.protobuf.stream.IUpdateCrossSectioningPayload} message UpdateCrossSectioningPayload message or plain object to encode
|
|
16141
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16142
|
+
* @returns {$protobuf.Writer} Writer
|
|
16143
|
+
*/
|
|
16144
|
+
UpdateCrossSectioningPayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16145
|
+
return this.encode(message, writer).ldelim();
|
|
16146
|
+
};
|
|
16147
|
+
|
|
16148
|
+
/**
|
|
16149
|
+
* Decodes an UpdateCrossSectioningPayload message from the specified reader or buffer.
|
|
16150
|
+
* @function decode
|
|
16151
|
+
* @memberof vertexvis.protobuf.stream.UpdateCrossSectioningPayload
|
|
16152
|
+
* @static
|
|
16153
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16154
|
+
* @param {number} [length] Message length if known beforehand
|
|
16155
|
+
* @returns {vertexvis.protobuf.stream.UpdateCrossSectioningPayload} UpdateCrossSectioningPayload
|
|
16156
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16157
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16158
|
+
*/
|
|
16159
|
+
UpdateCrossSectioningPayload.decode = function decode(reader, length) {
|
|
16160
|
+
if (!(reader instanceof $Reader))
|
|
16161
|
+
reader = $Reader.create(reader);
|
|
16162
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.UpdateCrossSectioningPayload();
|
|
16163
|
+
while (reader.pos < end) {
|
|
16164
|
+
let tag = reader.uint32();
|
|
16165
|
+
switch (tag >>> 3) {
|
|
16166
|
+
case 1:
|
|
16167
|
+
message.crossSectioning = $root.vertexvis.protobuf.stream.CrossSectioning.decode(reader, reader.uint32());
|
|
16168
|
+
break;
|
|
16169
|
+
case 2:
|
|
16170
|
+
message.frameCorrelationId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
16171
|
+
break;
|
|
16172
|
+
default:
|
|
16173
|
+
reader.skipType(tag & 7);
|
|
16174
|
+
break;
|
|
16175
|
+
}
|
|
16176
|
+
}
|
|
16177
|
+
return message;
|
|
16178
|
+
};
|
|
16179
|
+
|
|
16180
|
+
/**
|
|
16181
|
+
* Decodes an UpdateCrossSectioningPayload message from the specified reader or buffer, length delimited.
|
|
16182
|
+
* @function decodeDelimited
|
|
16183
|
+
* @memberof vertexvis.protobuf.stream.UpdateCrossSectioningPayload
|
|
16184
|
+
* @static
|
|
16185
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16186
|
+
* @returns {vertexvis.protobuf.stream.UpdateCrossSectioningPayload} UpdateCrossSectioningPayload
|
|
16187
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16188
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16189
|
+
*/
|
|
16190
|
+
UpdateCrossSectioningPayload.decodeDelimited = function decodeDelimited(reader) {
|
|
16191
|
+
if (!(reader instanceof $Reader))
|
|
16192
|
+
reader = new $Reader(reader);
|
|
16193
|
+
return this.decode(reader, reader.uint32());
|
|
16194
|
+
};
|
|
16195
|
+
|
|
16196
|
+
/**
|
|
16197
|
+
* Verifies an UpdateCrossSectioningPayload message.
|
|
16198
|
+
* @function verify
|
|
16199
|
+
* @memberof vertexvis.protobuf.stream.UpdateCrossSectioningPayload
|
|
16200
|
+
* @static
|
|
16201
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
16202
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16203
|
+
*/
|
|
16204
|
+
UpdateCrossSectioningPayload.verify = function verify(message) {
|
|
16205
|
+
if (typeof message !== "object" || message === null)
|
|
16206
|
+
return "object expected";
|
|
16207
|
+
if (message.crossSectioning != null && message.hasOwnProperty("crossSectioning")) {
|
|
16208
|
+
let error = $root.vertexvis.protobuf.stream.CrossSectioning.verify(message.crossSectioning);
|
|
16209
|
+
if (error)
|
|
16210
|
+
return "crossSectioning." + error;
|
|
16211
|
+
}
|
|
16212
|
+
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId")) {
|
|
16213
|
+
let error = $root.google.protobuf.StringValue.verify(message.frameCorrelationId);
|
|
16214
|
+
if (error)
|
|
16215
|
+
return "frameCorrelationId." + error;
|
|
16216
|
+
}
|
|
16217
|
+
return null;
|
|
16218
|
+
};
|
|
16219
|
+
|
|
16220
|
+
/**
|
|
16221
|
+
* Creates an UpdateCrossSectioningPayload message from a plain object. Also converts values to their respective internal types.
|
|
16222
|
+
* @function fromObject
|
|
16223
|
+
* @memberof vertexvis.protobuf.stream.UpdateCrossSectioningPayload
|
|
16224
|
+
* @static
|
|
16225
|
+
* @param {Object.<string,*>} object Plain object
|
|
16226
|
+
* @returns {vertexvis.protobuf.stream.UpdateCrossSectioningPayload} UpdateCrossSectioningPayload
|
|
16227
|
+
*/
|
|
16228
|
+
UpdateCrossSectioningPayload.fromObject = function fromObject(object) {
|
|
16229
|
+
if (object instanceof $root.vertexvis.protobuf.stream.UpdateCrossSectioningPayload)
|
|
16230
|
+
return object;
|
|
16231
|
+
let message = new $root.vertexvis.protobuf.stream.UpdateCrossSectioningPayload();
|
|
16232
|
+
if (object.crossSectioning != null) {
|
|
16233
|
+
if (typeof object.crossSectioning !== "object")
|
|
16234
|
+
throw TypeError(".vertexvis.protobuf.stream.UpdateCrossSectioningPayload.crossSectioning: object expected");
|
|
16235
|
+
message.crossSectioning = $root.vertexvis.protobuf.stream.CrossSectioning.fromObject(object.crossSectioning);
|
|
16236
|
+
}
|
|
16237
|
+
if (object.frameCorrelationId != null) {
|
|
16238
|
+
if (typeof object.frameCorrelationId !== "object")
|
|
16239
|
+
throw TypeError(".vertexvis.protobuf.stream.UpdateCrossSectioningPayload.frameCorrelationId: object expected");
|
|
16240
|
+
message.frameCorrelationId = $root.google.protobuf.StringValue.fromObject(object.frameCorrelationId);
|
|
16241
|
+
}
|
|
16242
|
+
return message;
|
|
16243
|
+
};
|
|
16244
|
+
|
|
16245
|
+
/**
|
|
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
|
|
15804
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.
|
|
16438
|
+
* @function toObject
|
|
16439
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
16440
|
+
* @static
|
|
16441
|
+
* @param {vertexvis.protobuf.stream.GetStencilBufferPayload} message GetStencilBufferPayload
|
|
16442
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16443
|
+
* @returns {Object.<string,*>} Plain object
|
|
15805
16444
|
*/
|
|
15806
|
-
function
|
|
16445
|
+
GetStencilBufferPayload.toObject = function toObject(message, options) {
|
|
16446
|
+
if (!options)
|
|
16447
|
+
options = {};
|
|
16448
|
+
let object = {};
|
|
16449
|
+
if (options.defaults)
|
|
16450
|
+
object.includeDepthBuffer = false;
|
|
16451
|
+
if (message.includeDepthBuffer != null && message.hasOwnProperty("includeDepthBuffer"))
|
|
16452
|
+
object.includeDepthBuffer = message.includeDepthBuffer;
|
|
16453
|
+
return object;
|
|
16454
|
+
};
|
|
16455
|
+
|
|
16456
|
+
/**
|
|
16457
|
+
* Converts this GetStencilBufferPayload to JSON.
|
|
16458
|
+
* @function toJSON
|
|
16459
|
+
* @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
|
|
16460
|
+
* @instance
|
|
16461
|
+
* @returns {Object.<string,*>} JSON object
|
|
16462
|
+
*/
|
|
16463
|
+
GetStencilBufferPayload.prototype.toJSON = function toJSON() {
|
|
16464
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
16465
|
+
};
|
|
16466
|
+
|
|
16467
|
+
return GetStencilBufferPayload;
|
|
16468
|
+
})();
|
|
16469
|
+
|
|
16470
|
+
stream.RefreshTokenPayload = (function() {
|
|
16471
|
+
|
|
16472
|
+
/**
|
|
16473
|
+
* Properties of a RefreshTokenPayload.
|
|
16474
|
+
* @memberof vertexvis.protobuf.stream
|
|
16475
|
+
* @interface IRefreshTokenPayload
|
|
16476
|
+
*/
|
|
16477
|
+
|
|
16478
|
+
/**
|
|
16479
|
+
* Constructs a new RefreshTokenPayload.
|
|
16480
|
+
* @memberof vertexvis.protobuf.stream
|
|
16481
|
+
* @classdesc Represents a RefreshTokenPayload.
|
|
16482
|
+
* @implements IRefreshTokenPayload
|
|
16483
|
+
* @constructor
|
|
16484
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenPayload=} [properties] Properties to set
|
|
16485
|
+
*/
|
|
16486
|
+
function RefreshTokenPayload(properties) {
|
|
15807
16487
|
if (properties)
|
|
15808
16488
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15809
16489
|
if (properties[keys[i]] != null)
|
|
@@ -15811,60 +16491,60 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15811
16491
|
}
|
|
15812
16492
|
|
|
15813
16493
|
/**
|
|
15814
|
-
* Creates a new
|
|
16494
|
+
* Creates a new RefreshTokenPayload instance using the specified properties.
|
|
15815
16495
|
* @function create
|
|
15816
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16496
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15817
16497
|
* @static
|
|
15818
|
-
* @param {vertexvis.protobuf.stream.
|
|
15819
|
-
* @returns {vertexvis.protobuf.stream.
|
|
16498
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenPayload=} [properties] Properties to set
|
|
16499
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload instance
|
|
15820
16500
|
*/
|
|
15821
|
-
|
|
15822
|
-
return new
|
|
16501
|
+
RefreshTokenPayload.create = function create(properties) {
|
|
16502
|
+
return new RefreshTokenPayload(properties);
|
|
15823
16503
|
};
|
|
15824
16504
|
|
|
15825
16505
|
/**
|
|
15826
|
-
* Encodes the specified
|
|
16506
|
+
* Encodes the specified RefreshTokenPayload message. Does not implicitly {@link vertexvis.protobuf.stream.RefreshTokenPayload.verify|verify} messages.
|
|
15827
16507
|
* @function encode
|
|
15828
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16508
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15829
16509
|
* @static
|
|
15830
|
-
* @param {vertexvis.protobuf.stream.
|
|
16510
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenPayload} message RefreshTokenPayload message or plain object to encode
|
|
15831
16511
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15832
16512
|
* @returns {$protobuf.Writer} Writer
|
|
15833
16513
|
*/
|
|
15834
|
-
|
|
16514
|
+
RefreshTokenPayload.encode = function encode(message, writer) {
|
|
15835
16515
|
if (!writer)
|
|
15836
16516
|
writer = $Writer.create();
|
|
15837
16517
|
return writer;
|
|
15838
16518
|
};
|
|
15839
16519
|
|
|
15840
16520
|
/**
|
|
15841
|
-
* Encodes the specified
|
|
16521
|
+
* Encodes the specified RefreshTokenPayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.RefreshTokenPayload.verify|verify} messages.
|
|
15842
16522
|
* @function encodeDelimited
|
|
15843
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16523
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15844
16524
|
* @static
|
|
15845
|
-
* @param {vertexvis.protobuf.stream.
|
|
16525
|
+
* @param {vertexvis.protobuf.stream.IRefreshTokenPayload} message RefreshTokenPayload message or plain object to encode
|
|
15846
16526
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15847
16527
|
* @returns {$protobuf.Writer} Writer
|
|
15848
16528
|
*/
|
|
15849
|
-
|
|
16529
|
+
RefreshTokenPayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15850
16530
|
return this.encode(message, writer).ldelim();
|
|
15851
16531
|
};
|
|
15852
16532
|
|
|
15853
16533
|
/**
|
|
15854
|
-
* Decodes a
|
|
16534
|
+
* Decodes a RefreshTokenPayload message from the specified reader or buffer.
|
|
15855
16535
|
* @function decode
|
|
15856
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16536
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15857
16537
|
* @static
|
|
15858
16538
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15859
16539
|
* @param {number} [length] Message length if known beforehand
|
|
15860
|
-
* @returns {vertexvis.protobuf.stream.
|
|
16540
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload
|
|
15861
16541
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15862
16542
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15863
16543
|
*/
|
|
15864
|
-
|
|
16544
|
+
RefreshTokenPayload.decode = function decode(reader, length) {
|
|
15865
16545
|
if (!(reader instanceof $Reader))
|
|
15866
16546
|
reader = $Reader.create(reader);
|
|
15867
|
-
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();
|
|
15868
16548
|
while (reader.pos < end) {
|
|
15869
16549
|
let tag = reader.uint32();
|
|
15870
16550
|
switch (tag >>> 3) {
|
|
@@ -15877,74 +16557,74 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15877
16557
|
};
|
|
15878
16558
|
|
|
15879
16559
|
/**
|
|
15880
|
-
* Decodes a
|
|
16560
|
+
* Decodes a RefreshTokenPayload message from the specified reader or buffer, length delimited.
|
|
15881
16561
|
* @function decodeDelimited
|
|
15882
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16562
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15883
16563
|
* @static
|
|
15884
16564
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15885
|
-
* @returns {vertexvis.protobuf.stream.
|
|
16565
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload
|
|
15886
16566
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15887
16567
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15888
16568
|
*/
|
|
15889
|
-
|
|
16569
|
+
RefreshTokenPayload.decodeDelimited = function decodeDelimited(reader) {
|
|
15890
16570
|
if (!(reader instanceof $Reader))
|
|
15891
16571
|
reader = new $Reader(reader);
|
|
15892
16572
|
return this.decode(reader, reader.uint32());
|
|
15893
16573
|
};
|
|
15894
16574
|
|
|
15895
16575
|
/**
|
|
15896
|
-
* Verifies a
|
|
16576
|
+
* Verifies a RefreshTokenPayload message.
|
|
15897
16577
|
* @function verify
|
|
15898
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16578
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15899
16579
|
* @static
|
|
15900
16580
|
* @param {Object.<string,*>} message Plain object to verify
|
|
15901
16581
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15902
16582
|
*/
|
|
15903
|
-
|
|
16583
|
+
RefreshTokenPayload.verify = function verify(message) {
|
|
15904
16584
|
if (typeof message !== "object" || message === null)
|
|
15905
16585
|
return "object expected";
|
|
15906
16586
|
return null;
|
|
15907
16587
|
};
|
|
15908
16588
|
|
|
15909
16589
|
/**
|
|
15910
|
-
* Creates a
|
|
16590
|
+
* Creates a RefreshTokenPayload message from a plain object. Also converts values to their respective internal types.
|
|
15911
16591
|
* @function fromObject
|
|
15912
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16592
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15913
16593
|
* @static
|
|
15914
16594
|
* @param {Object.<string,*>} object Plain object
|
|
15915
|
-
* @returns {vertexvis.protobuf.stream.
|
|
16595
|
+
* @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload
|
|
15916
16596
|
*/
|
|
15917
|
-
|
|
15918
|
-
if (object instanceof $root.vertexvis.protobuf.stream.
|
|
16597
|
+
RefreshTokenPayload.fromObject = function fromObject(object) {
|
|
16598
|
+
if (object instanceof $root.vertexvis.protobuf.stream.RefreshTokenPayload)
|
|
15919
16599
|
return object;
|
|
15920
|
-
return new $root.vertexvis.protobuf.stream.
|
|
16600
|
+
return new $root.vertexvis.protobuf.stream.RefreshTokenPayload();
|
|
15921
16601
|
};
|
|
15922
16602
|
|
|
15923
16603
|
/**
|
|
15924
|
-
* Creates a plain object from a
|
|
16604
|
+
* Creates a plain object from a RefreshTokenPayload message. Also converts values to other types if specified.
|
|
15925
16605
|
* @function toObject
|
|
15926
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16606
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15927
16607
|
* @static
|
|
15928
|
-
* @param {vertexvis.protobuf.stream.
|
|
16608
|
+
* @param {vertexvis.protobuf.stream.RefreshTokenPayload} message RefreshTokenPayload
|
|
15929
16609
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15930
16610
|
* @returns {Object.<string,*>} Plain object
|
|
15931
16611
|
*/
|
|
15932
|
-
|
|
16612
|
+
RefreshTokenPayload.toObject = function toObject() {
|
|
15933
16613
|
return {};
|
|
15934
16614
|
};
|
|
15935
16615
|
|
|
15936
16616
|
/**
|
|
15937
|
-
* Converts this
|
|
16617
|
+
* Converts this RefreshTokenPayload to JSON.
|
|
15938
16618
|
* @function toJSON
|
|
15939
|
-
* @memberof vertexvis.protobuf.stream.
|
|
16619
|
+
* @memberof vertexvis.protobuf.stream.RefreshTokenPayload
|
|
15940
16620
|
* @instance
|
|
15941
16621
|
* @returns {Object.<string,*>} JSON object
|
|
15942
16622
|
*/
|
|
15943
|
-
|
|
16623
|
+
RefreshTokenPayload.prototype.toJSON = function toJSON() {
|
|
15944
16624
|
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
15945
16625
|
};
|
|
15946
16626
|
|
|
15947
|
-
return
|
|
16627
|
+
return RefreshTokenPayload;
|
|
15948
16628
|
})();
|
|
15949
16629
|
|
|
15950
16630
|
stream.StreamResponse = (function() {
|
|
@@ -15970,6 +16650,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15970
16650
|
* @property {vertexvis.protobuf.stream.ILoadSceneViewStateResult|null} [loadSceneViewState] StreamResponse loadSceneViewState
|
|
15971
16651
|
* @property {vertexvis.protobuf.stream.IUpdateCrossSectioningResult|null} [updateCrossSectioning] StreamResponse updateCrossSectioning
|
|
15972
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
|
|
15973
16655
|
*/
|
|
15974
16656
|
|
|
15975
16657
|
/**
|
|
@@ -16123,17 +16805,33 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16123
16805
|
*/
|
|
16124
16806
|
StreamResponse.prototype.stencilBuffer = null;
|
|
16125
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
|
+
|
|
16126
16824
|
// OneOf field names bound to virtual getters and setters
|
|
16127
16825
|
let $oneOfFields;
|
|
16128
16826
|
|
|
16129
16827
|
/**
|
|
16130
16828
|
* StreamResponse result.
|
|
16131
|
-
* @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
|
|
16132
16830
|
* @memberof vertexvis.protobuf.stream.StreamResponse
|
|
16133
16831
|
* @instance
|
|
16134
16832
|
*/
|
|
16135
16833
|
Object.defineProperty(StreamResponse.prototype, "result", {
|
|
16136
|
-
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"]),
|
|
16137
16835
|
set: $util.oneOfSetter($oneOfFields)
|
|
16138
16836
|
});
|
|
16139
16837
|
|
|
@@ -16195,6 +16893,10 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16195
16893
|
$root.vertexvis.protobuf.stream.UpdateCrossSectioningResult.encode(message.updateCrossSectioning, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
16196
16894
|
if (message.stencilBuffer != null && Object.hasOwnProperty.call(message, "stencilBuffer"))
|
|
16197
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();
|
|
16198
16900
|
return writer;
|
|
16199
16901
|
};
|
|
16200
16902
|
|
|
@@ -16280,6 +16982,12 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16280
16982
|
case 17:
|
|
16281
16983
|
message.stencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferResult.decode(reader, reader.uint32());
|
|
16282
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;
|
|
16283
16991
|
default:
|
|
16284
16992
|
reader.skipType(tag & 7);
|
|
16285
16993
|
break;
|
|
@@ -16474,6 +17182,26 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16474
17182
|
return "stencilBuffer." + error;
|
|
16475
17183
|
}
|
|
16476
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
|
+
}
|
|
16477
17205
|
return null;
|
|
16478
17206
|
};
|
|
16479
17207
|
|
|
@@ -16574,6 +17302,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16574
17302
|
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.stencilBuffer: object expected");
|
|
16575
17303
|
message.stencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferResult.fromObject(object.stencilBuffer);
|
|
16576
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
|
+
}
|
|
16577
17315
|
return message;
|
|
16578
17316
|
};
|
|
16579
17317
|
|
|
@@ -16673,6 +17411,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16673
17411
|
if (options.oneofs)
|
|
16674
17412
|
object.result = "stencilBuffer";
|
|
16675
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
|
+
}
|
|
16676
17424
|
return object;
|
|
16677
17425
|
};
|
|
16678
17426
|
|
|
@@ -16701,6 +17449,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16701
17449
|
* @property {vertexvis.protobuf.core.IUuid|null} [sessionId] StartStreamResult sessionId
|
|
16702
17450
|
* @property {string|null} [jwt] StartStreamResult jwt
|
|
16703
17451
|
* @property {vertexvis.protobuf.stream.IOrientation|null} [worldOrientation] StartStreamResult worldOrientation
|
|
17452
|
+
* @property {vertexvis.protobuf.stream.IToken|null} [token] StartStreamResult token
|
|
16704
17453
|
*/
|
|
16705
17454
|
|
|
16706
17455
|
/**
|
|
@@ -16758,6 +17507,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16758
17507
|
*/
|
|
16759
17508
|
StartStreamResult.prototype.worldOrientation = null;
|
|
16760
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
|
+
|
|
16761
17518
|
/**
|
|
16762
17519
|
* Creates a new StartStreamResult instance using the specified properties.
|
|
16763
17520
|
* @function create
|
|
@@ -16792,6 +17549,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16792
17549
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.jwt);
|
|
16793
17550
|
if (message.worldOrientation != null && Object.hasOwnProperty.call(message, "worldOrientation"))
|
|
16794
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();
|
|
16795
17554
|
return writer;
|
|
16796
17555
|
};
|
|
16797
17556
|
|
|
@@ -16841,6 +17600,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16841
17600
|
case 5:
|
|
16842
17601
|
message.worldOrientation = $root.vertexvis.protobuf.stream.Orientation.decode(reader, reader.uint32());
|
|
16843
17602
|
break;
|
|
17603
|
+
case 6:
|
|
17604
|
+
message.token = $root.vertexvis.protobuf.stream.Token.decode(reader, reader.uint32());
|
|
17605
|
+
break;
|
|
16844
17606
|
default:
|
|
16845
17607
|
reader.skipType(tag & 7);
|
|
16846
17608
|
break;
|
|
@@ -16899,6 +17661,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16899
17661
|
if (error)
|
|
16900
17662
|
return "worldOrientation." + error;
|
|
16901
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
|
+
}
|
|
16902
17669
|
return null;
|
|
16903
17670
|
};
|
|
16904
17671
|
|
|
@@ -16936,6 +17703,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16936
17703
|
throw TypeError(".vertexvis.protobuf.stream.StartStreamResult.worldOrientation: object expected");
|
|
16937
17704
|
message.worldOrientation = $root.vertexvis.protobuf.stream.Orientation.fromObject(object.worldOrientation);
|
|
16938
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
|
+
}
|
|
16939
17711
|
return message;
|
|
16940
17712
|
};
|
|
16941
17713
|
|
|
@@ -16958,6 +17730,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16958
17730
|
object.sessionId = null;
|
|
16959
17731
|
object.jwt = "";
|
|
16960
17732
|
object.worldOrientation = null;
|
|
17733
|
+
object.token = null;
|
|
16961
17734
|
}
|
|
16962
17735
|
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
16963
17736
|
object.streamId = $root.vertexvis.protobuf.core.Uuid.toObject(message.streamId, options);
|
|
@@ -16969,6 +17742,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16969
17742
|
object.jwt = message.jwt;
|
|
16970
17743
|
if (message.worldOrientation != null && message.hasOwnProperty("worldOrientation"))
|
|
16971
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);
|
|
16972
17747
|
return object;
|
|
16973
17748
|
};
|
|
16974
17749
|
|
|
@@ -17697,6 +18472,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17697
18472
|
* @memberof vertexvis.protobuf.stream
|
|
17698
18473
|
* @interface IReconnectResult
|
|
17699
18474
|
* @property {string|null} [jwt] ReconnectResult jwt
|
|
18475
|
+
* @property {vertexvis.protobuf.stream.IToken|null} [token] ReconnectResult token
|
|
17700
18476
|
*/
|
|
17701
18477
|
|
|
17702
18478
|
/**
|
|
@@ -17722,6 +18498,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17722
18498
|
*/
|
|
17723
18499
|
ReconnectResult.prototype.jwt = "";
|
|
17724
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
|
+
|
|
17725
18509
|
/**
|
|
17726
18510
|
* Creates a new ReconnectResult instance using the specified properties.
|
|
17727
18511
|
* @function create
|
|
@@ -17748,6 +18532,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17748
18532
|
writer = $Writer.create();
|
|
17749
18533
|
if (message.jwt != null && Object.hasOwnProperty.call(message, "jwt"))
|
|
17750
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();
|
|
17751
18537
|
return writer;
|
|
17752
18538
|
};
|
|
17753
18539
|
|
|
@@ -17785,6 +18571,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17785
18571
|
case 1:
|
|
17786
18572
|
message.jwt = reader.string();
|
|
17787
18573
|
break;
|
|
18574
|
+
case 2:
|
|
18575
|
+
message.token = $root.vertexvis.protobuf.stream.Token.decode(reader, reader.uint32());
|
|
18576
|
+
break;
|
|
17788
18577
|
default:
|
|
17789
18578
|
reader.skipType(tag & 7);
|
|
17790
18579
|
break;
|
|
@@ -17823,6 +18612,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17823
18612
|
if (message.jwt != null && message.hasOwnProperty("jwt"))
|
|
17824
18613
|
if (!$util.isString(message.jwt))
|
|
17825
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
|
+
}
|
|
17826
18620
|
return null;
|
|
17827
18621
|
};
|
|
17828
18622
|
|
|
@@ -17840,6 +18634,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17840
18634
|
let message = new $root.vertexvis.protobuf.stream.ReconnectResult();
|
|
17841
18635
|
if (object.jwt != null)
|
|
17842
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
|
+
}
|
|
17843
18642
|
return message;
|
|
17844
18643
|
};
|
|
17845
18644
|
|
|
@@ -17856,10 +18655,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
17856
18655
|
if (!options)
|
|
17857
18656
|
options = {};
|
|
17858
18657
|
let object = {};
|
|
17859
|
-
if (options.defaults)
|
|
18658
|
+
if (options.defaults) {
|
|
17860
18659
|
object.jwt = "";
|
|
18660
|
+
object.token = null;
|
|
18661
|
+
}
|
|
17861
18662
|
if (message.jwt != null && message.hasOwnProperty("jwt"))
|
|
17862
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);
|
|
17863
18666
|
return object;
|
|
17864
18667
|
};
|
|
17865
18668
|
|
|
@@ -19108,37 +19911,197 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19108
19911
|
* @param {Object.<string,*>} object Plain object
|
|
19109
19912
|
* @returns {vertexvis.protobuf.stream.LoadSceneViewStateResult} LoadSceneViewStateResult
|
|
19110
19913
|
*/
|
|
19111
|
-
LoadSceneViewStateResult.fromObject = function fromObject(object) {
|
|
19112
|
-
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)
|
|
19113
20076
|
return object;
|
|
19114
|
-
return new $root.vertexvis.protobuf.stream.
|
|
20077
|
+
return new $root.vertexvis.protobuf.stream.ResetViewResult();
|
|
19115
20078
|
};
|
|
19116
20079
|
|
|
19117
20080
|
/**
|
|
19118
|
-
* Creates a plain object from a
|
|
20081
|
+
* Creates a plain object from a ResetViewResult message. Also converts values to other types if specified.
|
|
19119
20082
|
* @function toObject
|
|
19120
|
-
* @memberof vertexvis.protobuf.stream.
|
|
20083
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19121
20084
|
* @static
|
|
19122
|
-
* @param {vertexvis.protobuf.stream.
|
|
20085
|
+
* @param {vertexvis.protobuf.stream.ResetViewResult} message ResetViewResult
|
|
19123
20086
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19124
20087
|
* @returns {Object.<string,*>} Plain object
|
|
19125
20088
|
*/
|
|
19126
|
-
|
|
20089
|
+
ResetViewResult.toObject = function toObject() {
|
|
19127
20090
|
return {};
|
|
19128
20091
|
};
|
|
19129
20092
|
|
|
19130
20093
|
/**
|
|
19131
|
-
* Converts this
|
|
20094
|
+
* Converts this ResetViewResult to JSON.
|
|
19132
20095
|
* @function toJSON
|
|
19133
|
-
* @memberof vertexvis.protobuf.stream.
|
|
20096
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19134
20097
|
* @instance
|
|
19135
20098
|
* @returns {Object.<string,*>} JSON object
|
|
19136
20099
|
*/
|
|
19137
|
-
|
|
20100
|
+
ResetViewResult.prototype.toJSON = function toJSON() {
|
|
19138
20101
|
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
19139
20102
|
};
|
|
19140
20103
|
|
|
19141
|
-
return
|
|
20104
|
+
return ResetViewResult;
|
|
19142
20105
|
})();
|
|
19143
20106
|
|
|
19144
20107
|
stream.GetStencilBufferResult = (function() {
|
|
@@ -19149,6 +20112,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19149
20112
|
* @interface IGetStencilBufferResult
|
|
19150
20113
|
* @property {Uint8Array|null} [stencilBuffer] GetStencilBufferResult stencilBuffer
|
|
19151
20114
|
* @property {vertexvis.protobuf.stream.IImageAttributes|null} [imageAttributes] GetStencilBufferResult imageAttributes
|
|
20115
|
+
* @property {google.protobuf.IBytesValue|null} [depthBuffer] GetStencilBufferResult depthBuffer
|
|
19152
20116
|
*/
|
|
19153
20117
|
|
|
19154
20118
|
/**
|
|
@@ -19182,6 +20146,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19182
20146
|
*/
|
|
19183
20147
|
GetStencilBufferResult.prototype.imageAttributes = null;
|
|
19184
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
|
+
|
|
19185
20157
|
/**
|
|
19186
20158
|
* Creates a new GetStencilBufferResult instance using the specified properties.
|
|
19187
20159
|
* @function create
|
|
@@ -19210,6 +20182,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19210
20182
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.stencilBuffer);
|
|
19211
20183
|
if (message.imageAttributes != null && Object.hasOwnProperty.call(message, "imageAttributes"))
|
|
19212
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();
|
|
19213
20187
|
return writer;
|
|
19214
20188
|
};
|
|
19215
20189
|
|
|
@@ -19250,6 +20224,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19250
20224
|
case 2:
|
|
19251
20225
|
message.imageAttributes = $root.vertexvis.protobuf.stream.ImageAttributes.decode(reader, reader.uint32());
|
|
19252
20226
|
break;
|
|
20227
|
+
case 3:
|
|
20228
|
+
message.depthBuffer = $root.google.protobuf.BytesValue.decode(reader, reader.uint32());
|
|
20229
|
+
break;
|
|
19253
20230
|
default:
|
|
19254
20231
|
reader.skipType(tag & 7);
|
|
19255
20232
|
break;
|
|
@@ -19293,6 +20270,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19293
20270
|
if (error)
|
|
19294
20271
|
return "imageAttributes." + error;
|
|
19295
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
|
+
}
|
|
19296
20278
|
return null;
|
|
19297
20279
|
};
|
|
19298
20280
|
|
|
@@ -19318,6 +20300,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19318
20300
|
throw TypeError(".vertexvis.protobuf.stream.GetStencilBufferResult.imageAttributes: object expected");
|
|
19319
20301
|
message.imageAttributes = $root.vertexvis.protobuf.stream.ImageAttributes.fromObject(object.imageAttributes);
|
|
19320
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
|
+
}
|
|
19321
20308
|
return message;
|
|
19322
20309
|
};
|
|
19323
20310
|
|
|
@@ -19343,11 +20330,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19343
20330
|
object.stencilBuffer = $util.newBuffer(object.stencilBuffer);
|
|
19344
20331
|
}
|
|
19345
20332
|
object.imageAttributes = null;
|
|
20333
|
+
object.depthBuffer = null;
|
|
19346
20334
|
}
|
|
19347
20335
|
if (message.stencilBuffer != null && message.hasOwnProperty("stencilBuffer"))
|
|
19348
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;
|
|
19349
20337
|
if (message.imageAttributes != null && message.hasOwnProperty("imageAttributes"))
|
|
19350
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);
|
|
19351
20341
|
return object;
|
|
19352
20342
|
};
|
|
19353
20343
|
|
|
@@ -19365,6 +20355,198 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19365
20355
|
return GetStencilBufferResult;
|
|
19366
20356
|
})();
|
|
19367
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
|
+
|
|
19368
20550
|
stream.StreamEvent = (function() {
|
|
19369
20551
|
|
|
19370
20552
|
/**
|
|
@@ -31276,6 +32458,23 @@ function decode(bufferOrBytes) {
|
|
|
31276
32458
|
});
|
|
31277
32459
|
}
|
|
31278
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
|
+
|
|
31279
32478
|
var WebSocketClientImpl = /** @class */ (function () {
|
|
31280
32479
|
function WebSocketClientImpl() {
|
|
31281
32480
|
var _this = this;
|
|
@@ -32723,21 +33922,6 @@ function parseEpochMillis(millis) {
|
|
|
32723
33922
|
return { seconds: seconds * (millis < 0 ? -1 : 1), nanos: nanos };
|
|
32724
33923
|
}
|
|
32725
33924
|
|
|
32726
|
-
var StreamRequestError = /** @class */ (function (_super) {
|
|
32727
|
-
tslib.__extends(StreamRequestError, _super);
|
|
32728
|
-
function StreamRequestError(requestId, requestPayload, summary, details) {
|
|
32729
|
-
var _this = _super.call(this, summary != null && summary.length > 0
|
|
32730
|
-
? "Stream request failed (" + summary + ")"
|
|
32731
|
-
: 'Stream request failed') || this;
|
|
32732
|
-
_this.requestId = requestId;
|
|
32733
|
-
_this.requestPayload = requestPayload;
|
|
32734
|
-
_this.summary = summary;
|
|
32735
|
-
_this.details = details;
|
|
32736
|
-
return _this;
|
|
32737
|
-
}
|
|
32738
|
-
return StreamRequestError;
|
|
32739
|
-
}(Error));
|
|
32740
|
-
|
|
32741
33925
|
function defineParams() {
|
|
32742
33926
|
var definitions = [];
|
|
32743
33927
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -32809,14 +33993,17 @@ function defineSettings(getter, defaults, builder) {
|
|
|
32809
33993
|
* The API client to interact with Vertex's streaming API.
|
|
32810
33994
|
*/
|
|
32811
33995
|
var StreamApi = /** @class */ (function () {
|
|
32812
|
-
function StreamApi(websocket,
|
|
33996
|
+
function StreamApi(websocket, opts) {
|
|
32813
33997
|
if (websocket === void 0) { websocket = new WebSocketClientImpl(); }
|
|
32814
|
-
if (
|
|
33998
|
+
if (opts === void 0) { opts = {}; }
|
|
33999
|
+
var _a;
|
|
32815
34000
|
this.websocket = websocket;
|
|
32816
|
-
this.loggingEnabled = loggingEnabled;
|
|
32817
34001
|
this.onResponseDispatcher = new utils.EventDispatcher();
|
|
32818
34002
|
this.onRequestDispatcher = new utils.EventDispatcher();
|
|
32819
34003
|
this.onEventDispatcher = new utils.EventDispatcher();
|
|
34004
|
+
this.opts = {
|
|
34005
|
+
loggingEnabled: (_a = opts.loggingEnabled) !== null && _a !== void 0 ? _a : false,
|
|
34006
|
+
};
|
|
32820
34007
|
}
|
|
32821
34008
|
/**
|
|
32822
34009
|
* Initiates a websocket connection to Vertex's streaming API. Returns a
|
|
@@ -32873,6 +34060,14 @@ var StreamApi = /** @class */ (function () {
|
|
|
32873
34060
|
StreamApi.prototype.onEvent = function (handler) {
|
|
32874
34061
|
return this.onEventDispatcher.on(handler);
|
|
32875
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
|
+
};
|
|
32876
34071
|
/**
|
|
32877
34072
|
* Sends a request to initiate a streaming session.
|
|
32878
34073
|
*
|
|
@@ -33054,6 +34249,22 @@ var StreamApi = /** @class */ (function () {
|
|
|
33054
34249
|
if (withResponse === void 0) { withResponse = true; }
|
|
33055
34250
|
return this.sendRequest({ createSceneAlteration: payload }, withResponse);
|
|
33056
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
|
+
};
|
|
33057
34268
|
/**
|
|
33058
34269
|
* Sends a request to tell the rendering pipeline that an interaction has
|
|
33059
34270
|
* ended.
|
|
@@ -33119,8 +34330,20 @@ var StreamApi = /** @class */ (function () {
|
|
|
33119
34330
|
/**
|
|
33120
34331
|
* Sends a request to get a stencil buffer image for the current scene view.
|
|
33121
34332
|
*/
|
|
33122
|
-
StreamApi.prototype.getStencilBuffer = function (withResponse) {
|
|
33123
|
-
|
|
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);
|
|
33124
34347
|
};
|
|
33125
34348
|
/**
|
|
33126
34349
|
* Acknowledges a successful request by sending a reply back to the server
|
|
@@ -33173,7 +34396,7 @@ var StreamApi = /** @class */ (function () {
|
|
|
33173
34396
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
33174
34397
|
other[_i - 1] = arguments[_i];
|
|
33175
34398
|
}
|
|
33176
|
-
if (this.loggingEnabled) {
|
|
34399
|
+
if (this.opts.loggingEnabled) {
|
|
33177
34400
|
console.debug.apply(console, tslib.__spreadArray([msg], other, false));
|
|
33178
34401
|
}
|
|
33179
34402
|
};
|
|
@@ -33214,6 +34437,23 @@ var StreamApi = /** @class */ (function () {
|
|
|
33214
34437
|
return StreamApi;
|
|
33215
34438
|
}());
|
|
33216
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
|
+
|
|
33217
34457
|
function request(req, meta) {
|
|
33218
34458
|
return tslib.__assign(tslib.__assign({ sentAtTime: currentDateAsProtoTimestamp() }, meta), { request: tslib.__assign({ requestId: req.requestId != null ? { value: req.requestId } : undefined }, req.payload) });
|
|
33219
34459
|
}
|
|
@@ -33260,7 +34500,7 @@ function gracefulReconnect(req, meta) {
|
|
|
33260
34500
|
};
|
|
33261
34501
|
return request({
|
|
33262
34502
|
requestId: req.requestId,
|
|
33263
|
-
payload: {
|
|
34503
|
+
payload: { gracefulReconnection: utils.Objects.defaults(req.payload, def) },
|
|
33264
34504
|
}, meta);
|
|
33265
34505
|
}
|
|
33266
34506
|
|
|
@@ -33270,44 +34510,102 @@ var requests = /*#__PURE__*/Object.freeze({
|
|
|
33270
34510
|
gracefulReconnect: gracefulReconnect
|
|
33271
34511
|
});
|
|
33272
34512
|
|
|
33273
|
-
function
|
|
33274
|
-
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) });
|
|
33275
34515
|
}
|
|
33276
|
-
function
|
|
34516
|
+
function startStream(res, meta) {
|
|
34517
|
+
if (res === void 0) { res = {}; }
|
|
33277
34518
|
var def = {
|
|
33278
|
-
|
|
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
|
+
},
|
|
33279
34528
|
};
|
|
33280
|
-
return
|
|
33281
|
-
|
|
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) },
|
|
33282
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);
|
|
33283
34570
|
}
|
|
33284
34571
|
|
|
33285
|
-
var
|
|
34572
|
+
var responses = /*#__PURE__*/Object.freeze({
|
|
33286
34573
|
__proto__: null,
|
|
33287
|
-
|
|
34574
|
+
startStream: startStream,
|
|
34575
|
+
syncTime: syncTime,
|
|
34576
|
+
reconnect: reconnect,
|
|
34577
|
+
loadSceneViewState: loadSceneViewState,
|
|
34578
|
+
refreshToken: refreshToken
|
|
33288
34579
|
});
|
|
33289
34580
|
|
|
33290
34581
|
var index = /*#__PURE__*/Object.freeze({
|
|
33291
34582
|
__proto__: null,
|
|
34583
|
+
Events: events,
|
|
33292
34584
|
Requests: requests,
|
|
33293
|
-
|
|
34585
|
+
Responses: responses
|
|
33294
34586
|
});
|
|
33295
34587
|
|
|
33296
34588
|
var WebSocketClientMock = /** @class */ (function () {
|
|
33297
34589
|
function WebSocketClientMock() {
|
|
33298
|
-
this.
|
|
34590
|
+
this.closeHandlers = new Set();
|
|
34591
|
+
this.msgHandlers = new Set();
|
|
33299
34592
|
this.sentMessages = new Array();
|
|
33300
34593
|
}
|
|
33301
34594
|
WebSocketClientMock.prototype.close = function () {
|
|
33302
|
-
|
|
34595
|
+
this.closeHandlers.forEach(function (handler) { return handler(new CloseEvent('close')); });
|
|
33303
34596
|
};
|
|
33304
34597
|
WebSocketClientMock.prototype.connect = function (descriptor) {
|
|
33305
34598
|
return Promise.resolve();
|
|
33306
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
|
+
};
|
|
33307
34605
|
WebSocketClientMock.prototype.onMessage = function (handler) {
|
|
33308
34606
|
var _this = this;
|
|
33309
|
-
this.
|
|
33310
|
-
return { dispose: function () { return _this.
|
|
34607
|
+
this.msgHandlers.add(handler);
|
|
34608
|
+
return { dispose: function () { return _this.msgHandlers.delete(handler); } };
|
|
33311
34609
|
};
|
|
33312
34610
|
WebSocketClientMock.prototype.send = function (data) {
|
|
33313
34611
|
this.sentMessages.push(data);
|
|
@@ -33322,7 +34620,7 @@ var WebSocketClientMock = /** @class */ (function () {
|
|
|
33322
34620
|
* @param data The websocket message data.
|
|
33323
34621
|
*/
|
|
33324
34622
|
WebSocketClientMock.prototype.receiveMessage = function (data) {
|
|
33325
|
-
this.
|
|
34623
|
+
this.msgHandlers.forEach(function (handler) {
|
|
33326
34624
|
return handler(new MessageEvent('message', { data: data }));
|
|
33327
34625
|
});
|
|
33328
34626
|
};
|
|
@@ -33332,7 +34630,8 @@ var WebSocketClientMock = /** @class */ (function () {
|
|
|
33332
34630
|
*/
|
|
33333
34631
|
WebSocketClientMock.prototype.reset = function () {
|
|
33334
34632
|
this.sentMessages = [];
|
|
33335
|
-
this.
|
|
34633
|
+
this.msgHandlers.clear();
|
|
34634
|
+
this.closeHandlers.clear();
|
|
33336
34635
|
};
|
|
33337
34636
|
/**
|
|
33338
34637
|
* Returns `true` if there are remaining sent messages..
|
|
@@ -33387,6 +34686,7 @@ var WebSocketClientMock = /** @class */ (function () {
|
|
|
33387
34686
|
|
|
33388
34687
|
exports.Fixtures = index;
|
|
33389
34688
|
exports.StreamApi = StreamApi;
|
|
34689
|
+
exports.StreamRequestError = StreamRequestError;
|
|
33390
34690
|
exports.WebSocketClientImpl = WebSocketClientImpl;
|
|
33391
34691
|
exports.WebSocketClientMock = WebSocketClientMock;
|
|
33392
34692
|
exports.currentDateAsProtoTimestamp = currentDateAsProtoTimestamp;
|