@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/index.mjs
CHANGED
|
@@ -3520,11 +3520,14 @@ var sesame = $root.sesame = (() => {
|
|
|
3520
3520
|
CommandListItem.prototype.updateEncoder = null;
|
|
3521
3521
|
CommandListItem.prototype.removeEncoder = null;
|
|
3522
3522
|
CommandListItem.prototype.takePlaylist = null;
|
|
3523
|
+
CommandListItem.prototype.outputControl = null;
|
|
3524
|
+
CommandListItem.prototype.setSideData = null;
|
|
3525
|
+
CommandListItem.prototype.removeSideData = null;
|
|
3523
3526
|
CommandListItem.prototype.transactionId = null;
|
|
3524
3527
|
CommandListItem.prototype.transactionDeps = $util.emptyArray;
|
|
3525
3528
|
let $oneOfFields;
|
|
3526
3529
|
Object.defineProperty(CommandListItem.prototype, "item", {
|
|
3527
|
-
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"]),
|
|
3530
|
+
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"]),
|
|
3528
3531
|
set: $util.oneOfSetter($oneOfFields)
|
|
3529
3532
|
});
|
|
3530
3533
|
Object.defineProperty(CommandListItem.prototype, "_transactionId", {
|
|
@@ -3696,6 +3699,21 @@ var sesame = $root.sesame = (() => {
|
|
|
3696
3699
|
/* id 31, wireType 2 =*/
|
|
3697
3700
|
250
|
|
3698
3701
|
).fork()).ldelim();
|
|
3702
|
+
if (message.outputControl != null && Object.hasOwnProperty.call(message, "outputControl"))
|
|
3703
|
+
$root.sesame.v1.outputs.OutputControlRequest.encode(message.outputControl, writer.uint32(
|
|
3704
|
+
/* id 32, wireType 2 =*/
|
|
3705
|
+
258
|
|
3706
|
+
).fork()).ldelim();
|
|
3707
|
+
if (message.setSideData != null && Object.hasOwnProperty.call(message, "setSideData"))
|
|
3708
|
+
$root.sesame.v1.compositor.SideDataSetRequest.encode(message.setSideData, writer.uint32(
|
|
3709
|
+
/* id 33, wireType 2 =*/
|
|
3710
|
+
266
|
|
3711
|
+
).fork()).ldelim();
|
|
3712
|
+
if (message.removeSideData != null && Object.hasOwnProperty.call(message, "removeSideData"))
|
|
3713
|
+
$root.sesame.v1.compositor.SideDataRemoveRequest.encode(message.removeSideData, writer.uint32(
|
|
3714
|
+
/* id 34, wireType 2 =*/
|
|
3715
|
+
274
|
|
3716
|
+
).fork()).ldelim();
|
|
3699
3717
|
return writer;
|
|
3700
3718
|
};
|
|
3701
3719
|
CommandListItem.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -3826,6 +3844,18 @@ var sesame = $root.sesame = (() => {
|
|
|
3826
3844
|
message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.decode(reader, reader.uint32());
|
|
3827
3845
|
break;
|
|
3828
3846
|
}
|
|
3847
|
+
case 32: {
|
|
3848
|
+
message.outputControl = $root.sesame.v1.outputs.OutputControlRequest.decode(reader, reader.uint32());
|
|
3849
|
+
break;
|
|
3850
|
+
}
|
|
3851
|
+
case 33: {
|
|
3852
|
+
message.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.decode(reader, reader.uint32());
|
|
3853
|
+
break;
|
|
3854
|
+
}
|
|
3855
|
+
case 34: {
|
|
3856
|
+
message.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.decode(reader, reader.uint32());
|
|
3857
|
+
break;
|
|
3858
|
+
}
|
|
3829
3859
|
case 25: {
|
|
3830
3860
|
message.transactionId = reader.uint32();
|
|
3831
3861
|
break;
|
|
@@ -4139,6 +4169,36 @@ var sesame = $root.sesame = (() => {
|
|
|
4139
4169
|
return "takePlaylist." + error;
|
|
4140
4170
|
}
|
|
4141
4171
|
}
|
|
4172
|
+
if (message.outputControl != null && message.hasOwnProperty("outputControl")) {
|
|
4173
|
+
if (properties.item === 1)
|
|
4174
|
+
return "item: multiple values";
|
|
4175
|
+
properties.item = 1;
|
|
4176
|
+
{
|
|
4177
|
+
let error = $root.sesame.v1.outputs.OutputControlRequest.verify(message.outputControl);
|
|
4178
|
+
if (error)
|
|
4179
|
+
return "outputControl." + error;
|
|
4180
|
+
}
|
|
4181
|
+
}
|
|
4182
|
+
if (message.setSideData != null && message.hasOwnProperty("setSideData")) {
|
|
4183
|
+
if (properties.item === 1)
|
|
4184
|
+
return "item: multiple values";
|
|
4185
|
+
properties.item = 1;
|
|
4186
|
+
{
|
|
4187
|
+
let error = $root.sesame.v1.compositor.SideDataSetRequest.verify(message.setSideData);
|
|
4188
|
+
if (error)
|
|
4189
|
+
return "setSideData." + error;
|
|
4190
|
+
}
|
|
4191
|
+
}
|
|
4192
|
+
if (message.removeSideData != null && message.hasOwnProperty("removeSideData")) {
|
|
4193
|
+
if (properties.item === 1)
|
|
4194
|
+
return "item: multiple values";
|
|
4195
|
+
properties.item = 1;
|
|
4196
|
+
{
|
|
4197
|
+
let error = $root.sesame.v1.compositor.SideDataRemoveRequest.verify(message.removeSideData);
|
|
4198
|
+
if (error)
|
|
4199
|
+
return "removeSideData." + error;
|
|
4200
|
+
}
|
|
4201
|
+
}
|
|
4142
4202
|
if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
|
|
4143
4203
|
properties._transactionId = 1;
|
|
4144
4204
|
if (!$util.isInteger(message.transactionId))
|
|
@@ -4307,6 +4367,21 @@ var sesame = $root.sesame = (() => {
|
|
|
4307
4367
|
throw TypeError(".sesame.v1.commands.CommandListItem.takePlaylist: object expected");
|
|
4308
4368
|
message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.fromObject(object.takePlaylist);
|
|
4309
4369
|
}
|
|
4370
|
+
if (object.outputControl != null) {
|
|
4371
|
+
if (typeof object.outputControl !== "object")
|
|
4372
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.outputControl: object expected");
|
|
4373
|
+
message.outputControl = $root.sesame.v1.outputs.OutputControlRequest.fromObject(object.outputControl);
|
|
4374
|
+
}
|
|
4375
|
+
if (object.setSideData != null) {
|
|
4376
|
+
if (typeof object.setSideData !== "object")
|
|
4377
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.setSideData: object expected");
|
|
4378
|
+
message.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.fromObject(object.setSideData);
|
|
4379
|
+
}
|
|
4380
|
+
if (object.removeSideData != null) {
|
|
4381
|
+
if (typeof object.removeSideData !== "object")
|
|
4382
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.removeSideData: object expected");
|
|
4383
|
+
message.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.fromObject(object.removeSideData);
|
|
4384
|
+
}
|
|
4310
4385
|
if (object.transactionId != null)
|
|
4311
4386
|
message.transactionId = object.transactionId >>> 0;
|
|
4312
4387
|
if (object.transactionDeps) {
|
|
@@ -4485,6 +4560,21 @@ var sesame = $root.sesame = (() => {
|
|
|
4485
4560
|
if (options.oneofs)
|
|
4486
4561
|
object.item = "takePlaylist";
|
|
4487
4562
|
}
|
|
4563
|
+
if (message.outputControl != null && message.hasOwnProperty("outputControl")) {
|
|
4564
|
+
object.outputControl = $root.sesame.v1.outputs.OutputControlRequest.toObject(message.outputControl, options);
|
|
4565
|
+
if (options.oneofs)
|
|
4566
|
+
object.item = "outputControl";
|
|
4567
|
+
}
|
|
4568
|
+
if (message.setSideData != null && message.hasOwnProperty("setSideData")) {
|
|
4569
|
+
object.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.toObject(message.setSideData, options);
|
|
4570
|
+
if (options.oneofs)
|
|
4571
|
+
object.item = "setSideData";
|
|
4572
|
+
}
|
|
4573
|
+
if (message.removeSideData != null && message.hasOwnProperty("removeSideData")) {
|
|
4574
|
+
object.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.toObject(message.removeSideData, options);
|
|
4575
|
+
if (options.oneofs)
|
|
4576
|
+
object.item = "removeSideData";
|
|
4577
|
+
}
|
|
4488
4578
|
return object;
|
|
4489
4579
|
};
|
|
4490
4580
|
CommandListItem.prototype.toJSON = function toJSON() {
|
|
@@ -4956,6 +5046,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4956
5046
|
values[valuesById[4] = "CONNECTION_STATE_DEGRADED"] = 4;
|
|
4957
5047
|
values[valuesById[5] = "CONNECTION_STATE_OFFLINE"] = 5;
|
|
4958
5048
|
values[valuesById[6] = "CONNECTION_STATE_ERROR"] = 6;
|
|
5049
|
+
values[valuesById[7] = "CONNECTION_STATE_DISABLED"] = 7;
|
|
4959
5050
|
return values;
|
|
4960
5051
|
}();
|
|
4961
5052
|
common.VideoFormat = function() {
|
|
@@ -9127,6 +9218,7 @@ var sesame = $root.sesame = (() => {
|
|
|
9127
9218
|
case 4:
|
|
9128
9219
|
case 5:
|
|
9129
9220
|
case 6:
|
|
9221
|
+
case 7:
|
|
9130
9222
|
break;
|
|
9131
9223
|
}
|
|
9132
9224
|
if (message.transportState != null && message.hasOwnProperty("transportState"))
|
|
@@ -9307,6 +9399,10 @@ var sesame = $root.sesame = (() => {
|
|
|
9307
9399
|
case 6:
|
|
9308
9400
|
message.state = 6;
|
|
9309
9401
|
break;
|
|
9402
|
+
case "CONNECTION_STATE_DISABLED":
|
|
9403
|
+
case 7:
|
|
9404
|
+
message.state = 7;
|
|
9405
|
+
break;
|
|
9310
9406
|
}
|
|
9311
9407
|
switch (object.transportState) {
|
|
9312
9408
|
default:
|
|
@@ -19314,6 +19410,13 @@ var sesame = $root.sesame = (() => {
|
|
|
19314
19410
|
};
|
|
19315
19411
|
return EncodedSuperSlowMoRecorderOutputConfig;
|
|
19316
19412
|
}();
|
|
19413
|
+
outputs.SrtStreamControl = function() {
|
|
19414
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
19415
|
+
values[valuesById[0] = "SRT_STREAM_CONTROL_UNSPECIFIED"] = 0;
|
|
19416
|
+
values[valuesById[1] = "SRT_STREAM_CONTROL_STARTED"] = 1;
|
|
19417
|
+
values[valuesById[2] = "SRT_STREAM_CONTROL_MANUAL"] = 2;
|
|
19418
|
+
return values;
|
|
19419
|
+
}();
|
|
19317
19420
|
outputs.EncodedSrtOutputConfig = function() {
|
|
19318
19421
|
function EncodedSrtOutputConfig(properties) {
|
|
19319
19422
|
if (properties) {
|
|
@@ -19324,6 +19427,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19324
19427
|
}
|
|
19325
19428
|
EncodedSrtOutputConfig.prototype.url = "";
|
|
19326
19429
|
EncodedSrtOutputConfig.prototype.encoderId = "";
|
|
19430
|
+
EncodedSrtOutputConfig.prototype.control = 0;
|
|
19327
19431
|
EncodedSrtOutputConfig.create = function create(properties) {
|
|
19328
19432
|
return new EncodedSrtOutputConfig(properties);
|
|
19329
19433
|
};
|
|
@@ -19340,6 +19444,11 @@ var sesame = $root.sesame = (() => {
|
|
|
19340
19444
|
/* id 2, wireType 2 =*/
|
|
19341
19445
|
18
|
|
19342
19446
|
).string(message.encoderId);
|
|
19447
|
+
if (message.control != null && Object.hasOwnProperty.call(message, "control"))
|
|
19448
|
+
writer.uint32(
|
|
19449
|
+
/* id 3, wireType 0 =*/
|
|
19450
|
+
24
|
|
19451
|
+
).int32(message.control);
|
|
19343
19452
|
return writer;
|
|
19344
19453
|
};
|
|
19345
19454
|
EncodedSrtOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -19362,6 +19471,10 @@ var sesame = $root.sesame = (() => {
|
|
|
19362
19471
|
message.encoderId = reader.string();
|
|
19363
19472
|
break;
|
|
19364
19473
|
}
|
|
19474
|
+
case 3: {
|
|
19475
|
+
message.control = reader.int32();
|
|
19476
|
+
break;
|
|
19477
|
+
}
|
|
19365
19478
|
default:
|
|
19366
19479
|
reader.skipType(tag & 7);
|
|
19367
19480
|
break;
|
|
@@ -19385,6 +19498,15 @@ var sesame = $root.sesame = (() => {
|
|
|
19385
19498
|
if (!$util.isString(message.encoderId))
|
|
19386
19499
|
return "encoderId: string expected";
|
|
19387
19500
|
}
|
|
19501
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
19502
|
+
switch (message.control) {
|
|
19503
|
+
default:
|
|
19504
|
+
return "control: enum value expected";
|
|
19505
|
+
case 0:
|
|
19506
|
+
case 1:
|
|
19507
|
+
case 2:
|
|
19508
|
+
break;
|
|
19509
|
+
}
|
|
19388
19510
|
return null;
|
|
19389
19511
|
};
|
|
19390
19512
|
EncodedSrtOutputConfig.fromObject = function fromObject(object) {
|
|
@@ -19395,6 +19517,26 @@ var sesame = $root.sesame = (() => {
|
|
|
19395
19517
|
message.url = String(object.url);
|
|
19396
19518
|
if (object.encoderId != null)
|
|
19397
19519
|
message.encoderId = String(object.encoderId);
|
|
19520
|
+
switch (object.control) {
|
|
19521
|
+
default:
|
|
19522
|
+
if (typeof object.control === "number") {
|
|
19523
|
+
message.control = object.control;
|
|
19524
|
+
break;
|
|
19525
|
+
}
|
|
19526
|
+
break;
|
|
19527
|
+
case "SRT_STREAM_CONTROL_UNSPECIFIED":
|
|
19528
|
+
case 0:
|
|
19529
|
+
message.control = 0;
|
|
19530
|
+
break;
|
|
19531
|
+
case "SRT_STREAM_CONTROL_STARTED":
|
|
19532
|
+
case 1:
|
|
19533
|
+
message.control = 1;
|
|
19534
|
+
break;
|
|
19535
|
+
case "SRT_STREAM_CONTROL_MANUAL":
|
|
19536
|
+
case 2:
|
|
19537
|
+
message.control = 2;
|
|
19538
|
+
break;
|
|
19539
|
+
}
|
|
19398
19540
|
return message;
|
|
19399
19541
|
};
|
|
19400
19542
|
EncodedSrtOutputConfig.toObject = function toObject(message, options) {
|
|
@@ -19404,11 +19546,14 @@ var sesame = $root.sesame = (() => {
|
|
|
19404
19546
|
if (options.defaults) {
|
|
19405
19547
|
object.url = "";
|
|
19406
19548
|
object.encoderId = "";
|
|
19549
|
+
object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
|
|
19407
19550
|
}
|
|
19408
19551
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
19409
19552
|
object.url = message.url;
|
|
19410
19553
|
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
19411
19554
|
object.encoderId = message.encoderId;
|
|
19555
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
19556
|
+
object.control = options.enums === String ? $root.sesame.v1.outputs.SrtStreamControl[message.control] === void 0 ? message.control : $root.sesame.v1.outputs.SrtStreamControl[message.control] : message.control;
|
|
19412
19557
|
return object;
|
|
19413
19558
|
};
|
|
19414
19559
|
EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -20531,6 +20676,144 @@ var sesame = $root.sesame = (() => {
|
|
|
20531
20676
|
};
|
|
20532
20677
|
return OutputRemoveRequest;
|
|
20533
20678
|
}();
|
|
20679
|
+
outputs.OutputControlAction = function() {
|
|
20680
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
20681
|
+
values[valuesById[0] = "OUTPUT_CONTROL_ACTION_UNSPECIFIED"] = 0;
|
|
20682
|
+
values[valuesById[1] = "OUTPUT_CONTROL_ACTION_START"] = 1;
|
|
20683
|
+
values[valuesById[2] = "OUTPUT_CONTROL_ACTION_STOP"] = 2;
|
|
20684
|
+
return values;
|
|
20685
|
+
}();
|
|
20686
|
+
outputs.OutputControlRequest = function() {
|
|
20687
|
+
function OutputControlRequest(properties) {
|
|
20688
|
+
if (properties) {
|
|
20689
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20690
|
+
if (properties[keys[i]] != null)
|
|
20691
|
+
this[keys[i]] = properties[keys[i]];
|
|
20692
|
+
}
|
|
20693
|
+
}
|
|
20694
|
+
OutputControlRequest.prototype.id = "";
|
|
20695
|
+
OutputControlRequest.prototype.action = 0;
|
|
20696
|
+
OutputControlRequest.create = function create(properties) {
|
|
20697
|
+
return new OutputControlRequest(properties);
|
|
20698
|
+
};
|
|
20699
|
+
OutputControlRequest.encode = function encode(message, writer) {
|
|
20700
|
+
if (!writer)
|
|
20701
|
+
writer = $Writer.create();
|
|
20702
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
20703
|
+
writer.uint32(
|
|
20704
|
+
/* id 1, wireType 2 =*/
|
|
20705
|
+
10
|
|
20706
|
+
).string(message.id);
|
|
20707
|
+
if (message.action != null && Object.hasOwnProperty.call(message, "action"))
|
|
20708
|
+
writer.uint32(
|
|
20709
|
+
/* id 2, wireType 0 =*/
|
|
20710
|
+
16
|
|
20711
|
+
).int32(message.action);
|
|
20712
|
+
return writer;
|
|
20713
|
+
};
|
|
20714
|
+
OutputControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20715
|
+
return this.encode(message, writer).ldelim();
|
|
20716
|
+
};
|
|
20717
|
+
OutputControlRequest.decode = function decode(reader, length, error) {
|
|
20718
|
+
if (!(reader instanceof $Reader))
|
|
20719
|
+
reader = $Reader.create(reader);
|
|
20720
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.OutputControlRequest();
|
|
20721
|
+
while (reader.pos < end) {
|
|
20722
|
+
let tag = reader.uint32();
|
|
20723
|
+
if (tag === error)
|
|
20724
|
+
break;
|
|
20725
|
+
switch (tag >>> 3) {
|
|
20726
|
+
case 1: {
|
|
20727
|
+
message.id = reader.string();
|
|
20728
|
+
break;
|
|
20729
|
+
}
|
|
20730
|
+
case 2: {
|
|
20731
|
+
message.action = reader.int32();
|
|
20732
|
+
break;
|
|
20733
|
+
}
|
|
20734
|
+
default:
|
|
20735
|
+
reader.skipType(tag & 7);
|
|
20736
|
+
break;
|
|
20737
|
+
}
|
|
20738
|
+
}
|
|
20739
|
+
return message;
|
|
20740
|
+
};
|
|
20741
|
+
OutputControlRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
20742
|
+
if (!(reader instanceof $Reader))
|
|
20743
|
+
reader = new $Reader(reader);
|
|
20744
|
+
return this.decode(reader, reader.uint32());
|
|
20745
|
+
};
|
|
20746
|
+
OutputControlRequest.verify = function verify(message) {
|
|
20747
|
+
if (typeof message !== "object" || message === null)
|
|
20748
|
+
return "object expected";
|
|
20749
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
20750
|
+
if (!$util.isString(message.id))
|
|
20751
|
+
return "id: string expected";
|
|
20752
|
+
}
|
|
20753
|
+
if (message.action != null && message.hasOwnProperty("action"))
|
|
20754
|
+
switch (message.action) {
|
|
20755
|
+
default:
|
|
20756
|
+
return "action: enum value expected";
|
|
20757
|
+
case 0:
|
|
20758
|
+
case 1:
|
|
20759
|
+
case 2:
|
|
20760
|
+
break;
|
|
20761
|
+
}
|
|
20762
|
+
return null;
|
|
20763
|
+
};
|
|
20764
|
+
OutputControlRequest.fromObject = function fromObject(object) {
|
|
20765
|
+
if (object instanceof $root.sesame.v1.outputs.OutputControlRequest)
|
|
20766
|
+
return object;
|
|
20767
|
+
let message = new $root.sesame.v1.outputs.OutputControlRequest();
|
|
20768
|
+
if (object.id != null)
|
|
20769
|
+
message.id = String(object.id);
|
|
20770
|
+
switch (object.action) {
|
|
20771
|
+
default:
|
|
20772
|
+
if (typeof object.action === "number") {
|
|
20773
|
+
message.action = object.action;
|
|
20774
|
+
break;
|
|
20775
|
+
}
|
|
20776
|
+
break;
|
|
20777
|
+
case "OUTPUT_CONTROL_ACTION_UNSPECIFIED":
|
|
20778
|
+
case 0:
|
|
20779
|
+
message.action = 0;
|
|
20780
|
+
break;
|
|
20781
|
+
case "OUTPUT_CONTROL_ACTION_START":
|
|
20782
|
+
case 1:
|
|
20783
|
+
message.action = 1;
|
|
20784
|
+
break;
|
|
20785
|
+
case "OUTPUT_CONTROL_ACTION_STOP":
|
|
20786
|
+
case 2:
|
|
20787
|
+
message.action = 2;
|
|
20788
|
+
break;
|
|
20789
|
+
}
|
|
20790
|
+
return message;
|
|
20791
|
+
};
|
|
20792
|
+
OutputControlRequest.toObject = function toObject(message, options) {
|
|
20793
|
+
if (!options)
|
|
20794
|
+
options = {};
|
|
20795
|
+
let object = {};
|
|
20796
|
+
if (options.defaults) {
|
|
20797
|
+
object.id = "";
|
|
20798
|
+
object.action = options.enums === String ? "OUTPUT_CONTROL_ACTION_UNSPECIFIED" : 0;
|
|
20799
|
+
}
|
|
20800
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
20801
|
+
object.id = message.id;
|
|
20802
|
+
if (message.action != null && message.hasOwnProperty("action"))
|
|
20803
|
+
object.action = options.enums === String ? $root.sesame.v1.outputs.OutputControlAction[message.action] === void 0 ? message.action : $root.sesame.v1.outputs.OutputControlAction[message.action] : message.action;
|
|
20804
|
+
return object;
|
|
20805
|
+
};
|
|
20806
|
+
OutputControlRequest.prototype.toJSON = function toJSON() {
|
|
20807
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20808
|
+
};
|
|
20809
|
+
OutputControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20810
|
+
if (typeUrlPrefix === void 0) {
|
|
20811
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
20812
|
+
}
|
|
20813
|
+
return typeUrlPrefix + "/sesame.v1.outputs.OutputControlRequest";
|
|
20814
|
+
};
|
|
20815
|
+
return OutputControlRequest;
|
|
20816
|
+
}();
|
|
20534
20817
|
outputs.KeyframeRequest = function() {
|
|
20535
20818
|
function KeyframeRequest(properties) {
|
|
20536
20819
|
if (properties) {
|
|
@@ -20635,6 +20918,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20635
20918
|
OutputStatus.prototype.bufferSize = 0;
|
|
20636
20919
|
OutputStatus.prototype.srtStats = null;
|
|
20637
20920
|
OutputStatus.prototype.encoderId = "";
|
|
20921
|
+
OutputStatus.prototype.control = 0;
|
|
20638
20922
|
let $oneOfFields;
|
|
20639
20923
|
Object.defineProperty(OutputStatus.prototype, "_msg", {
|
|
20640
20924
|
get: $util.oneOfGetter($oneOfFields = ["msg"]),
|
|
@@ -20690,6 +20974,11 @@ var sesame = $root.sesame = (() => {
|
|
|
20690
20974
|
/* id 8, wireType 2 =*/
|
|
20691
20975
|
66
|
|
20692
20976
|
).string(message.encoderId);
|
|
20977
|
+
if (message.control != null && Object.hasOwnProperty.call(message, "control"))
|
|
20978
|
+
writer.uint32(
|
|
20979
|
+
/* id 9, wireType 0 =*/
|
|
20980
|
+
72
|
|
20981
|
+
).int32(message.control);
|
|
20693
20982
|
return writer;
|
|
20694
20983
|
};
|
|
20695
20984
|
OutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -20736,6 +21025,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20736
21025
|
message.encoderId = reader.string();
|
|
20737
21026
|
break;
|
|
20738
21027
|
}
|
|
21028
|
+
case 9: {
|
|
21029
|
+
message.control = reader.int32();
|
|
21030
|
+
break;
|
|
21031
|
+
}
|
|
20739
21032
|
default:
|
|
20740
21033
|
reader.skipType(tag & 7);
|
|
20741
21034
|
break;
|
|
@@ -20781,6 +21074,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20781
21074
|
case 4:
|
|
20782
21075
|
case 5:
|
|
20783
21076
|
case 6:
|
|
21077
|
+
case 7:
|
|
20784
21078
|
break;
|
|
20785
21079
|
}
|
|
20786
21080
|
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
@@ -20808,6 +21102,15 @@ var sesame = $root.sesame = (() => {
|
|
|
20808
21102
|
if (!$util.isString(message.encoderId))
|
|
20809
21103
|
return "encoderId: string expected";
|
|
20810
21104
|
}
|
|
21105
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
21106
|
+
switch (message.control) {
|
|
21107
|
+
default:
|
|
21108
|
+
return "control: enum value expected";
|
|
21109
|
+
case 0:
|
|
21110
|
+
case 1:
|
|
21111
|
+
case 2:
|
|
21112
|
+
break;
|
|
21113
|
+
}
|
|
20811
21114
|
return null;
|
|
20812
21115
|
};
|
|
20813
21116
|
OutputStatus.fromObject = function fromObject(object) {
|
|
@@ -20891,6 +21194,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20891
21194
|
case 6:
|
|
20892
21195
|
message.state = 6;
|
|
20893
21196
|
break;
|
|
21197
|
+
case "CONNECTION_STATE_DISABLED":
|
|
21198
|
+
case 7:
|
|
21199
|
+
message.state = 7;
|
|
21200
|
+
break;
|
|
20894
21201
|
}
|
|
20895
21202
|
if (object.msg != null)
|
|
20896
21203
|
message.msg = String(object.msg);
|
|
@@ -20905,6 +21212,26 @@ var sesame = $root.sesame = (() => {
|
|
|
20905
21212
|
}
|
|
20906
21213
|
if (object.encoderId != null)
|
|
20907
21214
|
message.encoderId = String(object.encoderId);
|
|
21215
|
+
switch (object.control) {
|
|
21216
|
+
default:
|
|
21217
|
+
if (typeof object.control === "number") {
|
|
21218
|
+
message.control = object.control;
|
|
21219
|
+
break;
|
|
21220
|
+
}
|
|
21221
|
+
break;
|
|
21222
|
+
case "SRT_STREAM_CONTROL_UNSPECIFIED":
|
|
21223
|
+
case 0:
|
|
21224
|
+
message.control = 0;
|
|
21225
|
+
break;
|
|
21226
|
+
case "SRT_STREAM_CONTROL_STARTED":
|
|
21227
|
+
case 1:
|
|
21228
|
+
message.control = 1;
|
|
21229
|
+
break;
|
|
21230
|
+
case "SRT_STREAM_CONTROL_MANUAL":
|
|
21231
|
+
case 2:
|
|
21232
|
+
message.control = 2;
|
|
21233
|
+
break;
|
|
21234
|
+
}
|
|
20908
21235
|
return message;
|
|
20909
21236
|
};
|
|
20910
21237
|
OutputStatus.toObject = function toObject(message, options) {
|
|
@@ -20918,6 +21245,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20918
21245
|
object.url = "";
|
|
20919
21246
|
object.bufferSize = 0;
|
|
20920
21247
|
object.encoderId = "";
|
|
21248
|
+
object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
|
|
20921
21249
|
}
|
|
20922
21250
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
20923
21251
|
object.id = message.id;
|
|
@@ -20941,6 +21269,8 @@ var sesame = $root.sesame = (() => {
|
|
|
20941
21269
|
}
|
|
20942
21270
|
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
20943
21271
|
object.encoderId = message.encoderId;
|
|
21272
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
21273
|
+
object.control = options.enums === String ? $root.sesame.v1.outputs.SrtStreamControl[message.control] === void 0 ? message.control : $root.sesame.v1.outputs.SrtStreamControl[message.control] : message.control;
|
|
20944
21274
|
return object;
|
|
20945
21275
|
};
|
|
20946
21276
|
OutputStatus.prototype.toJSON = function toJSON() {
|
|
@@ -21086,6 +21416,7 @@ var sesame = $root.sesame = (() => {
|
|
|
21086
21416
|
case 4:
|
|
21087
21417
|
case 5:
|
|
21088
21418
|
case 6:
|
|
21419
|
+
case 7:
|
|
21089
21420
|
break;
|
|
21090
21421
|
}
|
|
21091
21422
|
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
@@ -21160,6 +21491,10 @@ var sesame = $root.sesame = (() => {
|
|
|
21160
21491
|
case 6:
|
|
21161
21492
|
message.state = 6;
|
|
21162
21493
|
break;
|
|
21494
|
+
case "CONNECTION_STATE_DISABLED":
|
|
21495
|
+
case 7:
|
|
21496
|
+
message.state = 7;
|
|
21497
|
+
break;
|
|
21163
21498
|
}
|
|
21164
21499
|
if (object.msg != null)
|
|
21165
21500
|
message.msg = String(object.msg);
|
|
@@ -22021,72 +22356,52 @@ var sesame = $root.sesame = (() => {
|
|
|
22021
22356
|
};
|
|
22022
22357
|
return NodeRemoveRequest;
|
|
22023
22358
|
}();
|
|
22024
|
-
compositor.
|
|
22025
|
-
function
|
|
22359
|
+
compositor.SideDataSetRequest = function() {
|
|
22360
|
+
function SideDataSetRequest(properties) {
|
|
22026
22361
|
if (properties) {
|
|
22027
22362
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22028
22363
|
if (properties[keys[i]] != null)
|
|
22029
22364
|
this[keys[i]] = properties[keys[i]];
|
|
22030
22365
|
}
|
|
22031
22366
|
}
|
|
22032
|
-
|
|
22033
|
-
|
|
22034
|
-
|
|
22035
|
-
|
|
22036
|
-
PropertySetRequest.create = function create(properties) {
|
|
22037
|
-
return new PropertySetRequest(properties);
|
|
22367
|
+
SideDataSetRequest.prototype.compositorId = "";
|
|
22368
|
+
SideDataSetRequest.prototype.sideData = null;
|
|
22369
|
+
SideDataSetRequest.create = function create(properties) {
|
|
22370
|
+
return new SideDataSetRequest(properties);
|
|
22038
22371
|
};
|
|
22039
|
-
|
|
22372
|
+
SideDataSetRequest.encode = function encode(message, writer) {
|
|
22040
22373
|
if (!writer)
|
|
22041
22374
|
writer = $Writer.create();
|
|
22042
|
-
if (message.
|
|
22043
|
-
|
|
22375
|
+
if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
|
|
22376
|
+
writer.uint32(
|
|
22044
22377
|
/* id 1, wireType 2 =*/
|
|
22045
22378
|
10
|
|
22046
|
-
).
|
|
22047
|
-
if (message.
|
|
22048
|
-
writer.uint32(
|
|
22379
|
+
).string(message.compositorId);
|
|
22380
|
+
if (message.sideData != null && Object.hasOwnProperty.call(message, "sideData"))
|
|
22381
|
+
$root.sesame.v1.sidedata.SideData.encode(message.sideData, writer.uint32(
|
|
22049
22382
|
/* id 2, wireType 2 =*/
|
|
22050
22383
|
18
|
|
22051
|
-
).string(message.address);
|
|
22052
|
-
if (message.property != null && Object.hasOwnProperty.call(message, "property"))
|
|
22053
|
-
writer.uint32(
|
|
22054
|
-
/* id 3, wireType 2 =*/
|
|
22055
|
-
26
|
|
22056
|
-
).string(message.property);
|
|
22057
|
-
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
22058
|
-
$root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
|
|
22059
|
-
/* id 4, wireType 2 =*/
|
|
22060
|
-
34
|
|
22061
22384
|
).fork()).ldelim();
|
|
22062
22385
|
return writer;
|
|
22063
22386
|
};
|
|
22064
|
-
|
|
22387
|
+
SideDataSetRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22065
22388
|
return this.encode(message, writer).ldelim();
|
|
22066
22389
|
};
|
|
22067
|
-
|
|
22390
|
+
SideDataSetRequest.decode = function decode(reader, length, error) {
|
|
22068
22391
|
if (!(reader instanceof $Reader))
|
|
22069
22392
|
reader = $Reader.create(reader);
|
|
22070
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.
|
|
22393
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.SideDataSetRequest();
|
|
22071
22394
|
while (reader.pos < end) {
|
|
22072
22395
|
let tag = reader.uint32();
|
|
22073
22396
|
if (tag === error)
|
|
22074
22397
|
break;
|
|
22075
22398
|
switch (tag >>> 3) {
|
|
22076
22399
|
case 1: {
|
|
22077
|
-
message.
|
|
22400
|
+
message.compositorId = reader.string();
|
|
22078
22401
|
break;
|
|
22079
22402
|
}
|
|
22080
22403
|
case 2: {
|
|
22081
|
-
message.
|
|
22082
|
-
break;
|
|
22083
|
-
}
|
|
22084
|
-
case 3: {
|
|
22085
|
-
message.property = reader.string();
|
|
22086
|
-
break;
|
|
22087
|
-
}
|
|
22088
|
-
case 4: {
|
|
22089
|
-
message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
|
|
22404
|
+
message.sideData = $root.sesame.v1.sidedata.SideData.decode(reader, reader.uint32());
|
|
22090
22405
|
break;
|
|
22091
22406
|
}
|
|
22092
22407
|
default:
|
|
@@ -22096,36 +22411,276 @@ var sesame = $root.sesame = (() => {
|
|
|
22096
22411
|
}
|
|
22097
22412
|
return message;
|
|
22098
22413
|
};
|
|
22099
|
-
|
|
22414
|
+
SideDataSetRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
22100
22415
|
if (!(reader instanceof $Reader))
|
|
22101
22416
|
reader = new $Reader(reader);
|
|
22102
22417
|
return this.decode(reader, reader.uint32());
|
|
22103
22418
|
};
|
|
22104
|
-
|
|
22419
|
+
SideDataSetRequest.verify = function verify(message) {
|
|
22105
22420
|
if (typeof message !== "object" || message === null)
|
|
22106
22421
|
return "object expected";
|
|
22107
|
-
if (message.
|
|
22108
|
-
|
|
22109
|
-
|
|
22110
|
-
return "domain." + error;
|
|
22111
|
-
}
|
|
22112
|
-
if (message.address != null && message.hasOwnProperty("address")) {
|
|
22113
|
-
if (!$util.isString(message.address))
|
|
22114
|
-
return "address: string expected";
|
|
22115
|
-
}
|
|
22116
|
-
if (message.property != null && message.hasOwnProperty("property")) {
|
|
22117
|
-
if (!$util.isString(message.property))
|
|
22118
|
-
return "property: string expected";
|
|
22422
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
|
|
22423
|
+
if (!$util.isString(message.compositorId))
|
|
22424
|
+
return "compositorId: string expected";
|
|
22119
22425
|
}
|
|
22120
|
-
if (message.
|
|
22121
|
-
let error = $root.sesame.v1.
|
|
22426
|
+
if (message.sideData != null && message.hasOwnProperty("sideData")) {
|
|
22427
|
+
let error = $root.sesame.v1.sidedata.SideData.verify(message.sideData);
|
|
22122
22428
|
if (error)
|
|
22123
|
-
return "
|
|
22429
|
+
return "sideData." + error;
|
|
22124
22430
|
}
|
|
22125
22431
|
return null;
|
|
22126
22432
|
};
|
|
22127
|
-
|
|
22128
|
-
if (object instanceof $root.sesame.v1.compositor.
|
|
22433
|
+
SideDataSetRequest.fromObject = function fromObject(object) {
|
|
22434
|
+
if (object instanceof $root.sesame.v1.compositor.SideDataSetRequest)
|
|
22435
|
+
return object;
|
|
22436
|
+
let message = new $root.sesame.v1.compositor.SideDataSetRequest();
|
|
22437
|
+
if (object.compositorId != null)
|
|
22438
|
+
message.compositorId = String(object.compositorId);
|
|
22439
|
+
if (object.sideData != null) {
|
|
22440
|
+
if (typeof object.sideData !== "object")
|
|
22441
|
+
throw TypeError(".sesame.v1.compositor.SideDataSetRequest.sideData: object expected");
|
|
22442
|
+
message.sideData = $root.sesame.v1.sidedata.SideData.fromObject(object.sideData);
|
|
22443
|
+
}
|
|
22444
|
+
return message;
|
|
22445
|
+
};
|
|
22446
|
+
SideDataSetRequest.toObject = function toObject(message, options) {
|
|
22447
|
+
if (!options)
|
|
22448
|
+
options = {};
|
|
22449
|
+
let object = {};
|
|
22450
|
+
if (options.defaults) {
|
|
22451
|
+
object.compositorId = "";
|
|
22452
|
+
object.sideData = null;
|
|
22453
|
+
}
|
|
22454
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId"))
|
|
22455
|
+
object.compositorId = message.compositorId;
|
|
22456
|
+
if (message.sideData != null && message.hasOwnProperty("sideData"))
|
|
22457
|
+
object.sideData = $root.sesame.v1.sidedata.SideData.toObject(message.sideData, options);
|
|
22458
|
+
return object;
|
|
22459
|
+
};
|
|
22460
|
+
SideDataSetRequest.prototype.toJSON = function toJSON() {
|
|
22461
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
22462
|
+
};
|
|
22463
|
+
SideDataSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
22464
|
+
if (typeUrlPrefix === void 0) {
|
|
22465
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
22466
|
+
}
|
|
22467
|
+
return typeUrlPrefix + "/sesame.v1.compositor.SideDataSetRequest";
|
|
22468
|
+
};
|
|
22469
|
+
return SideDataSetRequest;
|
|
22470
|
+
}();
|
|
22471
|
+
compositor.SideDataRemoveRequest = function() {
|
|
22472
|
+
function SideDataRemoveRequest(properties) {
|
|
22473
|
+
if (properties) {
|
|
22474
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22475
|
+
if (properties[keys[i]] != null)
|
|
22476
|
+
this[keys[i]] = properties[keys[i]];
|
|
22477
|
+
}
|
|
22478
|
+
}
|
|
22479
|
+
SideDataRemoveRequest.prototype.compositorId = "";
|
|
22480
|
+
SideDataRemoveRequest.prototype.id = "";
|
|
22481
|
+
SideDataRemoveRequest.create = function create(properties) {
|
|
22482
|
+
return new SideDataRemoveRequest(properties);
|
|
22483
|
+
};
|
|
22484
|
+
SideDataRemoveRequest.encode = function encode(message, writer) {
|
|
22485
|
+
if (!writer)
|
|
22486
|
+
writer = $Writer.create();
|
|
22487
|
+
if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
|
|
22488
|
+
writer.uint32(
|
|
22489
|
+
/* id 1, wireType 2 =*/
|
|
22490
|
+
10
|
|
22491
|
+
).string(message.compositorId);
|
|
22492
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
22493
|
+
writer.uint32(
|
|
22494
|
+
/* id 2, wireType 2 =*/
|
|
22495
|
+
18
|
|
22496
|
+
).string(message.id);
|
|
22497
|
+
return writer;
|
|
22498
|
+
};
|
|
22499
|
+
SideDataRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22500
|
+
return this.encode(message, writer).ldelim();
|
|
22501
|
+
};
|
|
22502
|
+
SideDataRemoveRequest.decode = function decode(reader, length, error) {
|
|
22503
|
+
if (!(reader instanceof $Reader))
|
|
22504
|
+
reader = $Reader.create(reader);
|
|
22505
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.SideDataRemoveRequest();
|
|
22506
|
+
while (reader.pos < end) {
|
|
22507
|
+
let tag = reader.uint32();
|
|
22508
|
+
if (tag === error)
|
|
22509
|
+
break;
|
|
22510
|
+
switch (tag >>> 3) {
|
|
22511
|
+
case 1: {
|
|
22512
|
+
message.compositorId = reader.string();
|
|
22513
|
+
break;
|
|
22514
|
+
}
|
|
22515
|
+
case 2: {
|
|
22516
|
+
message.id = reader.string();
|
|
22517
|
+
break;
|
|
22518
|
+
}
|
|
22519
|
+
default:
|
|
22520
|
+
reader.skipType(tag & 7);
|
|
22521
|
+
break;
|
|
22522
|
+
}
|
|
22523
|
+
}
|
|
22524
|
+
return message;
|
|
22525
|
+
};
|
|
22526
|
+
SideDataRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
22527
|
+
if (!(reader instanceof $Reader))
|
|
22528
|
+
reader = new $Reader(reader);
|
|
22529
|
+
return this.decode(reader, reader.uint32());
|
|
22530
|
+
};
|
|
22531
|
+
SideDataRemoveRequest.verify = function verify(message) {
|
|
22532
|
+
if (typeof message !== "object" || message === null)
|
|
22533
|
+
return "object expected";
|
|
22534
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
|
|
22535
|
+
if (!$util.isString(message.compositorId))
|
|
22536
|
+
return "compositorId: string expected";
|
|
22537
|
+
}
|
|
22538
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
22539
|
+
if (!$util.isString(message.id))
|
|
22540
|
+
return "id: string expected";
|
|
22541
|
+
}
|
|
22542
|
+
return null;
|
|
22543
|
+
};
|
|
22544
|
+
SideDataRemoveRequest.fromObject = function fromObject(object) {
|
|
22545
|
+
if (object instanceof $root.sesame.v1.compositor.SideDataRemoveRequest)
|
|
22546
|
+
return object;
|
|
22547
|
+
let message = new $root.sesame.v1.compositor.SideDataRemoveRequest();
|
|
22548
|
+
if (object.compositorId != null)
|
|
22549
|
+
message.compositorId = String(object.compositorId);
|
|
22550
|
+
if (object.id != null)
|
|
22551
|
+
message.id = String(object.id);
|
|
22552
|
+
return message;
|
|
22553
|
+
};
|
|
22554
|
+
SideDataRemoveRequest.toObject = function toObject(message, options) {
|
|
22555
|
+
if (!options)
|
|
22556
|
+
options = {};
|
|
22557
|
+
let object = {};
|
|
22558
|
+
if (options.defaults) {
|
|
22559
|
+
object.compositorId = "";
|
|
22560
|
+
object.id = "";
|
|
22561
|
+
}
|
|
22562
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId"))
|
|
22563
|
+
object.compositorId = message.compositorId;
|
|
22564
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
22565
|
+
object.id = message.id;
|
|
22566
|
+
return object;
|
|
22567
|
+
};
|
|
22568
|
+
SideDataRemoveRequest.prototype.toJSON = function toJSON() {
|
|
22569
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
22570
|
+
};
|
|
22571
|
+
SideDataRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
22572
|
+
if (typeUrlPrefix === void 0) {
|
|
22573
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
22574
|
+
}
|
|
22575
|
+
return typeUrlPrefix + "/sesame.v1.compositor.SideDataRemoveRequest";
|
|
22576
|
+
};
|
|
22577
|
+
return SideDataRemoveRequest;
|
|
22578
|
+
}();
|
|
22579
|
+
compositor.PropertySetRequest = function() {
|
|
22580
|
+
function PropertySetRequest(properties) {
|
|
22581
|
+
if (properties) {
|
|
22582
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22583
|
+
if (properties[keys[i]] != null)
|
|
22584
|
+
this[keys[i]] = properties[keys[i]];
|
|
22585
|
+
}
|
|
22586
|
+
}
|
|
22587
|
+
PropertySetRequest.prototype.domain = null;
|
|
22588
|
+
PropertySetRequest.prototype.address = "";
|
|
22589
|
+
PropertySetRequest.prototype.property = "";
|
|
22590
|
+
PropertySetRequest.prototype.value = null;
|
|
22591
|
+
PropertySetRequest.create = function create(properties) {
|
|
22592
|
+
return new PropertySetRequest(properties);
|
|
22593
|
+
};
|
|
22594
|
+
PropertySetRequest.encode = function encode(message, writer) {
|
|
22595
|
+
if (!writer)
|
|
22596
|
+
writer = $Writer.create();
|
|
22597
|
+
if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
|
|
22598
|
+
$root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
|
|
22599
|
+
/* id 1, wireType 2 =*/
|
|
22600
|
+
10
|
|
22601
|
+
).fork()).ldelim();
|
|
22602
|
+
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
22603
|
+
writer.uint32(
|
|
22604
|
+
/* id 2, wireType 2 =*/
|
|
22605
|
+
18
|
|
22606
|
+
).string(message.address);
|
|
22607
|
+
if (message.property != null && Object.hasOwnProperty.call(message, "property"))
|
|
22608
|
+
writer.uint32(
|
|
22609
|
+
/* id 3, wireType 2 =*/
|
|
22610
|
+
26
|
|
22611
|
+
).string(message.property);
|
|
22612
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
22613
|
+
$root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
|
|
22614
|
+
/* id 4, wireType 2 =*/
|
|
22615
|
+
34
|
|
22616
|
+
).fork()).ldelim();
|
|
22617
|
+
return writer;
|
|
22618
|
+
};
|
|
22619
|
+
PropertySetRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22620
|
+
return this.encode(message, writer).ldelim();
|
|
22621
|
+
};
|
|
22622
|
+
PropertySetRequest.decode = function decode(reader, length, error) {
|
|
22623
|
+
if (!(reader instanceof $Reader))
|
|
22624
|
+
reader = $Reader.create(reader);
|
|
22625
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertySetRequest();
|
|
22626
|
+
while (reader.pos < end) {
|
|
22627
|
+
let tag = reader.uint32();
|
|
22628
|
+
if (tag === error)
|
|
22629
|
+
break;
|
|
22630
|
+
switch (tag >>> 3) {
|
|
22631
|
+
case 1: {
|
|
22632
|
+
message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
|
|
22633
|
+
break;
|
|
22634
|
+
}
|
|
22635
|
+
case 2: {
|
|
22636
|
+
message.address = reader.string();
|
|
22637
|
+
break;
|
|
22638
|
+
}
|
|
22639
|
+
case 3: {
|
|
22640
|
+
message.property = reader.string();
|
|
22641
|
+
break;
|
|
22642
|
+
}
|
|
22643
|
+
case 4: {
|
|
22644
|
+
message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
|
|
22645
|
+
break;
|
|
22646
|
+
}
|
|
22647
|
+
default:
|
|
22648
|
+
reader.skipType(tag & 7);
|
|
22649
|
+
break;
|
|
22650
|
+
}
|
|
22651
|
+
}
|
|
22652
|
+
return message;
|
|
22653
|
+
};
|
|
22654
|
+
PropertySetRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
22655
|
+
if (!(reader instanceof $Reader))
|
|
22656
|
+
reader = new $Reader(reader);
|
|
22657
|
+
return this.decode(reader, reader.uint32());
|
|
22658
|
+
};
|
|
22659
|
+
PropertySetRequest.verify = function verify(message) {
|
|
22660
|
+
if (typeof message !== "object" || message === null)
|
|
22661
|
+
return "object expected";
|
|
22662
|
+
if (message.domain != null && message.hasOwnProperty("domain")) {
|
|
22663
|
+
let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
|
|
22664
|
+
if (error)
|
|
22665
|
+
return "domain." + error;
|
|
22666
|
+
}
|
|
22667
|
+
if (message.address != null && message.hasOwnProperty("address")) {
|
|
22668
|
+
if (!$util.isString(message.address))
|
|
22669
|
+
return "address: string expected";
|
|
22670
|
+
}
|
|
22671
|
+
if (message.property != null && message.hasOwnProperty("property")) {
|
|
22672
|
+
if (!$util.isString(message.property))
|
|
22673
|
+
return "property: string expected";
|
|
22674
|
+
}
|
|
22675
|
+
if (message.value != null && message.hasOwnProperty("value")) {
|
|
22676
|
+
let error = $root.sesame.v1.common.PropValue.verify(message.value);
|
|
22677
|
+
if (error)
|
|
22678
|
+
return "value." + error;
|
|
22679
|
+
}
|
|
22680
|
+
return null;
|
|
22681
|
+
};
|
|
22682
|
+
PropertySetRequest.fromObject = function fromObject(object) {
|
|
22683
|
+
if (object instanceof $root.sesame.v1.compositor.PropertySetRequest)
|
|
22129
22684
|
return object;
|
|
22130
22685
|
let message = new $root.sesame.v1.compositor.PropertySetRequest();
|
|
22131
22686
|
if (object.domain != null) {
|
|
@@ -22171,100 +22726,879 @@ var sesame = $root.sesame = (() => {
|
|
|
22171
22726
|
if (typeUrlPrefix === void 0) {
|
|
22172
22727
|
typeUrlPrefix = "type.googleapis.com";
|
|
22173
22728
|
}
|
|
22174
|
-
return typeUrlPrefix + "/sesame.v1.compositor.PropertySetRequest";
|
|
22729
|
+
return typeUrlPrefix + "/sesame.v1.compositor.PropertySetRequest";
|
|
22730
|
+
};
|
|
22731
|
+
return PropertySetRequest;
|
|
22732
|
+
}();
|
|
22733
|
+
compositor.PropertyAnimateRequest = function() {
|
|
22734
|
+
function PropertyAnimateRequest(properties) {
|
|
22735
|
+
this.keyframes = [];
|
|
22736
|
+
if (properties) {
|
|
22737
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22738
|
+
if (properties[keys[i]] != null)
|
|
22739
|
+
this[keys[i]] = properties[keys[i]];
|
|
22740
|
+
}
|
|
22741
|
+
}
|
|
22742
|
+
PropertyAnimateRequest.prototype.domain = null;
|
|
22743
|
+
PropertyAnimateRequest.prototype.address = "";
|
|
22744
|
+
PropertyAnimateRequest.prototype.property = "";
|
|
22745
|
+
PropertyAnimateRequest.prototype.keyframes = $util.emptyArray;
|
|
22746
|
+
PropertyAnimateRequest.prototype.before = 0;
|
|
22747
|
+
PropertyAnimateRequest.prototype.after = 0;
|
|
22748
|
+
PropertyAnimateRequest.create = function create(properties) {
|
|
22749
|
+
return new PropertyAnimateRequest(properties);
|
|
22750
|
+
};
|
|
22751
|
+
PropertyAnimateRequest.encode = function encode(message, writer) {
|
|
22752
|
+
if (!writer)
|
|
22753
|
+
writer = $Writer.create();
|
|
22754
|
+
if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
|
|
22755
|
+
$root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
|
|
22756
|
+
/* id 1, wireType 2 =*/
|
|
22757
|
+
10
|
|
22758
|
+
).fork()).ldelim();
|
|
22759
|
+
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
22760
|
+
writer.uint32(
|
|
22761
|
+
/* id 2, wireType 2 =*/
|
|
22762
|
+
18
|
|
22763
|
+
).string(message.address);
|
|
22764
|
+
if (message.property != null && Object.hasOwnProperty.call(message, "property"))
|
|
22765
|
+
writer.uint32(
|
|
22766
|
+
/* id 3, wireType 2 =*/
|
|
22767
|
+
26
|
|
22768
|
+
).string(message.property);
|
|
22769
|
+
if (message.keyframes != null && message.keyframes.length)
|
|
22770
|
+
for (let i = 0; i < message.keyframes.length; ++i)
|
|
22771
|
+
$root.sesame.v1.compositor.KeyFrame.encode(message.keyframes[i], writer.uint32(
|
|
22772
|
+
/* id 4, wireType 2 =*/
|
|
22773
|
+
34
|
|
22774
|
+
).fork()).ldelim();
|
|
22775
|
+
if (message.before != null && Object.hasOwnProperty.call(message, "before"))
|
|
22776
|
+
writer.uint32(
|
|
22777
|
+
/* id 5, wireType 0 =*/
|
|
22778
|
+
40
|
|
22779
|
+
).int32(message.before);
|
|
22780
|
+
if (message.after != null && Object.hasOwnProperty.call(message, "after"))
|
|
22781
|
+
writer.uint32(
|
|
22782
|
+
/* id 6, wireType 0 =*/
|
|
22783
|
+
48
|
|
22784
|
+
).int32(message.after);
|
|
22785
|
+
return writer;
|
|
22786
|
+
};
|
|
22787
|
+
PropertyAnimateRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22788
|
+
return this.encode(message, writer).ldelim();
|
|
22789
|
+
};
|
|
22790
|
+
PropertyAnimateRequest.decode = function decode(reader, length, error) {
|
|
22791
|
+
if (!(reader instanceof $Reader))
|
|
22792
|
+
reader = $Reader.create(reader);
|
|
22793
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
|
|
22794
|
+
while (reader.pos < end) {
|
|
22795
|
+
let tag = reader.uint32();
|
|
22796
|
+
if (tag === error)
|
|
22797
|
+
break;
|
|
22798
|
+
switch (tag >>> 3) {
|
|
22799
|
+
case 1: {
|
|
22800
|
+
message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
|
|
22801
|
+
break;
|
|
22802
|
+
}
|
|
22803
|
+
case 2: {
|
|
22804
|
+
message.address = reader.string();
|
|
22805
|
+
break;
|
|
22806
|
+
}
|
|
22807
|
+
case 3: {
|
|
22808
|
+
message.property = reader.string();
|
|
22809
|
+
break;
|
|
22810
|
+
}
|
|
22811
|
+
case 4: {
|
|
22812
|
+
if (!(message.keyframes && message.keyframes.length))
|
|
22813
|
+
message.keyframes = [];
|
|
22814
|
+
message.keyframes.push($root.sesame.v1.compositor.KeyFrame.decode(reader, reader.uint32()));
|
|
22815
|
+
break;
|
|
22816
|
+
}
|
|
22817
|
+
case 5: {
|
|
22818
|
+
message.before = reader.int32();
|
|
22819
|
+
break;
|
|
22820
|
+
}
|
|
22821
|
+
case 6: {
|
|
22822
|
+
message.after = reader.int32();
|
|
22823
|
+
break;
|
|
22824
|
+
}
|
|
22825
|
+
default:
|
|
22826
|
+
reader.skipType(tag & 7);
|
|
22827
|
+
break;
|
|
22828
|
+
}
|
|
22829
|
+
}
|
|
22830
|
+
return message;
|
|
22831
|
+
};
|
|
22832
|
+
PropertyAnimateRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
22833
|
+
if (!(reader instanceof $Reader))
|
|
22834
|
+
reader = new $Reader(reader);
|
|
22835
|
+
return this.decode(reader, reader.uint32());
|
|
22836
|
+
};
|
|
22837
|
+
PropertyAnimateRequest.verify = function verify(message) {
|
|
22838
|
+
if (typeof message !== "object" || message === null)
|
|
22839
|
+
return "object expected";
|
|
22840
|
+
if (message.domain != null && message.hasOwnProperty("domain")) {
|
|
22841
|
+
let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
|
|
22842
|
+
if (error)
|
|
22843
|
+
return "domain." + error;
|
|
22844
|
+
}
|
|
22845
|
+
if (message.address != null && message.hasOwnProperty("address")) {
|
|
22846
|
+
if (!$util.isString(message.address))
|
|
22847
|
+
return "address: string expected";
|
|
22848
|
+
}
|
|
22849
|
+
if (message.property != null && message.hasOwnProperty("property")) {
|
|
22850
|
+
if (!$util.isString(message.property))
|
|
22851
|
+
return "property: string expected";
|
|
22852
|
+
}
|
|
22853
|
+
if (message.keyframes != null && message.hasOwnProperty("keyframes")) {
|
|
22854
|
+
if (!Array.isArray(message.keyframes))
|
|
22855
|
+
return "keyframes: array expected";
|
|
22856
|
+
for (let i = 0; i < message.keyframes.length; ++i) {
|
|
22857
|
+
let error = $root.sesame.v1.compositor.KeyFrame.verify(message.keyframes[i]);
|
|
22858
|
+
if (error)
|
|
22859
|
+
return "keyframes." + error;
|
|
22860
|
+
}
|
|
22861
|
+
}
|
|
22862
|
+
if (message.before != null && message.hasOwnProperty("before"))
|
|
22863
|
+
switch (message.before) {
|
|
22864
|
+
default:
|
|
22865
|
+
return "before: enum value expected";
|
|
22866
|
+
case 0:
|
|
22867
|
+
case 1:
|
|
22868
|
+
case 2:
|
|
22869
|
+
case 3:
|
|
22870
|
+
break;
|
|
22871
|
+
}
|
|
22872
|
+
if (message.after != null && message.hasOwnProperty("after"))
|
|
22873
|
+
switch (message.after) {
|
|
22874
|
+
default:
|
|
22875
|
+
return "after: enum value expected";
|
|
22876
|
+
case 0:
|
|
22877
|
+
case 1:
|
|
22878
|
+
case 2:
|
|
22879
|
+
case 3:
|
|
22880
|
+
break;
|
|
22881
|
+
}
|
|
22882
|
+
return null;
|
|
22883
|
+
};
|
|
22884
|
+
PropertyAnimateRequest.fromObject = function fromObject(object) {
|
|
22885
|
+
if (object instanceof $root.sesame.v1.compositor.PropertyAnimateRequest)
|
|
22886
|
+
return object;
|
|
22887
|
+
let message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
|
|
22888
|
+
if (object.domain != null) {
|
|
22889
|
+
if (typeof object.domain !== "object")
|
|
22890
|
+
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.domain: object expected");
|
|
22891
|
+
message.domain = $root.sesame.v1.common.PropertyDomain.fromObject(object.domain);
|
|
22892
|
+
}
|
|
22893
|
+
if (object.address != null)
|
|
22894
|
+
message.address = String(object.address);
|
|
22895
|
+
if (object.property != null)
|
|
22896
|
+
message.property = String(object.property);
|
|
22897
|
+
if (object.keyframes) {
|
|
22898
|
+
if (!Array.isArray(object.keyframes))
|
|
22899
|
+
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: array expected");
|
|
22900
|
+
message.keyframes = [];
|
|
22901
|
+
for (let i = 0; i < object.keyframes.length; ++i) {
|
|
22902
|
+
if (typeof object.keyframes[i] !== "object")
|
|
22903
|
+
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: object expected");
|
|
22904
|
+
message.keyframes[i] = $root.sesame.v1.compositor.KeyFrame.fromObject(object.keyframes[i]);
|
|
22905
|
+
}
|
|
22906
|
+
}
|
|
22907
|
+
switch (object.before) {
|
|
22908
|
+
default:
|
|
22909
|
+
if (typeof object.before === "number") {
|
|
22910
|
+
message.before = object.before;
|
|
22911
|
+
break;
|
|
22912
|
+
}
|
|
22913
|
+
break;
|
|
22914
|
+
case "ANIM_MODE_CONSTANT":
|
|
22915
|
+
case 0:
|
|
22916
|
+
message.before = 0;
|
|
22917
|
+
break;
|
|
22918
|
+
case "ANIM_MODE_STATE_FROM":
|
|
22919
|
+
case 1:
|
|
22920
|
+
message.before = 1;
|
|
22921
|
+
break;
|
|
22922
|
+
case "ANIM_MODE_LOOP":
|
|
22923
|
+
case 2:
|
|
22924
|
+
message.before = 2;
|
|
22925
|
+
break;
|
|
22926
|
+
case "ANIM_MODE_BOUNCE":
|
|
22927
|
+
case 3:
|
|
22928
|
+
message.before = 3;
|
|
22929
|
+
break;
|
|
22930
|
+
}
|
|
22931
|
+
switch (object.after) {
|
|
22932
|
+
default:
|
|
22933
|
+
if (typeof object.after === "number") {
|
|
22934
|
+
message.after = object.after;
|
|
22935
|
+
break;
|
|
22936
|
+
}
|
|
22937
|
+
break;
|
|
22938
|
+
case "ANIM_MODE_CONSTANT":
|
|
22939
|
+
case 0:
|
|
22940
|
+
message.after = 0;
|
|
22941
|
+
break;
|
|
22942
|
+
case "ANIM_MODE_STATE_FROM":
|
|
22943
|
+
case 1:
|
|
22944
|
+
message.after = 1;
|
|
22945
|
+
break;
|
|
22946
|
+
case "ANIM_MODE_LOOP":
|
|
22947
|
+
case 2:
|
|
22948
|
+
message.after = 2;
|
|
22949
|
+
break;
|
|
22950
|
+
case "ANIM_MODE_BOUNCE":
|
|
22951
|
+
case 3:
|
|
22952
|
+
message.after = 3;
|
|
22953
|
+
break;
|
|
22954
|
+
}
|
|
22955
|
+
return message;
|
|
22956
|
+
};
|
|
22957
|
+
PropertyAnimateRequest.toObject = function toObject(message, options) {
|
|
22958
|
+
if (!options)
|
|
22959
|
+
options = {};
|
|
22960
|
+
let object = {};
|
|
22961
|
+
if (options.arrays || options.defaults)
|
|
22962
|
+
object.keyframes = [];
|
|
22963
|
+
if (options.defaults) {
|
|
22964
|
+
object.domain = null;
|
|
22965
|
+
object.address = "";
|
|
22966
|
+
object.property = "";
|
|
22967
|
+
object.before = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
|
|
22968
|
+
object.after = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
|
|
22969
|
+
}
|
|
22970
|
+
if (message.domain != null && message.hasOwnProperty("domain"))
|
|
22971
|
+
object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
|
|
22972
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
22973
|
+
object.address = message.address;
|
|
22974
|
+
if (message.property != null && message.hasOwnProperty("property"))
|
|
22975
|
+
object.property = message.property;
|
|
22976
|
+
if (message.keyframes && message.keyframes.length) {
|
|
22977
|
+
object.keyframes = [];
|
|
22978
|
+
for (let j = 0; j < message.keyframes.length; ++j)
|
|
22979
|
+
object.keyframes[j] = $root.sesame.v1.compositor.KeyFrame.toObject(message.keyframes[j], options);
|
|
22980
|
+
}
|
|
22981
|
+
if (message.before != null && message.hasOwnProperty("before"))
|
|
22982
|
+
object.before = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] === void 0 ? message.before : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] : message.before;
|
|
22983
|
+
if (message.after != null && message.hasOwnProperty("after"))
|
|
22984
|
+
object.after = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] === void 0 ? message.after : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] : message.after;
|
|
22985
|
+
return object;
|
|
22986
|
+
};
|
|
22987
|
+
PropertyAnimateRequest.prototype.toJSON = function toJSON() {
|
|
22988
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
22989
|
+
};
|
|
22990
|
+
PropertyAnimateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
22991
|
+
if (typeUrlPrefix === void 0) {
|
|
22992
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
22993
|
+
}
|
|
22994
|
+
return typeUrlPrefix + "/sesame.v1.compositor.PropertyAnimateRequest";
|
|
22995
|
+
};
|
|
22996
|
+
return PropertyAnimateRequest;
|
|
22997
|
+
}();
|
|
22998
|
+
return compositor;
|
|
22999
|
+
}();
|
|
23000
|
+
v1.sidedata = function() {
|
|
23001
|
+
const sidedata = {};
|
|
23002
|
+
sidedata.AtlasEntry = function() {
|
|
23003
|
+
function AtlasEntry(properties) {
|
|
23004
|
+
if (properties) {
|
|
23005
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23006
|
+
if (properties[keys[i]] != null)
|
|
23007
|
+
this[keys[i]] = properties[keys[i]];
|
|
23008
|
+
}
|
|
23009
|
+
}
|
|
23010
|
+
AtlasEntry.prototype.sourceId = "";
|
|
23011
|
+
AtlasEntry.prototype.x = 0;
|
|
23012
|
+
AtlasEntry.prototype.y = 0;
|
|
23013
|
+
AtlasEntry.prototype.width = 0;
|
|
23014
|
+
AtlasEntry.prototype.height = 0;
|
|
23015
|
+
AtlasEntry.prototype.sourceWidth = 0;
|
|
23016
|
+
AtlasEntry.prototype.sourceHeight = 0;
|
|
23017
|
+
AtlasEntry.create = function create(properties) {
|
|
23018
|
+
return new AtlasEntry(properties);
|
|
23019
|
+
};
|
|
23020
|
+
AtlasEntry.encode = function encode(message, writer) {
|
|
23021
|
+
if (!writer)
|
|
23022
|
+
writer = $Writer.create();
|
|
23023
|
+
if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
|
|
23024
|
+
writer.uint32(
|
|
23025
|
+
/* id 1, wireType 2 =*/
|
|
23026
|
+
10
|
|
23027
|
+
).string(message.sourceId);
|
|
23028
|
+
if (message.x != null && Object.hasOwnProperty.call(message, "x"))
|
|
23029
|
+
writer.uint32(
|
|
23030
|
+
/* id 2, wireType 0 =*/
|
|
23031
|
+
16
|
|
23032
|
+
).uint32(message.x);
|
|
23033
|
+
if (message.y != null && Object.hasOwnProperty.call(message, "y"))
|
|
23034
|
+
writer.uint32(
|
|
23035
|
+
/* id 3, wireType 0 =*/
|
|
23036
|
+
24
|
|
23037
|
+
).uint32(message.y);
|
|
23038
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
23039
|
+
writer.uint32(
|
|
23040
|
+
/* id 4, wireType 0 =*/
|
|
23041
|
+
32
|
|
23042
|
+
).uint32(message.width);
|
|
23043
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
23044
|
+
writer.uint32(
|
|
23045
|
+
/* id 5, wireType 0 =*/
|
|
23046
|
+
40
|
|
23047
|
+
).uint32(message.height);
|
|
23048
|
+
if (message.sourceWidth != null && Object.hasOwnProperty.call(message, "sourceWidth"))
|
|
23049
|
+
writer.uint32(
|
|
23050
|
+
/* id 6, wireType 0 =*/
|
|
23051
|
+
48
|
|
23052
|
+
).uint32(message.sourceWidth);
|
|
23053
|
+
if (message.sourceHeight != null && Object.hasOwnProperty.call(message, "sourceHeight"))
|
|
23054
|
+
writer.uint32(
|
|
23055
|
+
/* id 7, wireType 0 =*/
|
|
23056
|
+
56
|
|
23057
|
+
).uint32(message.sourceHeight);
|
|
23058
|
+
return writer;
|
|
23059
|
+
};
|
|
23060
|
+
AtlasEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23061
|
+
return this.encode(message, writer).ldelim();
|
|
23062
|
+
};
|
|
23063
|
+
AtlasEntry.decode = function decode(reader, length, error) {
|
|
23064
|
+
if (!(reader instanceof $Reader))
|
|
23065
|
+
reader = $Reader.create(reader);
|
|
23066
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.AtlasEntry();
|
|
23067
|
+
while (reader.pos < end) {
|
|
23068
|
+
let tag = reader.uint32();
|
|
23069
|
+
if (tag === error)
|
|
23070
|
+
break;
|
|
23071
|
+
switch (tag >>> 3) {
|
|
23072
|
+
case 1: {
|
|
23073
|
+
message.sourceId = reader.string();
|
|
23074
|
+
break;
|
|
23075
|
+
}
|
|
23076
|
+
case 2: {
|
|
23077
|
+
message.x = reader.uint32();
|
|
23078
|
+
break;
|
|
23079
|
+
}
|
|
23080
|
+
case 3: {
|
|
23081
|
+
message.y = reader.uint32();
|
|
23082
|
+
break;
|
|
23083
|
+
}
|
|
23084
|
+
case 4: {
|
|
23085
|
+
message.width = reader.uint32();
|
|
23086
|
+
break;
|
|
23087
|
+
}
|
|
23088
|
+
case 5: {
|
|
23089
|
+
message.height = reader.uint32();
|
|
23090
|
+
break;
|
|
23091
|
+
}
|
|
23092
|
+
case 6: {
|
|
23093
|
+
message.sourceWidth = reader.uint32();
|
|
23094
|
+
break;
|
|
23095
|
+
}
|
|
23096
|
+
case 7: {
|
|
23097
|
+
message.sourceHeight = reader.uint32();
|
|
23098
|
+
break;
|
|
23099
|
+
}
|
|
23100
|
+
default:
|
|
23101
|
+
reader.skipType(tag & 7);
|
|
23102
|
+
break;
|
|
23103
|
+
}
|
|
23104
|
+
}
|
|
23105
|
+
return message;
|
|
23106
|
+
};
|
|
23107
|
+
AtlasEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
23108
|
+
if (!(reader instanceof $Reader))
|
|
23109
|
+
reader = new $Reader(reader);
|
|
23110
|
+
return this.decode(reader, reader.uint32());
|
|
23111
|
+
};
|
|
23112
|
+
AtlasEntry.verify = function verify(message) {
|
|
23113
|
+
if (typeof message !== "object" || message === null)
|
|
23114
|
+
return "object expected";
|
|
23115
|
+
if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
|
|
23116
|
+
if (!$util.isString(message.sourceId))
|
|
23117
|
+
return "sourceId: string expected";
|
|
23118
|
+
}
|
|
23119
|
+
if (message.x != null && message.hasOwnProperty("x")) {
|
|
23120
|
+
if (!$util.isInteger(message.x))
|
|
23121
|
+
return "x: integer expected";
|
|
23122
|
+
}
|
|
23123
|
+
if (message.y != null && message.hasOwnProperty("y")) {
|
|
23124
|
+
if (!$util.isInteger(message.y))
|
|
23125
|
+
return "y: integer expected";
|
|
23126
|
+
}
|
|
23127
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
23128
|
+
if (!$util.isInteger(message.width))
|
|
23129
|
+
return "width: integer expected";
|
|
23130
|
+
}
|
|
23131
|
+
if (message.height != null && message.hasOwnProperty("height")) {
|
|
23132
|
+
if (!$util.isInteger(message.height))
|
|
23133
|
+
return "height: integer expected";
|
|
23134
|
+
}
|
|
23135
|
+
if (message.sourceWidth != null && message.hasOwnProperty("sourceWidth")) {
|
|
23136
|
+
if (!$util.isInteger(message.sourceWidth))
|
|
23137
|
+
return "sourceWidth: integer expected";
|
|
23138
|
+
}
|
|
23139
|
+
if (message.sourceHeight != null && message.hasOwnProperty("sourceHeight")) {
|
|
23140
|
+
if (!$util.isInteger(message.sourceHeight))
|
|
23141
|
+
return "sourceHeight: integer expected";
|
|
23142
|
+
}
|
|
23143
|
+
return null;
|
|
23144
|
+
};
|
|
23145
|
+
AtlasEntry.fromObject = function fromObject(object) {
|
|
23146
|
+
if (object instanceof $root.sesame.v1.sidedata.AtlasEntry)
|
|
23147
|
+
return object;
|
|
23148
|
+
let message = new $root.sesame.v1.sidedata.AtlasEntry();
|
|
23149
|
+
if (object.sourceId != null)
|
|
23150
|
+
message.sourceId = String(object.sourceId);
|
|
23151
|
+
if (object.x != null)
|
|
23152
|
+
message.x = object.x >>> 0;
|
|
23153
|
+
if (object.y != null)
|
|
23154
|
+
message.y = object.y >>> 0;
|
|
23155
|
+
if (object.width != null)
|
|
23156
|
+
message.width = object.width >>> 0;
|
|
23157
|
+
if (object.height != null)
|
|
23158
|
+
message.height = object.height >>> 0;
|
|
23159
|
+
if (object.sourceWidth != null)
|
|
23160
|
+
message.sourceWidth = object.sourceWidth >>> 0;
|
|
23161
|
+
if (object.sourceHeight != null)
|
|
23162
|
+
message.sourceHeight = object.sourceHeight >>> 0;
|
|
23163
|
+
return message;
|
|
23164
|
+
};
|
|
23165
|
+
AtlasEntry.toObject = function toObject(message, options) {
|
|
23166
|
+
if (!options)
|
|
23167
|
+
options = {};
|
|
23168
|
+
let object = {};
|
|
23169
|
+
if (options.defaults) {
|
|
23170
|
+
object.sourceId = "";
|
|
23171
|
+
object.x = 0;
|
|
23172
|
+
object.y = 0;
|
|
23173
|
+
object.width = 0;
|
|
23174
|
+
object.height = 0;
|
|
23175
|
+
object.sourceWidth = 0;
|
|
23176
|
+
object.sourceHeight = 0;
|
|
23177
|
+
}
|
|
23178
|
+
if (message.sourceId != null && message.hasOwnProperty("sourceId"))
|
|
23179
|
+
object.sourceId = message.sourceId;
|
|
23180
|
+
if (message.x != null && message.hasOwnProperty("x"))
|
|
23181
|
+
object.x = message.x;
|
|
23182
|
+
if (message.y != null && message.hasOwnProperty("y"))
|
|
23183
|
+
object.y = message.y;
|
|
23184
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
23185
|
+
object.width = message.width;
|
|
23186
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
23187
|
+
object.height = message.height;
|
|
23188
|
+
if (message.sourceWidth != null && message.hasOwnProperty("sourceWidth"))
|
|
23189
|
+
object.sourceWidth = message.sourceWidth;
|
|
23190
|
+
if (message.sourceHeight != null && message.hasOwnProperty("sourceHeight"))
|
|
23191
|
+
object.sourceHeight = message.sourceHeight;
|
|
23192
|
+
return object;
|
|
23193
|
+
};
|
|
23194
|
+
AtlasEntry.prototype.toJSON = function toJSON() {
|
|
23195
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23196
|
+
};
|
|
23197
|
+
AtlasEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
23198
|
+
if (typeUrlPrefix === void 0) {
|
|
23199
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
23200
|
+
}
|
|
23201
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.AtlasEntry";
|
|
23202
|
+
};
|
|
23203
|
+
return AtlasEntry;
|
|
23204
|
+
}();
|
|
23205
|
+
sidedata.AtlasLayout = function() {
|
|
23206
|
+
function AtlasLayout(properties) {
|
|
23207
|
+
this.entries = [];
|
|
23208
|
+
if (properties) {
|
|
23209
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23210
|
+
if (properties[keys[i]] != null)
|
|
23211
|
+
this[keys[i]] = properties[keys[i]];
|
|
23212
|
+
}
|
|
23213
|
+
}
|
|
23214
|
+
AtlasLayout.prototype.width = 0;
|
|
23215
|
+
AtlasLayout.prototype.height = 0;
|
|
23216
|
+
AtlasLayout.prototype.entries = $util.emptyArray;
|
|
23217
|
+
AtlasLayout.create = function create(properties) {
|
|
23218
|
+
return new AtlasLayout(properties);
|
|
23219
|
+
};
|
|
23220
|
+
AtlasLayout.encode = function encode(message, writer) {
|
|
23221
|
+
if (!writer)
|
|
23222
|
+
writer = $Writer.create();
|
|
23223
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
23224
|
+
writer.uint32(
|
|
23225
|
+
/* id 1, wireType 0 =*/
|
|
23226
|
+
8
|
|
23227
|
+
).uint32(message.width);
|
|
23228
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
23229
|
+
writer.uint32(
|
|
23230
|
+
/* id 2, wireType 0 =*/
|
|
23231
|
+
16
|
|
23232
|
+
).uint32(message.height);
|
|
23233
|
+
if (message.entries != null && message.entries.length)
|
|
23234
|
+
for (let i = 0; i < message.entries.length; ++i)
|
|
23235
|
+
$root.sesame.v1.sidedata.AtlasEntry.encode(message.entries[i], writer.uint32(
|
|
23236
|
+
/* id 3, wireType 2 =*/
|
|
23237
|
+
26
|
|
23238
|
+
).fork()).ldelim();
|
|
23239
|
+
return writer;
|
|
23240
|
+
};
|
|
23241
|
+
AtlasLayout.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23242
|
+
return this.encode(message, writer).ldelim();
|
|
23243
|
+
};
|
|
23244
|
+
AtlasLayout.decode = function decode(reader, length, error) {
|
|
23245
|
+
if (!(reader instanceof $Reader))
|
|
23246
|
+
reader = $Reader.create(reader);
|
|
23247
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.AtlasLayout();
|
|
23248
|
+
while (reader.pos < end) {
|
|
23249
|
+
let tag = reader.uint32();
|
|
23250
|
+
if (tag === error)
|
|
23251
|
+
break;
|
|
23252
|
+
switch (tag >>> 3) {
|
|
23253
|
+
case 1: {
|
|
23254
|
+
message.width = reader.uint32();
|
|
23255
|
+
break;
|
|
23256
|
+
}
|
|
23257
|
+
case 2: {
|
|
23258
|
+
message.height = reader.uint32();
|
|
23259
|
+
break;
|
|
23260
|
+
}
|
|
23261
|
+
case 3: {
|
|
23262
|
+
if (!(message.entries && message.entries.length))
|
|
23263
|
+
message.entries = [];
|
|
23264
|
+
message.entries.push($root.sesame.v1.sidedata.AtlasEntry.decode(reader, reader.uint32()));
|
|
23265
|
+
break;
|
|
23266
|
+
}
|
|
23267
|
+
default:
|
|
23268
|
+
reader.skipType(tag & 7);
|
|
23269
|
+
break;
|
|
23270
|
+
}
|
|
23271
|
+
}
|
|
23272
|
+
return message;
|
|
23273
|
+
};
|
|
23274
|
+
AtlasLayout.decodeDelimited = function decodeDelimited(reader) {
|
|
23275
|
+
if (!(reader instanceof $Reader))
|
|
23276
|
+
reader = new $Reader(reader);
|
|
23277
|
+
return this.decode(reader, reader.uint32());
|
|
23278
|
+
};
|
|
23279
|
+
AtlasLayout.verify = function verify(message) {
|
|
23280
|
+
if (typeof message !== "object" || message === null)
|
|
23281
|
+
return "object expected";
|
|
23282
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
23283
|
+
if (!$util.isInteger(message.width))
|
|
23284
|
+
return "width: integer expected";
|
|
23285
|
+
}
|
|
23286
|
+
if (message.height != null && message.hasOwnProperty("height")) {
|
|
23287
|
+
if (!$util.isInteger(message.height))
|
|
23288
|
+
return "height: integer expected";
|
|
23289
|
+
}
|
|
23290
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
23291
|
+
if (!Array.isArray(message.entries))
|
|
23292
|
+
return "entries: array expected";
|
|
23293
|
+
for (let i = 0; i < message.entries.length; ++i) {
|
|
23294
|
+
let error = $root.sesame.v1.sidedata.AtlasEntry.verify(message.entries[i]);
|
|
23295
|
+
if (error)
|
|
23296
|
+
return "entries." + error;
|
|
23297
|
+
}
|
|
23298
|
+
}
|
|
23299
|
+
return null;
|
|
23300
|
+
};
|
|
23301
|
+
AtlasLayout.fromObject = function fromObject(object) {
|
|
23302
|
+
if (object instanceof $root.sesame.v1.sidedata.AtlasLayout)
|
|
23303
|
+
return object;
|
|
23304
|
+
let message = new $root.sesame.v1.sidedata.AtlasLayout();
|
|
23305
|
+
if (object.width != null)
|
|
23306
|
+
message.width = object.width >>> 0;
|
|
23307
|
+
if (object.height != null)
|
|
23308
|
+
message.height = object.height >>> 0;
|
|
23309
|
+
if (object.entries) {
|
|
23310
|
+
if (!Array.isArray(object.entries))
|
|
23311
|
+
throw TypeError(".sesame.v1.sidedata.AtlasLayout.entries: array expected");
|
|
23312
|
+
message.entries = [];
|
|
23313
|
+
for (let i = 0; i < object.entries.length; ++i) {
|
|
23314
|
+
if (typeof object.entries[i] !== "object")
|
|
23315
|
+
throw TypeError(".sesame.v1.sidedata.AtlasLayout.entries: object expected");
|
|
23316
|
+
message.entries[i] = $root.sesame.v1.sidedata.AtlasEntry.fromObject(object.entries[i]);
|
|
23317
|
+
}
|
|
23318
|
+
}
|
|
23319
|
+
return message;
|
|
23320
|
+
};
|
|
23321
|
+
AtlasLayout.toObject = function toObject(message, options) {
|
|
23322
|
+
if (!options)
|
|
23323
|
+
options = {};
|
|
23324
|
+
let object = {};
|
|
23325
|
+
if (options.arrays || options.defaults)
|
|
23326
|
+
object.entries = [];
|
|
23327
|
+
if (options.defaults) {
|
|
23328
|
+
object.width = 0;
|
|
23329
|
+
object.height = 0;
|
|
23330
|
+
}
|
|
23331
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
23332
|
+
object.width = message.width;
|
|
23333
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
23334
|
+
object.height = message.height;
|
|
23335
|
+
if (message.entries && message.entries.length) {
|
|
23336
|
+
object.entries = [];
|
|
23337
|
+
for (let j = 0; j < message.entries.length; ++j)
|
|
23338
|
+
object.entries[j] = $root.sesame.v1.sidedata.AtlasEntry.toObject(message.entries[j], options);
|
|
23339
|
+
}
|
|
23340
|
+
return object;
|
|
23341
|
+
};
|
|
23342
|
+
AtlasLayout.prototype.toJSON = function toJSON() {
|
|
23343
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23344
|
+
};
|
|
23345
|
+
AtlasLayout.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
23346
|
+
if (typeUrlPrefix === void 0) {
|
|
23347
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
23348
|
+
}
|
|
23349
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.AtlasLayout";
|
|
23350
|
+
};
|
|
23351
|
+
return AtlasLayout;
|
|
23352
|
+
}();
|
|
23353
|
+
sidedata.SideData = function() {
|
|
23354
|
+
function SideData2(properties) {
|
|
23355
|
+
if (properties) {
|
|
23356
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23357
|
+
if (properties[keys[i]] != null)
|
|
23358
|
+
this[keys[i]] = properties[keys[i]];
|
|
23359
|
+
}
|
|
23360
|
+
}
|
|
23361
|
+
SideData2.prototype.id = "";
|
|
23362
|
+
SideData2.prototype.version = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
23363
|
+
SideData2.prototype.atlas = null;
|
|
23364
|
+
SideData2.prototype.json = null;
|
|
23365
|
+
SideData2.prototype.binary = null;
|
|
23366
|
+
let $oneOfFields;
|
|
23367
|
+
Object.defineProperty(SideData2.prototype, "payload", {
|
|
23368
|
+
get: $util.oneOfGetter($oneOfFields = ["atlas", "json", "binary"]),
|
|
23369
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23370
|
+
});
|
|
23371
|
+
SideData2.create = function create(properties) {
|
|
23372
|
+
return new SideData2(properties);
|
|
23373
|
+
};
|
|
23374
|
+
SideData2.encode = function encode(message, writer) {
|
|
23375
|
+
if (!writer)
|
|
23376
|
+
writer = $Writer.create();
|
|
23377
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
23378
|
+
writer.uint32(
|
|
23379
|
+
/* id 1, wireType 2 =*/
|
|
23380
|
+
10
|
|
23381
|
+
).string(message.id);
|
|
23382
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
23383
|
+
writer.uint32(
|
|
23384
|
+
/* id 2, wireType 0 =*/
|
|
23385
|
+
16
|
|
23386
|
+
).uint64(message.version);
|
|
23387
|
+
if (message.atlas != null && Object.hasOwnProperty.call(message, "atlas"))
|
|
23388
|
+
$root.sesame.v1.sidedata.AtlasLayout.encode(message.atlas, writer.uint32(
|
|
23389
|
+
/* id 10, wireType 2 =*/
|
|
23390
|
+
82
|
|
23391
|
+
).fork()).ldelim();
|
|
23392
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
23393
|
+
writer.uint32(
|
|
23394
|
+
/* id 20, wireType 2 =*/
|
|
23395
|
+
162
|
|
23396
|
+
).string(message.json);
|
|
23397
|
+
if (message.binary != null && Object.hasOwnProperty.call(message, "binary"))
|
|
23398
|
+
writer.uint32(
|
|
23399
|
+
/* id 21, wireType 2 =*/
|
|
23400
|
+
170
|
|
23401
|
+
).bytes(message.binary);
|
|
23402
|
+
return writer;
|
|
23403
|
+
};
|
|
23404
|
+
SideData2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23405
|
+
return this.encode(message, writer).ldelim();
|
|
23406
|
+
};
|
|
23407
|
+
SideData2.decode = function decode(reader, length, error) {
|
|
23408
|
+
if (!(reader instanceof $Reader))
|
|
23409
|
+
reader = $Reader.create(reader);
|
|
23410
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideData();
|
|
23411
|
+
while (reader.pos < end) {
|
|
23412
|
+
let tag = reader.uint32();
|
|
23413
|
+
if (tag === error)
|
|
23414
|
+
break;
|
|
23415
|
+
switch (tag >>> 3) {
|
|
23416
|
+
case 1: {
|
|
23417
|
+
message.id = reader.string();
|
|
23418
|
+
break;
|
|
23419
|
+
}
|
|
23420
|
+
case 2: {
|
|
23421
|
+
message.version = reader.uint64();
|
|
23422
|
+
break;
|
|
23423
|
+
}
|
|
23424
|
+
case 10: {
|
|
23425
|
+
message.atlas = $root.sesame.v1.sidedata.AtlasLayout.decode(reader, reader.uint32());
|
|
23426
|
+
break;
|
|
23427
|
+
}
|
|
23428
|
+
case 20: {
|
|
23429
|
+
message.json = reader.string();
|
|
23430
|
+
break;
|
|
23431
|
+
}
|
|
23432
|
+
case 21: {
|
|
23433
|
+
message.binary = reader.bytes();
|
|
23434
|
+
break;
|
|
23435
|
+
}
|
|
23436
|
+
default:
|
|
23437
|
+
reader.skipType(tag & 7);
|
|
23438
|
+
break;
|
|
23439
|
+
}
|
|
23440
|
+
}
|
|
23441
|
+
return message;
|
|
23442
|
+
};
|
|
23443
|
+
SideData2.decodeDelimited = function decodeDelimited(reader) {
|
|
23444
|
+
if (!(reader instanceof $Reader))
|
|
23445
|
+
reader = new $Reader(reader);
|
|
23446
|
+
return this.decode(reader, reader.uint32());
|
|
23447
|
+
};
|
|
23448
|
+
SideData2.verify = function verify(message) {
|
|
23449
|
+
if (typeof message !== "object" || message === null)
|
|
23450
|
+
return "object expected";
|
|
23451
|
+
let properties = {};
|
|
23452
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
23453
|
+
if (!$util.isString(message.id))
|
|
23454
|
+
return "id: string expected";
|
|
23455
|
+
}
|
|
23456
|
+
if (message.version != null && message.hasOwnProperty("version")) {
|
|
23457
|
+
if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
|
|
23458
|
+
return "version: integer|Long expected";
|
|
23459
|
+
}
|
|
23460
|
+
if (message.atlas != null && message.hasOwnProperty("atlas")) {
|
|
23461
|
+
properties.payload = 1;
|
|
23462
|
+
{
|
|
23463
|
+
let error = $root.sesame.v1.sidedata.AtlasLayout.verify(message.atlas);
|
|
23464
|
+
if (error)
|
|
23465
|
+
return "atlas." + error;
|
|
23466
|
+
}
|
|
23467
|
+
}
|
|
23468
|
+
if (message.json != null && message.hasOwnProperty("json")) {
|
|
23469
|
+
if (properties.payload === 1)
|
|
23470
|
+
return "payload: multiple values";
|
|
23471
|
+
properties.payload = 1;
|
|
23472
|
+
if (!$util.isString(message.json))
|
|
23473
|
+
return "json: string expected";
|
|
23474
|
+
}
|
|
23475
|
+
if (message.binary != null && message.hasOwnProperty("binary")) {
|
|
23476
|
+
if (properties.payload === 1)
|
|
23477
|
+
return "payload: multiple values";
|
|
23478
|
+
properties.payload = 1;
|
|
23479
|
+
if (!(message.binary && typeof message.binary.length === "number" || $util.isString(message.binary)))
|
|
23480
|
+
return "binary: buffer expected";
|
|
23481
|
+
}
|
|
23482
|
+
return null;
|
|
23483
|
+
};
|
|
23484
|
+
SideData2.fromObject = function fromObject(object) {
|
|
23485
|
+
if (object instanceof $root.sesame.v1.sidedata.SideData)
|
|
23486
|
+
return object;
|
|
23487
|
+
let message = new $root.sesame.v1.sidedata.SideData();
|
|
23488
|
+
if (object.id != null)
|
|
23489
|
+
message.id = String(object.id);
|
|
23490
|
+
if (object.version != null) {
|
|
23491
|
+
if ($util.Long)
|
|
23492
|
+
(message.version = $util.Long.fromValue(object.version)).unsigned = true;
|
|
23493
|
+
else if (typeof object.version === "string")
|
|
23494
|
+
message.version = parseInt(object.version, 10);
|
|
23495
|
+
else if (typeof object.version === "number")
|
|
23496
|
+
message.version = object.version;
|
|
23497
|
+
else if (typeof object.version === "object")
|
|
23498
|
+
message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
|
|
23499
|
+
}
|
|
23500
|
+
if (object.atlas != null) {
|
|
23501
|
+
if (typeof object.atlas !== "object")
|
|
23502
|
+
throw TypeError(".sesame.v1.sidedata.SideData.atlas: object expected");
|
|
23503
|
+
message.atlas = $root.sesame.v1.sidedata.AtlasLayout.fromObject(object.atlas);
|
|
23504
|
+
}
|
|
23505
|
+
if (object.json != null)
|
|
23506
|
+
message.json = String(object.json);
|
|
23507
|
+
if (object.binary != null) {
|
|
23508
|
+
if (typeof object.binary === "string")
|
|
23509
|
+
$util.base64.decode(object.binary, message.binary = $util.newBuffer($util.base64.length(object.binary)), 0);
|
|
23510
|
+
else if (object.binary.length >= 0)
|
|
23511
|
+
message.binary = object.binary;
|
|
23512
|
+
}
|
|
23513
|
+
return message;
|
|
23514
|
+
};
|
|
23515
|
+
SideData2.toObject = function toObject(message, options) {
|
|
23516
|
+
if (!options)
|
|
23517
|
+
options = {};
|
|
23518
|
+
let object = {};
|
|
23519
|
+
if (options.defaults) {
|
|
23520
|
+
object.id = "";
|
|
23521
|
+
if ($util.Long) {
|
|
23522
|
+
let long = new $util.Long(0, 0, true);
|
|
23523
|
+
object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
23524
|
+
} else
|
|
23525
|
+
object.version = options.longs === String ? "0" : 0;
|
|
23526
|
+
}
|
|
23527
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
23528
|
+
object.id = message.id;
|
|
23529
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
23530
|
+
if (typeof message.version === "number")
|
|
23531
|
+
object.version = options.longs === String ? String(message.version) : message.version;
|
|
23532
|
+
else
|
|
23533
|
+
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;
|
|
23534
|
+
if (message.atlas != null && message.hasOwnProperty("atlas")) {
|
|
23535
|
+
object.atlas = $root.sesame.v1.sidedata.AtlasLayout.toObject(message.atlas, options);
|
|
23536
|
+
if (options.oneofs)
|
|
23537
|
+
object.payload = "atlas";
|
|
23538
|
+
}
|
|
23539
|
+
if (message.json != null && message.hasOwnProperty("json")) {
|
|
23540
|
+
object.json = message.json;
|
|
23541
|
+
if (options.oneofs)
|
|
23542
|
+
object.payload = "json";
|
|
23543
|
+
}
|
|
23544
|
+
if (message.binary != null && message.hasOwnProperty("binary")) {
|
|
23545
|
+
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;
|
|
23546
|
+
if (options.oneofs)
|
|
23547
|
+
object.payload = "binary";
|
|
23548
|
+
}
|
|
23549
|
+
return object;
|
|
23550
|
+
};
|
|
23551
|
+
SideData2.prototype.toJSON = function toJSON() {
|
|
23552
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23553
|
+
};
|
|
23554
|
+
SideData2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
23555
|
+
if (typeUrlPrefix === void 0) {
|
|
23556
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
23557
|
+
}
|
|
23558
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.SideData";
|
|
22175
23559
|
};
|
|
22176
|
-
return
|
|
23560
|
+
return SideData2;
|
|
22177
23561
|
}();
|
|
22178
|
-
|
|
22179
|
-
function
|
|
22180
|
-
this.
|
|
23562
|
+
sidedata.SideDataSet = function() {
|
|
23563
|
+
function SideDataSet(properties) {
|
|
23564
|
+
this.entries = [];
|
|
22181
23565
|
if (properties) {
|
|
22182
23566
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22183
23567
|
if (properties[keys[i]] != null)
|
|
22184
23568
|
this[keys[i]] = properties[keys[i]];
|
|
22185
23569
|
}
|
|
22186
23570
|
}
|
|
22187
|
-
|
|
22188
|
-
|
|
22189
|
-
|
|
22190
|
-
PropertyAnimateRequest.prototype.keyframes = $util.emptyArray;
|
|
22191
|
-
PropertyAnimateRequest.prototype.before = 0;
|
|
22192
|
-
PropertyAnimateRequest.prototype.after = 0;
|
|
22193
|
-
PropertyAnimateRequest.create = function create(properties) {
|
|
22194
|
-
return new PropertyAnimateRequest(properties);
|
|
23571
|
+
SideDataSet.prototype.entries = $util.emptyArray;
|
|
23572
|
+
SideDataSet.create = function create(properties) {
|
|
23573
|
+
return new SideDataSet(properties);
|
|
22195
23574
|
};
|
|
22196
|
-
|
|
23575
|
+
SideDataSet.encode = function encode(message, writer) {
|
|
22197
23576
|
if (!writer)
|
|
22198
23577
|
writer = $Writer.create();
|
|
22199
|
-
if (message.
|
|
22200
|
-
|
|
22201
|
-
|
|
22202
|
-
|
|
22203
|
-
|
|
22204
|
-
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
22205
|
-
writer.uint32(
|
|
22206
|
-
/* id 2, wireType 2 =*/
|
|
22207
|
-
18
|
|
22208
|
-
).string(message.address);
|
|
22209
|
-
if (message.property != null && Object.hasOwnProperty.call(message, "property"))
|
|
22210
|
-
writer.uint32(
|
|
22211
|
-
/* id 3, wireType 2 =*/
|
|
22212
|
-
26
|
|
22213
|
-
).string(message.property);
|
|
22214
|
-
if (message.keyframes != null && message.keyframes.length)
|
|
22215
|
-
for (let i = 0; i < message.keyframes.length; ++i)
|
|
22216
|
-
$root.sesame.v1.compositor.KeyFrame.encode(message.keyframes[i], writer.uint32(
|
|
22217
|
-
/* id 4, wireType 2 =*/
|
|
22218
|
-
34
|
|
23578
|
+
if (message.entries != null && message.entries.length)
|
|
23579
|
+
for (let i = 0; i < message.entries.length; ++i)
|
|
23580
|
+
$root.sesame.v1.sidedata.SideData.encode(message.entries[i], writer.uint32(
|
|
23581
|
+
/* id 1, wireType 2 =*/
|
|
23582
|
+
10
|
|
22219
23583
|
).fork()).ldelim();
|
|
22220
|
-
if (message.before != null && Object.hasOwnProperty.call(message, "before"))
|
|
22221
|
-
writer.uint32(
|
|
22222
|
-
/* id 5, wireType 0 =*/
|
|
22223
|
-
40
|
|
22224
|
-
).int32(message.before);
|
|
22225
|
-
if (message.after != null && Object.hasOwnProperty.call(message, "after"))
|
|
22226
|
-
writer.uint32(
|
|
22227
|
-
/* id 6, wireType 0 =*/
|
|
22228
|
-
48
|
|
22229
|
-
).int32(message.after);
|
|
22230
23584
|
return writer;
|
|
22231
23585
|
};
|
|
22232
|
-
|
|
23586
|
+
SideDataSet.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22233
23587
|
return this.encode(message, writer).ldelim();
|
|
22234
23588
|
};
|
|
22235
|
-
|
|
23589
|
+
SideDataSet.decode = function decode(reader, length, error) {
|
|
22236
23590
|
if (!(reader instanceof $Reader))
|
|
22237
23591
|
reader = $Reader.create(reader);
|
|
22238
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.
|
|
23592
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideDataSet();
|
|
22239
23593
|
while (reader.pos < end) {
|
|
22240
23594
|
let tag = reader.uint32();
|
|
22241
23595
|
if (tag === error)
|
|
22242
23596
|
break;
|
|
22243
23597
|
switch (tag >>> 3) {
|
|
22244
23598
|
case 1: {
|
|
22245
|
-
message.
|
|
22246
|
-
|
|
22247
|
-
|
|
22248
|
-
case 2: {
|
|
22249
|
-
message.address = reader.string();
|
|
22250
|
-
break;
|
|
22251
|
-
}
|
|
22252
|
-
case 3: {
|
|
22253
|
-
message.property = reader.string();
|
|
22254
|
-
break;
|
|
22255
|
-
}
|
|
22256
|
-
case 4: {
|
|
22257
|
-
if (!(message.keyframes && message.keyframes.length))
|
|
22258
|
-
message.keyframes = [];
|
|
22259
|
-
message.keyframes.push($root.sesame.v1.compositor.KeyFrame.decode(reader, reader.uint32()));
|
|
22260
|
-
break;
|
|
22261
|
-
}
|
|
22262
|
-
case 5: {
|
|
22263
|
-
message.before = reader.int32();
|
|
22264
|
-
break;
|
|
22265
|
-
}
|
|
22266
|
-
case 6: {
|
|
22267
|
-
message.after = reader.int32();
|
|
23599
|
+
if (!(message.entries && message.entries.length))
|
|
23600
|
+
message.entries = [];
|
|
23601
|
+
message.entries.push($root.sesame.v1.sidedata.SideData.decode(reader, reader.uint32()));
|
|
22268
23602
|
break;
|
|
22269
23603
|
}
|
|
22270
23604
|
default:
|
|
@@ -22274,173 +23608,66 @@ var sesame = $root.sesame = (() => {
|
|
|
22274
23608
|
}
|
|
22275
23609
|
return message;
|
|
22276
23610
|
};
|
|
22277
|
-
|
|
23611
|
+
SideDataSet.decodeDelimited = function decodeDelimited(reader) {
|
|
22278
23612
|
if (!(reader instanceof $Reader))
|
|
22279
23613
|
reader = new $Reader(reader);
|
|
22280
23614
|
return this.decode(reader, reader.uint32());
|
|
22281
23615
|
};
|
|
22282
|
-
|
|
23616
|
+
SideDataSet.verify = function verify(message) {
|
|
22283
23617
|
if (typeof message !== "object" || message === null)
|
|
22284
23618
|
return "object expected";
|
|
22285
|
-
if (message.
|
|
22286
|
-
|
|
22287
|
-
|
|
22288
|
-
|
|
22289
|
-
|
|
22290
|
-
if (message.address != null && message.hasOwnProperty("address")) {
|
|
22291
|
-
if (!$util.isString(message.address))
|
|
22292
|
-
return "address: string expected";
|
|
22293
|
-
}
|
|
22294
|
-
if (message.property != null && message.hasOwnProperty("property")) {
|
|
22295
|
-
if (!$util.isString(message.property))
|
|
22296
|
-
return "property: string expected";
|
|
22297
|
-
}
|
|
22298
|
-
if (message.keyframes != null && message.hasOwnProperty("keyframes")) {
|
|
22299
|
-
if (!Array.isArray(message.keyframes))
|
|
22300
|
-
return "keyframes: array expected";
|
|
22301
|
-
for (let i = 0; i < message.keyframes.length; ++i) {
|
|
22302
|
-
let error = $root.sesame.v1.compositor.KeyFrame.verify(message.keyframes[i]);
|
|
23619
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
23620
|
+
if (!Array.isArray(message.entries))
|
|
23621
|
+
return "entries: array expected";
|
|
23622
|
+
for (let i = 0; i < message.entries.length; ++i) {
|
|
23623
|
+
let error = $root.sesame.v1.sidedata.SideData.verify(message.entries[i]);
|
|
22303
23624
|
if (error)
|
|
22304
|
-
return "
|
|
23625
|
+
return "entries." + error;
|
|
22305
23626
|
}
|
|
22306
23627
|
}
|
|
22307
|
-
if (message.before != null && message.hasOwnProperty("before"))
|
|
22308
|
-
switch (message.before) {
|
|
22309
|
-
default:
|
|
22310
|
-
return "before: enum value expected";
|
|
22311
|
-
case 0:
|
|
22312
|
-
case 1:
|
|
22313
|
-
case 2:
|
|
22314
|
-
case 3:
|
|
22315
|
-
break;
|
|
22316
|
-
}
|
|
22317
|
-
if (message.after != null && message.hasOwnProperty("after"))
|
|
22318
|
-
switch (message.after) {
|
|
22319
|
-
default:
|
|
22320
|
-
return "after: enum value expected";
|
|
22321
|
-
case 0:
|
|
22322
|
-
case 1:
|
|
22323
|
-
case 2:
|
|
22324
|
-
case 3:
|
|
22325
|
-
break;
|
|
22326
|
-
}
|
|
22327
23628
|
return null;
|
|
22328
23629
|
};
|
|
22329
|
-
|
|
22330
|
-
if (object instanceof $root.sesame.v1.
|
|
23630
|
+
SideDataSet.fromObject = function fromObject(object) {
|
|
23631
|
+
if (object instanceof $root.sesame.v1.sidedata.SideDataSet)
|
|
22331
23632
|
return object;
|
|
22332
|
-
let message = new $root.sesame.v1.
|
|
22333
|
-
if (object.
|
|
22334
|
-
if (
|
|
22335
|
-
throw TypeError(".sesame.v1.
|
|
22336
|
-
message.
|
|
22337
|
-
|
|
22338
|
-
|
|
22339
|
-
|
|
22340
|
-
|
|
22341
|
-
message.property = String(object.property);
|
|
22342
|
-
if (object.keyframes) {
|
|
22343
|
-
if (!Array.isArray(object.keyframes))
|
|
22344
|
-
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: array expected");
|
|
22345
|
-
message.keyframes = [];
|
|
22346
|
-
for (let i = 0; i < object.keyframes.length; ++i) {
|
|
22347
|
-
if (typeof object.keyframes[i] !== "object")
|
|
22348
|
-
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: object expected");
|
|
22349
|
-
message.keyframes[i] = $root.sesame.v1.compositor.KeyFrame.fromObject(object.keyframes[i]);
|
|
23633
|
+
let message = new $root.sesame.v1.sidedata.SideDataSet();
|
|
23634
|
+
if (object.entries) {
|
|
23635
|
+
if (!Array.isArray(object.entries))
|
|
23636
|
+
throw TypeError(".sesame.v1.sidedata.SideDataSet.entries: array expected");
|
|
23637
|
+
message.entries = [];
|
|
23638
|
+
for (let i = 0; i < object.entries.length; ++i) {
|
|
23639
|
+
if (typeof object.entries[i] !== "object")
|
|
23640
|
+
throw TypeError(".sesame.v1.sidedata.SideDataSet.entries: object expected");
|
|
23641
|
+
message.entries[i] = $root.sesame.v1.sidedata.SideData.fromObject(object.entries[i]);
|
|
22350
23642
|
}
|
|
22351
23643
|
}
|
|
22352
|
-
switch (object.before) {
|
|
22353
|
-
default:
|
|
22354
|
-
if (typeof object.before === "number") {
|
|
22355
|
-
message.before = object.before;
|
|
22356
|
-
break;
|
|
22357
|
-
}
|
|
22358
|
-
break;
|
|
22359
|
-
case "ANIM_MODE_CONSTANT":
|
|
22360
|
-
case 0:
|
|
22361
|
-
message.before = 0;
|
|
22362
|
-
break;
|
|
22363
|
-
case "ANIM_MODE_STATE_FROM":
|
|
22364
|
-
case 1:
|
|
22365
|
-
message.before = 1;
|
|
22366
|
-
break;
|
|
22367
|
-
case "ANIM_MODE_LOOP":
|
|
22368
|
-
case 2:
|
|
22369
|
-
message.before = 2;
|
|
22370
|
-
break;
|
|
22371
|
-
case "ANIM_MODE_BOUNCE":
|
|
22372
|
-
case 3:
|
|
22373
|
-
message.before = 3;
|
|
22374
|
-
break;
|
|
22375
|
-
}
|
|
22376
|
-
switch (object.after) {
|
|
22377
|
-
default:
|
|
22378
|
-
if (typeof object.after === "number") {
|
|
22379
|
-
message.after = object.after;
|
|
22380
|
-
break;
|
|
22381
|
-
}
|
|
22382
|
-
break;
|
|
22383
|
-
case "ANIM_MODE_CONSTANT":
|
|
22384
|
-
case 0:
|
|
22385
|
-
message.after = 0;
|
|
22386
|
-
break;
|
|
22387
|
-
case "ANIM_MODE_STATE_FROM":
|
|
22388
|
-
case 1:
|
|
22389
|
-
message.after = 1;
|
|
22390
|
-
break;
|
|
22391
|
-
case "ANIM_MODE_LOOP":
|
|
22392
|
-
case 2:
|
|
22393
|
-
message.after = 2;
|
|
22394
|
-
break;
|
|
22395
|
-
case "ANIM_MODE_BOUNCE":
|
|
22396
|
-
case 3:
|
|
22397
|
-
message.after = 3;
|
|
22398
|
-
break;
|
|
22399
|
-
}
|
|
22400
23644
|
return message;
|
|
22401
23645
|
};
|
|
22402
|
-
|
|
23646
|
+
SideDataSet.toObject = function toObject(message, options) {
|
|
22403
23647
|
if (!options)
|
|
22404
23648
|
options = {};
|
|
22405
23649
|
let object = {};
|
|
22406
23650
|
if (options.arrays || options.defaults)
|
|
22407
|
-
object.
|
|
22408
|
-
if (
|
|
22409
|
-
object.
|
|
22410
|
-
|
|
22411
|
-
|
|
22412
|
-
object.before = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
|
|
22413
|
-
object.after = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
|
|
22414
|
-
}
|
|
22415
|
-
if (message.domain != null && message.hasOwnProperty("domain"))
|
|
22416
|
-
object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
|
|
22417
|
-
if (message.address != null && message.hasOwnProperty("address"))
|
|
22418
|
-
object.address = message.address;
|
|
22419
|
-
if (message.property != null && message.hasOwnProperty("property"))
|
|
22420
|
-
object.property = message.property;
|
|
22421
|
-
if (message.keyframes && message.keyframes.length) {
|
|
22422
|
-
object.keyframes = [];
|
|
22423
|
-
for (let j = 0; j < message.keyframes.length; ++j)
|
|
22424
|
-
object.keyframes[j] = $root.sesame.v1.compositor.KeyFrame.toObject(message.keyframes[j], options);
|
|
23651
|
+
object.entries = [];
|
|
23652
|
+
if (message.entries && message.entries.length) {
|
|
23653
|
+
object.entries = [];
|
|
23654
|
+
for (let j = 0; j < message.entries.length; ++j)
|
|
23655
|
+
object.entries[j] = $root.sesame.v1.sidedata.SideData.toObject(message.entries[j], options);
|
|
22425
23656
|
}
|
|
22426
|
-
if (message.before != null && message.hasOwnProperty("before"))
|
|
22427
|
-
object.before = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] === void 0 ? message.before : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] : message.before;
|
|
22428
|
-
if (message.after != null && message.hasOwnProperty("after"))
|
|
22429
|
-
object.after = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] === void 0 ? message.after : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] : message.after;
|
|
22430
23657
|
return object;
|
|
22431
23658
|
};
|
|
22432
|
-
|
|
23659
|
+
SideDataSet.prototype.toJSON = function toJSON() {
|
|
22433
23660
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
22434
23661
|
};
|
|
22435
|
-
|
|
23662
|
+
SideDataSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
22436
23663
|
if (typeUrlPrefix === void 0) {
|
|
22437
23664
|
typeUrlPrefix = "type.googleapis.com";
|
|
22438
23665
|
}
|
|
22439
|
-
return typeUrlPrefix + "/sesame.v1.
|
|
23666
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.SideDataSet";
|
|
22440
23667
|
};
|
|
22441
|
-
return
|
|
23668
|
+
return SideDataSet;
|
|
22442
23669
|
}();
|
|
22443
|
-
return
|
|
23670
|
+
return sidedata;
|
|
22444
23671
|
}();
|
|
22445
23672
|
v1.jobs = function() {
|
|
22446
23673
|
const jobs = {};
|
|
@@ -25370,6 +26597,9 @@ var sesame = $root.sesame = (() => {
|
|
|
25370
26597
|
case 4:
|
|
25371
26598
|
case 5:
|
|
25372
26599
|
case 6:
|
|
26600
|
+
case 7:
|
|
26601
|
+
case 8:
|
|
26602
|
+
case 9:
|
|
25373
26603
|
break;
|
|
25374
26604
|
}
|
|
25375
26605
|
return null;
|
|
@@ -25423,6 +26653,18 @@ var sesame = $root.sesame = (() => {
|
|
|
25423
26653
|
case 6:
|
|
25424
26654
|
message.dataType = 6;
|
|
25425
26655
|
break;
|
|
26656
|
+
case "DATA_TYPE_OUTPUT_STATUS":
|
|
26657
|
+
case 7:
|
|
26658
|
+
message.dataType = 7;
|
|
26659
|
+
break;
|
|
26660
|
+
case "DATA_TYPE_OUTPUT_CONTROL":
|
|
26661
|
+
case 8:
|
|
26662
|
+
message.dataType = 8;
|
|
26663
|
+
break;
|
|
26664
|
+
case "DATA_TYPE_ENGINE_STATUS":
|
|
26665
|
+
case 9:
|
|
26666
|
+
message.dataType = 9;
|
|
26667
|
+
break;
|
|
25426
26668
|
}
|
|
25427
26669
|
return message;
|
|
25428
26670
|
};
|
|
@@ -25971,6 +27213,7 @@ var sesame = $root.sesame = (() => {
|
|
|
25971
27213
|
MediaFrameData.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
25972
27214
|
MediaFrameData.prototype.keyframe = false;
|
|
25973
27215
|
MediaFrameData.prototype.codecData = null;
|
|
27216
|
+
MediaFrameData.prototype.sideData = null;
|
|
25974
27217
|
MediaFrameData.create = function create(properties) {
|
|
25975
27218
|
return new MediaFrameData(properties);
|
|
25976
27219
|
};
|
|
@@ -25992,6 +27235,11 @@ var sesame = $root.sesame = (() => {
|
|
|
25992
27235
|
/* id 3, wireType 2 =*/
|
|
25993
27236
|
26
|
|
25994
27237
|
).fork()).ldelim();
|
|
27238
|
+
if (message.sideData != null && Object.hasOwnProperty.call(message, "sideData"))
|
|
27239
|
+
$root.sesame.v1.sidedata.SideDataSet.encode(message.sideData, writer.uint32(
|
|
27240
|
+
/* id 4, wireType 2 =*/
|
|
27241
|
+
34
|
|
27242
|
+
).fork()).ldelim();
|
|
25995
27243
|
return writer;
|
|
25996
27244
|
};
|
|
25997
27245
|
MediaFrameData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -26018,6 +27266,10 @@ var sesame = $root.sesame = (() => {
|
|
|
26018
27266
|
message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
|
|
26019
27267
|
break;
|
|
26020
27268
|
}
|
|
27269
|
+
case 4: {
|
|
27270
|
+
message.sideData = $root.sesame.v1.sidedata.SideDataSet.decode(reader, reader.uint32());
|
|
27271
|
+
break;
|
|
27272
|
+
}
|
|
26021
27273
|
default:
|
|
26022
27274
|
reader.skipType(tag & 7);
|
|
26023
27275
|
break;
|
|
@@ -26046,6 +27298,11 @@ var sesame = $root.sesame = (() => {
|
|
|
26046
27298
|
if (error)
|
|
26047
27299
|
return "codecData." + error;
|
|
26048
27300
|
}
|
|
27301
|
+
if (message.sideData != null && message.hasOwnProperty("sideData")) {
|
|
27302
|
+
let error = $root.sesame.v1.sidedata.SideDataSet.verify(message.sideData);
|
|
27303
|
+
if (error)
|
|
27304
|
+
return "sideData." + error;
|
|
27305
|
+
}
|
|
26049
27306
|
return null;
|
|
26050
27307
|
};
|
|
26051
27308
|
MediaFrameData.fromObject = function fromObject(object) {
|
|
@@ -26069,6 +27326,11 @@ var sesame = $root.sesame = (() => {
|
|
|
26069
27326
|
throw TypeError(".sesame.v1.wire.MediaFrameData.codecData: object expected");
|
|
26070
27327
|
message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
|
|
26071
27328
|
}
|
|
27329
|
+
if (object.sideData != null) {
|
|
27330
|
+
if (typeof object.sideData !== "object")
|
|
27331
|
+
throw TypeError(".sesame.v1.wire.MediaFrameData.sideData: object expected");
|
|
27332
|
+
message.sideData = $root.sesame.v1.sidedata.SideDataSet.fromObject(object.sideData);
|
|
27333
|
+
}
|
|
26072
27334
|
return message;
|
|
26073
27335
|
};
|
|
26074
27336
|
MediaFrameData.toObject = function toObject(message, options) {
|
|
@@ -26083,6 +27345,7 @@ var sesame = $root.sesame = (() => {
|
|
|
26083
27345
|
object.pts = options.longs === String ? "0" : 0;
|
|
26084
27346
|
object.keyframe = false;
|
|
26085
27347
|
object.codecData = null;
|
|
27348
|
+
object.sideData = null;
|
|
26086
27349
|
}
|
|
26087
27350
|
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
26088
27351
|
if (typeof message.pts === "number")
|
|
@@ -26093,6 +27356,8 @@ var sesame = $root.sesame = (() => {
|
|
|
26093
27356
|
object.keyframe = message.keyframe;
|
|
26094
27357
|
if (message.codecData != null && message.hasOwnProperty("codecData"))
|
|
26095
27358
|
object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
|
|
27359
|
+
if (message.sideData != null && message.hasOwnProperty("sideData"))
|
|
27360
|
+
object.sideData = $root.sesame.v1.sidedata.SideDataSet.toObject(message.sideData, options);
|
|
26096
27361
|
return object;
|
|
26097
27362
|
};
|
|
26098
27363
|
MediaFrameData.prototype.toJSON = function toJSON() {
|
|
@@ -26115,6 +27380,9 @@ var sesame = $root.sesame = (() => {
|
|
|
26115
27380
|
values[valuesById[4] = "DATA_TYPE_TRANSPORT_CONTROL"] = 4;
|
|
26116
27381
|
values[valuesById[5] = "DATA_TYPE_AUDIO_CONTROL"] = 5;
|
|
26117
27382
|
values[valuesById[6] = "DATA_TYPE_BINARY"] = 6;
|
|
27383
|
+
values[valuesById[7] = "DATA_TYPE_OUTPUT_STATUS"] = 7;
|
|
27384
|
+
values[valuesById[8] = "DATA_TYPE_OUTPUT_CONTROL"] = 8;
|
|
27385
|
+
values[valuesById[9] = "DATA_TYPE_ENGINE_STATUS"] = 9;
|
|
26118
27386
|
return values;
|
|
26119
27387
|
}();
|
|
26120
27388
|
wire.DataFrameData = function() {
|
|
@@ -26191,6 +27459,9 @@ var sesame = $root.sesame = (() => {
|
|
|
26191
27459
|
case 4:
|
|
26192
27460
|
case 5:
|
|
26193
27461
|
case 6:
|
|
27462
|
+
case 7:
|
|
27463
|
+
case 8:
|
|
27464
|
+
case 9:
|
|
26194
27465
|
break;
|
|
26195
27466
|
}
|
|
26196
27467
|
if (message.trackName != null && message.hasOwnProperty("trackName")) {
|
|
@@ -26238,6 +27509,18 @@ var sesame = $root.sesame = (() => {
|
|
|
26238
27509
|
case 6:
|
|
26239
27510
|
message.dataType = 6;
|
|
26240
27511
|
break;
|
|
27512
|
+
case "DATA_TYPE_OUTPUT_STATUS":
|
|
27513
|
+
case 7:
|
|
27514
|
+
message.dataType = 7;
|
|
27515
|
+
break;
|
|
27516
|
+
case "DATA_TYPE_OUTPUT_CONTROL":
|
|
27517
|
+
case 8:
|
|
27518
|
+
message.dataType = 8;
|
|
27519
|
+
break;
|
|
27520
|
+
case "DATA_TYPE_ENGINE_STATUS":
|
|
27521
|
+
case 9:
|
|
27522
|
+
message.dataType = 9;
|
|
27523
|
+
break;
|
|
26241
27524
|
}
|
|
26242
27525
|
if (object.trackName != null)
|
|
26243
27526
|
message.trackName = String(object.trackName);
|
|
@@ -26574,6 +27857,32 @@ var CommandList = class {
|
|
|
26574
27857
|
item.clearCompositor = { id };
|
|
26575
27858
|
return this.add(item, timeOffsetMs);
|
|
26576
27859
|
}
|
|
27860
|
+
/**
|
|
27861
|
+
* Attach side data to every frame the compositor renders from now on.
|
|
27862
|
+
* Replaces the entry with the same `id`. Encoded WebSocket/MoQ outputs carry
|
|
27863
|
+
* the full set in the wire header on key frames and whenever it changes.
|
|
27864
|
+
* Batch it with the node changes it describes so both land on the same frame.
|
|
27865
|
+
*
|
|
27866
|
+
* @example
|
|
27867
|
+
* ```ts
|
|
27868
|
+
* cl.sideDataSet('atlas', {
|
|
27869
|
+
* id: 'sesame.atlas.v1',
|
|
27870
|
+
* version: 3,
|
|
27871
|
+
* atlas: { width: 1920, height: 1080, entries: [{ sourceId: 'cam-1', x: 0, y: 0, width: 960, height: 540 }] },
|
|
27872
|
+
* });
|
|
27873
|
+
* ```
|
|
27874
|
+
*/
|
|
27875
|
+
sideDataSet(compositorId, sideData, timeOffsetMs) {
|
|
27876
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
27877
|
+
item.setSideData = { compositorId, sideData };
|
|
27878
|
+
return this.add(item, timeOffsetMs);
|
|
27879
|
+
}
|
|
27880
|
+
/** Remove one side data entry from a compositor. */
|
|
27881
|
+
sideDataRemove(compositorId, id, timeOffsetMs) {
|
|
27882
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
27883
|
+
item.removeSideData = { compositorId, id };
|
|
27884
|
+
return this.add(item, timeOffsetMs);
|
|
27885
|
+
}
|
|
26577
27886
|
sourceAdd(id, cfg, timeOffsetMs) {
|
|
26578
27887
|
let item = new sesame.v1.commands.CommandListItem();
|
|
26579
27888
|
item.addSource = { id, config: cfg };
|
|
@@ -26750,6 +28059,15 @@ var CommandList = class {
|
|
|
26750
28059
|
item.removeOutput = { id };
|
|
26751
28060
|
return this.add(item, timeOffsetMs);
|
|
26752
28061
|
}
|
|
28062
|
+
/** Start or stop a manually controlled output stream (SRT outputs with streamControl 'manual'). */
|
|
28063
|
+
outputControl(id, action, timeOffsetMs) {
|
|
28064
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
28065
|
+
item.outputControl = {
|
|
28066
|
+
id,
|
|
28067
|
+
action: action === "start" ? sesame.v1.outputs.OutputControlAction.OUTPUT_CONTROL_ACTION_START : sesame.v1.outputs.OutputControlAction.OUTPUT_CONTROL_ACTION_STOP
|
|
28068
|
+
};
|
|
28069
|
+
return this.add(item, timeOffsetMs);
|
|
28070
|
+
}
|
|
26753
28071
|
encoderAdd(id, cfg, timeOffsetMs) {
|
|
26754
28072
|
let item = new sesame.v1.commands.CommandListItem();
|
|
26755
28073
|
item.addEncoder = { id, ...cfg };
|
|
@@ -26863,6 +28181,7 @@ var DataType = sesame.v1.wire.DataType;
|
|
|
26863
28181
|
var FrameHeader = sesame.v1.wire.FrameHeader;
|
|
26864
28182
|
var MediaCodecData = sesame.v1.wire.MediaCodecData;
|
|
26865
28183
|
var CodecType = sesame.v1.common.CodecType;
|
|
28184
|
+
var SideData = sesame.v1.sidedata.SideData;
|
|
26866
28185
|
function parseDataFrame(frame) {
|
|
26867
28186
|
if (!frame.valid || !frame.header || !frame.payload) return null;
|
|
26868
28187
|
if (frame.header.type !== sesame.v1.wire.FrameType.FRAME_TYPE_DATA) return null;
|
|
@@ -26909,6 +28228,29 @@ function parseDataFrame(frame) {
|
|
|
26909
28228
|
return null;
|
|
26910
28229
|
}
|
|
26911
28230
|
}
|
|
28231
|
+
function getSideData(frame) {
|
|
28232
|
+
const media = frame.header?.media;
|
|
28233
|
+
if (!media || !media.sideData) return null;
|
|
28234
|
+
return media.sideData.entries ?? [];
|
|
28235
|
+
}
|
|
28236
|
+
var SideDataTracker = class {
|
|
28237
|
+
constructor() {
|
|
28238
|
+
this.entries = /* @__PURE__ */ new Map();
|
|
28239
|
+
}
|
|
28240
|
+
/** Feed every media frame in order; returns true when the set changed. */
|
|
28241
|
+
update(frame) {
|
|
28242
|
+
const entries = getSideData(frame);
|
|
28243
|
+
if (entries === null) return false;
|
|
28244
|
+
this.entries = new Map(entries.map((e) => [e.id ?? "", e]));
|
|
28245
|
+
return true;
|
|
28246
|
+
}
|
|
28247
|
+
get(id) {
|
|
28248
|
+
return this.entries.get(id);
|
|
28249
|
+
}
|
|
28250
|
+
all() {
|
|
28251
|
+
return [...this.entries.values()];
|
|
28252
|
+
}
|
|
28253
|
+
};
|
|
26912
28254
|
function buildAudioControlFrame(trackName, request) {
|
|
26913
28255
|
const payload = sesame.v1.audio.AudioControlRequest.encode(request).finish();
|
|
26914
28256
|
return WireProtocol.serialize(
|
|
@@ -27631,12 +28973,15 @@ export {
|
|
|
27631
28973
|
Response,
|
|
27632
28974
|
SesameClient,
|
|
27633
28975
|
SesameConnection,
|
|
28976
|
+
SideData,
|
|
28977
|
+
SideDataTracker,
|
|
27634
28978
|
StatusApi,
|
|
27635
28979
|
WireProtocol,
|
|
27636
28980
|
buildAudioControlFrame,
|
|
27637
28981
|
buildBinaryDataFrame,
|
|
27638
28982
|
buildTransportControlFrame,
|
|
27639
28983
|
getLogger,
|
|
28984
|
+
getSideData,
|
|
27640
28985
|
log,
|
|
27641
28986
|
parseDataFrame,
|
|
27642
28987
|
sesame,
|