@stinkycomputing/sesame-api-client 1.8.0 → 1.9.0-alpha.1
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/command-list.d.ts +24 -0
- package/dist/command-list.d.ts.map +1 -1
- package/dist/index.browser.mjs +1609 -264
- package/dist/index.browser.mjs.map +3 -3
- package/dist/index.cjs +1612 -264
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1609 -264
- package/dist/index.mjs.map +3 -3
- package/dist/proto/api.d.ts +868 -38
- package/dist/proto/api.js +2238 -2
- package/dist/sesame-wire-protocol.d.ts +34 -0
- package/dist/sesame-wire-protocol.d.ts.map +1 -1
- package/docs/protocol-reference.md +137 -0
- package/package.json +1 -1
package/dist/proto/api.js
CHANGED
|
@@ -5992,6 +5992,9 @@ export const sesame = $root.sesame = (() => {
|
|
|
5992
5992
|
* @property {sesame.v1.outputs.IEncoderUpdateRequest|null} [updateEncoder] CommandListItem updateEncoder
|
|
5993
5993
|
* @property {sesame.v1.outputs.IEncoderRemoveRequest|null} [removeEncoder] CommandListItem removeEncoder
|
|
5994
5994
|
* @property {sesame.v1.sources.ITakePlaylistRequest|null} [takePlaylist] CommandListItem takePlaylist
|
|
5995
|
+
* @property {sesame.v1.outputs.IOutputControlRequest|null} [outputControl] CommandListItem outputControl
|
|
5996
|
+
* @property {sesame.v1.compositor.ISideDataSetRequest|null} [setSideData] CommandListItem setSideData
|
|
5997
|
+
* @property {sesame.v1.compositor.ISideDataRemoveRequest|null} [removeSideData] CommandListItem removeSideData
|
|
5995
5998
|
* @property {number|null} [transactionId] CommandListItem transactionId
|
|
5996
5999
|
* @property {Array.<number>|null} [transactionDeps] CommandListItem transactionDeps
|
|
5997
6000
|
*/
|
|
@@ -6244,6 +6247,30 @@ export const sesame = $root.sesame = (() => {
|
|
|
6244
6247
|
*/
|
|
6245
6248
|
CommandListItem.prototype.takePlaylist = null;
|
|
6246
6249
|
|
|
6250
|
+
/**
|
|
6251
|
+
* CommandListItem outputControl.
|
|
6252
|
+
* @member {sesame.v1.outputs.IOutputControlRequest|null|undefined} outputControl
|
|
6253
|
+
* @memberof sesame.v1.commands.CommandListItem
|
|
6254
|
+
* @instance
|
|
6255
|
+
*/
|
|
6256
|
+
CommandListItem.prototype.outputControl = null;
|
|
6257
|
+
|
|
6258
|
+
/**
|
|
6259
|
+
* CommandListItem setSideData.
|
|
6260
|
+
* @member {sesame.v1.compositor.ISideDataSetRequest|null|undefined} setSideData
|
|
6261
|
+
* @memberof sesame.v1.commands.CommandListItem
|
|
6262
|
+
* @instance
|
|
6263
|
+
*/
|
|
6264
|
+
CommandListItem.prototype.setSideData = null;
|
|
6265
|
+
|
|
6266
|
+
/**
|
|
6267
|
+
* CommandListItem removeSideData.
|
|
6268
|
+
* @member {sesame.v1.compositor.ISideDataRemoveRequest|null|undefined} removeSideData
|
|
6269
|
+
* @memberof sesame.v1.commands.CommandListItem
|
|
6270
|
+
* @instance
|
|
6271
|
+
*/
|
|
6272
|
+
CommandListItem.prototype.removeSideData = null;
|
|
6273
|
+
|
|
6247
6274
|
/**
|
|
6248
6275
|
* CommandListItem transactionId.
|
|
6249
6276
|
* @member {number|null|undefined} transactionId
|
|
@@ -6265,12 +6292,12 @@ export const sesame = $root.sesame = (() => {
|
|
|
6265
6292
|
|
|
6266
6293
|
/**
|
|
6267
6294
|
* CommandListItem item.
|
|
6268
|
-
* @member {"addSource"|"updateSource"|"removeSource"|"addOutput"|"updateOutput"|"removeOutput"|"addCompositor"|"removeCompositor"|"clearCompositor"|"addNode"|"removeNode"|"setProperty"|"animateProperty"|"addAudioMixer"|"updateAudioMixer"|"removeAudioMixer"|"addAudioChannel"|"removeAudioChannel"|"updateSourceTransport"|"loadPlaylist"|"ejectPlaylist"|"callback"|"setSourceMetadata"|"setMetadataBindings"|"addEncoder"|"updateEncoder"|"removeEncoder"|"takePlaylist"|undefined} item
|
|
6295
|
+
* @member {"addSource"|"updateSource"|"removeSource"|"addOutput"|"updateOutput"|"removeOutput"|"addCompositor"|"removeCompositor"|"clearCompositor"|"addNode"|"removeNode"|"setProperty"|"animateProperty"|"addAudioMixer"|"updateAudioMixer"|"removeAudioMixer"|"addAudioChannel"|"removeAudioChannel"|"updateSourceTransport"|"loadPlaylist"|"ejectPlaylist"|"callback"|"setSourceMetadata"|"setMetadataBindings"|"addEncoder"|"updateEncoder"|"removeEncoder"|"takePlaylist"|"outputControl"|"setSideData"|"removeSideData"|undefined} item
|
|
6269
6296
|
* @memberof sesame.v1.commands.CommandListItem
|
|
6270
6297
|
* @instance
|
|
6271
6298
|
*/
|
|
6272
6299
|
Object.defineProperty(CommandListItem.prototype, "item", {
|
|
6273
|
-
get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder", "takePlaylist"]),
|
|
6300
|
+
get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder", "takePlaylist", "outputControl", "setSideData", "removeSideData"]),
|
|
6274
6301
|
set: $util.oneOfSetter($oneOfFields)
|
|
6275
6302
|
});
|
|
6276
6303
|
|
|
@@ -6370,6 +6397,12 @@ export const sesame = $root.sesame = (() => {
|
|
|
6370
6397
|
$root.sesame.v1.outputs.EncoderRemoveRequest.encode(message.removeEncoder, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
|
|
6371
6398
|
if (message.takePlaylist != null && Object.hasOwnProperty.call(message, "takePlaylist"))
|
|
6372
6399
|
$root.sesame.v1.sources.TakePlaylistRequest.encode(message.takePlaylist, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim();
|
|
6400
|
+
if (message.outputControl != null && Object.hasOwnProperty.call(message, "outputControl"))
|
|
6401
|
+
$root.sesame.v1.outputs.OutputControlRequest.encode(message.outputControl, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim();
|
|
6402
|
+
if (message.setSideData != null && Object.hasOwnProperty.call(message, "setSideData"))
|
|
6403
|
+
$root.sesame.v1.compositor.SideDataSetRequest.encode(message.setSideData, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim();
|
|
6404
|
+
if (message.removeSideData != null && Object.hasOwnProperty.call(message, "removeSideData"))
|
|
6405
|
+
$root.sesame.v1.compositor.SideDataRemoveRequest.encode(message.removeSideData, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim();
|
|
6373
6406
|
return writer;
|
|
6374
6407
|
};
|
|
6375
6408
|
|
|
@@ -6522,6 +6555,18 @@ export const sesame = $root.sesame = (() => {
|
|
|
6522
6555
|
message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.decode(reader, reader.uint32());
|
|
6523
6556
|
break;
|
|
6524
6557
|
}
|
|
6558
|
+
case 32: {
|
|
6559
|
+
message.outputControl = $root.sesame.v1.outputs.OutputControlRequest.decode(reader, reader.uint32());
|
|
6560
|
+
break;
|
|
6561
|
+
}
|
|
6562
|
+
case 33: {
|
|
6563
|
+
message.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.decode(reader, reader.uint32());
|
|
6564
|
+
break;
|
|
6565
|
+
}
|
|
6566
|
+
case 34: {
|
|
6567
|
+
message.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.decode(reader, reader.uint32());
|
|
6568
|
+
break;
|
|
6569
|
+
}
|
|
6525
6570
|
case 25: {
|
|
6526
6571
|
message.transactionId = reader.uint32();
|
|
6527
6572
|
break;
|
|
@@ -6854,6 +6899,36 @@ export const sesame = $root.sesame = (() => {
|
|
|
6854
6899
|
return "takePlaylist." + error;
|
|
6855
6900
|
}
|
|
6856
6901
|
}
|
|
6902
|
+
if (message.outputControl != null && message.hasOwnProperty("outputControl")) {
|
|
6903
|
+
if (properties.item === 1)
|
|
6904
|
+
return "item: multiple values";
|
|
6905
|
+
properties.item = 1;
|
|
6906
|
+
{
|
|
6907
|
+
let error = $root.sesame.v1.outputs.OutputControlRequest.verify(message.outputControl);
|
|
6908
|
+
if (error)
|
|
6909
|
+
return "outputControl." + error;
|
|
6910
|
+
}
|
|
6911
|
+
}
|
|
6912
|
+
if (message.setSideData != null && message.hasOwnProperty("setSideData")) {
|
|
6913
|
+
if (properties.item === 1)
|
|
6914
|
+
return "item: multiple values";
|
|
6915
|
+
properties.item = 1;
|
|
6916
|
+
{
|
|
6917
|
+
let error = $root.sesame.v1.compositor.SideDataSetRequest.verify(message.setSideData);
|
|
6918
|
+
if (error)
|
|
6919
|
+
return "setSideData." + error;
|
|
6920
|
+
}
|
|
6921
|
+
}
|
|
6922
|
+
if (message.removeSideData != null && message.hasOwnProperty("removeSideData")) {
|
|
6923
|
+
if (properties.item === 1)
|
|
6924
|
+
return "item: multiple values";
|
|
6925
|
+
properties.item = 1;
|
|
6926
|
+
{
|
|
6927
|
+
let error = $root.sesame.v1.compositor.SideDataRemoveRequest.verify(message.removeSideData);
|
|
6928
|
+
if (error)
|
|
6929
|
+
return "removeSideData." + error;
|
|
6930
|
+
}
|
|
6931
|
+
}
|
|
6857
6932
|
if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
|
|
6858
6933
|
properties._transactionId = 1;
|
|
6859
6934
|
if (!$util.isInteger(message.transactionId))
|
|
@@ -7030,6 +7105,21 @@ export const sesame = $root.sesame = (() => {
|
|
|
7030
7105
|
throw TypeError(".sesame.v1.commands.CommandListItem.takePlaylist: object expected");
|
|
7031
7106
|
message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.fromObject(object.takePlaylist);
|
|
7032
7107
|
}
|
|
7108
|
+
if (object.outputControl != null) {
|
|
7109
|
+
if (typeof object.outputControl !== "object")
|
|
7110
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.outputControl: object expected");
|
|
7111
|
+
message.outputControl = $root.sesame.v1.outputs.OutputControlRequest.fromObject(object.outputControl);
|
|
7112
|
+
}
|
|
7113
|
+
if (object.setSideData != null) {
|
|
7114
|
+
if (typeof object.setSideData !== "object")
|
|
7115
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.setSideData: object expected");
|
|
7116
|
+
message.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.fromObject(object.setSideData);
|
|
7117
|
+
}
|
|
7118
|
+
if (object.removeSideData != null) {
|
|
7119
|
+
if (typeof object.removeSideData !== "object")
|
|
7120
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.removeSideData: object expected");
|
|
7121
|
+
message.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.fromObject(object.removeSideData);
|
|
7122
|
+
}
|
|
7033
7123
|
if (object.transactionId != null)
|
|
7034
7124
|
message.transactionId = object.transactionId >>> 0;
|
|
7035
7125
|
if (object.transactionDeps) {
|
|
@@ -7218,6 +7308,21 @@ export const sesame = $root.sesame = (() => {
|
|
|
7218
7308
|
if (options.oneofs)
|
|
7219
7309
|
object.item = "takePlaylist";
|
|
7220
7310
|
}
|
|
7311
|
+
if (message.outputControl != null && message.hasOwnProperty("outputControl")) {
|
|
7312
|
+
object.outputControl = $root.sesame.v1.outputs.OutputControlRequest.toObject(message.outputControl, options);
|
|
7313
|
+
if (options.oneofs)
|
|
7314
|
+
object.item = "outputControl";
|
|
7315
|
+
}
|
|
7316
|
+
if (message.setSideData != null && message.hasOwnProperty("setSideData")) {
|
|
7317
|
+
object.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.toObject(message.setSideData, options);
|
|
7318
|
+
if (options.oneofs)
|
|
7319
|
+
object.item = "setSideData";
|
|
7320
|
+
}
|
|
7321
|
+
if (message.removeSideData != null && message.hasOwnProperty("removeSideData")) {
|
|
7322
|
+
object.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.toObject(message.removeSideData, options);
|
|
7323
|
+
if (options.oneofs)
|
|
7324
|
+
object.item = "removeSideData";
|
|
7325
|
+
}
|
|
7221
7326
|
return object;
|
|
7222
7327
|
};
|
|
7223
7328
|
|
|
@@ -8200,6 +8305,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
8200
8305
|
* @property {number} CONNECTION_STATE_DEGRADED=4 CONNECTION_STATE_DEGRADED value
|
|
8201
8306
|
* @property {number} CONNECTION_STATE_OFFLINE=5 CONNECTION_STATE_OFFLINE value
|
|
8202
8307
|
* @property {number} CONNECTION_STATE_ERROR=6 CONNECTION_STATE_ERROR value
|
|
8308
|
+
* @property {number} CONNECTION_STATE_DISABLED=7 CONNECTION_STATE_DISABLED value
|
|
8203
8309
|
*/
|
|
8204
8310
|
common.ConnectionState = (function() {
|
|
8205
8311
|
const valuesById = {}, values = Object.create(valuesById);
|
|
@@ -8210,6 +8316,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
8210
8316
|
values[valuesById[4] = "CONNECTION_STATE_DEGRADED"] = 4;
|
|
8211
8317
|
values[valuesById[5] = "CONNECTION_STATE_OFFLINE"] = 5;
|
|
8212
8318
|
values[valuesById[6] = "CONNECTION_STATE_ERROR"] = 6;
|
|
8319
|
+
values[valuesById[7] = "CONNECTION_STATE_DISABLED"] = 7;
|
|
8213
8320
|
return values;
|
|
8214
8321
|
})();
|
|
8215
8322
|
|
|
@@ -15814,6 +15921,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
15814
15921
|
case 4:
|
|
15815
15922
|
case 5:
|
|
15816
15923
|
case 6:
|
|
15924
|
+
case 7:
|
|
15817
15925
|
break;
|
|
15818
15926
|
}
|
|
15819
15927
|
if (message.transportState != null && message.hasOwnProperty("transportState"))
|
|
@@ -15990,6 +16098,10 @@ export const sesame = $root.sesame = (() => {
|
|
|
15990
16098
|
case 6:
|
|
15991
16099
|
message.state = 6;
|
|
15992
16100
|
break;
|
|
16101
|
+
case "CONNECTION_STATE_DISABLED":
|
|
16102
|
+
case 7:
|
|
16103
|
+
message.state = 7;
|
|
16104
|
+
break;
|
|
15993
16105
|
}
|
|
15994
16106
|
switch (object.transportState) {
|
|
15995
16107
|
default:
|
|
@@ -32670,6 +32782,22 @@ export const sesame = $root.sesame = (() => {
|
|
|
32670
32782
|
return EncodedSuperSlowMoRecorderOutputConfig;
|
|
32671
32783
|
})();
|
|
32672
32784
|
|
|
32785
|
+
/**
|
|
32786
|
+
* SrtStreamControl enum.
|
|
32787
|
+
* @name sesame.v1.outputs.SrtStreamControl
|
|
32788
|
+
* @enum {number}
|
|
32789
|
+
* @property {number} SRT_STREAM_CONTROL_UNSPECIFIED=0 SRT_STREAM_CONTROL_UNSPECIFIED value
|
|
32790
|
+
* @property {number} SRT_STREAM_CONTROL_STARTED=1 SRT_STREAM_CONTROL_STARTED value
|
|
32791
|
+
* @property {number} SRT_STREAM_CONTROL_MANUAL=2 SRT_STREAM_CONTROL_MANUAL value
|
|
32792
|
+
*/
|
|
32793
|
+
outputs.SrtStreamControl = (function() {
|
|
32794
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
32795
|
+
values[valuesById[0] = "SRT_STREAM_CONTROL_UNSPECIFIED"] = 0;
|
|
32796
|
+
values[valuesById[1] = "SRT_STREAM_CONTROL_STARTED"] = 1;
|
|
32797
|
+
values[valuesById[2] = "SRT_STREAM_CONTROL_MANUAL"] = 2;
|
|
32798
|
+
return values;
|
|
32799
|
+
})();
|
|
32800
|
+
|
|
32673
32801
|
outputs.EncodedSrtOutputConfig = (function() {
|
|
32674
32802
|
|
|
32675
32803
|
/**
|
|
@@ -32678,6 +32806,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
32678
32806
|
* @interface IEncodedSrtOutputConfig
|
|
32679
32807
|
* @property {string|null} [url] EncodedSrtOutputConfig url
|
|
32680
32808
|
* @property {string|null} [encoderId] EncodedSrtOutputConfig encoderId
|
|
32809
|
+
* @property {sesame.v1.outputs.SrtStreamControl|null} [control] EncodedSrtOutputConfig control
|
|
32681
32810
|
*/
|
|
32682
32811
|
|
|
32683
32812
|
/**
|
|
@@ -32711,6 +32840,14 @@ export const sesame = $root.sesame = (() => {
|
|
|
32711
32840
|
*/
|
|
32712
32841
|
EncodedSrtOutputConfig.prototype.encoderId = "";
|
|
32713
32842
|
|
|
32843
|
+
/**
|
|
32844
|
+
* EncodedSrtOutputConfig control.
|
|
32845
|
+
* @member {sesame.v1.outputs.SrtStreamControl} control
|
|
32846
|
+
* @memberof sesame.v1.outputs.EncodedSrtOutputConfig
|
|
32847
|
+
* @instance
|
|
32848
|
+
*/
|
|
32849
|
+
EncodedSrtOutputConfig.prototype.control = 0;
|
|
32850
|
+
|
|
32714
32851
|
/**
|
|
32715
32852
|
* Creates a new EncodedSrtOutputConfig instance using the specified properties.
|
|
32716
32853
|
* @function create
|
|
@@ -32739,6 +32876,8 @@ export const sesame = $root.sesame = (() => {
|
|
|
32739
32876
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.url);
|
|
32740
32877
|
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
32741
32878
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.encoderId);
|
|
32879
|
+
if (message.control != null && Object.hasOwnProperty.call(message, "control"))
|
|
32880
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.control);
|
|
32742
32881
|
return writer;
|
|
32743
32882
|
};
|
|
32744
32883
|
|
|
@@ -32783,6 +32922,10 @@ export const sesame = $root.sesame = (() => {
|
|
|
32783
32922
|
message.encoderId = reader.string();
|
|
32784
32923
|
break;
|
|
32785
32924
|
}
|
|
32925
|
+
case 3: {
|
|
32926
|
+
message.control = reader.int32();
|
|
32927
|
+
break;
|
|
32928
|
+
}
|
|
32786
32929
|
default:
|
|
32787
32930
|
reader.skipType(tag & 7);
|
|
32788
32931
|
break;
|
|
@@ -32824,6 +32967,15 @@ export const sesame = $root.sesame = (() => {
|
|
|
32824
32967
|
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
32825
32968
|
if (!$util.isString(message.encoderId))
|
|
32826
32969
|
return "encoderId: string expected";
|
|
32970
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
32971
|
+
switch (message.control) {
|
|
32972
|
+
default:
|
|
32973
|
+
return "control: enum value expected";
|
|
32974
|
+
case 0:
|
|
32975
|
+
case 1:
|
|
32976
|
+
case 2:
|
|
32977
|
+
break;
|
|
32978
|
+
}
|
|
32827
32979
|
return null;
|
|
32828
32980
|
};
|
|
32829
32981
|
|
|
@@ -32843,6 +32995,26 @@ export const sesame = $root.sesame = (() => {
|
|
|
32843
32995
|
message.url = String(object.url);
|
|
32844
32996
|
if (object.encoderId != null)
|
|
32845
32997
|
message.encoderId = String(object.encoderId);
|
|
32998
|
+
switch (object.control) {
|
|
32999
|
+
default:
|
|
33000
|
+
if (typeof object.control === "number") {
|
|
33001
|
+
message.control = object.control;
|
|
33002
|
+
break;
|
|
33003
|
+
}
|
|
33004
|
+
break;
|
|
33005
|
+
case "SRT_STREAM_CONTROL_UNSPECIFIED":
|
|
33006
|
+
case 0:
|
|
33007
|
+
message.control = 0;
|
|
33008
|
+
break;
|
|
33009
|
+
case "SRT_STREAM_CONTROL_STARTED":
|
|
33010
|
+
case 1:
|
|
33011
|
+
message.control = 1;
|
|
33012
|
+
break;
|
|
33013
|
+
case "SRT_STREAM_CONTROL_MANUAL":
|
|
33014
|
+
case 2:
|
|
33015
|
+
message.control = 2;
|
|
33016
|
+
break;
|
|
33017
|
+
}
|
|
32846
33018
|
return message;
|
|
32847
33019
|
};
|
|
32848
33020
|
|
|
@@ -32862,11 +33034,14 @@ export const sesame = $root.sesame = (() => {
|
|
|
32862
33034
|
if (options.defaults) {
|
|
32863
33035
|
object.url = "";
|
|
32864
33036
|
object.encoderId = "";
|
|
33037
|
+
object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
|
|
32865
33038
|
}
|
|
32866
33039
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
32867
33040
|
object.url = message.url;
|
|
32868
33041
|
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
32869
33042
|
object.encoderId = message.encoderId;
|
|
33043
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
33044
|
+
object.control = options.enums === String ? $root.sesame.v1.outputs.SrtStreamControl[message.control] === undefined ? message.control : $root.sesame.v1.outputs.SrtStreamControl[message.control] : message.control;
|
|
32870
33045
|
return object;
|
|
32871
33046
|
};
|
|
32872
33047
|
|
|
@@ -34724,6 +34899,275 @@ export const sesame = $root.sesame = (() => {
|
|
|
34724
34899
|
return OutputRemoveRequest;
|
|
34725
34900
|
})();
|
|
34726
34901
|
|
|
34902
|
+
/**
|
|
34903
|
+
* OutputControlAction enum.
|
|
34904
|
+
* @name sesame.v1.outputs.OutputControlAction
|
|
34905
|
+
* @enum {number}
|
|
34906
|
+
* @property {number} OUTPUT_CONTROL_ACTION_UNSPECIFIED=0 OUTPUT_CONTROL_ACTION_UNSPECIFIED value
|
|
34907
|
+
* @property {number} OUTPUT_CONTROL_ACTION_START=1 OUTPUT_CONTROL_ACTION_START value
|
|
34908
|
+
* @property {number} OUTPUT_CONTROL_ACTION_STOP=2 OUTPUT_CONTROL_ACTION_STOP value
|
|
34909
|
+
*/
|
|
34910
|
+
outputs.OutputControlAction = (function() {
|
|
34911
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
34912
|
+
values[valuesById[0] = "OUTPUT_CONTROL_ACTION_UNSPECIFIED"] = 0;
|
|
34913
|
+
values[valuesById[1] = "OUTPUT_CONTROL_ACTION_START"] = 1;
|
|
34914
|
+
values[valuesById[2] = "OUTPUT_CONTROL_ACTION_STOP"] = 2;
|
|
34915
|
+
return values;
|
|
34916
|
+
})();
|
|
34917
|
+
|
|
34918
|
+
outputs.OutputControlRequest = (function() {
|
|
34919
|
+
|
|
34920
|
+
/**
|
|
34921
|
+
* Properties of an OutputControlRequest.
|
|
34922
|
+
* @memberof sesame.v1.outputs
|
|
34923
|
+
* @interface IOutputControlRequest
|
|
34924
|
+
* @property {string|null} [id] OutputControlRequest id
|
|
34925
|
+
* @property {sesame.v1.outputs.OutputControlAction|null} [action] OutputControlRequest action
|
|
34926
|
+
*/
|
|
34927
|
+
|
|
34928
|
+
/**
|
|
34929
|
+
* Constructs a new OutputControlRequest.
|
|
34930
|
+
* @memberof sesame.v1.outputs
|
|
34931
|
+
* @classdesc Represents an OutputControlRequest.
|
|
34932
|
+
* @implements IOutputControlRequest
|
|
34933
|
+
* @constructor
|
|
34934
|
+
* @param {sesame.v1.outputs.IOutputControlRequest=} [properties] Properties to set
|
|
34935
|
+
*/
|
|
34936
|
+
function OutputControlRequest(properties) {
|
|
34937
|
+
if (properties)
|
|
34938
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
34939
|
+
if (properties[keys[i]] != null)
|
|
34940
|
+
this[keys[i]] = properties[keys[i]];
|
|
34941
|
+
}
|
|
34942
|
+
|
|
34943
|
+
/**
|
|
34944
|
+
* OutputControlRequest id.
|
|
34945
|
+
* @member {string} id
|
|
34946
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
34947
|
+
* @instance
|
|
34948
|
+
*/
|
|
34949
|
+
OutputControlRequest.prototype.id = "";
|
|
34950
|
+
|
|
34951
|
+
/**
|
|
34952
|
+
* OutputControlRequest action.
|
|
34953
|
+
* @member {sesame.v1.outputs.OutputControlAction} action
|
|
34954
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
34955
|
+
* @instance
|
|
34956
|
+
*/
|
|
34957
|
+
OutputControlRequest.prototype.action = 0;
|
|
34958
|
+
|
|
34959
|
+
/**
|
|
34960
|
+
* Creates a new OutputControlRequest instance using the specified properties.
|
|
34961
|
+
* @function create
|
|
34962
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
34963
|
+
* @static
|
|
34964
|
+
* @param {sesame.v1.outputs.IOutputControlRequest=} [properties] Properties to set
|
|
34965
|
+
* @returns {sesame.v1.outputs.OutputControlRequest} OutputControlRequest instance
|
|
34966
|
+
*/
|
|
34967
|
+
OutputControlRequest.create = function create(properties) {
|
|
34968
|
+
return new OutputControlRequest(properties);
|
|
34969
|
+
};
|
|
34970
|
+
|
|
34971
|
+
/**
|
|
34972
|
+
* Encodes the specified OutputControlRequest message. Does not implicitly {@link sesame.v1.outputs.OutputControlRequest.verify|verify} messages.
|
|
34973
|
+
* @function encode
|
|
34974
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
34975
|
+
* @static
|
|
34976
|
+
* @param {sesame.v1.outputs.IOutputControlRequest} message OutputControlRequest message or plain object to encode
|
|
34977
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
34978
|
+
* @returns {$protobuf.Writer} Writer
|
|
34979
|
+
*/
|
|
34980
|
+
OutputControlRequest.encode = function encode(message, writer) {
|
|
34981
|
+
if (!writer)
|
|
34982
|
+
writer = $Writer.create();
|
|
34983
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
34984
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
34985
|
+
if (message.action != null && Object.hasOwnProperty.call(message, "action"))
|
|
34986
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action);
|
|
34987
|
+
return writer;
|
|
34988
|
+
};
|
|
34989
|
+
|
|
34990
|
+
/**
|
|
34991
|
+
* Encodes the specified OutputControlRequest message, length delimited. Does not implicitly {@link sesame.v1.outputs.OutputControlRequest.verify|verify} messages.
|
|
34992
|
+
* @function encodeDelimited
|
|
34993
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
34994
|
+
* @static
|
|
34995
|
+
* @param {sesame.v1.outputs.IOutputControlRequest} message OutputControlRequest message or plain object to encode
|
|
34996
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
34997
|
+
* @returns {$protobuf.Writer} Writer
|
|
34998
|
+
*/
|
|
34999
|
+
OutputControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
35000
|
+
return this.encode(message, writer).ldelim();
|
|
35001
|
+
};
|
|
35002
|
+
|
|
35003
|
+
/**
|
|
35004
|
+
* Decodes an OutputControlRequest message from the specified reader or buffer.
|
|
35005
|
+
* @function decode
|
|
35006
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
35007
|
+
* @static
|
|
35008
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35009
|
+
* @param {number} [length] Message length if known beforehand
|
|
35010
|
+
* @returns {sesame.v1.outputs.OutputControlRequest} OutputControlRequest
|
|
35011
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35012
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35013
|
+
*/
|
|
35014
|
+
OutputControlRequest.decode = function decode(reader, length, error) {
|
|
35015
|
+
if (!(reader instanceof $Reader))
|
|
35016
|
+
reader = $Reader.create(reader);
|
|
35017
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.OutputControlRequest();
|
|
35018
|
+
while (reader.pos < end) {
|
|
35019
|
+
let tag = reader.uint32();
|
|
35020
|
+
if (tag === error)
|
|
35021
|
+
break;
|
|
35022
|
+
switch (tag >>> 3) {
|
|
35023
|
+
case 1: {
|
|
35024
|
+
message.id = reader.string();
|
|
35025
|
+
break;
|
|
35026
|
+
}
|
|
35027
|
+
case 2: {
|
|
35028
|
+
message.action = reader.int32();
|
|
35029
|
+
break;
|
|
35030
|
+
}
|
|
35031
|
+
default:
|
|
35032
|
+
reader.skipType(tag & 7);
|
|
35033
|
+
break;
|
|
35034
|
+
}
|
|
35035
|
+
}
|
|
35036
|
+
return message;
|
|
35037
|
+
};
|
|
35038
|
+
|
|
35039
|
+
/**
|
|
35040
|
+
* Decodes an OutputControlRequest message from the specified reader or buffer, length delimited.
|
|
35041
|
+
* @function decodeDelimited
|
|
35042
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
35043
|
+
* @static
|
|
35044
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35045
|
+
* @returns {sesame.v1.outputs.OutputControlRequest} OutputControlRequest
|
|
35046
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35047
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35048
|
+
*/
|
|
35049
|
+
OutputControlRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
35050
|
+
if (!(reader instanceof $Reader))
|
|
35051
|
+
reader = new $Reader(reader);
|
|
35052
|
+
return this.decode(reader, reader.uint32());
|
|
35053
|
+
};
|
|
35054
|
+
|
|
35055
|
+
/**
|
|
35056
|
+
* Verifies an OutputControlRequest message.
|
|
35057
|
+
* @function verify
|
|
35058
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
35059
|
+
* @static
|
|
35060
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
35061
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
35062
|
+
*/
|
|
35063
|
+
OutputControlRequest.verify = function verify(message) {
|
|
35064
|
+
if (typeof message !== "object" || message === null)
|
|
35065
|
+
return "object expected";
|
|
35066
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
35067
|
+
if (!$util.isString(message.id))
|
|
35068
|
+
return "id: string expected";
|
|
35069
|
+
if (message.action != null && message.hasOwnProperty("action"))
|
|
35070
|
+
switch (message.action) {
|
|
35071
|
+
default:
|
|
35072
|
+
return "action: enum value expected";
|
|
35073
|
+
case 0:
|
|
35074
|
+
case 1:
|
|
35075
|
+
case 2:
|
|
35076
|
+
break;
|
|
35077
|
+
}
|
|
35078
|
+
return null;
|
|
35079
|
+
};
|
|
35080
|
+
|
|
35081
|
+
/**
|
|
35082
|
+
* Creates an OutputControlRequest message from a plain object. Also converts values to their respective internal types.
|
|
35083
|
+
* @function fromObject
|
|
35084
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
35085
|
+
* @static
|
|
35086
|
+
* @param {Object.<string,*>} object Plain object
|
|
35087
|
+
* @returns {sesame.v1.outputs.OutputControlRequest} OutputControlRequest
|
|
35088
|
+
*/
|
|
35089
|
+
OutputControlRequest.fromObject = function fromObject(object) {
|
|
35090
|
+
if (object instanceof $root.sesame.v1.outputs.OutputControlRequest)
|
|
35091
|
+
return object;
|
|
35092
|
+
let message = new $root.sesame.v1.outputs.OutputControlRequest();
|
|
35093
|
+
if (object.id != null)
|
|
35094
|
+
message.id = String(object.id);
|
|
35095
|
+
switch (object.action) {
|
|
35096
|
+
default:
|
|
35097
|
+
if (typeof object.action === "number") {
|
|
35098
|
+
message.action = object.action;
|
|
35099
|
+
break;
|
|
35100
|
+
}
|
|
35101
|
+
break;
|
|
35102
|
+
case "OUTPUT_CONTROL_ACTION_UNSPECIFIED":
|
|
35103
|
+
case 0:
|
|
35104
|
+
message.action = 0;
|
|
35105
|
+
break;
|
|
35106
|
+
case "OUTPUT_CONTROL_ACTION_START":
|
|
35107
|
+
case 1:
|
|
35108
|
+
message.action = 1;
|
|
35109
|
+
break;
|
|
35110
|
+
case "OUTPUT_CONTROL_ACTION_STOP":
|
|
35111
|
+
case 2:
|
|
35112
|
+
message.action = 2;
|
|
35113
|
+
break;
|
|
35114
|
+
}
|
|
35115
|
+
return message;
|
|
35116
|
+
};
|
|
35117
|
+
|
|
35118
|
+
/**
|
|
35119
|
+
* Creates a plain object from an OutputControlRequest message. Also converts values to other types if specified.
|
|
35120
|
+
* @function toObject
|
|
35121
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
35122
|
+
* @static
|
|
35123
|
+
* @param {sesame.v1.outputs.OutputControlRequest} message OutputControlRequest
|
|
35124
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
35125
|
+
* @returns {Object.<string,*>} Plain object
|
|
35126
|
+
*/
|
|
35127
|
+
OutputControlRequest.toObject = function toObject(message, options) {
|
|
35128
|
+
if (!options)
|
|
35129
|
+
options = {};
|
|
35130
|
+
let object = {};
|
|
35131
|
+
if (options.defaults) {
|
|
35132
|
+
object.id = "";
|
|
35133
|
+
object.action = options.enums === String ? "OUTPUT_CONTROL_ACTION_UNSPECIFIED" : 0;
|
|
35134
|
+
}
|
|
35135
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
35136
|
+
object.id = message.id;
|
|
35137
|
+
if (message.action != null && message.hasOwnProperty("action"))
|
|
35138
|
+
object.action = options.enums === String ? $root.sesame.v1.outputs.OutputControlAction[message.action] === undefined ? message.action : $root.sesame.v1.outputs.OutputControlAction[message.action] : message.action;
|
|
35139
|
+
return object;
|
|
35140
|
+
};
|
|
35141
|
+
|
|
35142
|
+
/**
|
|
35143
|
+
* Converts this OutputControlRequest to JSON.
|
|
35144
|
+
* @function toJSON
|
|
35145
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
35146
|
+
* @instance
|
|
35147
|
+
* @returns {Object.<string,*>} JSON object
|
|
35148
|
+
*/
|
|
35149
|
+
OutputControlRequest.prototype.toJSON = function toJSON() {
|
|
35150
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
35151
|
+
};
|
|
35152
|
+
|
|
35153
|
+
/**
|
|
35154
|
+
* Gets the default type url for OutputControlRequest
|
|
35155
|
+
* @function getTypeUrl
|
|
35156
|
+
* @memberof sesame.v1.outputs.OutputControlRequest
|
|
35157
|
+
* @static
|
|
35158
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
35159
|
+
* @returns {string} The default type url
|
|
35160
|
+
*/
|
|
35161
|
+
OutputControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
35162
|
+
if (typeUrlPrefix === undefined) {
|
|
35163
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
35164
|
+
}
|
|
35165
|
+
return typeUrlPrefix + "/sesame.v1.outputs.OutputControlRequest";
|
|
35166
|
+
};
|
|
35167
|
+
|
|
35168
|
+
return OutputControlRequest;
|
|
35169
|
+
})();
|
|
35170
|
+
|
|
34727
35171
|
outputs.KeyframeRequest = (function() {
|
|
34728
35172
|
|
|
34729
35173
|
/**
|
|
@@ -34943,6 +35387,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
34943
35387
|
* @property {number|null} [bufferSize] OutputStatus bufferSize
|
|
34944
35388
|
* @property {sesame.v1.status.ISRTSendStatistics|null} [srtStats] OutputStatus srtStats
|
|
34945
35389
|
* @property {string|null} [encoderId] OutputStatus encoderId
|
|
35390
|
+
* @property {sesame.v1.outputs.SrtStreamControl|null} [control] OutputStatus control
|
|
34946
35391
|
*/
|
|
34947
35392
|
|
|
34948
35393
|
/**
|
|
@@ -35024,6 +35469,14 @@ export const sesame = $root.sesame = (() => {
|
|
|
35024
35469
|
*/
|
|
35025
35470
|
OutputStatus.prototype.encoderId = "";
|
|
35026
35471
|
|
|
35472
|
+
/**
|
|
35473
|
+
* OutputStatus control.
|
|
35474
|
+
* @member {sesame.v1.outputs.SrtStreamControl} control
|
|
35475
|
+
* @memberof sesame.v1.outputs.OutputStatus
|
|
35476
|
+
* @instance
|
|
35477
|
+
*/
|
|
35478
|
+
OutputStatus.prototype.control = 0;
|
|
35479
|
+
|
|
35027
35480
|
// OneOf field names bound to virtual getters and setters
|
|
35028
35481
|
let $oneOfFields;
|
|
35029
35482
|
|
|
@@ -35079,6 +35532,8 @@ export const sesame = $root.sesame = (() => {
|
|
|
35079
35532
|
$root.sesame.v1.status.SRTSendStatistics.encode(message.srtStats, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
35080
35533
|
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
35081
35534
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.encoderId);
|
|
35535
|
+
if (message.control != null && Object.hasOwnProperty.call(message, "control"))
|
|
35536
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.control);
|
|
35082
35537
|
return writer;
|
|
35083
35538
|
};
|
|
35084
35539
|
|
|
@@ -35147,6 +35602,10 @@ export const sesame = $root.sesame = (() => {
|
|
|
35147
35602
|
message.encoderId = reader.string();
|
|
35148
35603
|
break;
|
|
35149
35604
|
}
|
|
35605
|
+
case 9: {
|
|
35606
|
+
message.control = reader.int32();
|
|
35607
|
+
break;
|
|
35608
|
+
}
|
|
35150
35609
|
default:
|
|
35151
35610
|
reader.skipType(tag & 7);
|
|
35152
35611
|
break;
|
|
@@ -35211,6 +35670,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
35211
35670
|
case 4:
|
|
35212
35671
|
case 5:
|
|
35213
35672
|
case 6:
|
|
35673
|
+
case 7:
|
|
35214
35674
|
break;
|
|
35215
35675
|
}
|
|
35216
35676
|
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
@@ -35235,6 +35695,15 @@ export const sesame = $root.sesame = (() => {
|
|
|
35235
35695
|
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
35236
35696
|
if (!$util.isString(message.encoderId))
|
|
35237
35697
|
return "encoderId: string expected";
|
|
35698
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
35699
|
+
switch (message.control) {
|
|
35700
|
+
default:
|
|
35701
|
+
return "control: enum value expected";
|
|
35702
|
+
case 0:
|
|
35703
|
+
case 1:
|
|
35704
|
+
case 2:
|
|
35705
|
+
break;
|
|
35706
|
+
}
|
|
35238
35707
|
return null;
|
|
35239
35708
|
};
|
|
35240
35709
|
|
|
@@ -35327,6 +35796,10 @@ export const sesame = $root.sesame = (() => {
|
|
|
35327
35796
|
case 6:
|
|
35328
35797
|
message.state = 6;
|
|
35329
35798
|
break;
|
|
35799
|
+
case "CONNECTION_STATE_DISABLED":
|
|
35800
|
+
case 7:
|
|
35801
|
+
message.state = 7;
|
|
35802
|
+
break;
|
|
35330
35803
|
}
|
|
35331
35804
|
if (object.msg != null)
|
|
35332
35805
|
message.msg = String(object.msg);
|
|
@@ -35341,6 +35814,26 @@ export const sesame = $root.sesame = (() => {
|
|
|
35341
35814
|
}
|
|
35342
35815
|
if (object.encoderId != null)
|
|
35343
35816
|
message.encoderId = String(object.encoderId);
|
|
35817
|
+
switch (object.control) {
|
|
35818
|
+
default:
|
|
35819
|
+
if (typeof object.control === "number") {
|
|
35820
|
+
message.control = object.control;
|
|
35821
|
+
break;
|
|
35822
|
+
}
|
|
35823
|
+
break;
|
|
35824
|
+
case "SRT_STREAM_CONTROL_UNSPECIFIED":
|
|
35825
|
+
case 0:
|
|
35826
|
+
message.control = 0;
|
|
35827
|
+
break;
|
|
35828
|
+
case "SRT_STREAM_CONTROL_STARTED":
|
|
35829
|
+
case 1:
|
|
35830
|
+
message.control = 1;
|
|
35831
|
+
break;
|
|
35832
|
+
case "SRT_STREAM_CONTROL_MANUAL":
|
|
35833
|
+
case 2:
|
|
35834
|
+
message.control = 2;
|
|
35835
|
+
break;
|
|
35836
|
+
}
|
|
35344
35837
|
return message;
|
|
35345
35838
|
};
|
|
35346
35839
|
|
|
@@ -35364,6 +35857,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
35364
35857
|
object.url = "";
|
|
35365
35858
|
object.bufferSize = 0;
|
|
35366
35859
|
object.encoderId = "";
|
|
35860
|
+
object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
|
|
35367
35861
|
}
|
|
35368
35862
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
35369
35863
|
object.id = message.id;
|
|
@@ -35387,6 +35881,8 @@ export const sesame = $root.sesame = (() => {
|
|
|
35387
35881
|
}
|
|
35388
35882
|
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
35389
35883
|
object.encoderId = message.encoderId;
|
|
35884
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
35885
|
+
object.control = options.enums === String ? $root.sesame.v1.outputs.SrtStreamControl[message.control] === undefined ? message.control : $root.sesame.v1.outputs.SrtStreamControl[message.control] : message.control;
|
|
35390
35886
|
return object;
|
|
35391
35887
|
};
|
|
35392
35888
|
|
|
@@ -35659,6 +36155,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
35659
36155
|
case 4:
|
|
35660
36156
|
case 5:
|
|
35661
36157
|
case 6:
|
|
36158
|
+
case 7:
|
|
35662
36159
|
break;
|
|
35663
36160
|
}
|
|
35664
36161
|
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
@@ -35740,6 +36237,10 @@ export const sesame = $root.sesame = (() => {
|
|
|
35740
36237
|
case 6:
|
|
35741
36238
|
message.state = 6;
|
|
35742
36239
|
break;
|
|
36240
|
+
case "CONNECTION_STATE_DISABLED":
|
|
36241
|
+
case 7:
|
|
36242
|
+
message.state = 7;
|
|
36243
|
+
break;
|
|
35743
36244
|
}
|
|
35744
36245
|
if (object.msg != null)
|
|
35745
36246
|
message.msg = String(object.msg);
|
|
@@ -37405,6 +37906,469 @@ export const sesame = $root.sesame = (() => {
|
|
|
37405
37906
|
return NodeRemoveRequest;
|
|
37406
37907
|
})();
|
|
37407
37908
|
|
|
37909
|
+
compositor.SideDataSetRequest = (function() {
|
|
37910
|
+
|
|
37911
|
+
/**
|
|
37912
|
+
* Properties of a SideDataSetRequest.
|
|
37913
|
+
* @memberof sesame.v1.compositor
|
|
37914
|
+
* @interface ISideDataSetRequest
|
|
37915
|
+
* @property {string|null} [compositorId] SideDataSetRequest compositorId
|
|
37916
|
+
* @property {sesame.v1.sidedata.ISideData|null} [sideData] SideDataSetRequest sideData
|
|
37917
|
+
*/
|
|
37918
|
+
|
|
37919
|
+
/**
|
|
37920
|
+
* Constructs a new SideDataSetRequest.
|
|
37921
|
+
* @memberof sesame.v1.compositor
|
|
37922
|
+
* @classdesc Represents a SideDataSetRequest.
|
|
37923
|
+
* @implements ISideDataSetRequest
|
|
37924
|
+
* @constructor
|
|
37925
|
+
* @param {sesame.v1.compositor.ISideDataSetRequest=} [properties] Properties to set
|
|
37926
|
+
*/
|
|
37927
|
+
function SideDataSetRequest(properties) {
|
|
37928
|
+
if (properties)
|
|
37929
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
37930
|
+
if (properties[keys[i]] != null)
|
|
37931
|
+
this[keys[i]] = properties[keys[i]];
|
|
37932
|
+
}
|
|
37933
|
+
|
|
37934
|
+
/**
|
|
37935
|
+
* SideDataSetRequest compositorId.
|
|
37936
|
+
* @member {string} compositorId
|
|
37937
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
37938
|
+
* @instance
|
|
37939
|
+
*/
|
|
37940
|
+
SideDataSetRequest.prototype.compositorId = "";
|
|
37941
|
+
|
|
37942
|
+
/**
|
|
37943
|
+
* SideDataSetRequest sideData.
|
|
37944
|
+
* @member {sesame.v1.sidedata.ISideData|null|undefined} sideData
|
|
37945
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
37946
|
+
* @instance
|
|
37947
|
+
*/
|
|
37948
|
+
SideDataSetRequest.prototype.sideData = null;
|
|
37949
|
+
|
|
37950
|
+
/**
|
|
37951
|
+
* Creates a new SideDataSetRequest instance using the specified properties.
|
|
37952
|
+
* @function create
|
|
37953
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
37954
|
+
* @static
|
|
37955
|
+
* @param {sesame.v1.compositor.ISideDataSetRequest=} [properties] Properties to set
|
|
37956
|
+
* @returns {sesame.v1.compositor.SideDataSetRequest} SideDataSetRequest instance
|
|
37957
|
+
*/
|
|
37958
|
+
SideDataSetRequest.create = function create(properties) {
|
|
37959
|
+
return new SideDataSetRequest(properties);
|
|
37960
|
+
};
|
|
37961
|
+
|
|
37962
|
+
/**
|
|
37963
|
+
* Encodes the specified SideDataSetRequest message. Does not implicitly {@link sesame.v1.compositor.SideDataSetRequest.verify|verify} messages.
|
|
37964
|
+
* @function encode
|
|
37965
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
37966
|
+
* @static
|
|
37967
|
+
* @param {sesame.v1.compositor.ISideDataSetRequest} message SideDataSetRequest message or plain object to encode
|
|
37968
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
37969
|
+
* @returns {$protobuf.Writer} Writer
|
|
37970
|
+
*/
|
|
37971
|
+
SideDataSetRequest.encode = function encode(message, writer) {
|
|
37972
|
+
if (!writer)
|
|
37973
|
+
writer = $Writer.create();
|
|
37974
|
+
if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
|
|
37975
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.compositorId);
|
|
37976
|
+
if (message.sideData != null && Object.hasOwnProperty.call(message, "sideData"))
|
|
37977
|
+
$root.sesame.v1.sidedata.SideData.encode(message.sideData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
37978
|
+
return writer;
|
|
37979
|
+
};
|
|
37980
|
+
|
|
37981
|
+
/**
|
|
37982
|
+
* Encodes the specified SideDataSetRequest message, length delimited. Does not implicitly {@link sesame.v1.compositor.SideDataSetRequest.verify|verify} messages.
|
|
37983
|
+
* @function encodeDelimited
|
|
37984
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
37985
|
+
* @static
|
|
37986
|
+
* @param {sesame.v1.compositor.ISideDataSetRequest} message SideDataSetRequest message or plain object to encode
|
|
37987
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
37988
|
+
* @returns {$protobuf.Writer} Writer
|
|
37989
|
+
*/
|
|
37990
|
+
SideDataSetRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
37991
|
+
return this.encode(message, writer).ldelim();
|
|
37992
|
+
};
|
|
37993
|
+
|
|
37994
|
+
/**
|
|
37995
|
+
* Decodes a SideDataSetRequest message from the specified reader or buffer.
|
|
37996
|
+
* @function decode
|
|
37997
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
37998
|
+
* @static
|
|
37999
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38000
|
+
* @param {number} [length] Message length if known beforehand
|
|
38001
|
+
* @returns {sesame.v1.compositor.SideDataSetRequest} SideDataSetRequest
|
|
38002
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38003
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38004
|
+
*/
|
|
38005
|
+
SideDataSetRequest.decode = function decode(reader, length, error) {
|
|
38006
|
+
if (!(reader instanceof $Reader))
|
|
38007
|
+
reader = $Reader.create(reader);
|
|
38008
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.SideDataSetRequest();
|
|
38009
|
+
while (reader.pos < end) {
|
|
38010
|
+
let tag = reader.uint32();
|
|
38011
|
+
if (tag === error)
|
|
38012
|
+
break;
|
|
38013
|
+
switch (tag >>> 3) {
|
|
38014
|
+
case 1: {
|
|
38015
|
+
message.compositorId = reader.string();
|
|
38016
|
+
break;
|
|
38017
|
+
}
|
|
38018
|
+
case 2: {
|
|
38019
|
+
message.sideData = $root.sesame.v1.sidedata.SideData.decode(reader, reader.uint32());
|
|
38020
|
+
break;
|
|
38021
|
+
}
|
|
38022
|
+
default:
|
|
38023
|
+
reader.skipType(tag & 7);
|
|
38024
|
+
break;
|
|
38025
|
+
}
|
|
38026
|
+
}
|
|
38027
|
+
return message;
|
|
38028
|
+
};
|
|
38029
|
+
|
|
38030
|
+
/**
|
|
38031
|
+
* Decodes a SideDataSetRequest message from the specified reader or buffer, length delimited.
|
|
38032
|
+
* @function decodeDelimited
|
|
38033
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
38034
|
+
* @static
|
|
38035
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38036
|
+
* @returns {sesame.v1.compositor.SideDataSetRequest} SideDataSetRequest
|
|
38037
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38038
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38039
|
+
*/
|
|
38040
|
+
SideDataSetRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
38041
|
+
if (!(reader instanceof $Reader))
|
|
38042
|
+
reader = new $Reader(reader);
|
|
38043
|
+
return this.decode(reader, reader.uint32());
|
|
38044
|
+
};
|
|
38045
|
+
|
|
38046
|
+
/**
|
|
38047
|
+
* Verifies a SideDataSetRequest message.
|
|
38048
|
+
* @function verify
|
|
38049
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
38050
|
+
* @static
|
|
38051
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
38052
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
38053
|
+
*/
|
|
38054
|
+
SideDataSetRequest.verify = function verify(message) {
|
|
38055
|
+
if (typeof message !== "object" || message === null)
|
|
38056
|
+
return "object expected";
|
|
38057
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId"))
|
|
38058
|
+
if (!$util.isString(message.compositorId))
|
|
38059
|
+
return "compositorId: string expected";
|
|
38060
|
+
if (message.sideData != null && message.hasOwnProperty("sideData")) {
|
|
38061
|
+
let error = $root.sesame.v1.sidedata.SideData.verify(message.sideData);
|
|
38062
|
+
if (error)
|
|
38063
|
+
return "sideData." + error;
|
|
38064
|
+
}
|
|
38065
|
+
return null;
|
|
38066
|
+
};
|
|
38067
|
+
|
|
38068
|
+
/**
|
|
38069
|
+
* Creates a SideDataSetRequest message from a plain object. Also converts values to their respective internal types.
|
|
38070
|
+
* @function fromObject
|
|
38071
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
38072
|
+
* @static
|
|
38073
|
+
* @param {Object.<string,*>} object Plain object
|
|
38074
|
+
* @returns {sesame.v1.compositor.SideDataSetRequest} SideDataSetRequest
|
|
38075
|
+
*/
|
|
38076
|
+
SideDataSetRequest.fromObject = function fromObject(object) {
|
|
38077
|
+
if (object instanceof $root.sesame.v1.compositor.SideDataSetRequest)
|
|
38078
|
+
return object;
|
|
38079
|
+
let message = new $root.sesame.v1.compositor.SideDataSetRequest();
|
|
38080
|
+
if (object.compositorId != null)
|
|
38081
|
+
message.compositorId = String(object.compositorId);
|
|
38082
|
+
if (object.sideData != null) {
|
|
38083
|
+
if (typeof object.sideData !== "object")
|
|
38084
|
+
throw TypeError(".sesame.v1.compositor.SideDataSetRequest.sideData: object expected");
|
|
38085
|
+
message.sideData = $root.sesame.v1.sidedata.SideData.fromObject(object.sideData);
|
|
38086
|
+
}
|
|
38087
|
+
return message;
|
|
38088
|
+
};
|
|
38089
|
+
|
|
38090
|
+
/**
|
|
38091
|
+
* Creates a plain object from a SideDataSetRequest message. Also converts values to other types if specified.
|
|
38092
|
+
* @function toObject
|
|
38093
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
38094
|
+
* @static
|
|
38095
|
+
* @param {sesame.v1.compositor.SideDataSetRequest} message SideDataSetRequest
|
|
38096
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
38097
|
+
* @returns {Object.<string,*>} Plain object
|
|
38098
|
+
*/
|
|
38099
|
+
SideDataSetRequest.toObject = function toObject(message, options) {
|
|
38100
|
+
if (!options)
|
|
38101
|
+
options = {};
|
|
38102
|
+
let object = {};
|
|
38103
|
+
if (options.defaults) {
|
|
38104
|
+
object.compositorId = "";
|
|
38105
|
+
object.sideData = null;
|
|
38106
|
+
}
|
|
38107
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId"))
|
|
38108
|
+
object.compositorId = message.compositorId;
|
|
38109
|
+
if (message.sideData != null && message.hasOwnProperty("sideData"))
|
|
38110
|
+
object.sideData = $root.sesame.v1.sidedata.SideData.toObject(message.sideData, options);
|
|
38111
|
+
return object;
|
|
38112
|
+
};
|
|
38113
|
+
|
|
38114
|
+
/**
|
|
38115
|
+
* Converts this SideDataSetRequest to JSON.
|
|
38116
|
+
* @function toJSON
|
|
38117
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
38118
|
+
* @instance
|
|
38119
|
+
* @returns {Object.<string,*>} JSON object
|
|
38120
|
+
*/
|
|
38121
|
+
SideDataSetRequest.prototype.toJSON = function toJSON() {
|
|
38122
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
38123
|
+
};
|
|
38124
|
+
|
|
38125
|
+
/**
|
|
38126
|
+
* Gets the default type url for SideDataSetRequest
|
|
38127
|
+
* @function getTypeUrl
|
|
38128
|
+
* @memberof sesame.v1.compositor.SideDataSetRequest
|
|
38129
|
+
* @static
|
|
38130
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
38131
|
+
* @returns {string} The default type url
|
|
38132
|
+
*/
|
|
38133
|
+
SideDataSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
38134
|
+
if (typeUrlPrefix === undefined) {
|
|
38135
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
38136
|
+
}
|
|
38137
|
+
return typeUrlPrefix + "/sesame.v1.compositor.SideDataSetRequest";
|
|
38138
|
+
};
|
|
38139
|
+
|
|
38140
|
+
return SideDataSetRequest;
|
|
38141
|
+
})();
|
|
38142
|
+
|
|
38143
|
+
compositor.SideDataRemoveRequest = (function() {
|
|
38144
|
+
|
|
38145
|
+
/**
|
|
38146
|
+
* Properties of a SideDataRemoveRequest.
|
|
38147
|
+
* @memberof sesame.v1.compositor
|
|
38148
|
+
* @interface ISideDataRemoveRequest
|
|
38149
|
+
* @property {string|null} [compositorId] SideDataRemoveRequest compositorId
|
|
38150
|
+
* @property {string|null} [id] SideDataRemoveRequest id
|
|
38151
|
+
*/
|
|
38152
|
+
|
|
38153
|
+
/**
|
|
38154
|
+
* Constructs a new SideDataRemoveRequest.
|
|
38155
|
+
* @memberof sesame.v1.compositor
|
|
38156
|
+
* @classdesc Represents a SideDataRemoveRequest.
|
|
38157
|
+
* @implements ISideDataRemoveRequest
|
|
38158
|
+
* @constructor
|
|
38159
|
+
* @param {sesame.v1.compositor.ISideDataRemoveRequest=} [properties] Properties to set
|
|
38160
|
+
*/
|
|
38161
|
+
function SideDataRemoveRequest(properties) {
|
|
38162
|
+
if (properties)
|
|
38163
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
38164
|
+
if (properties[keys[i]] != null)
|
|
38165
|
+
this[keys[i]] = properties[keys[i]];
|
|
38166
|
+
}
|
|
38167
|
+
|
|
38168
|
+
/**
|
|
38169
|
+
* SideDataRemoveRequest compositorId.
|
|
38170
|
+
* @member {string} compositorId
|
|
38171
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38172
|
+
* @instance
|
|
38173
|
+
*/
|
|
38174
|
+
SideDataRemoveRequest.prototype.compositorId = "";
|
|
38175
|
+
|
|
38176
|
+
/**
|
|
38177
|
+
* SideDataRemoveRequest id.
|
|
38178
|
+
* @member {string} id
|
|
38179
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38180
|
+
* @instance
|
|
38181
|
+
*/
|
|
38182
|
+
SideDataRemoveRequest.prototype.id = "";
|
|
38183
|
+
|
|
38184
|
+
/**
|
|
38185
|
+
* Creates a new SideDataRemoveRequest instance using the specified properties.
|
|
38186
|
+
* @function create
|
|
38187
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38188
|
+
* @static
|
|
38189
|
+
* @param {sesame.v1.compositor.ISideDataRemoveRequest=} [properties] Properties to set
|
|
38190
|
+
* @returns {sesame.v1.compositor.SideDataRemoveRequest} SideDataRemoveRequest instance
|
|
38191
|
+
*/
|
|
38192
|
+
SideDataRemoveRequest.create = function create(properties) {
|
|
38193
|
+
return new SideDataRemoveRequest(properties);
|
|
38194
|
+
};
|
|
38195
|
+
|
|
38196
|
+
/**
|
|
38197
|
+
* Encodes the specified SideDataRemoveRequest message. Does not implicitly {@link sesame.v1.compositor.SideDataRemoveRequest.verify|verify} messages.
|
|
38198
|
+
* @function encode
|
|
38199
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38200
|
+
* @static
|
|
38201
|
+
* @param {sesame.v1.compositor.ISideDataRemoveRequest} message SideDataRemoveRequest message or plain object to encode
|
|
38202
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38203
|
+
* @returns {$protobuf.Writer} Writer
|
|
38204
|
+
*/
|
|
38205
|
+
SideDataRemoveRequest.encode = function encode(message, writer) {
|
|
38206
|
+
if (!writer)
|
|
38207
|
+
writer = $Writer.create();
|
|
38208
|
+
if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
|
|
38209
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.compositorId);
|
|
38210
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
38211
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.id);
|
|
38212
|
+
return writer;
|
|
38213
|
+
};
|
|
38214
|
+
|
|
38215
|
+
/**
|
|
38216
|
+
* Encodes the specified SideDataRemoveRequest message, length delimited. Does not implicitly {@link sesame.v1.compositor.SideDataRemoveRequest.verify|verify} messages.
|
|
38217
|
+
* @function encodeDelimited
|
|
38218
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38219
|
+
* @static
|
|
38220
|
+
* @param {sesame.v1.compositor.ISideDataRemoveRequest} message SideDataRemoveRequest message or plain object to encode
|
|
38221
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38222
|
+
* @returns {$protobuf.Writer} Writer
|
|
38223
|
+
*/
|
|
38224
|
+
SideDataRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
38225
|
+
return this.encode(message, writer).ldelim();
|
|
38226
|
+
};
|
|
38227
|
+
|
|
38228
|
+
/**
|
|
38229
|
+
* Decodes a SideDataRemoveRequest message from the specified reader or buffer.
|
|
38230
|
+
* @function decode
|
|
38231
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38232
|
+
* @static
|
|
38233
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38234
|
+
* @param {number} [length] Message length if known beforehand
|
|
38235
|
+
* @returns {sesame.v1.compositor.SideDataRemoveRequest} SideDataRemoveRequest
|
|
38236
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38237
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38238
|
+
*/
|
|
38239
|
+
SideDataRemoveRequest.decode = function decode(reader, length, error) {
|
|
38240
|
+
if (!(reader instanceof $Reader))
|
|
38241
|
+
reader = $Reader.create(reader);
|
|
38242
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.SideDataRemoveRequest();
|
|
38243
|
+
while (reader.pos < end) {
|
|
38244
|
+
let tag = reader.uint32();
|
|
38245
|
+
if (tag === error)
|
|
38246
|
+
break;
|
|
38247
|
+
switch (tag >>> 3) {
|
|
38248
|
+
case 1: {
|
|
38249
|
+
message.compositorId = reader.string();
|
|
38250
|
+
break;
|
|
38251
|
+
}
|
|
38252
|
+
case 2: {
|
|
38253
|
+
message.id = reader.string();
|
|
38254
|
+
break;
|
|
38255
|
+
}
|
|
38256
|
+
default:
|
|
38257
|
+
reader.skipType(tag & 7);
|
|
38258
|
+
break;
|
|
38259
|
+
}
|
|
38260
|
+
}
|
|
38261
|
+
return message;
|
|
38262
|
+
};
|
|
38263
|
+
|
|
38264
|
+
/**
|
|
38265
|
+
* Decodes a SideDataRemoveRequest message from the specified reader or buffer, length delimited.
|
|
38266
|
+
* @function decodeDelimited
|
|
38267
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38268
|
+
* @static
|
|
38269
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38270
|
+
* @returns {sesame.v1.compositor.SideDataRemoveRequest} SideDataRemoveRequest
|
|
38271
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38272
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38273
|
+
*/
|
|
38274
|
+
SideDataRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
38275
|
+
if (!(reader instanceof $Reader))
|
|
38276
|
+
reader = new $Reader(reader);
|
|
38277
|
+
return this.decode(reader, reader.uint32());
|
|
38278
|
+
};
|
|
38279
|
+
|
|
38280
|
+
/**
|
|
38281
|
+
* Verifies a SideDataRemoveRequest message.
|
|
38282
|
+
* @function verify
|
|
38283
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38284
|
+
* @static
|
|
38285
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
38286
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
38287
|
+
*/
|
|
38288
|
+
SideDataRemoveRequest.verify = function verify(message) {
|
|
38289
|
+
if (typeof message !== "object" || message === null)
|
|
38290
|
+
return "object expected";
|
|
38291
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId"))
|
|
38292
|
+
if (!$util.isString(message.compositorId))
|
|
38293
|
+
return "compositorId: string expected";
|
|
38294
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
38295
|
+
if (!$util.isString(message.id))
|
|
38296
|
+
return "id: string expected";
|
|
38297
|
+
return null;
|
|
38298
|
+
};
|
|
38299
|
+
|
|
38300
|
+
/**
|
|
38301
|
+
* Creates a SideDataRemoveRequest message from a plain object. Also converts values to their respective internal types.
|
|
38302
|
+
* @function fromObject
|
|
38303
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38304
|
+
* @static
|
|
38305
|
+
* @param {Object.<string,*>} object Plain object
|
|
38306
|
+
* @returns {sesame.v1.compositor.SideDataRemoveRequest} SideDataRemoveRequest
|
|
38307
|
+
*/
|
|
38308
|
+
SideDataRemoveRequest.fromObject = function fromObject(object) {
|
|
38309
|
+
if (object instanceof $root.sesame.v1.compositor.SideDataRemoveRequest)
|
|
38310
|
+
return object;
|
|
38311
|
+
let message = new $root.sesame.v1.compositor.SideDataRemoveRequest();
|
|
38312
|
+
if (object.compositorId != null)
|
|
38313
|
+
message.compositorId = String(object.compositorId);
|
|
38314
|
+
if (object.id != null)
|
|
38315
|
+
message.id = String(object.id);
|
|
38316
|
+
return message;
|
|
38317
|
+
};
|
|
38318
|
+
|
|
38319
|
+
/**
|
|
38320
|
+
* Creates a plain object from a SideDataRemoveRequest message. Also converts values to other types if specified.
|
|
38321
|
+
* @function toObject
|
|
38322
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38323
|
+
* @static
|
|
38324
|
+
* @param {sesame.v1.compositor.SideDataRemoveRequest} message SideDataRemoveRequest
|
|
38325
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
38326
|
+
* @returns {Object.<string,*>} Plain object
|
|
38327
|
+
*/
|
|
38328
|
+
SideDataRemoveRequest.toObject = function toObject(message, options) {
|
|
38329
|
+
if (!options)
|
|
38330
|
+
options = {};
|
|
38331
|
+
let object = {};
|
|
38332
|
+
if (options.defaults) {
|
|
38333
|
+
object.compositorId = "";
|
|
38334
|
+
object.id = "";
|
|
38335
|
+
}
|
|
38336
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId"))
|
|
38337
|
+
object.compositorId = message.compositorId;
|
|
38338
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
38339
|
+
object.id = message.id;
|
|
38340
|
+
return object;
|
|
38341
|
+
};
|
|
38342
|
+
|
|
38343
|
+
/**
|
|
38344
|
+
* Converts this SideDataRemoveRequest to JSON.
|
|
38345
|
+
* @function toJSON
|
|
38346
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38347
|
+
* @instance
|
|
38348
|
+
* @returns {Object.<string,*>} JSON object
|
|
38349
|
+
*/
|
|
38350
|
+
SideDataRemoveRequest.prototype.toJSON = function toJSON() {
|
|
38351
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
38352
|
+
};
|
|
38353
|
+
|
|
38354
|
+
/**
|
|
38355
|
+
* Gets the default type url for SideDataRemoveRequest
|
|
38356
|
+
* @function getTypeUrl
|
|
38357
|
+
* @memberof sesame.v1.compositor.SideDataRemoveRequest
|
|
38358
|
+
* @static
|
|
38359
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
38360
|
+
* @returns {string} The default type url
|
|
38361
|
+
*/
|
|
38362
|
+
SideDataRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
38363
|
+
if (typeUrlPrefix === undefined) {
|
|
38364
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
38365
|
+
}
|
|
38366
|
+
return typeUrlPrefix + "/sesame.v1.compositor.SideDataRemoveRequest";
|
|
38367
|
+
};
|
|
38368
|
+
|
|
38369
|
+
return SideDataRemoveRequest;
|
|
38370
|
+
})();
|
|
38371
|
+
|
|
37408
38372
|
compositor.PropertySetRequest = (function() {
|
|
37409
38373
|
|
|
37410
38374
|
/**
|
|
@@ -38099,6 +39063,1214 @@ export const sesame = $root.sesame = (() => {
|
|
|
38099
39063
|
return compositor;
|
|
38100
39064
|
})();
|
|
38101
39065
|
|
|
39066
|
+
v1.sidedata = (function() {
|
|
39067
|
+
|
|
39068
|
+
/**
|
|
39069
|
+
* Namespace sidedata.
|
|
39070
|
+
* @memberof sesame.v1
|
|
39071
|
+
* @namespace
|
|
39072
|
+
*/
|
|
39073
|
+
const sidedata = {};
|
|
39074
|
+
|
|
39075
|
+
sidedata.AtlasEntry = (function() {
|
|
39076
|
+
|
|
39077
|
+
/**
|
|
39078
|
+
* Properties of an AtlasEntry.
|
|
39079
|
+
* @memberof sesame.v1.sidedata
|
|
39080
|
+
* @interface IAtlasEntry
|
|
39081
|
+
* @property {string|null} [sourceId] AtlasEntry sourceId
|
|
39082
|
+
* @property {number|null} [x] AtlasEntry x
|
|
39083
|
+
* @property {number|null} [y] AtlasEntry y
|
|
39084
|
+
* @property {number|null} [width] AtlasEntry width
|
|
39085
|
+
* @property {number|null} [height] AtlasEntry height
|
|
39086
|
+
* @property {number|null} [sourceWidth] AtlasEntry sourceWidth
|
|
39087
|
+
* @property {number|null} [sourceHeight] AtlasEntry sourceHeight
|
|
39088
|
+
*/
|
|
39089
|
+
|
|
39090
|
+
/**
|
|
39091
|
+
* Constructs a new AtlasEntry.
|
|
39092
|
+
* @memberof sesame.v1.sidedata
|
|
39093
|
+
* @classdesc Represents an AtlasEntry.
|
|
39094
|
+
* @implements IAtlasEntry
|
|
39095
|
+
* @constructor
|
|
39096
|
+
* @param {sesame.v1.sidedata.IAtlasEntry=} [properties] Properties to set
|
|
39097
|
+
*/
|
|
39098
|
+
function AtlasEntry(properties) {
|
|
39099
|
+
if (properties)
|
|
39100
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39101
|
+
if (properties[keys[i]] != null)
|
|
39102
|
+
this[keys[i]] = properties[keys[i]];
|
|
39103
|
+
}
|
|
39104
|
+
|
|
39105
|
+
/**
|
|
39106
|
+
* AtlasEntry sourceId.
|
|
39107
|
+
* @member {string} sourceId
|
|
39108
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39109
|
+
* @instance
|
|
39110
|
+
*/
|
|
39111
|
+
AtlasEntry.prototype.sourceId = "";
|
|
39112
|
+
|
|
39113
|
+
/**
|
|
39114
|
+
* AtlasEntry x.
|
|
39115
|
+
* @member {number} x
|
|
39116
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39117
|
+
* @instance
|
|
39118
|
+
*/
|
|
39119
|
+
AtlasEntry.prototype.x = 0;
|
|
39120
|
+
|
|
39121
|
+
/**
|
|
39122
|
+
* AtlasEntry y.
|
|
39123
|
+
* @member {number} y
|
|
39124
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39125
|
+
* @instance
|
|
39126
|
+
*/
|
|
39127
|
+
AtlasEntry.prototype.y = 0;
|
|
39128
|
+
|
|
39129
|
+
/**
|
|
39130
|
+
* AtlasEntry width.
|
|
39131
|
+
* @member {number} width
|
|
39132
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39133
|
+
* @instance
|
|
39134
|
+
*/
|
|
39135
|
+
AtlasEntry.prototype.width = 0;
|
|
39136
|
+
|
|
39137
|
+
/**
|
|
39138
|
+
* AtlasEntry height.
|
|
39139
|
+
* @member {number} height
|
|
39140
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39141
|
+
* @instance
|
|
39142
|
+
*/
|
|
39143
|
+
AtlasEntry.prototype.height = 0;
|
|
39144
|
+
|
|
39145
|
+
/**
|
|
39146
|
+
* AtlasEntry sourceWidth.
|
|
39147
|
+
* @member {number} sourceWidth
|
|
39148
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39149
|
+
* @instance
|
|
39150
|
+
*/
|
|
39151
|
+
AtlasEntry.prototype.sourceWidth = 0;
|
|
39152
|
+
|
|
39153
|
+
/**
|
|
39154
|
+
* AtlasEntry sourceHeight.
|
|
39155
|
+
* @member {number} sourceHeight
|
|
39156
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39157
|
+
* @instance
|
|
39158
|
+
*/
|
|
39159
|
+
AtlasEntry.prototype.sourceHeight = 0;
|
|
39160
|
+
|
|
39161
|
+
/**
|
|
39162
|
+
* Creates a new AtlasEntry instance using the specified properties.
|
|
39163
|
+
* @function create
|
|
39164
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39165
|
+
* @static
|
|
39166
|
+
* @param {sesame.v1.sidedata.IAtlasEntry=} [properties] Properties to set
|
|
39167
|
+
* @returns {sesame.v1.sidedata.AtlasEntry} AtlasEntry instance
|
|
39168
|
+
*/
|
|
39169
|
+
AtlasEntry.create = function create(properties) {
|
|
39170
|
+
return new AtlasEntry(properties);
|
|
39171
|
+
};
|
|
39172
|
+
|
|
39173
|
+
/**
|
|
39174
|
+
* Encodes the specified AtlasEntry message. Does not implicitly {@link sesame.v1.sidedata.AtlasEntry.verify|verify} messages.
|
|
39175
|
+
* @function encode
|
|
39176
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39177
|
+
* @static
|
|
39178
|
+
* @param {sesame.v1.sidedata.IAtlasEntry} message AtlasEntry message or plain object to encode
|
|
39179
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39180
|
+
* @returns {$protobuf.Writer} Writer
|
|
39181
|
+
*/
|
|
39182
|
+
AtlasEntry.encode = function encode(message, writer) {
|
|
39183
|
+
if (!writer)
|
|
39184
|
+
writer = $Writer.create();
|
|
39185
|
+
if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
|
|
39186
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceId);
|
|
39187
|
+
if (message.x != null && Object.hasOwnProperty.call(message, "x"))
|
|
39188
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.x);
|
|
39189
|
+
if (message.y != null && Object.hasOwnProperty.call(message, "y"))
|
|
39190
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.y);
|
|
39191
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
39192
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.width);
|
|
39193
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
39194
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.height);
|
|
39195
|
+
if (message.sourceWidth != null && Object.hasOwnProperty.call(message, "sourceWidth"))
|
|
39196
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.sourceWidth);
|
|
39197
|
+
if (message.sourceHeight != null && Object.hasOwnProperty.call(message, "sourceHeight"))
|
|
39198
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.sourceHeight);
|
|
39199
|
+
return writer;
|
|
39200
|
+
};
|
|
39201
|
+
|
|
39202
|
+
/**
|
|
39203
|
+
* Encodes the specified AtlasEntry message, length delimited. Does not implicitly {@link sesame.v1.sidedata.AtlasEntry.verify|verify} messages.
|
|
39204
|
+
* @function encodeDelimited
|
|
39205
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39206
|
+
* @static
|
|
39207
|
+
* @param {sesame.v1.sidedata.IAtlasEntry} message AtlasEntry message or plain object to encode
|
|
39208
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39209
|
+
* @returns {$protobuf.Writer} Writer
|
|
39210
|
+
*/
|
|
39211
|
+
AtlasEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39212
|
+
return this.encode(message, writer).ldelim();
|
|
39213
|
+
};
|
|
39214
|
+
|
|
39215
|
+
/**
|
|
39216
|
+
* Decodes an AtlasEntry message from the specified reader or buffer.
|
|
39217
|
+
* @function decode
|
|
39218
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39219
|
+
* @static
|
|
39220
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39221
|
+
* @param {number} [length] Message length if known beforehand
|
|
39222
|
+
* @returns {sesame.v1.sidedata.AtlasEntry} AtlasEntry
|
|
39223
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39224
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39225
|
+
*/
|
|
39226
|
+
AtlasEntry.decode = function decode(reader, length, error) {
|
|
39227
|
+
if (!(reader instanceof $Reader))
|
|
39228
|
+
reader = $Reader.create(reader);
|
|
39229
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.AtlasEntry();
|
|
39230
|
+
while (reader.pos < end) {
|
|
39231
|
+
let tag = reader.uint32();
|
|
39232
|
+
if (tag === error)
|
|
39233
|
+
break;
|
|
39234
|
+
switch (tag >>> 3) {
|
|
39235
|
+
case 1: {
|
|
39236
|
+
message.sourceId = reader.string();
|
|
39237
|
+
break;
|
|
39238
|
+
}
|
|
39239
|
+
case 2: {
|
|
39240
|
+
message.x = reader.uint32();
|
|
39241
|
+
break;
|
|
39242
|
+
}
|
|
39243
|
+
case 3: {
|
|
39244
|
+
message.y = reader.uint32();
|
|
39245
|
+
break;
|
|
39246
|
+
}
|
|
39247
|
+
case 4: {
|
|
39248
|
+
message.width = reader.uint32();
|
|
39249
|
+
break;
|
|
39250
|
+
}
|
|
39251
|
+
case 5: {
|
|
39252
|
+
message.height = reader.uint32();
|
|
39253
|
+
break;
|
|
39254
|
+
}
|
|
39255
|
+
case 6: {
|
|
39256
|
+
message.sourceWidth = reader.uint32();
|
|
39257
|
+
break;
|
|
39258
|
+
}
|
|
39259
|
+
case 7: {
|
|
39260
|
+
message.sourceHeight = reader.uint32();
|
|
39261
|
+
break;
|
|
39262
|
+
}
|
|
39263
|
+
default:
|
|
39264
|
+
reader.skipType(tag & 7);
|
|
39265
|
+
break;
|
|
39266
|
+
}
|
|
39267
|
+
}
|
|
39268
|
+
return message;
|
|
39269
|
+
};
|
|
39270
|
+
|
|
39271
|
+
/**
|
|
39272
|
+
* Decodes an AtlasEntry message from the specified reader or buffer, length delimited.
|
|
39273
|
+
* @function decodeDelimited
|
|
39274
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39275
|
+
* @static
|
|
39276
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39277
|
+
* @returns {sesame.v1.sidedata.AtlasEntry} AtlasEntry
|
|
39278
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39279
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39280
|
+
*/
|
|
39281
|
+
AtlasEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
39282
|
+
if (!(reader instanceof $Reader))
|
|
39283
|
+
reader = new $Reader(reader);
|
|
39284
|
+
return this.decode(reader, reader.uint32());
|
|
39285
|
+
};
|
|
39286
|
+
|
|
39287
|
+
/**
|
|
39288
|
+
* Verifies an AtlasEntry message.
|
|
39289
|
+
* @function verify
|
|
39290
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39291
|
+
* @static
|
|
39292
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39293
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39294
|
+
*/
|
|
39295
|
+
AtlasEntry.verify = function verify(message) {
|
|
39296
|
+
if (typeof message !== "object" || message === null)
|
|
39297
|
+
return "object expected";
|
|
39298
|
+
if (message.sourceId != null && message.hasOwnProperty("sourceId"))
|
|
39299
|
+
if (!$util.isString(message.sourceId))
|
|
39300
|
+
return "sourceId: string expected";
|
|
39301
|
+
if (message.x != null && message.hasOwnProperty("x"))
|
|
39302
|
+
if (!$util.isInteger(message.x))
|
|
39303
|
+
return "x: integer expected";
|
|
39304
|
+
if (message.y != null && message.hasOwnProperty("y"))
|
|
39305
|
+
if (!$util.isInteger(message.y))
|
|
39306
|
+
return "y: integer expected";
|
|
39307
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
39308
|
+
if (!$util.isInteger(message.width))
|
|
39309
|
+
return "width: integer expected";
|
|
39310
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
39311
|
+
if (!$util.isInteger(message.height))
|
|
39312
|
+
return "height: integer expected";
|
|
39313
|
+
if (message.sourceWidth != null && message.hasOwnProperty("sourceWidth"))
|
|
39314
|
+
if (!$util.isInteger(message.sourceWidth))
|
|
39315
|
+
return "sourceWidth: integer expected";
|
|
39316
|
+
if (message.sourceHeight != null && message.hasOwnProperty("sourceHeight"))
|
|
39317
|
+
if (!$util.isInteger(message.sourceHeight))
|
|
39318
|
+
return "sourceHeight: integer expected";
|
|
39319
|
+
return null;
|
|
39320
|
+
};
|
|
39321
|
+
|
|
39322
|
+
/**
|
|
39323
|
+
* Creates an AtlasEntry message from a plain object. Also converts values to their respective internal types.
|
|
39324
|
+
* @function fromObject
|
|
39325
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39326
|
+
* @static
|
|
39327
|
+
* @param {Object.<string,*>} object Plain object
|
|
39328
|
+
* @returns {sesame.v1.sidedata.AtlasEntry} AtlasEntry
|
|
39329
|
+
*/
|
|
39330
|
+
AtlasEntry.fromObject = function fromObject(object) {
|
|
39331
|
+
if (object instanceof $root.sesame.v1.sidedata.AtlasEntry)
|
|
39332
|
+
return object;
|
|
39333
|
+
let message = new $root.sesame.v1.sidedata.AtlasEntry();
|
|
39334
|
+
if (object.sourceId != null)
|
|
39335
|
+
message.sourceId = String(object.sourceId);
|
|
39336
|
+
if (object.x != null)
|
|
39337
|
+
message.x = object.x >>> 0;
|
|
39338
|
+
if (object.y != null)
|
|
39339
|
+
message.y = object.y >>> 0;
|
|
39340
|
+
if (object.width != null)
|
|
39341
|
+
message.width = object.width >>> 0;
|
|
39342
|
+
if (object.height != null)
|
|
39343
|
+
message.height = object.height >>> 0;
|
|
39344
|
+
if (object.sourceWidth != null)
|
|
39345
|
+
message.sourceWidth = object.sourceWidth >>> 0;
|
|
39346
|
+
if (object.sourceHeight != null)
|
|
39347
|
+
message.sourceHeight = object.sourceHeight >>> 0;
|
|
39348
|
+
return message;
|
|
39349
|
+
};
|
|
39350
|
+
|
|
39351
|
+
/**
|
|
39352
|
+
* Creates a plain object from an AtlasEntry message. Also converts values to other types if specified.
|
|
39353
|
+
* @function toObject
|
|
39354
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39355
|
+
* @static
|
|
39356
|
+
* @param {sesame.v1.sidedata.AtlasEntry} message AtlasEntry
|
|
39357
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39358
|
+
* @returns {Object.<string,*>} Plain object
|
|
39359
|
+
*/
|
|
39360
|
+
AtlasEntry.toObject = function toObject(message, options) {
|
|
39361
|
+
if (!options)
|
|
39362
|
+
options = {};
|
|
39363
|
+
let object = {};
|
|
39364
|
+
if (options.defaults) {
|
|
39365
|
+
object.sourceId = "";
|
|
39366
|
+
object.x = 0;
|
|
39367
|
+
object.y = 0;
|
|
39368
|
+
object.width = 0;
|
|
39369
|
+
object.height = 0;
|
|
39370
|
+
object.sourceWidth = 0;
|
|
39371
|
+
object.sourceHeight = 0;
|
|
39372
|
+
}
|
|
39373
|
+
if (message.sourceId != null && message.hasOwnProperty("sourceId"))
|
|
39374
|
+
object.sourceId = message.sourceId;
|
|
39375
|
+
if (message.x != null && message.hasOwnProperty("x"))
|
|
39376
|
+
object.x = message.x;
|
|
39377
|
+
if (message.y != null && message.hasOwnProperty("y"))
|
|
39378
|
+
object.y = message.y;
|
|
39379
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
39380
|
+
object.width = message.width;
|
|
39381
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
39382
|
+
object.height = message.height;
|
|
39383
|
+
if (message.sourceWidth != null && message.hasOwnProperty("sourceWidth"))
|
|
39384
|
+
object.sourceWidth = message.sourceWidth;
|
|
39385
|
+
if (message.sourceHeight != null && message.hasOwnProperty("sourceHeight"))
|
|
39386
|
+
object.sourceHeight = message.sourceHeight;
|
|
39387
|
+
return object;
|
|
39388
|
+
};
|
|
39389
|
+
|
|
39390
|
+
/**
|
|
39391
|
+
* Converts this AtlasEntry to JSON.
|
|
39392
|
+
* @function toJSON
|
|
39393
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39394
|
+
* @instance
|
|
39395
|
+
* @returns {Object.<string,*>} JSON object
|
|
39396
|
+
*/
|
|
39397
|
+
AtlasEntry.prototype.toJSON = function toJSON() {
|
|
39398
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39399
|
+
};
|
|
39400
|
+
|
|
39401
|
+
/**
|
|
39402
|
+
* Gets the default type url for AtlasEntry
|
|
39403
|
+
* @function getTypeUrl
|
|
39404
|
+
* @memberof sesame.v1.sidedata.AtlasEntry
|
|
39405
|
+
* @static
|
|
39406
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
39407
|
+
* @returns {string} The default type url
|
|
39408
|
+
*/
|
|
39409
|
+
AtlasEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
39410
|
+
if (typeUrlPrefix === undefined) {
|
|
39411
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
39412
|
+
}
|
|
39413
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.AtlasEntry";
|
|
39414
|
+
};
|
|
39415
|
+
|
|
39416
|
+
return AtlasEntry;
|
|
39417
|
+
})();
|
|
39418
|
+
|
|
39419
|
+
sidedata.AtlasLayout = (function() {
|
|
39420
|
+
|
|
39421
|
+
/**
|
|
39422
|
+
* Properties of an AtlasLayout.
|
|
39423
|
+
* @memberof sesame.v1.sidedata
|
|
39424
|
+
* @interface IAtlasLayout
|
|
39425
|
+
* @property {number|null} [width] AtlasLayout width
|
|
39426
|
+
* @property {number|null} [height] AtlasLayout height
|
|
39427
|
+
* @property {Array.<sesame.v1.sidedata.IAtlasEntry>|null} [entries] AtlasLayout entries
|
|
39428
|
+
*/
|
|
39429
|
+
|
|
39430
|
+
/**
|
|
39431
|
+
* Constructs a new AtlasLayout.
|
|
39432
|
+
* @memberof sesame.v1.sidedata
|
|
39433
|
+
* @classdesc Represents an AtlasLayout.
|
|
39434
|
+
* @implements IAtlasLayout
|
|
39435
|
+
* @constructor
|
|
39436
|
+
* @param {sesame.v1.sidedata.IAtlasLayout=} [properties] Properties to set
|
|
39437
|
+
*/
|
|
39438
|
+
function AtlasLayout(properties) {
|
|
39439
|
+
this.entries = [];
|
|
39440
|
+
if (properties)
|
|
39441
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39442
|
+
if (properties[keys[i]] != null)
|
|
39443
|
+
this[keys[i]] = properties[keys[i]];
|
|
39444
|
+
}
|
|
39445
|
+
|
|
39446
|
+
/**
|
|
39447
|
+
* AtlasLayout width.
|
|
39448
|
+
* @member {number} width
|
|
39449
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39450
|
+
* @instance
|
|
39451
|
+
*/
|
|
39452
|
+
AtlasLayout.prototype.width = 0;
|
|
39453
|
+
|
|
39454
|
+
/**
|
|
39455
|
+
* AtlasLayout height.
|
|
39456
|
+
* @member {number} height
|
|
39457
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39458
|
+
* @instance
|
|
39459
|
+
*/
|
|
39460
|
+
AtlasLayout.prototype.height = 0;
|
|
39461
|
+
|
|
39462
|
+
/**
|
|
39463
|
+
* AtlasLayout entries.
|
|
39464
|
+
* @member {Array.<sesame.v1.sidedata.IAtlasEntry>} entries
|
|
39465
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39466
|
+
* @instance
|
|
39467
|
+
*/
|
|
39468
|
+
AtlasLayout.prototype.entries = $util.emptyArray;
|
|
39469
|
+
|
|
39470
|
+
/**
|
|
39471
|
+
* Creates a new AtlasLayout instance using the specified properties.
|
|
39472
|
+
* @function create
|
|
39473
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39474
|
+
* @static
|
|
39475
|
+
* @param {sesame.v1.sidedata.IAtlasLayout=} [properties] Properties to set
|
|
39476
|
+
* @returns {sesame.v1.sidedata.AtlasLayout} AtlasLayout instance
|
|
39477
|
+
*/
|
|
39478
|
+
AtlasLayout.create = function create(properties) {
|
|
39479
|
+
return new AtlasLayout(properties);
|
|
39480
|
+
};
|
|
39481
|
+
|
|
39482
|
+
/**
|
|
39483
|
+
* Encodes the specified AtlasLayout message. Does not implicitly {@link sesame.v1.sidedata.AtlasLayout.verify|verify} messages.
|
|
39484
|
+
* @function encode
|
|
39485
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39486
|
+
* @static
|
|
39487
|
+
* @param {sesame.v1.sidedata.IAtlasLayout} message AtlasLayout message or plain object to encode
|
|
39488
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39489
|
+
* @returns {$protobuf.Writer} Writer
|
|
39490
|
+
*/
|
|
39491
|
+
AtlasLayout.encode = function encode(message, writer) {
|
|
39492
|
+
if (!writer)
|
|
39493
|
+
writer = $Writer.create();
|
|
39494
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
39495
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.width);
|
|
39496
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
39497
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.height);
|
|
39498
|
+
if (message.entries != null && message.entries.length)
|
|
39499
|
+
for (let i = 0; i < message.entries.length; ++i)
|
|
39500
|
+
$root.sesame.v1.sidedata.AtlasEntry.encode(message.entries[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
39501
|
+
return writer;
|
|
39502
|
+
};
|
|
39503
|
+
|
|
39504
|
+
/**
|
|
39505
|
+
* Encodes the specified AtlasLayout message, length delimited. Does not implicitly {@link sesame.v1.sidedata.AtlasLayout.verify|verify} messages.
|
|
39506
|
+
* @function encodeDelimited
|
|
39507
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39508
|
+
* @static
|
|
39509
|
+
* @param {sesame.v1.sidedata.IAtlasLayout} message AtlasLayout message or plain object to encode
|
|
39510
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39511
|
+
* @returns {$protobuf.Writer} Writer
|
|
39512
|
+
*/
|
|
39513
|
+
AtlasLayout.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39514
|
+
return this.encode(message, writer).ldelim();
|
|
39515
|
+
};
|
|
39516
|
+
|
|
39517
|
+
/**
|
|
39518
|
+
* Decodes an AtlasLayout message from the specified reader or buffer.
|
|
39519
|
+
* @function decode
|
|
39520
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39521
|
+
* @static
|
|
39522
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39523
|
+
* @param {number} [length] Message length if known beforehand
|
|
39524
|
+
* @returns {sesame.v1.sidedata.AtlasLayout} AtlasLayout
|
|
39525
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39526
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39527
|
+
*/
|
|
39528
|
+
AtlasLayout.decode = function decode(reader, length, error) {
|
|
39529
|
+
if (!(reader instanceof $Reader))
|
|
39530
|
+
reader = $Reader.create(reader);
|
|
39531
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.AtlasLayout();
|
|
39532
|
+
while (reader.pos < end) {
|
|
39533
|
+
let tag = reader.uint32();
|
|
39534
|
+
if (tag === error)
|
|
39535
|
+
break;
|
|
39536
|
+
switch (tag >>> 3) {
|
|
39537
|
+
case 1: {
|
|
39538
|
+
message.width = reader.uint32();
|
|
39539
|
+
break;
|
|
39540
|
+
}
|
|
39541
|
+
case 2: {
|
|
39542
|
+
message.height = reader.uint32();
|
|
39543
|
+
break;
|
|
39544
|
+
}
|
|
39545
|
+
case 3: {
|
|
39546
|
+
if (!(message.entries && message.entries.length))
|
|
39547
|
+
message.entries = [];
|
|
39548
|
+
message.entries.push($root.sesame.v1.sidedata.AtlasEntry.decode(reader, reader.uint32()));
|
|
39549
|
+
break;
|
|
39550
|
+
}
|
|
39551
|
+
default:
|
|
39552
|
+
reader.skipType(tag & 7);
|
|
39553
|
+
break;
|
|
39554
|
+
}
|
|
39555
|
+
}
|
|
39556
|
+
return message;
|
|
39557
|
+
};
|
|
39558
|
+
|
|
39559
|
+
/**
|
|
39560
|
+
* Decodes an AtlasLayout message from the specified reader or buffer, length delimited.
|
|
39561
|
+
* @function decodeDelimited
|
|
39562
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39563
|
+
* @static
|
|
39564
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39565
|
+
* @returns {sesame.v1.sidedata.AtlasLayout} AtlasLayout
|
|
39566
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39567
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39568
|
+
*/
|
|
39569
|
+
AtlasLayout.decodeDelimited = function decodeDelimited(reader) {
|
|
39570
|
+
if (!(reader instanceof $Reader))
|
|
39571
|
+
reader = new $Reader(reader);
|
|
39572
|
+
return this.decode(reader, reader.uint32());
|
|
39573
|
+
};
|
|
39574
|
+
|
|
39575
|
+
/**
|
|
39576
|
+
* Verifies an AtlasLayout message.
|
|
39577
|
+
* @function verify
|
|
39578
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39579
|
+
* @static
|
|
39580
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39581
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39582
|
+
*/
|
|
39583
|
+
AtlasLayout.verify = function verify(message) {
|
|
39584
|
+
if (typeof message !== "object" || message === null)
|
|
39585
|
+
return "object expected";
|
|
39586
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
39587
|
+
if (!$util.isInteger(message.width))
|
|
39588
|
+
return "width: integer expected";
|
|
39589
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
39590
|
+
if (!$util.isInteger(message.height))
|
|
39591
|
+
return "height: integer expected";
|
|
39592
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
39593
|
+
if (!Array.isArray(message.entries))
|
|
39594
|
+
return "entries: array expected";
|
|
39595
|
+
for (let i = 0; i < message.entries.length; ++i) {
|
|
39596
|
+
let error = $root.sesame.v1.sidedata.AtlasEntry.verify(message.entries[i]);
|
|
39597
|
+
if (error)
|
|
39598
|
+
return "entries." + error;
|
|
39599
|
+
}
|
|
39600
|
+
}
|
|
39601
|
+
return null;
|
|
39602
|
+
};
|
|
39603
|
+
|
|
39604
|
+
/**
|
|
39605
|
+
* Creates an AtlasLayout message from a plain object. Also converts values to their respective internal types.
|
|
39606
|
+
* @function fromObject
|
|
39607
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39608
|
+
* @static
|
|
39609
|
+
* @param {Object.<string,*>} object Plain object
|
|
39610
|
+
* @returns {sesame.v1.sidedata.AtlasLayout} AtlasLayout
|
|
39611
|
+
*/
|
|
39612
|
+
AtlasLayout.fromObject = function fromObject(object) {
|
|
39613
|
+
if (object instanceof $root.sesame.v1.sidedata.AtlasLayout)
|
|
39614
|
+
return object;
|
|
39615
|
+
let message = new $root.sesame.v1.sidedata.AtlasLayout();
|
|
39616
|
+
if (object.width != null)
|
|
39617
|
+
message.width = object.width >>> 0;
|
|
39618
|
+
if (object.height != null)
|
|
39619
|
+
message.height = object.height >>> 0;
|
|
39620
|
+
if (object.entries) {
|
|
39621
|
+
if (!Array.isArray(object.entries))
|
|
39622
|
+
throw TypeError(".sesame.v1.sidedata.AtlasLayout.entries: array expected");
|
|
39623
|
+
message.entries = [];
|
|
39624
|
+
for (let i = 0; i < object.entries.length; ++i) {
|
|
39625
|
+
if (typeof object.entries[i] !== "object")
|
|
39626
|
+
throw TypeError(".sesame.v1.sidedata.AtlasLayout.entries: object expected");
|
|
39627
|
+
message.entries[i] = $root.sesame.v1.sidedata.AtlasEntry.fromObject(object.entries[i]);
|
|
39628
|
+
}
|
|
39629
|
+
}
|
|
39630
|
+
return message;
|
|
39631
|
+
};
|
|
39632
|
+
|
|
39633
|
+
/**
|
|
39634
|
+
* Creates a plain object from an AtlasLayout message. Also converts values to other types if specified.
|
|
39635
|
+
* @function toObject
|
|
39636
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39637
|
+
* @static
|
|
39638
|
+
* @param {sesame.v1.sidedata.AtlasLayout} message AtlasLayout
|
|
39639
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39640
|
+
* @returns {Object.<string,*>} Plain object
|
|
39641
|
+
*/
|
|
39642
|
+
AtlasLayout.toObject = function toObject(message, options) {
|
|
39643
|
+
if (!options)
|
|
39644
|
+
options = {};
|
|
39645
|
+
let object = {};
|
|
39646
|
+
if (options.arrays || options.defaults)
|
|
39647
|
+
object.entries = [];
|
|
39648
|
+
if (options.defaults) {
|
|
39649
|
+
object.width = 0;
|
|
39650
|
+
object.height = 0;
|
|
39651
|
+
}
|
|
39652
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
39653
|
+
object.width = message.width;
|
|
39654
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
39655
|
+
object.height = message.height;
|
|
39656
|
+
if (message.entries && message.entries.length) {
|
|
39657
|
+
object.entries = [];
|
|
39658
|
+
for (let j = 0; j < message.entries.length; ++j)
|
|
39659
|
+
object.entries[j] = $root.sesame.v1.sidedata.AtlasEntry.toObject(message.entries[j], options);
|
|
39660
|
+
}
|
|
39661
|
+
return object;
|
|
39662
|
+
};
|
|
39663
|
+
|
|
39664
|
+
/**
|
|
39665
|
+
* Converts this AtlasLayout to JSON.
|
|
39666
|
+
* @function toJSON
|
|
39667
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39668
|
+
* @instance
|
|
39669
|
+
* @returns {Object.<string,*>} JSON object
|
|
39670
|
+
*/
|
|
39671
|
+
AtlasLayout.prototype.toJSON = function toJSON() {
|
|
39672
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39673
|
+
};
|
|
39674
|
+
|
|
39675
|
+
/**
|
|
39676
|
+
* Gets the default type url for AtlasLayout
|
|
39677
|
+
* @function getTypeUrl
|
|
39678
|
+
* @memberof sesame.v1.sidedata.AtlasLayout
|
|
39679
|
+
* @static
|
|
39680
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
39681
|
+
* @returns {string} The default type url
|
|
39682
|
+
*/
|
|
39683
|
+
AtlasLayout.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
39684
|
+
if (typeUrlPrefix === undefined) {
|
|
39685
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
39686
|
+
}
|
|
39687
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.AtlasLayout";
|
|
39688
|
+
};
|
|
39689
|
+
|
|
39690
|
+
return AtlasLayout;
|
|
39691
|
+
})();
|
|
39692
|
+
|
|
39693
|
+
sidedata.SideData = (function() {
|
|
39694
|
+
|
|
39695
|
+
/**
|
|
39696
|
+
* Properties of a SideData.
|
|
39697
|
+
* @memberof sesame.v1.sidedata
|
|
39698
|
+
* @interface ISideData
|
|
39699
|
+
* @property {string|null} [id] SideData id
|
|
39700
|
+
* @property {number|Long|null} [version] SideData version
|
|
39701
|
+
* @property {sesame.v1.sidedata.IAtlasLayout|null} [atlas] SideData atlas
|
|
39702
|
+
* @property {string|null} [json] SideData json
|
|
39703
|
+
* @property {Uint8Array|null} [binary] SideData binary
|
|
39704
|
+
*/
|
|
39705
|
+
|
|
39706
|
+
/**
|
|
39707
|
+
* Constructs a new SideData.
|
|
39708
|
+
* @memberof sesame.v1.sidedata
|
|
39709
|
+
* @classdesc Represents a SideData.
|
|
39710
|
+
* @implements ISideData
|
|
39711
|
+
* @constructor
|
|
39712
|
+
* @param {sesame.v1.sidedata.ISideData=} [properties] Properties to set
|
|
39713
|
+
*/
|
|
39714
|
+
function SideData(properties) {
|
|
39715
|
+
if (properties)
|
|
39716
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39717
|
+
if (properties[keys[i]] != null)
|
|
39718
|
+
this[keys[i]] = properties[keys[i]];
|
|
39719
|
+
}
|
|
39720
|
+
|
|
39721
|
+
/**
|
|
39722
|
+
* SideData id.
|
|
39723
|
+
* @member {string} id
|
|
39724
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39725
|
+
* @instance
|
|
39726
|
+
*/
|
|
39727
|
+
SideData.prototype.id = "";
|
|
39728
|
+
|
|
39729
|
+
/**
|
|
39730
|
+
* SideData version.
|
|
39731
|
+
* @member {number|Long} version
|
|
39732
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39733
|
+
* @instance
|
|
39734
|
+
*/
|
|
39735
|
+
SideData.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
39736
|
+
|
|
39737
|
+
/**
|
|
39738
|
+
* SideData atlas.
|
|
39739
|
+
* @member {sesame.v1.sidedata.IAtlasLayout|null|undefined} atlas
|
|
39740
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39741
|
+
* @instance
|
|
39742
|
+
*/
|
|
39743
|
+
SideData.prototype.atlas = null;
|
|
39744
|
+
|
|
39745
|
+
/**
|
|
39746
|
+
* SideData json.
|
|
39747
|
+
* @member {string|null|undefined} json
|
|
39748
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39749
|
+
* @instance
|
|
39750
|
+
*/
|
|
39751
|
+
SideData.prototype.json = null;
|
|
39752
|
+
|
|
39753
|
+
/**
|
|
39754
|
+
* SideData binary.
|
|
39755
|
+
* @member {Uint8Array|null|undefined} binary
|
|
39756
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39757
|
+
* @instance
|
|
39758
|
+
*/
|
|
39759
|
+
SideData.prototype.binary = null;
|
|
39760
|
+
|
|
39761
|
+
// OneOf field names bound to virtual getters and setters
|
|
39762
|
+
let $oneOfFields;
|
|
39763
|
+
|
|
39764
|
+
/**
|
|
39765
|
+
* SideData payload.
|
|
39766
|
+
* @member {"atlas"|"json"|"binary"|undefined} payload
|
|
39767
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39768
|
+
* @instance
|
|
39769
|
+
*/
|
|
39770
|
+
Object.defineProperty(SideData.prototype, "payload", {
|
|
39771
|
+
get: $util.oneOfGetter($oneOfFields = ["atlas", "json", "binary"]),
|
|
39772
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
39773
|
+
});
|
|
39774
|
+
|
|
39775
|
+
/**
|
|
39776
|
+
* Creates a new SideData instance using the specified properties.
|
|
39777
|
+
* @function create
|
|
39778
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39779
|
+
* @static
|
|
39780
|
+
* @param {sesame.v1.sidedata.ISideData=} [properties] Properties to set
|
|
39781
|
+
* @returns {sesame.v1.sidedata.SideData} SideData instance
|
|
39782
|
+
*/
|
|
39783
|
+
SideData.create = function create(properties) {
|
|
39784
|
+
return new SideData(properties);
|
|
39785
|
+
};
|
|
39786
|
+
|
|
39787
|
+
/**
|
|
39788
|
+
* Encodes the specified SideData message. Does not implicitly {@link sesame.v1.sidedata.SideData.verify|verify} messages.
|
|
39789
|
+
* @function encode
|
|
39790
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39791
|
+
* @static
|
|
39792
|
+
* @param {sesame.v1.sidedata.ISideData} message SideData message or plain object to encode
|
|
39793
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39794
|
+
* @returns {$protobuf.Writer} Writer
|
|
39795
|
+
*/
|
|
39796
|
+
SideData.encode = function encode(message, writer) {
|
|
39797
|
+
if (!writer)
|
|
39798
|
+
writer = $Writer.create();
|
|
39799
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
39800
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
39801
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
39802
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.version);
|
|
39803
|
+
if (message.atlas != null && Object.hasOwnProperty.call(message, "atlas"))
|
|
39804
|
+
$root.sesame.v1.sidedata.AtlasLayout.encode(message.atlas, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
39805
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
39806
|
+
writer.uint32(/* id 20, wireType 2 =*/162).string(message.json);
|
|
39807
|
+
if (message.binary != null && Object.hasOwnProperty.call(message, "binary"))
|
|
39808
|
+
writer.uint32(/* id 21, wireType 2 =*/170).bytes(message.binary);
|
|
39809
|
+
return writer;
|
|
39810
|
+
};
|
|
39811
|
+
|
|
39812
|
+
/**
|
|
39813
|
+
* Encodes the specified SideData message, length delimited. Does not implicitly {@link sesame.v1.sidedata.SideData.verify|verify} messages.
|
|
39814
|
+
* @function encodeDelimited
|
|
39815
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39816
|
+
* @static
|
|
39817
|
+
* @param {sesame.v1.sidedata.ISideData} message SideData message or plain object to encode
|
|
39818
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39819
|
+
* @returns {$protobuf.Writer} Writer
|
|
39820
|
+
*/
|
|
39821
|
+
SideData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39822
|
+
return this.encode(message, writer).ldelim();
|
|
39823
|
+
};
|
|
39824
|
+
|
|
39825
|
+
/**
|
|
39826
|
+
* Decodes a SideData message from the specified reader or buffer.
|
|
39827
|
+
* @function decode
|
|
39828
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39829
|
+
* @static
|
|
39830
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39831
|
+
* @param {number} [length] Message length if known beforehand
|
|
39832
|
+
* @returns {sesame.v1.sidedata.SideData} SideData
|
|
39833
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39834
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39835
|
+
*/
|
|
39836
|
+
SideData.decode = function decode(reader, length, error) {
|
|
39837
|
+
if (!(reader instanceof $Reader))
|
|
39838
|
+
reader = $Reader.create(reader);
|
|
39839
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideData();
|
|
39840
|
+
while (reader.pos < end) {
|
|
39841
|
+
let tag = reader.uint32();
|
|
39842
|
+
if (tag === error)
|
|
39843
|
+
break;
|
|
39844
|
+
switch (tag >>> 3) {
|
|
39845
|
+
case 1: {
|
|
39846
|
+
message.id = reader.string();
|
|
39847
|
+
break;
|
|
39848
|
+
}
|
|
39849
|
+
case 2: {
|
|
39850
|
+
message.version = reader.uint64();
|
|
39851
|
+
break;
|
|
39852
|
+
}
|
|
39853
|
+
case 10: {
|
|
39854
|
+
message.atlas = $root.sesame.v1.sidedata.AtlasLayout.decode(reader, reader.uint32());
|
|
39855
|
+
break;
|
|
39856
|
+
}
|
|
39857
|
+
case 20: {
|
|
39858
|
+
message.json = reader.string();
|
|
39859
|
+
break;
|
|
39860
|
+
}
|
|
39861
|
+
case 21: {
|
|
39862
|
+
message.binary = reader.bytes();
|
|
39863
|
+
break;
|
|
39864
|
+
}
|
|
39865
|
+
default:
|
|
39866
|
+
reader.skipType(tag & 7);
|
|
39867
|
+
break;
|
|
39868
|
+
}
|
|
39869
|
+
}
|
|
39870
|
+
return message;
|
|
39871
|
+
};
|
|
39872
|
+
|
|
39873
|
+
/**
|
|
39874
|
+
* Decodes a SideData message from the specified reader or buffer, length delimited.
|
|
39875
|
+
* @function decodeDelimited
|
|
39876
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39877
|
+
* @static
|
|
39878
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39879
|
+
* @returns {sesame.v1.sidedata.SideData} SideData
|
|
39880
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39881
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39882
|
+
*/
|
|
39883
|
+
SideData.decodeDelimited = function decodeDelimited(reader) {
|
|
39884
|
+
if (!(reader instanceof $Reader))
|
|
39885
|
+
reader = new $Reader(reader);
|
|
39886
|
+
return this.decode(reader, reader.uint32());
|
|
39887
|
+
};
|
|
39888
|
+
|
|
39889
|
+
/**
|
|
39890
|
+
* Verifies a SideData message.
|
|
39891
|
+
* @function verify
|
|
39892
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39893
|
+
* @static
|
|
39894
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39895
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39896
|
+
*/
|
|
39897
|
+
SideData.verify = function verify(message) {
|
|
39898
|
+
if (typeof message !== "object" || message === null)
|
|
39899
|
+
return "object expected";
|
|
39900
|
+
let properties = {};
|
|
39901
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
39902
|
+
if (!$util.isString(message.id))
|
|
39903
|
+
return "id: string expected";
|
|
39904
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
39905
|
+
if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
|
|
39906
|
+
return "version: integer|Long expected";
|
|
39907
|
+
if (message.atlas != null && message.hasOwnProperty("atlas")) {
|
|
39908
|
+
properties.payload = 1;
|
|
39909
|
+
{
|
|
39910
|
+
let error = $root.sesame.v1.sidedata.AtlasLayout.verify(message.atlas);
|
|
39911
|
+
if (error)
|
|
39912
|
+
return "atlas." + error;
|
|
39913
|
+
}
|
|
39914
|
+
}
|
|
39915
|
+
if (message.json != null && message.hasOwnProperty("json")) {
|
|
39916
|
+
if (properties.payload === 1)
|
|
39917
|
+
return "payload: multiple values";
|
|
39918
|
+
properties.payload = 1;
|
|
39919
|
+
if (!$util.isString(message.json))
|
|
39920
|
+
return "json: string expected";
|
|
39921
|
+
}
|
|
39922
|
+
if (message.binary != null && message.hasOwnProperty("binary")) {
|
|
39923
|
+
if (properties.payload === 1)
|
|
39924
|
+
return "payload: multiple values";
|
|
39925
|
+
properties.payload = 1;
|
|
39926
|
+
if (!(message.binary && typeof message.binary.length === "number" || $util.isString(message.binary)))
|
|
39927
|
+
return "binary: buffer expected";
|
|
39928
|
+
}
|
|
39929
|
+
return null;
|
|
39930
|
+
};
|
|
39931
|
+
|
|
39932
|
+
/**
|
|
39933
|
+
* Creates a SideData message from a plain object. Also converts values to their respective internal types.
|
|
39934
|
+
* @function fromObject
|
|
39935
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39936
|
+
* @static
|
|
39937
|
+
* @param {Object.<string,*>} object Plain object
|
|
39938
|
+
* @returns {sesame.v1.sidedata.SideData} SideData
|
|
39939
|
+
*/
|
|
39940
|
+
SideData.fromObject = function fromObject(object) {
|
|
39941
|
+
if (object instanceof $root.sesame.v1.sidedata.SideData)
|
|
39942
|
+
return object;
|
|
39943
|
+
let message = new $root.sesame.v1.sidedata.SideData();
|
|
39944
|
+
if (object.id != null)
|
|
39945
|
+
message.id = String(object.id);
|
|
39946
|
+
if (object.version != null)
|
|
39947
|
+
if ($util.Long)
|
|
39948
|
+
(message.version = $util.Long.fromValue(object.version)).unsigned = true;
|
|
39949
|
+
else if (typeof object.version === "string")
|
|
39950
|
+
message.version = parseInt(object.version, 10);
|
|
39951
|
+
else if (typeof object.version === "number")
|
|
39952
|
+
message.version = object.version;
|
|
39953
|
+
else if (typeof object.version === "object")
|
|
39954
|
+
message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
|
|
39955
|
+
if (object.atlas != null) {
|
|
39956
|
+
if (typeof object.atlas !== "object")
|
|
39957
|
+
throw TypeError(".sesame.v1.sidedata.SideData.atlas: object expected");
|
|
39958
|
+
message.atlas = $root.sesame.v1.sidedata.AtlasLayout.fromObject(object.atlas);
|
|
39959
|
+
}
|
|
39960
|
+
if (object.json != null)
|
|
39961
|
+
message.json = String(object.json);
|
|
39962
|
+
if (object.binary != null)
|
|
39963
|
+
if (typeof object.binary === "string")
|
|
39964
|
+
$util.base64.decode(object.binary, message.binary = $util.newBuffer($util.base64.length(object.binary)), 0);
|
|
39965
|
+
else if (object.binary.length >= 0)
|
|
39966
|
+
message.binary = object.binary;
|
|
39967
|
+
return message;
|
|
39968
|
+
};
|
|
39969
|
+
|
|
39970
|
+
/**
|
|
39971
|
+
* Creates a plain object from a SideData message. Also converts values to other types if specified.
|
|
39972
|
+
* @function toObject
|
|
39973
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
39974
|
+
* @static
|
|
39975
|
+
* @param {sesame.v1.sidedata.SideData} message SideData
|
|
39976
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39977
|
+
* @returns {Object.<string,*>} Plain object
|
|
39978
|
+
*/
|
|
39979
|
+
SideData.toObject = function toObject(message, options) {
|
|
39980
|
+
if (!options)
|
|
39981
|
+
options = {};
|
|
39982
|
+
let object = {};
|
|
39983
|
+
if (options.defaults) {
|
|
39984
|
+
object.id = "";
|
|
39985
|
+
if ($util.Long) {
|
|
39986
|
+
let long = new $util.Long(0, 0, true);
|
|
39987
|
+
object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
39988
|
+
} else
|
|
39989
|
+
object.version = options.longs === String ? "0" : 0;
|
|
39990
|
+
}
|
|
39991
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
39992
|
+
object.id = message.id;
|
|
39993
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
39994
|
+
if (typeof message.version === "number")
|
|
39995
|
+
object.version = options.longs === String ? String(message.version) : message.version;
|
|
39996
|
+
else
|
|
39997
|
+
object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
|
|
39998
|
+
if (message.atlas != null && message.hasOwnProperty("atlas")) {
|
|
39999
|
+
object.atlas = $root.sesame.v1.sidedata.AtlasLayout.toObject(message.atlas, options);
|
|
40000
|
+
if (options.oneofs)
|
|
40001
|
+
object.payload = "atlas";
|
|
40002
|
+
}
|
|
40003
|
+
if (message.json != null && message.hasOwnProperty("json")) {
|
|
40004
|
+
object.json = message.json;
|
|
40005
|
+
if (options.oneofs)
|
|
40006
|
+
object.payload = "json";
|
|
40007
|
+
}
|
|
40008
|
+
if (message.binary != null && message.hasOwnProperty("binary")) {
|
|
40009
|
+
object.binary = options.bytes === String ? $util.base64.encode(message.binary, 0, message.binary.length) : options.bytes === Array ? Array.prototype.slice.call(message.binary) : message.binary;
|
|
40010
|
+
if (options.oneofs)
|
|
40011
|
+
object.payload = "binary";
|
|
40012
|
+
}
|
|
40013
|
+
return object;
|
|
40014
|
+
};
|
|
40015
|
+
|
|
40016
|
+
/**
|
|
40017
|
+
* Converts this SideData to JSON.
|
|
40018
|
+
* @function toJSON
|
|
40019
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
40020
|
+
* @instance
|
|
40021
|
+
* @returns {Object.<string,*>} JSON object
|
|
40022
|
+
*/
|
|
40023
|
+
SideData.prototype.toJSON = function toJSON() {
|
|
40024
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40025
|
+
};
|
|
40026
|
+
|
|
40027
|
+
/**
|
|
40028
|
+
* Gets the default type url for SideData
|
|
40029
|
+
* @function getTypeUrl
|
|
40030
|
+
* @memberof sesame.v1.sidedata.SideData
|
|
40031
|
+
* @static
|
|
40032
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40033
|
+
* @returns {string} The default type url
|
|
40034
|
+
*/
|
|
40035
|
+
SideData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
40036
|
+
if (typeUrlPrefix === undefined) {
|
|
40037
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
40038
|
+
}
|
|
40039
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.SideData";
|
|
40040
|
+
};
|
|
40041
|
+
|
|
40042
|
+
return SideData;
|
|
40043
|
+
})();
|
|
40044
|
+
|
|
40045
|
+
sidedata.SideDataSet = (function() {
|
|
40046
|
+
|
|
40047
|
+
/**
|
|
40048
|
+
* Properties of a SideDataSet.
|
|
40049
|
+
* @memberof sesame.v1.sidedata
|
|
40050
|
+
* @interface ISideDataSet
|
|
40051
|
+
* @property {Array.<sesame.v1.sidedata.ISideData>|null} [entries] SideDataSet entries
|
|
40052
|
+
*/
|
|
40053
|
+
|
|
40054
|
+
/**
|
|
40055
|
+
* Constructs a new SideDataSet.
|
|
40056
|
+
* @memberof sesame.v1.sidedata
|
|
40057
|
+
* @classdesc Represents a SideDataSet.
|
|
40058
|
+
* @implements ISideDataSet
|
|
40059
|
+
* @constructor
|
|
40060
|
+
* @param {sesame.v1.sidedata.ISideDataSet=} [properties] Properties to set
|
|
40061
|
+
*/
|
|
40062
|
+
function SideDataSet(properties) {
|
|
40063
|
+
this.entries = [];
|
|
40064
|
+
if (properties)
|
|
40065
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40066
|
+
if (properties[keys[i]] != null)
|
|
40067
|
+
this[keys[i]] = properties[keys[i]];
|
|
40068
|
+
}
|
|
40069
|
+
|
|
40070
|
+
/**
|
|
40071
|
+
* SideDataSet entries.
|
|
40072
|
+
* @member {Array.<sesame.v1.sidedata.ISideData>} entries
|
|
40073
|
+
* @memberof sesame.v1.sidedata.SideDataSet
|
|
40074
|
+
* @instance
|
|
40075
|
+
*/
|
|
40076
|
+
SideDataSet.prototype.entries = $util.emptyArray;
|
|
40077
|
+
|
|
40078
|
+
/**
|
|
40079
|
+
* Creates a new SideDataSet instance using the specified properties.
|
|
40080
|
+
* @function create
|
|
40081
|
+
* @memberof sesame.v1.sidedata.SideDataSet
|
|
40082
|
+
* @static
|
|
40083
|
+
* @param {sesame.v1.sidedata.ISideDataSet=} [properties] Properties to set
|
|
40084
|
+
* @returns {sesame.v1.sidedata.SideDataSet} SideDataSet instance
|
|
40085
|
+
*/
|
|
40086
|
+
SideDataSet.create = function create(properties) {
|
|
40087
|
+
return new SideDataSet(properties);
|
|
40088
|
+
};
|
|
40089
|
+
|
|
40090
|
+
/**
|
|
40091
|
+
* Encodes the specified SideDataSet message. Does not implicitly {@link sesame.v1.sidedata.SideDataSet.verify|verify} messages.
|
|
40092
|
+
* @function encode
|
|
40093
|
+
* @memberof sesame.v1.sidedata.SideDataSet
|
|
40094
|
+
* @static
|
|
40095
|
+
* @param {sesame.v1.sidedata.ISideDataSet} message SideDataSet message or plain object to encode
|
|
40096
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40097
|
+
* @returns {$protobuf.Writer} Writer
|
|
40098
|
+
*/
|
|
40099
|
+
SideDataSet.encode = function encode(message, writer) {
|
|
40100
|
+
if (!writer)
|
|
40101
|
+
writer = $Writer.create();
|
|
40102
|
+
if (message.entries != null && message.entries.length)
|
|
40103
|
+
for (let i = 0; i < message.entries.length; ++i)
|
|
40104
|
+
$root.sesame.v1.sidedata.SideData.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
40105
|
+
return writer;
|
|
40106
|
+
};
|
|
40107
|
+
|
|
40108
|
+
/**
|
|
40109
|
+
* Encodes the specified SideDataSet message, length delimited. Does not implicitly {@link sesame.v1.sidedata.SideDataSet.verify|verify} messages.
|
|
40110
|
+
* @function encodeDelimited
|
|
40111
|
+
* @memberof sesame.v1.sidedata.SideDataSet
|
|
40112
|
+
* @static
|
|
40113
|
+
* @param {sesame.v1.sidedata.ISideDataSet} message SideDataSet message or plain object to encode
|
|
40114
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40115
|
+
* @returns {$protobuf.Writer} Writer
|
|
40116
|
+
*/
|
|
40117
|
+
SideDataSet.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40118
|
+
return this.encode(message, writer).ldelim();
|
|
40119
|
+
};
|
|
40120
|
+
|
|
40121
|
+
/**
|
|
40122
|
+
* Decodes a SideDataSet message from the specified reader or buffer.
|
|
40123
|
+
* @function decode
|
|
40124
|
+
* @memberof sesame.v1.sidedata.SideDataSet
|
|
40125
|
+
* @static
|
|
40126
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40127
|
+
* @param {number} [length] Message length if known beforehand
|
|
40128
|
+
* @returns {sesame.v1.sidedata.SideDataSet} SideDataSet
|
|
40129
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40130
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40131
|
+
*/
|
|
40132
|
+
SideDataSet.decode = function decode(reader, length, error) {
|
|
40133
|
+
if (!(reader instanceof $Reader))
|
|
40134
|
+
reader = $Reader.create(reader);
|
|
40135
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideDataSet();
|
|
40136
|
+
while (reader.pos < end) {
|
|
40137
|
+
let tag = reader.uint32();
|
|
40138
|
+
if (tag === error)
|
|
40139
|
+
break;
|
|
40140
|
+
switch (tag >>> 3) {
|
|
40141
|
+
case 1: {
|
|
40142
|
+
if (!(message.entries && message.entries.length))
|
|
40143
|
+
message.entries = [];
|
|
40144
|
+
message.entries.push($root.sesame.v1.sidedata.SideData.decode(reader, reader.uint32()));
|
|
40145
|
+
break;
|
|
40146
|
+
}
|
|
40147
|
+
default:
|
|
40148
|
+
reader.skipType(tag & 7);
|
|
40149
|
+
break;
|
|
40150
|
+
}
|
|
40151
|
+
}
|
|
40152
|
+
return message;
|
|
40153
|
+
};
|
|
40154
|
+
|
|
40155
|
+
/**
|
|
40156
|
+
* Decodes a SideDataSet message from the specified reader or buffer, length delimited.
|
|
40157
|
+
* @function decodeDelimited
|
|
40158
|
+
* @memberof sesame.v1.sidedata.SideDataSet
|
|
40159
|
+
* @static
|
|
40160
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40161
|
+
* @returns {sesame.v1.sidedata.SideDataSet} SideDataSet
|
|
40162
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40163
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40164
|
+
*/
|
|
40165
|
+
SideDataSet.decodeDelimited = function decodeDelimited(reader) {
|
|
40166
|
+
if (!(reader instanceof $Reader))
|
|
40167
|
+
reader = new $Reader(reader);
|
|
40168
|
+
return this.decode(reader, reader.uint32());
|
|
40169
|
+
};
|
|
40170
|
+
|
|
40171
|
+
/**
|
|
40172
|
+
* Verifies a SideDataSet message.
|
|
40173
|
+
* @function verify
|
|
40174
|
+
* @memberof sesame.v1.sidedata.SideDataSet
|
|
40175
|
+
* @static
|
|
40176
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40177
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40178
|
+
*/
|
|
40179
|
+
SideDataSet.verify = function verify(message) {
|
|
40180
|
+
if (typeof message !== "object" || message === null)
|
|
40181
|
+
return "object expected";
|
|
40182
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
40183
|
+
if (!Array.isArray(message.entries))
|
|
40184
|
+
return "entries: array expected";
|
|
40185
|
+
for (let i = 0; i < message.entries.length; ++i) {
|
|
40186
|
+
let error = $root.sesame.v1.sidedata.SideData.verify(message.entries[i]);
|
|
40187
|
+
if (error)
|
|
40188
|
+
return "entries." + error;
|
|
40189
|
+
}
|
|
40190
|
+
}
|
|
40191
|
+
return null;
|
|
40192
|
+
};
|
|
40193
|
+
|
|
40194
|
+
/**
|
|
40195
|
+
* Creates a SideDataSet message from a plain object. Also converts values to their respective internal types.
|
|
40196
|
+
* @function fromObject
|
|
40197
|
+
* @memberof sesame.v1.sidedata.SideDataSet
|
|
40198
|
+
* @static
|
|
40199
|
+
* @param {Object.<string,*>} object Plain object
|
|
40200
|
+
* @returns {sesame.v1.sidedata.SideDataSet} SideDataSet
|
|
40201
|
+
*/
|
|
40202
|
+
SideDataSet.fromObject = function fromObject(object) {
|
|
40203
|
+
if (object instanceof $root.sesame.v1.sidedata.SideDataSet)
|
|
40204
|
+
return object;
|
|
40205
|
+
let message = new $root.sesame.v1.sidedata.SideDataSet();
|
|
40206
|
+
if (object.entries) {
|
|
40207
|
+
if (!Array.isArray(object.entries))
|
|
40208
|
+
throw TypeError(".sesame.v1.sidedata.SideDataSet.entries: array expected");
|
|
40209
|
+
message.entries = [];
|
|
40210
|
+
for (let i = 0; i < object.entries.length; ++i) {
|
|
40211
|
+
if (typeof object.entries[i] !== "object")
|
|
40212
|
+
throw TypeError(".sesame.v1.sidedata.SideDataSet.entries: object expected");
|
|
40213
|
+
message.entries[i] = $root.sesame.v1.sidedata.SideData.fromObject(object.entries[i]);
|
|
40214
|
+
}
|
|
40215
|
+
}
|
|
40216
|
+
return message;
|
|
40217
|
+
};
|
|
40218
|
+
|
|
40219
|
+
/**
|
|
40220
|
+
* Creates a plain object from a SideDataSet message. Also converts values to other types if specified.
|
|
40221
|
+
* @function toObject
|
|
40222
|
+
* @memberof sesame.v1.sidedata.SideDataSet
|
|
40223
|
+
* @static
|
|
40224
|
+
* @param {sesame.v1.sidedata.SideDataSet} message SideDataSet
|
|
40225
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40226
|
+
* @returns {Object.<string,*>} Plain object
|
|
40227
|
+
*/
|
|
40228
|
+
SideDataSet.toObject = function toObject(message, options) {
|
|
40229
|
+
if (!options)
|
|
40230
|
+
options = {};
|
|
40231
|
+
let object = {};
|
|
40232
|
+
if (options.arrays || options.defaults)
|
|
40233
|
+
object.entries = [];
|
|
40234
|
+
if (message.entries && message.entries.length) {
|
|
40235
|
+
object.entries = [];
|
|
40236
|
+
for (let j = 0; j < message.entries.length; ++j)
|
|
40237
|
+
object.entries[j] = $root.sesame.v1.sidedata.SideData.toObject(message.entries[j], options);
|
|
40238
|
+
}
|
|
40239
|
+
return object;
|
|
40240
|
+
};
|
|
40241
|
+
|
|
40242
|
+
/**
|
|
40243
|
+
* Converts this SideDataSet to JSON.
|
|
40244
|
+
* @function toJSON
|
|
40245
|
+
* @memberof sesame.v1.sidedata.SideDataSet
|
|
40246
|
+
* @instance
|
|
40247
|
+
* @returns {Object.<string,*>} JSON object
|
|
40248
|
+
*/
|
|
40249
|
+
SideDataSet.prototype.toJSON = function toJSON() {
|
|
40250
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40251
|
+
};
|
|
40252
|
+
|
|
40253
|
+
/**
|
|
40254
|
+
* Gets the default type url for SideDataSet
|
|
40255
|
+
* @function getTypeUrl
|
|
40256
|
+
* @memberof sesame.v1.sidedata.SideDataSet
|
|
40257
|
+
* @static
|
|
40258
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40259
|
+
* @returns {string} The default type url
|
|
40260
|
+
*/
|
|
40261
|
+
SideDataSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
40262
|
+
if (typeUrlPrefix === undefined) {
|
|
40263
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
40264
|
+
}
|
|
40265
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.SideDataSet";
|
|
40266
|
+
};
|
|
40267
|
+
|
|
40268
|
+
return SideDataSet;
|
|
40269
|
+
})();
|
|
40270
|
+
|
|
40271
|
+
return sidedata;
|
|
40272
|
+
})();
|
|
40273
|
+
|
|
38102
40274
|
v1.jobs = (function() {
|
|
38103
40275
|
|
|
38104
40276
|
/**
|
|
@@ -43151,6 +45323,9 @@ export const sesame = $root.sesame = (() => {
|
|
|
43151
45323
|
case 4:
|
|
43152
45324
|
case 5:
|
|
43153
45325
|
case 6:
|
|
45326
|
+
case 7:
|
|
45327
|
+
case 8:
|
|
45328
|
+
case 9:
|
|
43154
45329
|
break;
|
|
43155
45330
|
}
|
|
43156
45331
|
return null;
|
|
@@ -43212,6 +45387,18 @@ export const sesame = $root.sesame = (() => {
|
|
|
43212
45387
|
case 6:
|
|
43213
45388
|
message.dataType = 6;
|
|
43214
45389
|
break;
|
|
45390
|
+
case "DATA_TYPE_OUTPUT_STATUS":
|
|
45391
|
+
case 7:
|
|
45392
|
+
message.dataType = 7;
|
|
45393
|
+
break;
|
|
45394
|
+
case "DATA_TYPE_OUTPUT_CONTROL":
|
|
45395
|
+
case 8:
|
|
45396
|
+
message.dataType = 8;
|
|
45397
|
+
break;
|
|
45398
|
+
case "DATA_TYPE_ENGINE_STATUS":
|
|
45399
|
+
case 9:
|
|
45400
|
+
message.dataType = 9;
|
|
45401
|
+
break;
|
|
43215
45402
|
}
|
|
43216
45403
|
return message;
|
|
43217
45404
|
};
|
|
@@ -44534,6 +46721,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
44534
46721
|
* @property {number|Long|null} [pts] MediaFrameData pts
|
|
44535
46722
|
* @property {boolean|null} [keyframe] MediaFrameData keyframe
|
|
44536
46723
|
* @property {sesame.v1.wire.IMediaCodecData|null} [codecData] MediaFrameData codecData
|
|
46724
|
+
* @property {sesame.v1.sidedata.ISideDataSet|null} [sideData] MediaFrameData sideData
|
|
44537
46725
|
*/
|
|
44538
46726
|
|
|
44539
46727
|
/**
|
|
@@ -44575,6 +46763,14 @@ export const sesame = $root.sesame = (() => {
|
|
|
44575
46763
|
*/
|
|
44576
46764
|
MediaFrameData.prototype.codecData = null;
|
|
44577
46765
|
|
|
46766
|
+
/**
|
|
46767
|
+
* MediaFrameData sideData.
|
|
46768
|
+
* @member {sesame.v1.sidedata.ISideDataSet|null|undefined} sideData
|
|
46769
|
+
* @memberof sesame.v1.wire.MediaFrameData
|
|
46770
|
+
* @instance
|
|
46771
|
+
*/
|
|
46772
|
+
MediaFrameData.prototype.sideData = null;
|
|
46773
|
+
|
|
44578
46774
|
/**
|
|
44579
46775
|
* Creates a new MediaFrameData instance using the specified properties.
|
|
44580
46776
|
* @function create
|
|
@@ -44605,6 +46801,8 @@ export const sesame = $root.sesame = (() => {
|
|
|
44605
46801
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.keyframe);
|
|
44606
46802
|
if (message.codecData != null && Object.hasOwnProperty.call(message, "codecData"))
|
|
44607
46803
|
$root.sesame.v1.wire.MediaCodecData.encode(message.codecData, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
46804
|
+
if (message.sideData != null && Object.hasOwnProperty.call(message, "sideData"))
|
|
46805
|
+
$root.sesame.v1.sidedata.SideDataSet.encode(message.sideData, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
44608
46806
|
return writer;
|
|
44609
46807
|
};
|
|
44610
46808
|
|
|
@@ -44653,6 +46851,10 @@ export const sesame = $root.sesame = (() => {
|
|
|
44653
46851
|
message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
|
|
44654
46852
|
break;
|
|
44655
46853
|
}
|
|
46854
|
+
case 4: {
|
|
46855
|
+
message.sideData = $root.sesame.v1.sidedata.SideDataSet.decode(reader, reader.uint32());
|
|
46856
|
+
break;
|
|
46857
|
+
}
|
|
44656
46858
|
default:
|
|
44657
46859
|
reader.skipType(tag & 7);
|
|
44658
46860
|
break;
|
|
@@ -44699,6 +46901,11 @@ export const sesame = $root.sesame = (() => {
|
|
|
44699
46901
|
if (error)
|
|
44700
46902
|
return "codecData." + error;
|
|
44701
46903
|
}
|
|
46904
|
+
if (message.sideData != null && message.hasOwnProperty("sideData")) {
|
|
46905
|
+
let error = $root.sesame.v1.sidedata.SideDataSet.verify(message.sideData);
|
|
46906
|
+
if (error)
|
|
46907
|
+
return "sideData." + error;
|
|
46908
|
+
}
|
|
44702
46909
|
return null;
|
|
44703
46910
|
};
|
|
44704
46911
|
|
|
@@ -44730,6 +46937,11 @@ export const sesame = $root.sesame = (() => {
|
|
|
44730
46937
|
throw TypeError(".sesame.v1.wire.MediaFrameData.codecData: object expected");
|
|
44731
46938
|
message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
|
|
44732
46939
|
}
|
|
46940
|
+
if (object.sideData != null) {
|
|
46941
|
+
if (typeof object.sideData !== "object")
|
|
46942
|
+
throw TypeError(".sesame.v1.wire.MediaFrameData.sideData: object expected");
|
|
46943
|
+
message.sideData = $root.sesame.v1.sidedata.SideDataSet.fromObject(object.sideData);
|
|
46944
|
+
}
|
|
44733
46945
|
return message;
|
|
44734
46946
|
};
|
|
44735
46947
|
|
|
@@ -44754,6 +46966,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
44754
46966
|
object.pts = options.longs === String ? "0" : 0;
|
|
44755
46967
|
object.keyframe = false;
|
|
44756
46968
|
object.codecData = null;
|
|
46969
|
+
object.sideData = null;
|
|
44757
46970
|
}
|
|
44758
46971
|
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
44759
46972
|
if (typeof message.pts === "number")
|
|
@@ -44764,6 +46977,8 @@ export const sesame = $root.sesame = (() => {
|
|
|
44764
46977
|
object.keyframe = message.keyframe;
|
|
44765
46978
|
if (message.codecData != null && message.hasOwnProperty("codecData"))
|
|
44766
46979
|
object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
|
|
46980
|
+
if (message.sideData != null && message.hasOwnProperty("sideData"))
|
|
46981
|
+
object.sideData = $root.sesame.v1.sidedata.SideDataSet.toObject(message.sideData, options);
|
|
44767
46982
|
return object;
|
|
44768
46983
|
};
|
|
44769
46984
|
|
|
@@ -44807,6 +47022,9 @@ export const sesame = $root.sesame = (() => {
|
|
|
44807
47022
|
* @property {number} DATA_TYPE_TRANSPORT_CONTROL=4 DATA_TYPE_TRANSPORT_CONTROL value
|
|
44808
47023
|
* @property {number} DATA_TYPE_AUDIO_CONTROL=5 DATA_TYPE_AUDIO_CONTROL value
|
|
44809
47024
|
* @property {number} DATA_TYPE_BINARY=6 DATA_TYPE_BINARY value
|
|
47025
|
+
* @property {number} DATA_TYPE_OUTPUT_STATUS=7 DATA_TYPE_OUTPUT_STATUS value
|
|
47026
|
+
* @property {number} DATA_TYPE_OUTPUT_CONTROL=8 DATA_TYPE_OUTPUT_CONTROL value
|
|
47027
|
+
* @property {number} DATA_TYPE_ENGINE_STATUS=9 DATA_TYPE_ENGINE_STATUS value
|
|
44810
47028
|
*/
|
|
44811
47029
|
wire.DataType = (function() {
|
|
44812
47030
|
const valuesById = {}, values = Object.create(valuesById);
|
|
@@ -44817,6 +47035,9 @@ export const sesame = $root.sesame = (() => {
|
|
|
44817
47035
|
values[valuesById[4] = "DATA_TYPE_TRANSPORT_CONTROL"] = 4;
|
|
44818
47036
|
values[valuesById[5] = "DATA_TYPE_AUDIO_CONTROL"] = 5;
|
|
44819
47037
|
values[valuesById[6] = "DATA_TYPE_BINARY"] = 6;
|
|
47038
|
+
values[valuesById[7] = "DATA_TYPE_OUTPUT_STATUS"] = 7;
|
|
47039
|
+
values[valuesById[8] = "DATA_TYPE_OUTPUT_CONTROL"] = 8;
|
|
47040
|
+
values[valuesById[9] = "DATA_TYPE_ENGINE_STATUS"] = 9;
|
|
44820
47041
|
return values;
|
|
44821
47042
|
})();
|
|
44822
47043
|
|
|
@@ -44979,6 +47200,9 @@ export const sesame = $root.sesame = (() => {
|
|
|
44979
47200
|
case 4:
|
|
44980
47201
|
case 5:
|
|
44981
47202
|
case 6:
|
|
47203
|
+
case 7:
|
|
47204
|
+
case 8:
|
|
47205
|
+
case 9:
|
|
44982
47206
|
break;
|
|
44983
47207
|
}
|
|
44984
47208
|
if (message.trackName != null && message.hasOwnProperty("trackName"))
|
|
@@ -45034,6 +47258,18 @@ export const sesame = $root.sesame = (() => {
|
|
|
45034
47258
|
case 6:
|
|
45035
47259
|
message.dataType = 6;
|
|
45036
47260
|
break;
|
|
47261
|
+
case "DATA_TYPE_OUTPUT_STATUS":
|
|
47262
|
+
case 7:
|
|
47263
|
+
message.dataType = 7;
|
|
47264
|
+
break;
|
|
47265
|
+
case "DATA_TYPE_OUTPUT_CONTROL":
|
|
47266
|
+
case 8:
|
|
47267
|
+
message.dataType = 8;
|
|
47268
|
+
break;
|
|
47269
|
+
case "DATA_TYPE_ENGINE_STATUS":
|
|
47270
|
+
case 9:
|
|
47271
|
+
message.dataType = 9;
|
|
47272
|
+
break;
|
|
45037
47273
|
}
|
|
45038
47274
|
if (object.trackName != null)
|
|
45039
47275
|
message.trackName = String(object.trackName);
|