@stinkycomputing/sesame-api-client 1.4.1-beta.1 → 1.4.1-beta.10
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/README.md +3 -1
- package/dist/index.browser.mjs +1376 -1274
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +1376 -1274
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +1376 -1274
- package/dist/index.mjs.map +2 -2
- package/dist/jobs-api.d.ts +5 -6
- package/dist/jobs-api.d.ts.map +1 -1
- package/dist/proto/api.d.ts +754 -1020
- package/dist/proto/api.js +3127 -3405
- package/dist/rpc-client.d.ts +7 -0
- package/dist/rpc-client.d.ts.map +1 -1
- package/dist/sesame-api-client.d.ts.map +1 -1
- package/dist/sesame-connection.d.ts.map +1 -1
- package/dist/sesame-wire-protocol.d.ts +1 -1
- package/dist/sesame-wire-protocol.d.ts.map +1 -1
- package/docs/protocol-reference.md +1218 -0
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -3203,15 +3203,20 @@ var sesame = $root.sesame = (() => {
|
|
|
3203
3203
|
values[valuesById[4] = "VIDEO_FORMAT_1080_60P"] = 4;
|
|
3204
3204
|
return values;
|
|
3205
3205
|
}();
|
|
3206
|
-
common.
|
|
3206
|
+
common.CodecType = function() {
|
|
3207
3207
|
const valuesById = {}, values = Object.create(valuesById);
|
|
3208
|
-
values[valuesById[0] = "
|
|
3209
|
-
values[valuesById[1] = "
|
|
3210
|
-
values[valuesById[2] = "
|
|
3211
|
-
values[valuesById[3] = "
|
|
3212
|
-
values[valuesById[4] = "
|
|
3213
|
-
values[valuesById[5] = "
|
|
3214
|
-
values[valuesById[6] = "
|
|
3208
|
+
values[valuesById[0] = "CODEC_TYPE_UNSPECIFIED"] = 0;
|
|
3209
|
+
values[valuesById[1] = "CODEC_TYPE_VIDEO_VP8"] = 1;
|
|
3210
|
+
values[valuesById[2] = "CODEC_TYPE_VIDEO_VP9"] = 2;
|
|
3211
|
+
values[valuesById[3] = "CODEC_TYPE_VIDEO_AVC"] = 3;
|
|
3212
|
+
values[valuesById[4] = "CODEC_TYPE_VIDEO_HEVC"] = 4;
|
|
3213
|
+
values[valuesById[5] = "CODEC_TYPE_VIDEO_AV1"] = 5;
|
|
3214
|
+
values[valuesById[6] = "CODEC_TYPE_VIDEO_PRORES"] = 6;
|
|
3215
|
+
values[valuesById[7] = "CODEC_TYPE_VIDEO_DNXHR"] = 7;
|
|
3216
|
+
values[valuesById[64] = "CODEC_TYPE_AUDIO_OPUS"] = 64;
|
|
3217
|
+
values[valuesById[65] = "CODEC_TYPE_AUDIO_AAC"] = 65;
|
|
3218
|
+
values[valuesById[66] = "CODEC_TYPE_AUDIO_PCM"] = 66;
|
|
3219
|
+
values[valuesById[67] = "CODEC_TYPE_AUDIO_PCM_S24LE"] = 67;
|
|
3215
3220
|
return values;
|
|
3216
3221
|
}();
|
|
3217
3222
|
common.Empty = function() {
|
|
@@ -3799,7 +3804,7 @@ var sesame = $root.sesame = (() => {
|
|
|
3799
3804
|
}
|
|
3800
3805
|
}
|
|
3801
3806
|
NameValue.prototype.name = "";
|
|
3802
|
-
NameValue.prototype.value =
|
|
3807
|
+
NameValue.prototype.value = null;
|
|
3803
3808
|
NameValue.create = function create(properties) {
|
|
3804
3809
|
return new NameValue(properties);
|
|
3805
3810
|
};
|
|
@@ -3812,10 +3817,10 @@ var sesame = $root.sesame = (() => {
|
|
|
3812
3817
|
10
|
|
3813
3818
|
).string(message.name);
|
|
3814
3819
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
3815
|
-
writer.uint32(
|
|
3820
|
+
$root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
|
|
3816
3821
|
/* id 2, wireType 2 =*/
|
|
3817
3822
|
18
|
|
3818
|
-
).
|
|
3823
|
+
).fork()).ldelim();
|
|
3819
3824
|
return writer;
|
|
3820
3825
|
};
|
|
3821
3826
|
NameValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -3835,7 +3840,7 @@ var sesame = $root.sesame = (() => {
|
|
|
3835
3840
|
break;
|
|
3836
3841
|
}
|
|
3837
3842
|
case 2: {
|
|
3838
|
-
message.value = reader.
|
|
3843
|
+
message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
|
|
3839
3844
|
break;
|
|
3840
3845
|
}
|
|
3841
3846
|
default:
|
|
@@ -3858,8 +3863,9 @@ var sesame = $root.sesame = (() => {
|
|
|
3858
3863
|
return "name: string expected";
|
|
3859
3864
|
}
|
|
3860
3865
|
if (message.value != null && message.hasOwnProperty("value")) {
|
|
3861
|
-
|
|
3862
|
-
|
|
3866
|
+
let error = $root.sesame.v1.common.PropValue.verify(message.value);
|
|
3867
|
+
if (error)
|
|
3868
|
+
return "value." + error;
|
|
3863
3869
|
}
|
|
3864
3870
|
return null;
|
|
3865
3871
|
};
|
|
@@ -3869,8 +3875,11 @@ var sesame = $root.sesame = (() => {
|
|
|
3869
3875
|
let message = new $root.sesame.v1.common.NameValue();
|
|
3870
3876
|
if (object.name != null)
|
|
3871
3877
|
message.name = String(object.name);
|
|
3872
|
-
if (object.value != null)
|
|
3873
|
-
|
|
3878
|
+
if (object.value != null) {
|
|
3879
|
+
if (typeof object.value !== "object")
|
|
3880
|
+
throw TypeError(".sesame.v1.common.NameValue.value: object expected");
|
|
3881
|
+
message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
|
|
3882
|
+
}
|
|
3874
3883
|
return message;
|
|
3875
3884
|
};
|
|
3876
3885
|
NameValue.toObject = function toObject(message, options) {
|
|
@@ -3879,12 +3888,12 @@ var sesame = $root.sesame = (() => {
|
|
|
3879
3888
|
let object = {};
|
|
3880
3889
|
if (options.defaults) {
|
|
3881
3890
|
object.name = "";
|
|
3882
|
-
object.value =
|
|
3891
|
+
object.value = null;
|
|
3883
3892
|
}
|
|
3884
3893
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
3885
3894
|
object.name = message.name;
|
|
3886
3895
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
3887
|
-
object.value = message.value;
|
|
3896
|
+
object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
|
|
3888
3897
|
return object;
|
|
3889
3898
|
};
|
|
3890
3899
|
NameValue.prototype.toJSON = function toJSON() {
|
|
@@ -4120,8 +4129,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4120
4129
|
values[valuesById[1] = "EVENT_TOPIC_ERROR"] = 1;
|
|
4121
4130
|
values[valuesById[2] = "EVENT_TOPIC_TRANSPORT"] = 2;
|
|
4122
4131
|
values[valuesById[3] = "EVENT_TOPIC_CALLBACK"] = 3;
|
|
4123
|
-
values[valuesById[4] = "
|
|
4124
|
-
values[valuesById[5] = "EVENT_TOPIC_CLIP_IMPORT"] = 5;
|
|
4132
|
+
values[valuesById[4] = "EVENT_TOPIC_JOB"] = 4;
|
|
4125
4133
|
values[valuesById[6] = "EVENT_TOPIC_RECORDER"] = 6;
|
|
4126
4134
|
return values;
|
|
4127
4135
|
}();
|
|
@@ -4181,14 +4189,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4181
4189
|
values[valuesById[15] = "SOURCE_TRANSPORT_CMD_SET_SCRUBBING"] = 15;
|
|
4182
4190
|
return values;
|
|
4183
4191
|
}();
|
|
4184
|
-
sources.DecoderType = function() {
|
|
4185
|
-
const valuesById = {}, values = Object.create(valuesById);
|
|
4186
|
-
values[valuesById[0] = "DECODER_TYPE_UNSPECIFIED"] = 0;
|
|
4187
|
-
values[valuesById[1] = "DECODER_TYPE_H264"] = 1;
|
|
4188
|
-
values[valuesById[2] = "DECODER_TYPE_HEVC"] = 2;
|
|
4189
|
-
values[valuesById[3] = "DECODER_TYPE_AV1"] = 3;
|
|
4190
|
-
return values;
|
|
4191
|
-
}();
|
|
4192
4192
|
sources.SourceTextureSize = function() {
|
|
4193
4193
|
const valuesById = {}, values = Object.create(valuesById);
|
|
4194
4194
|
values[valuesById[0] = "SOURCE_TEXTURE_SIZE_UNSPECIFIED"] = 0;
|
|
@@ -4950,7 +4950,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4950
4950
|
}
|
|
4951
4951
|
}
|
|
4952
4952
|
RecorderSourceConfig.prototype.recorderId = "";
|
|
4953
|
-
RecorderSourceConfig.prototype.
|
|
4953
|
+
RecorderSourceConfig.prototype.codec = 0;
|
|
4954
4954
|
RecorderSourceConfig.create = function create(properties) {
|
|
4955
4955
|
return new RecorderSourceConfig(properties);
|
|
4956
4956
|
};
|
|
@@ -4962,11 +4962,11 @@ var sesame = $root.sesame = (() => {
|
|
|
4962
4962
|
/* id 1, wireType 2 =*/
|
|
4963
4963
|
10
|
|
4964
4964
|
).string(message.recorderId);
|
|
4965
|
-
if (message.
|
|
4965
|
+
if (message.codec != null && Object.hasOwnProperty.call(message, "codec"))
|
|
4966
4966
|
writer.uint32(
|
|
4967
4967
|
/* id 2, wireType 0 =*/
|
|
4968
4968
|
16
|
|
4969
|
-
).int32(message.
|
|
4969
|
+
).int32(message.codec);
|
|
4970
4970
|
return writer;
|
|
4971
4971
|
};
|
|
4972
4972
|
RecorderSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -4986,7 +4986,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4986
4986
|
break;
|
|
4987
4987
|
}
|
|
4988
4988
|
case 2: {
|
|
4989
|
-
message.
|
|
4989
|
+
message.codec = reader.int32();
|
|
4990
4990
|
break;
|
|
4991
4991
|
}
|
|
4992
4992
|
default:
|
|
@@ -5008,14 +5008,22 @@ var sesame = $root.sesame = (() => {
|
|
|
5008
5008
|
if (!$util.isString(message.recorderId))
|
|
5009
5009
|
return "recorderId: string expected";
|
|
5010
5010
|
}
|
|
5011
|
-
if (message.
|
|
5012
|
-
switch (message.
|
|
5011
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
5012
|
+
switch (message.codec) {
|
|
5013
5013
|
default:
|
|
5014
|
-
return "
|
|
5014
|
+
return "codec: enum value expected";
|
|
5015
5015
|
case 0:
|
|
5016
5016
|
case 1:
|
|
5017
5017
|
case 2:
|
|
5018
5018
|
case 3:
|
|
5019
|
+
case 4:
|
|
5020
|
+
case 5:
|
|
5021
|
+
case 6:
|
|
5022
|
+
case 7:
|
|
5023
|
+
case 64:
|
|
5024
|
+
case 65:
|
|
5025
|
+
case 66:
|
|
5026
|
+
case 67:
|
|
5019
5027
|
break;
|
|
5020
5028
|
}
|
|
5021
5029
|
return null;
|
|
@@ -5026,28 +5034,60 @@ var sesame = $root.sesame = (() => {
|
|
|
5026
5034
|
let message = new $root.sesame.v1.sources.RecorderSourceConfig();
|
|
5027
5035
|
if (object.recorderId != null)
|
|
5028
5036
|
message.recorderId = String(object.recorderId);
|
|
5029
|
-
switch (object.
|
|
5037
|
+
switch (object.codec) {
|
|
5030
5038
|
default:
|
|
5031
|
-
if (typeof object.
|
|
5032
|
-
message.
|
|
5039
|
+
if (typeof object.codec === "number") {
|
|
5040
|
+
message.codec = object.codec;
|
|
5033
5041
|
break;
|
|
5034
5042
|
}
|
|
5035
5043
|
break;
|
|
5036
|
-
case "
|
|
5044
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
5037
5045
|
case 0:
|
|
5038
|
-
message.
|
|
5046
|
+
message.codec = 0;
|
|
5039
5047
|
break;
|
|
5040
|
-
case "
|
|
5048
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
5041
5049
|
case 1:
|
|
5042
|
-
message.
|
|
5050
|
+
message.codec = 1;
|
|
5043
5051
|
break;
|
|
5044
|
-
case "
|
|
5052
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
5045
5053
|
case 2:
|
|
5046
|
-
message.
|
|
5054
|
+
message.codec = 2;
|
|
5047
5055
|
break;
|
|
5048
|
-
case "
|
|
5056
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
5049
5057
|
case 3:
|
|
5050
|
-
message.
|
|
5058
|
+
message.codec = 3;
|
|
5059
|
+
break;
|
|
5060
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
5061
|
+
case 4:
|
|
5062
|
+
message.codec = 4;
|
|
5063
|
+
break;
|
|
5064
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
5065
|
+
case 5:
|
|
5066
|
+
message.codec = 5;
|
|
5067
|
+
break;
|
|
5068
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
5069
|
+
case 6:
|
|
5070
|
+
message.codec = 6;
|
|
5071
|
+
break;
|
|
5072
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
5073
|
+
case 7:
|
|
5074
|
+
message.codec = 7;
|
|
5075
|
+
break;
|
|
5076
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
5077
|
+
case 64:
|
|
5078
|
+
message.codec = 64;
|
|
5079
|
+
break;
|
|
5080
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
5081
|
+
case 65:
|
|
5082
|
+
message.codec = 65;
|
|
5083
|
+
break;
|
|
5084
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
5085
|
+
case 66:
|
|
5086
|
+
message.codec = 66;
|
|
5087
|
+
break;
|
|
5088
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
5089
|
+
case 67:
|
|
5090
|
+
message.codec = 67;
|
|
5051
5091
|
break;
|
|
5052
5092
|
}
|
|
5053
5093
|
return message;
|
|
@@ -5058,12 +5098,12 @@ var sesame = $root.sesame = (() => {
|
|
|
5058
5098
|
let object = {};
|
|
5059
5099
|
if (options.defaults) {
|
|
5060
5100
|
object.recorderId = "";
|
|
5061
|
-
object.
|
|
5101
|
+
object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
5062
5102
|
}
|
|
5063
5103
|
if (message.recorderId != null && message.hasOwnProperty("recorderId"))
|
|
5064
5104
|
object.recorderId = message.recorderId;
|
|
5065
|
-
if (message.
|
|
5066
|
-
object.
|
|
5105
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
5106
|
+
object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
|
|
5067
5107
|
return object;
|
|
5068
5108
|
};
|
|
5069
5109
|
RecorderSourceConfig.prototype.toJSON = function toJSON() {
|
|
@@ -8237,7 +8277,7 @@ var sesame = $root.sesame = (() => {
|
|
|
8237
8277
|
RecorderClip.prototype.endTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8238
8278
|
RecorderClip.prototype.lockedStartUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8239
8279
|
RecorderClip.prototype.lockedEndUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8240
|
-
RecorderClip.prototype.
|
|
8280
|
+
RecorderClip.prototype.userTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8241
8281
|
RecorderClip.create = function create(properties) {
|
|
8242
8282
|
return new RecorderClip(properties);
|
|
8243
8283
|
};
|
|
@@ -8284,11 +8324,11 @@ var sesame = $root.sesame = (() => {
|
|
|
8284
8324
|
/* id 8, wireType 0 =*/
|
|
8285
8325
|
64
|
|
8286
8326
|
).int64(message.lockedEndUs);
|
|
8287
|
-
if (message.
|
|
8327
|
+
if (message.userTimeUs != null && Object.hasOwnProperty.call(message, "userTimeUs"))
|
|
8288
8328
|
writer.uint32(
|
|
8289
8329
|
/* id 9, wireType 0 =*/
|
|
8290
8330
|
72
|
|
8291
|
-
).int64(message.
|
|
8331
|
+
).int64(message.userTimeUs);
|
|
8292
8332
|
return writer;
|
|
8293
8333
|
};
|
|
8294
8334
|
RecorderClip.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -8336,7 +8376,7 @@ var sesame = $root.sesame = (() => {
|
|
|
8336
8376
|
break;
|
|
8337
8377
|
}
|
|
8338
8378
|
case 9: {
|
|
8339
|
-
message.
|
|
8379
|
+
message.userTimeUs = reader.int64();
|
|
8340
8380
|
break;
|
|
8341
8381
|
}
|
|
8342
8382
|
default:
|
|
@@ -8386,9 +8426,9 @@ var sesame = $root.sesame = (() => {
|
|
|
8386
8426
|
if (!$util.isInteger(message.lockedEndUs) && !(message.lockedEndUs && $util.isInteger(message.lockedEndUs.low) && $util.isInteger(message.lockedEndUs.high)))
|
|
8387
8427
|
return "lockedEndUs: integer|Long expected";
|
|
8388
8428
|
}
|
|
8389
|
-
if (message.
|
|
8390
|
-
if (!$util.isInteger(message.
|
|
8391
|
-
return "
|
|
8429
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs")) {
|
|
8430
|
+
if (!$util.isInteger(message.userTimeUs) && !(message.userTimeUs && $util.isInteger(message.userTimeUs.low) && $util.isInteger(message.userTimeUs.high)))
|
|
8431
|
+
return "userTimeUs: integer|Long expected";
|
|
8392
8432
|
}
|
|
8393
8433
|
return null;
|
|
8394
8434
|
};
|
|
@@ -8460,15 +8500,15 @@ var sesame = $root.sesame = (() => {
|
|
|
8460
8500
|
else if (typeof object.lockedEndUs === "object")
|
|
8461
8501
|
message.lockedEndUs = new $util.LongBits(object.lockedEndUs.low >>> 0, object.lockedEndUs.high >>> 0).toNumber();
|
|
8462
8502
|
}
|
|
8463
|
-
if (object.
|
|
8503
|
+
if (object.userTimeUs != null) {
|
|
8464
8504
|
if ($util.Long)
|
|
8465
|
-
(message.
|
|
8466
|
-
else if (typeof object.
|
|
8467
|
-
message.
|
|
8468
|
-
else if (typeof object.
|
|
8469
|
-
message.
|
|
8470
|
-
else if (typeof object.
|
|
8471
|
-
message.
|
|
8505
|
+
(message.userTimeUs = $util.Long.fromValue(object.userTimeUs)).unsigned = false;
|
|
8506
|
+
else if (typeof object.userTimeUs === "string")
|
|
8507
|
+
message.userTimeUs = parseInt(object.userTimeUs, 10);
|
|
8508
|
+
else if (typeof object.userTimeUs === "number")
|
|
8509
|
+
message.userTimeUs = object.userTimeUs;
|
|
8510
|
+
else if (typeof object.userTimeUs === "object")
|
|
8511
|
+
message.userTimeUs = new $util.LongBits(object.userTimeUs.low >>> 0, object.userTimeUs.high >>> 0).toNumber();
|
|
8472
8512
|
}
|
|
8473
8513
|
return message;
|
|
8474
8514
|
};
|
|
@@ -8511,9 +8551,9 @@ var sesame = $root.sesame = (() => {
|
|
|
8511
8551
|
object.lockedEndUs = options.longs === String ? "0" : 0;
|
|
8512
8552
|
if ($util.Long) {
|
|
8513
8553
|
let long = new $util.Long(0, 0, false);
|
|
8514
|
-
object.
|
|
8554
|
+
object.userTimeUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8515
8555
|
} else
|
|
8516
|
-
object.
|
|
8556
|
+
object.userTimeUs = options.longs === String ? "0" : 0;
|
|
8517
8557
|
}
|
|
8518
8558
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8519
8559
|
if (typeof message.id === "number")
|
|
@@ -8549,11 +8589,11 @@ var sesame = $root.sesame = (() => {
|
|
|
8549
8589
|
object.lockedEndUs = options.longs === String ? String(message.lockedEndUs) : message.lockedEndUs;
|
|
8550
8590
|
else
|
|
8551
8591
|
object.lockedEndUs = options.longs === String ? $util.Long.prototype.toString.call(message.lockedEndUs) : options.longs === Number ? new $util.LongBits(message.lockedEndUs.low >>> 0, message.lockedEndUs.high >>> 0).toNumber() : message.lockedEndUs;
|
|
8552
|
-
if (message.
|
|
8553
|
-
if (typeof message.
|
|
8554
|
-
object.
|
|
8592
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs"))
|
|
8593
|
+
if (typeof message.userTimeUs === "number")
|
|
8594
|
+
object.userTimeUs = options.longs === String ? String(message.userTimeUs) : message.userTimeUs;
|
|
8555
8595
|
else
|
|
8556
|
-
object.
|
|
8596
|
+
object.userTimeUs = options.longs === String ? $util.Long.prototype.toString.call(message.userTimeUs) : options.longs === Number ? new $util.LongBits(message.userTimeUs.low >>> 0, message.userTimeUs.high >>> 0).toNumber() : message.userTimeUs;
|
|
8557
8597
|
return object;
|
|
8558
8598
|
};
|
|
8559
8599
|
RecorderClip.prototype.toJSON = function toJSON() {
|
|
@@ -13361,15 +13401,22 @@ var sesame = $root.sesame = (() => {
|
|
|
13361
13401
|
}
|
|
13362
13402
|
TransportEvent.prototype.sourceId = "";
|
|
13363
13403
|
TransportEvent.prototype.userId = "";
|
|
13404
|
+
TransportEvent.prototype.uri = "";
|
|
13364
13405
|
TransportEvent.prototype.state = 0;
|
|
13365
13406
|
TransportEvent.prototype.durationUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13366
13407
|
TransportEvent.prototype.positionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13367
13408
|
TransportEvent.prototype.materialPositionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13409
|
+
TransportEvent.prototype.userTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13410
|
+
TransportEvent.prototype.speed = 0;
|
|
13368
13411
|
TransportEvent.prototype.userPlaylistId = "";
|
|
13369
13412
|
TransportEvent.prototype.playlistIndex = 0;
|
|
13370
13413
|
TransportEvent.prototype.playlistLength = 0;
|
|
13371
13414
|
TransportEvent.prototype.clipId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
13372
13415
|
TransportEvent.prototype.clipPositionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13416
|
+
TransportEvent.prototype.clipDurationUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13417
|
+
TransportEvent.prototype.preroll = 0;
|
|
13418
|
+
TransportEvent.prototype.postroll = 0;
|
|
13419
|
+
TransportEvent.prototype.metadata = null;
|
|
13373
13420
|
TransportEvent.create = function create(properties) {
|
|
13374
13421
|
return new TransportEvent(properties);
|
|
13375
13422
|
};
|
|
@@ -13386,51 +13433,86 @@ var sesame = $root.sesame = (() => {
|
|
|
13386
13433
|
/* id 2, wireType 2 =*/
|
|
13387
13434
|
18
|
|
13388
13435
|
).string(message.userId);
|
|
13436
|
+
if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
|
|
13437
|
+
writer.uint32(
|
|
13438
|
+
/* id 3, wireType 2 =*/
|
|
13439
|
+
26
|
|
13440
|
+
).string(message.uri);
|
|
13389
13441
|
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
13390
13442
|
writer.uint32(
|
|
13391
|
-
/* id
|
|
13392
|
-
|
|
13443
|
+
/* id 4, wireType 0 =*/
|
|
13444
|
+
32
|
|
13393
13445
|
).int32(message.state);
|
|
13394
13446
|
if (message.durationUs != null && Object.hasOwnProperty.call(message, "durationUs"))
|
|
13395
13447
|
writer.uint32(
|
|
13396
|
-
/* id
|
|
13397
|
-
|
|
13448
|
+
/* id 5, wireType 0 =*/
|
|
13449
|
+
40
|
|
13398
13450
|
).int64(message.durationUs);
|
|
13399
13451
|
if (message.positionUs != null && Object.hasOwnProperty.call(message, "positionUs"))
|
|
13400
13452
|
writer.uint32(
|
|
13401
|
-
/* id
|
|
13402
|
-
|
|
13453
|
+
/* id 6, wireType 0 =*/
|
|
13454
|
+
48
|
|
13403
13455
|
).int64(message.positionUs);
|
|
13404
13456
|
if (message.materialPositionUs != null && Object.hasOwnProperty.call(message, "materialPositionUs"))
|
|
13405
13457
|
writer.uint32(
|
|
13406
|
-
/* id
|
|
13407
|
-
|
|
13458
|
+
/* id 7, wireType 0 =*/
|
|
13459
|
+
56
|
|
13408
13460
|
).int64(message.materialPositionUs);
|
|
13461
|
+
if (message.userTimeUs != null && Object.hasOwnProperty.call(message, "userTimeUs"))
|
|
13462
|
+
writer.uint32(
|
|
13463
|
+
/* id 8, wireType 0 =*/
|
|
13464
|
+
64
|
|
13465
|
+
).int64(message.userTimeUs);
|
|
13466
|
+
if (message.speed != null && Object.hasOwnProperty.call(message, "speed"))
|
|
13467
|
+
writer.uint32(
|
|
13468
|
+
/* id 9, wireType 5 =*/
|
|
13469
|
+
77
|
|
13470
|
+
).float(message.speed);
|
|
13409
13471
|
if (message.userPlaylistId != null && Object.hasOwnProperty.call(message, "userPlaylistId"))
|
|
13410
13472
|
writer.uint32(
|
|
13411
|
-
/* id
|
|
13412
|
-
|
|
13473
|
+
/* id 10, wireType 2 =*/
|
|
13474
|
+
82
|
|
13413
13475
|
).string(message.userPlaylistId);
|
|
13414
13476
|
if (message.playlistIndex != null && Object.hasOwnProperty.call(message, "playlistIndex"))
|
|
13415
13477
|
writer.uint32(
|
|
13416
|
-
/* id
|
|
13417
|
-
|
|
13478
|
+
/* id 11, wireType 0 =*/
|
|
13479
|
+
88
|
|
13418
13480
|
).uint32(message.playlistIndex);
|
|
13419
13481
|
if (message.playlistLength != null && Object.hasOwnProperty.call(message, "playlistLength"))
|
|
13420
13482
|
writer.uint32(
|
|
13421
|
-
/* id
|
|
13422
|
-
|
|
13483
|
+
/* id 12, wireType 0 =*/
|
|
13484
|
+
96
|
|
13423
13485
|
).uint32(message.playlistLength);
|
|
13424
13486
|
if (message.clipId != null && Object.hasOwnProperty.call(message, "clipId"))
|
|
13425
13487
|
writer.uint32(
|
|
13426
|
-
/* id
|
|
13427
|
-
|
|
13488
|
+
/* id 13, wireType 0 =*/
|
|
13489
|
+
104
|
|
13428
13490
|
).uint64(message.clipId);
|
|
13429
13491
|
if (message.clipPositionUs != null && Object.hasOwnProperty.call(message, "clipPositionUs"))
|
|
13430
13492
|
writer.uint32(
|
|
13431
|
-
/* id
|
|
13432
|
-
|
|
13493
|
+
/* id 14, wireType 0 =*/
|
|
13494
|
+
112
|
|
13433
13495
|
).int64(message.clipPositionUs);
|
|
13496
|
+
if (message.clipDurationUs != null && Object.hasOwnProperty.call(message, "clipDurationUs"))
|
|
13497
|
+
writer.uint32(
|
|
13498
|
+
/* id 15, wireType 0 =*/
|
|
13499
|
+
120
|
|
13500
|
+
).int64(message.clipDurationUs);
|
|
13501
|
+
if (message.preroll != null && Object.hasOwnProperty.call(message, "preroll"))
|
|
13502
|
+
writer.uint32(
|
|
13503
|
+
/* id 16, wireType 0 =*/
|
|
13504
|
+
128
|
|
13505
|
+
).uint32(message.preroll);
|
|
13506
|
+
if (message.postroll != null && Object.hasOwnProperty.call(message, "postroll"))
|
|
13507
|
+
writer.uint32(
|
|
13508
|
+
/* id 17, wireType 0 =*/
|
|
13509
|
+
136
|
|
13510
|
+
).uint32(message.postroll);
|
|
13511
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
13512
|
+
$root.sesame.v1.common.TransportMetadata.encode(message.metadata, writer.uint32(
|
|
13513
|
+
/* id 18, wireType 2 =*/
|
|
13514
|
+
146
|
|
13515
|
+
).fork()).ldelim();
|
|
13434
13516
|
return writer;
|
|
13435
13517
|
};
|
|
13436
13518
|
TransportEvent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -13454,41 +13536,69 @@ var sesame = $root.sesame = (() => {
|
|
|
13454
13536
|
break;
|
|
13455
13537
|
}
|
|
13456
13538
|
case 3: {
|
|
13457
|
-
message.
|
|
13539
|
+
message.uri = reader.string();
|
|
13458
13540
|
break;
|
|
13459
13541
|
}
|
|
13460
13542
|
case 4: {
|
|
13461
|
-
message.
|
|
13543
|
+
message.state = reader.int32();
|
|
13462
13544
|
break;
|
|
13463
13545
|
}
|
|
13464
13546
|
case 5: {
|
|
13465
|
-
message.
|
|
13547
|
+
message.durationUs = reader.int64();
|
|
13466
13548
|
break;
|
|
13467
13549
|
}
|
|
13468
13550
|
case 6: {
|
|
13469
|
-
message.
|
|
13551
|
+
message.positionUs = reader.int64();
|
|
13470
13552
|
break;
|
|
13471
13553
|
}
|
|
13472
13554
|
case 7: {
|
|
13473
|
-
message.
|
|
13555
|
+
message.materialPositionUs = reader.int64();
|
|
13474
13556
|
break;
|
|
13475
13557
|
}
|
|
13476
13558
|
case 8: {
|
|
13477
|
-
message.
|
|
13559
|
+
message.userTimeUs = reader.int64();
|
|
13478
13560
|
break;
|
|
13479
13561
|
}
|
|
13480
13562
|
case 9: {
|
|
13481
|
-
message.
|
|
13563
|
+
message.speed = reader.float();
|
|
13482
13564
|
break;
|
|
13483
13565
|
}
|
|
13484
13566
|
case 10: {
|
|
13485
|
-
message.
|
|
13567
|
+
message.userPlaylistId = reader.string();
|
|
13486
13568
|
break;
|
|
13487
13569
|
}
|
|
13488
13570
|
case 11: {
|
|
13571
|
+
message.playlistIndex = reader.uint32();
|
|
13572
|
+
break;
|
|
13573
|
+
}
|
|
13574
|
+
case 12: {
|
|
13575
|
+
message.playlistLength = reader.uint32();
|
|
13576
|
+
break;
|
|
13577
|
+
}
|
|
13578
|
+
case 13: {
|
|
13579
|
+
message.clipId = reader.uint64();
|
|
13580
|
+
break;
|
|
13581
|
+
}
|
|
13582
|
+
case 14: {
|
|
13489
13583
|
message.clipPositionUs = reader.int64();
|
|
13490
13584
|
break;
|
|
13491
13585
|
}
|
|
13586
|
+
case 15: {
|
|
13587
|
+
message.clipDurationUs = reader.int64();
|
|
13588
|
+
break;
|
|
13589
|
+
}
|
|
13590
|
+
case 16: {
|
|
13591
|
+
message.preroll = reader.uint32();
|
|
13592
|
+
break;
|
|
13593
|
+
}
|
|
13594
|
+
case 17: {
|
|
13595
|
+
message.postroll = reader.uint32();
|
|
13596
|
+
break;
|
|
13597
|
+
}
|
|
13598
|
+
case 18: {
|
|
13599
|
+
message.metadata = $root.sesame.v1.common.TransportMetadata.decode(reader, reader.uint32());
|
|
13600
|
+
break;
|
|
13601
|
+
}
|
|
13492
13602
|
default:
|
|
13493
13603
|
reader.skipType(tag & 7);
|
|
13494
13604
|
break;
|
|
@@ -13512,6 +13622,10 @@ var sesame = $root.sesame = (() => {
|
|
|
13512
13622
|
if (!$util.isString(message.userId))
|
|
13513
13623
|
return "userId: string expected";
|
|
13514
13624
|
}
|
|
13625
|
+
if (message.uri != null && message.hasOwnProperty("uri")) {
|
|
13626
|
+
if (!$util.isString(message.uri))
|
|
13627
|
+
return "uri: string expected";
|
|
13628
|
+
}
|
|
13515
13629
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
13516
13630
|
switch (message.state) {
|
|
13517
13631
|
default:
|
|
@@ -13535,6 +13649,14 @@ var sesame = $root.sesame = (() => {
|
|
|
13535
13649
|
if (!$util.isInteger(message.materialPositionUs) && !(message.materialPositionUs && $util.isInteger(message.materialPositionUs.low) && $util.isInteger(message.materialPositionUs.high)))
|
|
13536
13650
|
return "materialPositionUs: integer|Long expected";
|
|
13537
13651
|
}
|
|
13652
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs")) {
|
|
13653
|
+
if (!$util.isInteger(message.userTimeUs) && !(message.userTimeUs && $util.isInteger(message.userTimeUs.low) && $util.isInteger(message.userTimeUs.high)))
|
|
13654
|
+
return "userTimeUs: integer|Long expected";
|
|
13655
|
+
}
|
|
13656
|
+
if (message.speed != null && message.hasOwnProperty("speed")) {
|
|
13657
|
+
if (typeof message.speed !== "number")
|
|
13658
|
+
return "speed: number expected";
|
|
13659
|
+
}
|
|
13538
13660
|
if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId")) {
|
|
13539
13661
|
if (!$util.isString(message.userPlaylistId))
|
|
13540
13662
|
return "userPlaylistId: string expected";
|
|
@@ -13555,6 +13677,23 @@ var sesame = $root.sesame = (() => {
|
|
|
13555
13677
|
if (!$util.isInteger(message.clipPositionUs) && !(message.clipPositionUs && $util.isInteger(message.clipPositionUs.low) && $util.isInteger(message.clipPositionUs.high)))
|
|
13556
13678
|
return "clipPositionUs: integer|Long expected";
|
|
13557
13679
|
}
|
|
13680
|
+
if (message.clipDurationUs != null && message.hasOwnProperty("clipDurationUs")) {
|
|
13681
|
+
if (!$util.isInteger(message.clipDurationUs) && !(message.clipDurationUs && $util.isInteger(message.clipDurationUs.low) && $util.isInteger(message.clipDurationUs.high)))
|
|
13682
|
+
return "clipDurationUs: integer|Long expected";
|
|
13683
|
+
}
|
|
13684
|
+
if (message.preroll != null && message.hasOwnProperty("preroll")) {
|
|
13685
|
+
if (!$util.isInteger(message.preroll))
|
|
13686
|
+
return "preroll: integer expected";
|
|
13687
|
+
}
|
|
13688
|
+
if (message.postroll != null && message.hasOwnProperty("postroll")) {
|
|
13689
|
+
if (!$util.isInteger(message.postroll))
|
|
13690
|
+
return "postroll: integer expected";
|
|
13691
|
+
}
|
|
13692
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
13693
|
+
let error = $root.sesame.v1.common.TransportMetadata.verify(message.metadata);
|
|
13694
|
+
if (error)
|
|
13695
|
+
return "metadata." + error;
|
|
13696
|
+
}
|
|
13558
13697
|
return null;
|
|
13559
13698
|
};
|
|
13560
13699
|
TransportEvent.fromObject = function fromObject(object) {
|
|
@@ -13565,6 +13704,8 @@ var sesame = $root.sesame = (() => {
|
|
|
13565
13704
|
message.sourceId = String(object.sourceId);
|
|
13566
13705
|
if (object.userId != null)
|
|
13567
13706
|
message.userId = String(object.userId);
|
|
13707
|
+
if (object.uri != null)
|
|
13708
|
+
message.uri = String(object.uri);
|
|
13568
13709
|
switch (object.state) {
|
|
13569
13710
|
default:
|
|
13570
13711
|
if (typeof object.state === "number") {
|
|
@@ -13623,6 +13764,18 @@ var sesame = $root.sesame = (() => {
|
|
|
13623
13764
|
else if (typeof object.materialPositionUs === "object")
|
|
13624
13765
|
message.materialPositionUs = new $util.LongBits(object.materialPositionUs.low >>> 0, object.materialPositionUs.high >>> 0).toNumber();
|
|
13625
13766
|
}
|
|
13767
|
+
if (object.userTimeUs != null) {
|
|
13768
|
+
if ($util.Long)
|
|
13769
|
+
(message.userTimeUs = $util.Long.fromValue(object.userTimeUs)).unsigned = false;
|
|
13770
|
+
else if (typeof object.userTimeUs === "string")
|
|
13771
|
+
message.userTimeUs = parseInt(object.userTimeUs, 10);
|
|
13772
|
+
else if (typeof object.userTimeUs === "number")
|
|
13773
|
+
message.userTimeUs = object.userTimeUs;
|
|
13774
|
+
else if (typeof object.userTimeUs === "object")
|
|
13775
|
+
message.userTimeUs = new $util.LongBits(object.userTimeUs.low >>> 0, object.userTimeUs.high >>> 0).toNumber();
|
|
13776
|
+
}
|
|
13777
|
+
if (object.speed != null)
|
|
13778
|
+
message.speed = Number(object.speed);
|
|
13626
13779
|
if (object.userPlaylistId != null)
|
|
13627
13780
|
message.userPlaylistId = String(object.userPlaylistId);
|
|
13628
13781
|
if (object.playlistIndex != null)
|
|
@@ -13649,6 +13802,25 @@ var sesame = $root.sesame = (() => {
|
|
|
13649
13802
|
else if (typeof object.clipPositionUs === "object")
|
|
13650
13803
|
message.clipPositionUs = new $util.LongBits(object.clipPositionUs.low >>> 0, object.clipPositionUs.high >>> 0).toNumber();
|
|
13651
13804
|
}
|
|
13805
|
+
if (object.clipDurationUs != null) {
|
|
13806
|
+
if ($util.Long)
|
|
13807
|
+
(message.clipDurationUs = $util.Long.fromValue(object.clipDurationUs)).unsigned = false;
|
|
13808
|
+
else if (typeof object.clipDurationUs === "string")
|
|
13809
|
+
message.clipDurationUs = parseInt(object.clipDurationUs, 10);
|
|
13810
|
+
else if (typeof object.clipDurationUs === "number")
|
|
13811
|
+
message.clipDurationUs = object.clipDurationUs;
|
|
13812
|
+
else if (typeof object.clipDurationUs === "object")
|
|
13813
|
+
message.clipDurationUs = new $util.LongBits(object.clipDurationUs.low >>> 0, object.clipDurationUs.high >>> 0).toNumber();
|
|
13814
|
+
}
|
|
13815
|
+
if (object.preroll != null)
|
|
13816
|
+
message.preroll = object.preroll >>> 0;
|
|
13817
|
+
if (object.postroll != null)
|
|
13818
|
+
message.postroll = object.postroll >>> 0;
|
|
13819
|
+
if (object.metadata != null) {
|
|
13820
|
+
if (typeof object.metadata !== "object")
|
|
13821
|
+
throw TypeError(".sesame.v1.status.TransportEvent.metadata: object expected");
|
|
13822
|
+
message.metadata = $root.sesame.v1.common.TransportMetadata.fromObject(object.metadata);
|
|
13823
|
+
}
|
|
13652
13824
|
return message;
|
|
13653
13825
|
};
|
|
13654
13826
|
TransportEvent.toObject = function toObject(message, options) {
|
|
@@ -13658,6 +13830,7 @@ var sesame = $root.sesame = (() => {
|
|
|
13658
13830
|
if (options.defaults) {
|
|
13659
13831
|
object.sourceId = "";
|
|
13660
13832
|
object.userId = "";
|
|
13833
|
+
object.uri = "";
|
|
13661
13834
|
object.state = options.enums === String ? "SOURCE_TRANSPORT_STATE_STOPPED" : 0;
|
|
13662
13835
|
if ($util.Long) {
|
|
13663
13836
|
let long = new $util.Long(0, 0, false);
|
|
@@ -13674,6 +13847,12 @@ var sesame = $root.sesame = (() => {
|
|
|
13674
13847
|
object.materialPositionUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13675
13848
|
} else
|
|
13676
13849
|
object.materialPositionUs = options.longs === String ? "0" : 0;
|
|
13850
|
+
if ($util.Long) {
|
|
13851
|
+
let long = new $util.Long(0, 0, false);
|
|
13852
|
+
object.userTimeUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13853
|
+
} else
|
|
13854
|
+
object.userTimeUs = options.longs === String ? "0" : 0;
|
|
13855
|
+
object.speed = 0;
|
|
13677
13856
|
object.userPlaylistId = "";
|
|
13678
13857
|
object.playlistIndex = 0;
|
|
13679
13858
|
object.playlistLength = 0;
|
|
@@ -13687,11 +13866,21 @@ var sesame = $root.sesame = (() => {
|
|
|
13687
13866
|
object.clipPositionUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13688
13867
|
} else
|
|
13689
13868
|
object.clipPositionUs = options.longs === String ? "0" : 0;
|
|
13869
|
+
if ($util.Long) {
|
|
13870
|
+
let long = new $util.Long(0, 0, false);
|
|
13871
|
+
object.clipDurationUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13872
|
+
} else
|
|
13873
|
+
object.clipDurationUs = options.longs === String ? "0" : 0;
|
|
13874
|
+
object.preroll = 0;
|
|
13875
|
+
object.postroll = 0;
|
|
13876
|
+
object.metadata = null;
|
|
13690
13877
|
}
|
|
13691
13878
|
if (message.sourceId != null && message.hasOwnProperty("sourceId"))
|
|
13692
13879
|
object.sourceId = message.sourceId;
|
|
13693
13880
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
13694
13881
|
object.userId = message.userId;
|
|
13882
|
+
if (message.uri != null && message.hasOwnProperty("uri"))
|
|
13883
|
+
object.uri = message.uri;
|
|
13695
13884
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
13696
13885
|
object.state = options.enums === String ? $root.sesame.v1.sources.SourceTransportState[message.state] === void 0 ? message.state : $root.sesame.v1.sources.SourceTransportState[message.state] : message.state;
|
|
13697
13886
|
if (message.durationUs != null && message.hasOwnProperty("durationUs"))
|
|
@@ -13709,6 +13898,13 @@ var sesame = $root.sesame = (() => {
|
|
|
13709
13898
|
object.materialPositionUs = options.longs === String ? String(message.materialPositionUs) : message.materialPositionUs;
|
|
13710
13899
|
else
|
|
13711
13900
|
object.materialPositionUs = options.longs === String ? $util.Long.prototype.toString.call(message.materialPositionUs) : options.longs === Number ? new $util.LongBits(message.materialPositionUs.low >>> 0, message.materialPositionUs.high >>> 0).toNumber() : message.materialPositionUs;
|
|
13901
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs"))
|
|
13902
|
+
if (typeof message.userTimeUs === "number")
|
|
13903
|
+
object.userTimeUs = options.longs === String ? String(message.userTimeUs) : message.userTimeUs;
|
|
13904
|
+
else
|
|
13905
|
+
object.userTimeUs = options.longs === String ? $util.Long.prototype.toString.call(message.userTimeUs) : options.longs === Number ? new $util.LongBits(message.userTimeUs.low >>> 0, message.userTimeUs.high >>> 0).toNumber() : message.userTimeUs;
|
|
13906
|
+
if (message.speed != null && message.hasOwnProperty("speed"))
|
|
13907
|
+
object.speed = options.json && !isFinite(message.speed) ? String(message.speed) : message.speed;
|
|
13712
13908
|
if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId"))
|
|
13713
13909
|
object.userPlaylistId = message.userPlaylistId;
|
|
13714
13910
|
if (message.playlistIndex != null && message.hasOwnProperty("playlistIndex"))
|
|
@@ -13725,6 +13921,17 @@ var sesame = $root.sesame = (() => {
|
|
|
13725
13921
|
object.clipPositionUs = options.longs === String ? String(message.clipPositionUs) : message.clipPositionUs;
|
|
13726
13922
|
else
|
|
13727
13923
|
object.clipPositionUs = options.longs === String ? $util.Long.prototype.toString.call(message.clipPositionUs) : options.longs === Number ? new $util.LongBits(message.clipPositionUs.low >>> 0, message.clipPositionUs.high >>> 0).toNumber() : message.clipPositionUs;
|
|
13924
|
+
if (message.clipDurationUs != null && message.hasOwnProperty("clipDurationUs"))
|
|
13925
|
+
if (typeof message.clipDurationUs === "number")
|
|
13926
|
+
object.clipDurationUs = options.longs === String ? String(message.clipDurationUs) : message.clipDurationUs;
|
|
13927
|
+
else
|
|
13928
|
+
object.clipDurationUs = options.longs === String ? $util.Long.prototype.toString.call(message.clipDurationUs) : options.longs === Number ? new $util.LongBits(message.clipDurationUs.low >>> 0, message.clipDurationUs.high >>> 0).toNumber() : message.clipDurationUs;
|
|
13929
|
+
if (message.preroll != null && message.hasOwnProperty("preroll"))
|
|
13930
|
+
object.preroll = message.preroll;
|
|
13931
|
+
if (message.postroll != null && message.hasOwnProperty("postroll"))
|
|
13932
|
+
object.postroll = message.postroll;
|
|
13933
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
13934
|
+
object.metadata = $root.sesame.v1.common.TransportMetadata.toObject(message.metadata, options);
|
|
13728
13935
|
return object;
|
|
13729
13936
|
};
|
|
13730
13937
|
TransportEvent.prototype.toJSON = function toJSON() {
|
|
@@ -13749,12 +13956,11 @@ var sesame = $root.sesame = (() => {
|
|
|
13749
13956
|
Event2.prototype.errorEvent = null;
|
|
13750
13957
|
Event2.prototype.transportEvent = null;
|
|
13751
13958
|
Event2.prototype.callbackEvent = null;
|
|
13752
|
-
Event2.prototype.
|
|
13753
|
-
Event2.prototype.clipImportEvent = null;
|
|
13959
|
+
Event2.prototype.jobEvent = null;
|
|
13754
13960
|
Event2.prototype.recorderEvent = null;
|
|
13755
13961
|
let $oneOfFields;
|
|
13756
13962
|
Object.defineProperty(Event2.prototype, "event", {
|
|
13757
|
-
get: $util.oneOfGetter($oneOfFields = ["errorEvent", "transportEvent", "callbackEvent", "
|
|
13963
|
+
get: $util.oneOfGetter($oneOfFields = ["errorEvent", "transportEvent", "callbackEvent", "jobEvent", "recorderEvent"]),
|
|
13758
13964
|
set: $util.oneOfSetter($oneOfFields)
|
|
13759
13965
|
});
|
|
13760
13966
|
Event2.create = function create(properties) {
|
|
@@ -13778,16 +13984,11 @@ var sesame = $root.sesame = (() => {
|
|
|
13778
13984
|
/* id 3, wireType 2 =*/
|
|
13779
13985
|
26
|
|
13780
13986
|
).fork()).ldelim();
|
|
13781
|
-
if (message.
|
|
13782
|
-
$root.sesame.v1.jobs.
|
|
13987
|
+
if (message.jobEvent != null && Object.hasOwnProperty.call(message, "jobEvent"))
|
|
13988
|
+
$root.sesame.v1.jobs.Job.encode(message.jobEvent, writer.uint32(
|
|
13783
13989
|
/* id 4, wireType 2 =*/
|
|
13784
13990
|
34
|
|
13785
13991
|
).fork()).ldelim();
|
|
13786
|
-
if (message.clipImportEvent != null && Object.hasOwnProperty.call(message, "clipImportEvent"))
|
|
13787
|
-
$root.sesame.v1.jobs.JobEvent.encode(message.clipImportEvent, writer.uint32(
|
|
13788
|
-
/* id 5, wireType 2 =*/
|
|
13789
|
-
42
|
|
13790
|
-
).fork()).ldelim();
|
|
13791
13992
|
if (message.recorderEvent != null && Object.hasOwnProperty.call(message, "recorderEvent"))
|
|
13792
13993
|
$root.sesame.v1.recorder.RecorderEvent.encode(message.recorderEvent, writer.uint32(
|
|
13793
13994
|
/* id 6, wireType 2 =*/
|
|
@@ -13820,11 +14021,7 @@ var sesame = $root.sesame = (() => {
|
|
|
13820
14021
|
break;
|
|
13821
14022
|
}
|
|
13822
14023
|
case 4: {
|
|
13823
|
-
message.
|
|
13824
|
-
break;
|
|
13825
|
-
}
|
|
13826
|
-
case 5: {
|
|
13827
|
-
message.clipImportEvent = $root.sesame.v1.jobs.JobEvent.decode(reader, reader.uint32());
|
|
14024
|
+
message.jobEvent = $root.sesame.v1.jobs.Job.decode(reader, reader.uint32());
|
|
13828
14025
|
break;
|
|
13829
14026
|
}
|
|
13830
14027
|
case 6: {
|
|
@@ -13875,24 +14072,14 @@ var sesame = $root.sesame = (() => {
|
|
|
13875
14072
|
return "callbackEvent." + error;
|
|
13876
14073
|
}
|
|
13877
14074
|
}
|
|
13878
|
-
if (message.
|
|
13879
|
-
if (properties.event === 1)
|
|
13880
|
-
return "event: multiple values";
|
|
13881
|
-
properties.event = 1;
|
|
13882
|
-
{
|
|
13883
|
-
let error = $root.sesame.v1.jobs.JobEvent.verify(message.playlistExportEvent);
|
|
13884
|
-
if (error)
|
|
13885
|
-
return "playlistExportEvent." + error;
|
|
13886
|
-
}
|
|
13887
|
-
}
|
|
13888
|
-
if (message.clipImportEvent != null && message.hasOwnProperty("clipImportEvent")) {
|
|
14075
|
+
if (message.jobEvent != null && message.hasOwnProperty("jobEvent")) {
|
|
13889
14076
|
if (properties.event === 1)
|
|
13890
14077
|
return "event: multiple values";
|
|
13891
14078
|
properties.event = 1;
|
|
13892
14079
|
{
|
|
13893
|
-
let error = $root.sesame.v1.jobs.
|
|
14080
|
+
let error = $root.sesame.v1.jobs.Job.verify(message.jobEvent);
|
|
13894
14081
|
if (error)
|
|
13895
|
-
return "
|
|
14082
|
+
return "jobEvent." + error;
|
|
13896
14083
|
}
|
|
13897
14084
|
}
|
|
13898
14085
|
if (message.recorderEvent != null && message.hasOwnProperty("recorderEvent")) {
|
|
@@ -13926,15 +14113,10 @@ var sesame = $root.sesame = (() => {
|
|
|
13926
14113
|
throw TypeError(".sesame.v1.status.Event.callbackEvent: object expected");
|
|
13927
14114
|
message.callbackEvent = $root.sesame.v1.common.Callback.fromObject(object.callbackEvent);
|
|
13928
14115
|
}
|
|
13929
|
-
if (object.
|
|
13930
|
-
if (typeof object.
|
|
13931
|
-
throw TypeError(".sesame.v1.status.Event.
|
|
13932
|
-
message.
|
|
13933
|
-
}
|
|
13934
|
-
if (object.clipImportEvent != null) {
|
|
13935
|
-
if (typeof object.clipImportEvent !== "object")
|
|
13936
|
-
throw TypeError(".sesame.v1.status.Event.clipImportEvent: object expected");
|
|
13937
|
-
message.clipImportEvent = $root.sesame.v1.jobs.JobEvent.fromObject(object.clipImportEvent);
|
|
14116
|
+
if (object.jobEvent != null) {
|
|
14117
|
+
if (typeof object.jobEvent !== "object")
|
|
14118
|
+
throw TypeError(".sesame.v1.status.Event.jobEvent: object expected");
|
|
14119
|
+
message.jobEvent = $root.sesame.v1.jobs.Job.fromObject(object.jobEvent);
|
|
13938
14120
|
}
|
|
13939
14121
|
if (object.recorderEvent != null) {
|
|
13940
14122
|
if (typeof object.recorderEvent !== "object")
|
|
@@ -13962,15 +14144,10 @@ var sesame = $root.sesame = (() => {
|
|
|
13962
14144
|
if (options.oneofs)
|
|
13963
14145
|
object.event = "callbackEvent";
|
|
13964
14146
|
}
|
|
13965
|
-
if (message.
|
|
13966
|
-
object.
|
|
13967
|
-
if (options.oneofs)
|
|
13968
|
-
object.event = "playlistExportEvent";
|
|
13969
|
-
}
|
|
13970
|
-
if (message.clipImportEvent != null && message.hasOwnProperty("clipImportEvent")) {
|
|
13971
|
-
object.clipImportEvent = $root.sesame.v1.jobs.JobEvent.toObject(message.clipImportEvent, options);
|
|
14147
|
+
if (message.jobEvent != null && message.hasOwnProperty("jobEvent")) {
|
|
14148
|
+
object.jobEvent = $root.sesame.v1.jobs.Job.toObject(message.jobEvent, options);
|
|
13972
14149
|
if (options.oneofs)
|
|
13973
|
-
object.event = "
|
|
14150
|
+
object.event = "jobEvent";
|
|
13974
14151
|
}
|
|
13975
14152
|
if (message.recorderEvent != null && message.hasOwnProperty("recorderEvent")) {
|
|
13976
14153
|
object.recorderEvent = $root.sesame.v1.recorder.RecorderEvent.toObject(message.recorderEvent, options);
|
|
@@ -14081,7 +14258,6 @@ var sesame = $root.sesame = (() => {
|
|
|
14081
14258
|
case 2:
|
|
14082
14259
|
case 3:
|
|
14083
14260
|
case 4:
|
|
14084
|
-
case 5:
|
|
14085
14261
|
case 6:
|
|
14086
14262
|
break;
|
|
14087
14263
|
}
|
|
@@ -14126,14 +14302,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14126
14302
|
case 3:
|
|
14127
14303
|
message.eventTopics[i] = 3;
|
|
14128
14304
|
break;
|
|
14129
|
-
case "
|
|
14305
|
+
case "EVENT_TOPIC_JOB":
|
|
14130
14306
|
case 4:
|
|
14131
14307
|
message.eventTopics[i] = 4;
|
|
14132
14308
|
break;
|
|
14133
|
-
case "EVENT_TOPIC_CLIP_IMPORT":
|
|
14134
|
-
case 5:
|
|
14135
|
-
message.eventTopics[i] = 5;
|
|
14136
|
-
break;
|
|
14137
14309
|
case "EVENT_TOPIC_RECORDER":
|
|
14138
14310
|
case 6:
|
|
14139
14311
|
message.eventTopics[i] = 6;
|
|
@@ -14219,7 +14391,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14219
14391
|
this[keys[i]] = properties[keys[i]];
|
|
14220
14392
|
}
|
|
14221
14393
|
}
|
|
14222
|
-
EncoderConfig.prototype.
|
|
14394
|
+
EncoderConfig.prototype.codec = 0;
|
|
14223
14395
|
EncoderConfig.prototype.preset = 0;
|
|
14224
14396
|
EncoderConfig.prototype.bitrateKbps = 0;
|
|
14225
14397
|
EncoderConfig.prototype.keyframeInterval = 0;
|
|
@@ -14232,11 +14404,11 @@ var sesame = $root.sesame = (() => {
|
|
|
14232
14404
|
EncoderConfig.encode = function encode(message, writer) {
|
|
14233
14405
|
if (!writer)
|
|
14234
14406
|
writer = $Writer.create();
|
|
14235
|
-
if (message.
|
|
14407
|
+
if (message.codec != null && Object.hasOwnProperty.call(message, "codec"))
|
|
14236
14408
|
writer.uint32(
|
|
14237
14409
|
/* id 1, wireType 0 =*/
|
|
14238
14410
|
8
|
|
14239
|
-
).int32(message.
|
|
14411
|
+
).int32(message.codec);
|
|
14240
14412
|
if (message.preset != null && Object.hasOwnProperty.call(message, "preset"))
|
|
14241
14413
|
writer.uint32(
|
|
14242
14414
|
/* id 2, wireType 0 =*/
|
|
@@ -14282,7 +14454,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14282
14454
|
break;
|
|
14283
14455
|
switch (tag >>> 3) {
|
|
14284
14456
|
case 1: {
|
|
14285
|
-
message.
|
|
14457
|
+
message.codec = reader.int32();
|
|
14286
14458
|
break;
|
|
14287
14459
|
}
|
|
14288
14460
|
case 2: {
|
|
@@ -14324,10 +14496,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14324
14496
|
EncoderConfig.verify = function verify(message) {
|
|
14325
14497
|
if (typeof message !== "object" || message === null)
|
|
14326
14498
|
return "object expected";
|
|
14327
|
-
if (message.
|
|
14328
|
-
switch (message.
|
|
14499
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
14500
|
+
switch (message.codec) {
|
|
14329
14501
|
default:
|
|
14330
|
-
return "
|
|
14502
|
+
return "codec: enum value expected";
|
|
14331
14503
|
case 0:
|
|
14332
14504
|
case 1:
|
|
14333
14505
|
case 2:
|
|
@@ -14335,6 +14507,11 @@ var sesame = $root.sesame = (() => {
|
|
|
14335
14507
|
case 4:
|
|
14336
14508
|
case 5:
|
|
14337
14509
|
case 6:
|
|
14510
|
+
case 7:
|
|
14511
|
+
case 64:
|
|
14512
|
+
case 65:
|
|
14513
|
+
case 66:
|
|
14514
|
+
case 67:
|
|
14338
14515
|
break;
|
|
14339
14516
|
}
|
|
14340
14517
|
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
@@ -14373,40 +14550,60 @@ var sesame = $root.sesame = (() => {
|
|
|
14373
14550
|
if (object instanceof $root.sesame.v1.outputs.EncoderConfig)
|
|
14374
14551
|
return object;
|
|
14375
14552
|
let message = new $root.sesame.v1.outputs.EncoderConfig();
|
|
14376
|
-
switch (object.
|
|
14553
|
+
switch (object.codec) {
|
|
14377
14554
|
default:
|
|
14378
|
-
if (typeof object.
|
|
14379
|
-
message.
|
|
14555
|
+
if (typeof object.codec === "number") {
|
|
14556
|
+
message.codec = object.codec;
|
|
14380
14557
|
break;
|
|
14381
14558
|
}
|
|
14382
14559
|
break;
|
|
14383
|
-
case "
|
|
14560
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
14384
14561
|
case 0:
|
|
14385
|
-
message.
|
|
14562
|
+
message.codec = 0;
|
|
14386
14563
|
break;
|
|
14387
|
-
case "
|
|
14564
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
14388
14565
|
case 1:
|
|
14389
|
-
message.
|
|
14566
|
+
message.codec = 1;
|
|
14390
14567
|
break;
|
|
14391
|
-
case "
|
|
14568
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
14392
14569
|
case 2:
|
|
14393
|
-
message.
|
|
14570
|
+
message.codec = 2;
|
|
14394
14571
|
break;
|
|
14395
|
-
case "
|
|
14572
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
14396
14573
|
case 3:
|
|
14397
|
-
message.
|
|
14574
|
+
message.codec = 3;
|
|
14398
14575
|
break;
|
|
14399
|
-
case "
|
|
14576
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
14400
14577
|
case 4:
|
|
14401
|
-
message.
|
|
14578
|
+
message.codec = 4;
|
|
14402
14579
|
break;
|
|
14403
|
-
case "
|
|
14580
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
14404
14581
|
case 5:
|
|
14405
|
-
message.
|
|
14582
|
+
message.codec = 5;
|
|
14406
14583
|
break;
|
|
14407
|
-
case "
|
|
14584
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
14408
14585
|
case 6:
|
|
14409
|
-
message.
|
|
14586
|
+
message.codec = 6;
|
|
14587
|
+
break;
|
|
14588
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
14589
|
+
case 7:
|
|
14590
|
+
message.codec = 7;
|
|
14591
|
+
break;
|
|
14592
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
14593
|
+
case 64:
|
|
14594
|
+
message.codec = 64;
|
|
14595
|
+
break;
|
|
14596
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
14597
|
+
case 65:
|
|
14598
|
+
message.codec = 65;
|
|
14599
|
+
break;
|
|
14600
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
14601
|
+
case 66:
|
|
14602
|
+
message.codec = 66;
|
|
14603
|
+
break;
|
|
14604
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
14605
|
+
case 67:
|
|
14606
|
+
message.codec = 67;
|
|
14410
14607
|
break;
|
|
14411
14608
|
}
|
|
14412
14609
|
switch (object.preset) {
|
|
@@ -14450,7 +14647,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14450
14647
|
options = {};
|
|
14451
14648
|
let object = {};
|
|
14452
14649
|
if (options.defaults) {
|
|
14453
|
-
object.
|
|
14650
|
+
object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
14454
14651
|
object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
|
|
14455
14652
|
object.bitrateKbps = 0;
|
|
14456
14653
|
object.keyframeInterval = 0;
|
|
@@ -14458,8 +14655,8 @@ var sesame = $root.sesame = (() => {
|
|
|
14458
14655
|
object.height = 0;
|
|
14459
14656
|
object.fps = 0;
|
|
14460
14657
|
}
|
|
14461
|
-
if (message.
|
|
14462
|
-
object.
|
|
14658
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
14659
|
+
object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
|
|
14463
14660
|
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
14464
14661
|
object.preset = options.enums === String ? $root.sesame.v1.outputs.EncoderPreset[message.preset] === void 0 ? message.preset : $root.sesame.v1.outputs.EncoderPreset[message.preset] : message.preset;
|
|
14465
14662
|
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
|
|
@@ -18041,6 +18238,13 @@ var sesame = $root.sesame = (() => {
|
|
|
18041
18238
|
}();
|
|
18042
18239
|
v1.jobs = function() {
|
|
18043
18240
|
const jobs = {};
|
|
18241
|
+
jobs.JobType = function() {
|
|
18242
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
18243
|
+
values[valuesById[0] = "JOB_TYPE_UNSPECIFIED"] = 0;
|
|
18244
|
+
values[valuesById[1] = "JOB_TYPE_EXPORT"] = 1;
|
|
18245
|
+
values[valuesById[2] = "JOB_TYPE_IMPORT"] = 2;
|
|
18246
|
+
return values;
|
|
18247
|
+
}();
|
|
18044
18248
|
jobs.JobStatus = function() {
|
|
18045
18249
|
const valuesById = {}, values = Object.create(valuesById);
|
|
18046
18250
|
values[valuesById[0] = "JOB_STATUS_UNSPECIFIED"] = 0;
|
|
@@ -18060,15 +18264,6 @@ var sesame = $root.sesame = (() => {
|
|
|
18060
18264
|
values[valuesById[4] = "CONTAINER_FORMAT_MXF"] = 4;
|
|
18061
18265
|
return values;
|
|
18062
18266
|
}();
|
|
18063
|
-
jobs.AudioCodecId = function() {
|
|
18064
|
-
const valuesById = {}, values = Object.create(valuesById);
|
|
18065
|
-
values[valuesById[0] = "AUDIO_CODEC_ID_UNSPECIFIED"] = 0;
|
|
18066
|
-
values[valuesById[1] = "AUDIO_CODEC_ID_AAC"] = 1;
|
|
18067
|
-
values[valuesById[2] = "AUDIO_CODEC_ID_OPUS"] = 2;
|
|
18068
|
-
values[valuesById[3] = "AUDIO_CODEC_ID_PCM_S16LE"] = 3;
|
|
18069
|
-
values[valuesById[4] = "AUDIO_CODEC_ID_PCM_S24LE"] = 4;
|
|
18070
|
-
return values;
|
|
18071
|
-
}();
|
|
18072
18267
|
jobs.RateControlMode = function() {
|
|
18073
18268
|
const valuesById = {}, values = Object.create(valuesById);
|
|
18074
18269
|
values[valuesById[0] = "RATE_CONTROL_MODE_UNSPECIFIED"] = 0;
|
|
@@ -18215,107 +18410,131 @@ var sesame = $root.sesame = (() => {
|
|
|
18215
18410
|
};
|
|
18216
18411
|
return TimingInfo;
|
|
18217
18412
|
}();
|
|
18218
|
-
jobs.
|
|
18219
|
-
function
|
|
18413
|
+
jobs.Job = function() {
|
|
18414
|
+
function Job(properties) {
|
|
18220
18415
|
if (properties) {
|
|
18221
18416
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18222
18417
|
if (properties[keys[i]] != null)
|
|
18223
18418
|
this[keys[i]] = properties[keys[i]];
|
|
18224
18419
|
}
|
|
18225
18420
|
}
|
|
18226
|
-
|
|
18227
|
-
|
|
18228
|
-
|
|
18229
|
-
|
|
18230
|
-
|
|
18231
|
-
|
|
18232
|
-
|
|
18421
|
+
Job.prototype.id = 0;
|
|
18422
|
+
Job.prototype.type = 0;
|
|
18423
|
+
Job.prototype.status = 0;
|
|
18424
|
+
Job.prototype.name = "";
|
|
18425
|
+
Job.prototype.description = "";
|
|
18426
|
+
Job.prototype.error = null;
|
|
18427
|
+
Job.prototype.progress = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
18428
|
+
Job.prototype.total = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
18429
|
+
Job.prototype.timingInfo = null;
|
|
18233
18430
|
let $oneOfFields;
|
|
18234
|
-
Object.defineProperty(
|
|
18431
|
+
Object.defineProperty(Job.prototype, "_error", {
|
|
18235
18432
|
get: $util.oneOfGetter($oneOfFields = ["error"]),
|
|
18236
18433
|
set: $util.oneOfSetter($oneOfFields)
|
|
18237
18434
|
});
|
|
18238
|
-
|
|
18239
|
-
|
|
18435
|
+
Object.defineProperty(Job.prototype, "_timingInfo", {
|
|
18436
|
+
get: $util.oneOfGetter($oneOfFields = ["timingInfo"]),
|
|
18437
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18438
|
+
});
|
|
18439
|
+
Job.create = function create(properties) {
|
|
18440
|
+
return new Job(properties);
|
|
18240
18441
|
};
|
|
18241
|
-
|
|
18442
|
+
Job.encode = function encode(message, writer) {
|
|
18242
18443
|
if (!writer)
|
|
18243
18444
|
writer = $Writer.create();
|
|
18244
|
-
if (message.
|
|
18445
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
18245
18446
|
writer.uint32(
|
|
18246
18447
|
/* id 1, wireType 0 =*/
|
|
18247
18448
|
8
|
|
18248
|
-
).uint32(message.
|
|
18249
|
-
if (message.
|
|
18449
|
+
).uint32(message.id);
|
|
18450
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
18250
18451
|
writer.uint32(
|
|
18251
|
-
/* id 2, wireType
|
|
18252
|
-
|
|
18253
|
-
).
|
|
18254
|
-
if (message.
|
|
18452
|
+
/* id 2, wireType 0 =*/
|
|
18453
|
+
16
|
|
18454
|
+
).int32(message.type);
|
|
18455
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
18255
18456
|
writer.uint32(
|
|
18256
|
-
/* id 3, wireType
|
|
18257
|
-
|
|
18258
|
-
).string(message.description);
|
|
18259
|
-
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
18260
|
-
writer.uint32(
|
|
18261
|
-
/* id 4, wireType 0 =*/
|
|
18262
|
-
32
|
|
18457
|
+
/* id 3, wireType 0 =*/
|
|
18458
|
+
24
|
|
18263
18459
|
).int32(message.status);
|
|
18264
|
-
if (message.
|
|
18460
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
18461
|
+
writer.uint32(
|
|
18462
|
+
/* id 4, wireType 2 =*/
|
|
18463
|
+
34
|
|
18464
|
+
).string(message.name);
|
|
18465
|
+
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
18265
18466
|
writer.uint32(
|
|
18266
18467
|
/* id 5, wireType 2 =*/
|
|
18267
18468
|
42
|
|
18469
|
+
).string(message.description);
|
|
18470
|
+
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
|
18471
|
+
writer.uint32(
|
|
18472
|
+
/* id 6, wireType 2 =*/
|
|
18473
|
+
50
|
|
18268
18474
|
).string(message.error);
|
|
18269
18475
|
if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
|
|
18270
|
-
writer.uint32(
|
|
18271
|
-
/* id 6, wireType 0 =*/
|
|
18272
|
-
48
|
|
18273
|
-
).uint32(message.progress);
|
|
18274
|
-
if (message.total != null && Object.hasOwnProperty.call(message, "total"))
|
|
18275
18476
|
writer.uint32(
|
|
18276
18477
|
/* id 7, wireType 0 =*/
|
|
18277
18478
|
56
|
|
18278
|
-
).
|
|
18479
|
+
).int64(message.progress);
|
|
18480
|
+
if (message.total != null && Object.hasOwnProperty.call(message, "total"))
|
|
18481
|
+
writer.uint32(
|
|
18482
|
+
/* id 8, wireType 0 =*/
|
|
18483
|
+
64
|
|
18484
|
+
).int64(message.total);
|
|
18485
|
+
if (message.timingInfo != null && Object.hasOwnProperty.call(message, "timingInfo"))
|
|
18486
|
+
$root.sesame.v1.jobs.TimingInfo.encode(message.timingInfo, writer.uint32(
|
|
18487
|
+
/* id 9, wireType 2 =*/
|
|
18488
|
+
74
|
|
18489
|
+
).fork()).ldelim();
|
|
18279
18490
|
return writer;
|
|
18280
18491
|
};
|
|
18281
|
-
|
|
18492
|
+
Job.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18282
18493
|
return this.encode(message, writer).ldelim();
|
|
18283
18494
|
};
|
|
18284
|
-
|
|
18495
|
+
Job.decode = function decode(reader, length, error) {
|
|
18285
18496
|
if (!(reader instanceof $Reader))
|
|
18286
18497
|
reader = $Reader.create(reader);
|
|
18287
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.
|
|
18498
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.Job();
|
|
18288
18499
|
while (reader.pos < end) {
|
|
18289
18500
|
let tag = reader.uint32();
|
|
18290
18501
|
if (tag === error)
|
|
18291
18502
|
break;
|
|
18292
18503
|
switch (tag >>> 3) {
|
|
18293
18504
|
case 1: {
|
|
18294
|
-
message.
|
|
18505
|
+
message.id = reader.uint32();
|
|
18295
18506
|
break;
|
|
18296
18507
|
}
|
|
18297
18508
|
case 2: {
|
|
18298
|
-
message.
|
|
18509
|
+
message.type = reader.int32();
|
|
18299
18510
|
break;
|
|
18300
18511
|
}
|
|
18301
18512
|
case 3: {
|
|
18302
|
-
message.
|
|
18513
|
+
message.status = reader.int32();
|
|
18303
18514
|
break;
|
|
18304
18515
|
}
|
|
18305
18516
|
case 4: {
|
|
18306
|
-
message.
|
|
18517
|
+
message.name = reader.string();
|
|
18307
18518
|
break;
|
|
18308
18519
|
}
|
|
18309
18520
|
case 5: {
|
|
18310
|
-
message.
|
|
18521
|
+
message.description = reader.string();
|
|
18311
18522
|
break;
|
|
18312
18523
|
}
|
|
18313
18524
|
case 6: {
|
|
18314
|
-
message.
|
|
18525
|
+
message.error = reader.string();
|
|
18315
18526
|
break;
|
|
18316
18527
|
}
|
|
18317
18528
|
case 7: {
|
|
18318
|
-
message.
|
|
18529
|
+
message.progress = reader.int64();
|
|
18530
|
+
break;
|
|
18531
|
+
}
|
|
18532
|
+
case 8: {
|
|
18533
|
+
message.total = reader.int64();
|
|
18534
|
+
break;
|
|
18535
|
+
}
|
|
18536
|
+
case 9: {
|
|
18537
|
+
message.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(reader, reader.uint32());
|
|
18319
18538
|
break;
|
|
18320
18539
|
}
|
|
18321
18540
|
default:
|
|
@@ -18325,27 +18544,28 @@ var sesame = $root.sesame = (() => {
|
|
|
18325
18544
|
}
|
|
18326
18545
|
return message;
|
|
18327
18546
|
};
|
|
18328
|
-
|
|
18547
|
+
Job.decodeDelimited = function decodeDelimited(reader) {
|
|
18329
18548
|
if (!(reader instanceof $Reader))
|
|
18330
18549
|
reader = new $Reader(reader);
|
|
18331
18550
|
return this.decode(reader, reader.uint32());
|
|
18332
18551
|
};
|
|
18333
|
-
|
|
18552
|
+
Job.verify = function verify(message) {
|
|
18334
18553
|
if (typeof message !== "object" || message === null)
|
|
18335
18554
|
return "object expected";
|
|
18336
18555
|
let properties = {};
|
|
18337
|
-
if (message.
|
|
18338
|
-
if (!$util.isInteger(message.
|
|
18339
|
-
return "
|
|
18340
|
-
}
|
|
18341
|
-
if (message.name != null && message.hasOwnProperty("name")) {
|
|
18342
|
-
if (!$util.isString(message.name))
|
|
18343
|
-
return "name: string expected";
|
|
18344
|
-
}
|
|
18345
|
-
if (message.description != null && message.hasOwnProperty("description")) {
|
|
18346
|
-
if (!$util.isString(message.description))
|
|
18347
|
-
return "description: string expected";
|
|
18556
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
18557
|
+
if (!$util.isInteger(message.id))
|
|
18558
|
+
return "id: integer expected";
|
|
18348
18559
|
}
|
|
18560
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18561
|
+
switch (message.type) {
|
|
18562
|
+
default:
|
|
18563
|
+
return "type: enum value expected";
|
|
18564
|
+
case 0:
|
|
18565
|
+
case 1:
|
|
18566
|
+
case 2:
|
|
18567
|
+
break;
|
|
18568
|
+
}
|
|
18349
18569
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
18350
18570
|
switch (message.status) {
|
|
18351
18571
|
default:
|
|
@@ -18358,31 +18578,63 @@ var sesame = $root.sesame = (() => {
|
|
|
18358
18578
|
case 5:
|
|
18359
18579
|
break;
|
|
18360
18580
|
}
|
|
18581
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
18582
|
+
if (!$util.isString(message.name))
|
|
18583
|
+
return "name: string expected";
|
|
18584
|
+
}
|
|
18585
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
18586
|
+
if (!$util.isString(message.description))
|
|
18587
|
+
return "description: string expected";
|
|
18588
|
+
}
|
|
18361
18589
|
if (message.error != null && message.hasOwnProperty("error")) {
|
|
18362
18590
|
properties._error = 1;
|
|
18363
18591
|
if (!$util.isString(message.error))
|
|
18364
18592
|
return "error: string expected";
|
|
18365
18593
|
}
|
|
18366
18594
|
if (message.progress != null && message.hasOwnProperty("progress")) {
|
|
18367
|
-
if (!$util.isInteger(message.progress))
|
|
18368
|
-
return "progress: integer expected";
|
|
18595
|
+
if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
|
|
18596
|
+
return "progress: integer|Long expected";
|
|
18369
18597
|
}
|
|
18370
18598
|
if (message.total != null && message.hasOwnProperty("total")) {
|
|
18371
|
-
if (!$util.isInteger(message.total))
|
|
18372
|
-
return "total: integer expected";
|
|
18599
|
+
if (!$util.isInteger(message.total) && !(message.total && $util.isInteger(message.total.low) && $util.isInteger(message.total.high)))
|
|
18600
|
+
return "total: integer|Long expected";
|
|
18601
|
+
}
|
|
18602
|
+
if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
|
|
18603
|
+
properties._timingInfo = 1;
|
|
18604
|
+
{
|
|
18605
|
+
let error = $root.sesame.v1.jobs.TimingInfo.verify(message.timingInfo);
|
|
18606
|
+
if (error)
|
|
18607
|
+
return "timingInfo." + error;
|
|
18608
|
+
}
|
|
18373
18609
|
}
|
|
18374
18610
|
return null;
|
|
18375
18611
|
};
|
|
18376
|
-
|
|
18377
|
-
if (object instanceof $root.sesame.v1.jobs.
|
|
18612
|
+
Job.fromObject = function fromObject(object) {
|
|
18613
|
+
if (object instanceof $root.sesame.v1.jobs.Job)
|
|
18378
18614
|
return object;
|
|
18379
|
-
let message = new $root.sesame.v1.jobs.
|
|
18380
|
-
if (object.
|
|
18381
|
-
message.
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
|
|
18615
|
+
let message = new $root.sesame.v1.jobs.Job();
|
|
18616
|
+
if (object.id != null)
|
|
18617
|
+
message.id = object.id >>> 0;
|
|
18618
|
+
switch (object.type) {
|
|
18619
|
+
default:
|
|
18620
|
+
if (typeof object.type === "number") {
|
|
18621
|
+
message.type = object.type;
|
|
18622
|
+
break;
|
|
18623
|
+
}
|
|
18624
|
+
break;
|
|
18625
|
+
case "JOB_TYPE_UNSPECIFIED":
|
|
18626
|
+
case 0:
|
|
18627
|
+
message.type = 0;
|
|
18628
|
+
break;
|
|
18629
|
+
case "JOB_TYPE_EXPORT":
|
|
18630
|
+
case 1:
|
|
18631
|
+
message.type = 1;
|
|
18632
|
+
break;
|
|
18633
|
+
case "JOB_TYPE_IMPORT":
|
|
18634
|
+
case 2:
|
|
18635
|
+
message.type = 2;
|
|
18636
|
+
break;
|
|
18637
|
+
}
|
|
18386
18638
|
switch (object.status) {
|
|
18387
18639
|
default:
|
|
18388
18640
|
if (typeof object.status === "number") {
|
|
@@ -18415,58 +18667,105 @@ var sesame = $root.sesame = (() => {
|
|
|
18415
18667
|
message.status = 5;
|
|
18416
18668
|
break;
|
|
18417
18669
|
}
|
|
18670
|
+
if (object.name != null)
|
|
18671
|
+
message.name = String(object.name);
|
|
18672
|
+
if (object.description != null)
|
|
18673
|
+
message.description = String(object.description);
|
|
18418
18674
|
if (object.error != null)
|
|
18419
18675
|
message.error = String(object.error);
|
|
18420
|
-
if (object.progress != null)
|
|
18421
|
-
|
|
18422
|
-
|
|
18423
|
-
|
|
18676
|
+
if (object.progress != null) {
|
|
18677
|
+
if ($util.Long)
|
|
18678
|
+
(message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
|
|
18679
|
+
else if (typeof object.progress === "string")
|
|
18680
|
+
message.progress = parseInt(object.progress, 10);
|
|
18681
|
+
else if (typeof object.progress === "number")
|
|
18682
|
+
message.progress = object.progress;
|
|
18683
|
+
else if (typeof object.progress === "object")
|
|
18684
|
+
message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
|
|
18685
|
+
}
|
|
18686
|
+
if (object.total != null) {
|
|
18687
|
+
if ($util.Long)
|
|
18688
|
+
(message.total = $util.Long.fromValue(object.total)).unsigned = false;
|
|
18689
|
+
else if (typeof object.total === "string")
|
|
18690
|
+
message.total = parseInt(object.total, 10);
|
|
18691
|
+
else if (typeof object.total === "number")
|
|
18692
|
+
message.total = object.total;
|
|
18693
|
+
else if (typeof object.total === "object")
|
|
18694
|
+
message.total = new $util.LongBits(object.total.low >>> 0, object.total.high >>> 0).toNumber();
|
|
18695
|
+
}
|
|
18696
|
+
if (object.timingInfo != null) {
|
|
18697
|
+
if (typeof object.timingInfo !== "object")
|
|
18698
|
+
throw TypeError(".sesame.v1.jobs.Job.timingInfo: object expected");
|
|
18699
|
+
message.timingInfo = $root.sesame.v1.jobs.TimingInfo.fromObject(object.timingInfo);
|
|
18700
|
+
}
|
|
18424
18701
|
return message;
|
|
18425
18702
|
};
|
|
18426
|
-
|
|
18703
|
+
Job.toObject = function toObject(message, options) {
|
|
18427
18704
|
if (!options)
|
|
18428
18705
|
options = {};
|
|
18429
18706
|
let object = {};
|
|
18430
18707
|
if (options.defaults) {
|
|
18431
|
-
object.
|
|
18708
|
+
object.id = 0;
|
|
18709
|
+
object.type = options.enums === String ? "JOB_TYPE_UNSPECIFIED" : 0;
|
|
18710
|
+
object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
|
|
18432
18711
|
object.name = "";
|
|
18433
18712
|
object.description = "";
|
|
18434
|
-
|
|
18435
|
-
|
|
18436
|
-
|
|
18713
|
+
if ($util.Long) {
|
|
18714
|
+
let long = new $util.Long(0, 0, false);
|
|
18715
|
+
object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18716
|
+
} else
|
|
18717
|
+
object.progress = options.longs === String ? "0" : 0;
|
|
18718
|
+
if ($util.Long) {
|
|
18719
|
+
let long = new $util.Long(0, 0, false);
|
|
18720
|
+
object.total = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18721
|
+
} else
|
|
18722
|
+
object.total = options.longs === String ? "0" : 0;
|
|
18437
18723
|
}
|
|
18438
|
-
if (message.
|
|
18439
|
-
object.
|
|
18724
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
18725
|
+
object.id = message.id;
|
|
18726
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18727
|
+
object.type = options.enums === String ? $root.sesame.v1.jobs.JobType[message.type] === void 0 ? message.type : $root.sesame.v1.jobs.JobType[message.type] : message.type;
|
|
18728
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
18729
|
+
object.status = options.enums === String ? $root.sesame.v1.jobs.JobStatus[message.status] === void 0 ? message.status : $root.sesame.v1.jobs.JobStatus[message.status] : message.status;
|
|
18440
18730
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
18441
18731
|
object.name = message.name;
|
|
18442
18732
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
18443
18733
|
object.description = message.description;
|
|
18444
|
-
if (message.status != null && message.hasOwnProperty("status"))
|
|
18445
|
-
object.status = options.enums === String ? $root.sesame.v1.jobs.JobStatus[message.status] === void 0 ? message.status : $root.sesame.v1.jobs.JobStatus[message.status] : message.status;
|
|
18446
18734
|
if (message.error != null && message.hasOwnProperty("error")) {
|
|
18447
18735
|
object.error = message.error;
|
|
18448
18736
|
if (options.oneofs)
|
|
18449
18737
|
object._error = "error";
|
|
18450
18738
|
}
|
|
18451
18739
|
if (message.progress != null && message.hasOwnProperty("progress"))
|
|
18452
|
-
|
|
18740
|
+
if (typeof message.progress === "number")
|
|
18741
|
+
object.progress = options.longs === String ? String(message.progress) : message.progress;
|
|
18742
|
+
else
|
|
18743
|
+
object.progress = options.longs === String ? $util.Long.prototype.toString.call(message.progress) : options.longs === Number ? new $util.LongBits(message.progress.low >>> 0, message.progress.high >>> 0).toNumber() : message.progress;
|
|
18453
18744
|
if (message.total != null && message.hasOwnProperty("total"))
|
|
18454
|
-
|
|
18745
|
+
if (typeof message.total === "number")
|
|
18746
|
+
object.total = options.longs === String ? String(message.total) : message.total;
|
|
18747
|
+
else
|
|
18748
|
+
object.total = options.longs === String ? $util.Long.prototype.toString.call(message.total) : options.longs === Number ? new $util.LongBits(message.total.low >>> 0, message.total.high >>> 0).toNumber() : message.total;
|
|
18749
|
+
if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
|
|
18750
|
+
object.timingInfo = $root.sesame.v1.jobs.TimingInfo.toObject(message.timingInfo, options);
|
|
18751
|
+
if (options.oneofs)
|
|
18752
|
+
object._timingInfo = "timingInfo";
|
|
18753
|
+
}
|
|
18455
18754
|
return object;
|
|
18456
18755
|
};
|
|
18457
|
-
|
|
18756
|
+
Job.prototype.toJSON = function toJSON() {
|
|
18458
18757
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
18459
18758
|
};
|
|
18460
|
-
|
|
18759
|
+
Job.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18461
18760
|
if (typeUrlPrefix === void 0) {
|
|
18462
18761
|
typeUrlPrefix = "type.googleapis.com";
|
|
18463
18762
|
}
|
|
18464
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
18763
|
+
return typeUrlPrefix + "/sesame.v1.jobs.Job";
|
|
18465
18764
|
};
|
|
18466
|
-
return
|
|
18765
|
+
return Job;
|
|
18467
18766
|
}();
|
|
18468
|
-
jobs.
|
|
18469
|
-
function
|
|
18767
|
+
jobs.JobList = function() {
|
|
18768
|
+
function JobList(properties) {
|
|
18470
18769
|
this.jobs = [];
|
|
18471
18770
|
if (properties) {
|
|
18472
18771
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -18474,28 +18773,28 @@ var sesame = $root.sesame = (() => {
|
|
|
18474
18773
|
this[keys[i]] = properties[keys[i]];
|
|
18475
18774
|
}
|
|
18476
18775
|
}
|
|
18477
|
-
|
|
18478
|
-
|
|
18479
|
-
return new
|
|
18776
|
+
JobList.prototype.jobs = $util.emptyArray;
|
|
18777
|
+
JobList.create = function create(properties) {
|
|
18778
|
+
return new JobList(properties);
|
|
18480
18779
|
};
|
|
18481
|
-
|
|
18780
|
+
JobList.encode = function encode(message, writer) {
|
|
18482
18781
|
if (!writer)
|
|
18483
18782
|
writer = $Writer.create();
|
|
18484
18783
|
if (message.jobs != null && message.jobs.length)
|
|
18485
18784
|
for (let i = 0; i < message.jobs.length; ++i)
|
|
18486
|
-
$root.sesame.v1.jobs.
|
|
18785
|
+
$root.sesame.v1.jobs.Job.encode(message.jobs[i], writer.uint32(
|
|
18487
18786
|
/* id 1, wireType 2 =*/
|
|
18488
18787
|
10
|
|
18489
18788
|
).fork()).ldelim();
|
|
18490
18789
|
return writer;
|
|
18491
18790
|
};
|
|
18492
|
-
|
|
18791
|
+
JobList.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18493
18792
|
return this.encode(message, writer).ldelim();
|
|
18494
18793
|
};
|
|
18495
|
-
|
|
18794
|
+
JobList.decode = function decode(reader, length, error) {
|
|
18496
18795
|
if (!(reader instanceof $Reader))
|
|
18497
18796
|
reader = $Reader.create(reader);
|
|
18498
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.
|
|
18797
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobList();
|
|
18499
18798
|
while (reader.pos < end) {
|
|
18500
18799
|
let tag = reader.uint32();
|
|
18501
18800
|
if (tag === error)
|
|
@@ -18504,7 +18803,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18504
18803
|
case 1: {
|
|
18505
18804
|
if (!(message.jobs && message.jobs.length))
|
|
18506
18805
|
message.jobs = [];
|
|
18507
|
-
message.jobs.push($root.sesame.v1.jobs.
|
|
18806
|
+
message.jobs.push($root.sesame.v1.jobs.Job.decode(reader, reader.uint32()));
|
|
18508
18807
|
break;
|
|
18509
18808
|
}
|
|
18510
18809
|
default:
|
|
@@ -18514,42 +18813,42 @@ var sesame = $root.sesame = (() => {
|
|
|
18514
18813
|
}
|
|
18515
18814
|
return message;
|
|
18516
18815
|
};
|
|
18517
|
-
|
|
18816
|
+
JobList.decodeDelimited = function decodeDelimited(reader) {
|
|
18518
18817
|
if (!(reader instanceof $Reader))
|
|
18519
18818
|
reader = new $Reader(reader);
|
|
18520
18819
|
return this.decode(reader, reader.uint32());
|
|
18521
18820
|
};
|
|
18522
|
-
|
|
18821
|
+
JobList.verify = function verify(message) {
|
|
18523
18822
|
if (typeof message !== "object" || message === null)
|
|
18524
18823
|
return "object expected";
|
|
18525
18824
|
if (message.jobs != null && message.hasOwnProperty("jobs")) {
|
|
18526
18825
|
if (!Array.isArray(message.jobs))
|
|
18527
18826
|
return "jobs: array expected";
|
|
18528
18827
|
for (let i = 0; i < message.jobs.length; ++i) {
|
|
18529
|
-
let error = $root.sesame.v1.jobs.
|
|
18828
|
+
let error = $root.sesame.v1.jobs.Job.verify(message.jobs[i]);
|
|
18530
18829
|
if (error)
|
|
18531
18830
|
return "jobs." + error;
|
|
18532
18831
|
}
|
|
18533
18832
|
}
|
|
18534
18833
|
return null;
|
|
18535
18834
|
};
|
|
18536
|
-
|
|
18537
|
-
if (object instanceof $root.sesame.v1.jobs.
|
|
18835
|
+
JobList.fromObject = function fromObject(object) {
|
|
18836
|
+
if (object instanceof $root.sesame.v1.jobs.JobList)
|
|
18538
18837
|
return object;
|
|
18539
|
-
let message = new $root.sesame.v1.jobs.
|
|
18838
|
+
let message = new $root.sesame.v1.jobs.JobList();
|
|
18540
18839
|
if (object.jobs) {
|
|
18541
18840
|
if (!Array.isArray(object.jobs))
|
|
18542
|
-
throw TypeError(".sesame.v1.jobs.
|
|
18841
|
+
throw TypeError(".sesame.v1.jobs.JobList.jobs: array expected");
|
|
18543
18842
|
message.jobs = [];
|
|
18544
18843
|
for (let i = 0; i < object.jobs.length; ++i) {
|
|
18545
18844
|
if (typeof object.jobs[i] !== "object")
|
|
18546
|
-
throw TypeError(".sesame.v1.jobs.
|
|
18547
|
-
message.jobs[i] = $root.sesame.v1.jobs.
|
|
18845
|
+
throw TypeError(".sesame.v1.jobs.JobList.jobs: object expected");
|
|
18846
|
+
message.jobs[i] = $root.sesame.v1.jobs.Job.fromObject(object.jobs[i]);
|
|
18548
18847
|
}
|
|
18549
18848
|
}
|
|
18550
18849
|
return message;
|
|
18551
18850
|
};
|
|
18552
|
-
|
|
18851
|
+
JobList.toObject = function toObject(message, options) {
|
|
18553
18852
|
if (!options)
|
|
18554
18853
|
options = {};
|
|
18555
18854
|
let object = {};
|
|
@@ -18558,116 +18857,72 @@ var sesame = $root.sesame = (() => {
|
|
|
18558
18857
|
if (message.jobs && message.jobs.length) {
|
|
18559
18858
|
object.jobs = [];
|
|
18560
18859
|
for (let j = 0; j < message.jobs.length; ++j)
|
|
18561
|
-
object.jobs[j] = $root.sesame.v1.jobs.
|
|
18860
|
+
object.jobs[j] = $root.sesame.v1.jobs.Job.toObject(message.jobs[j], options);
|
|
18562
18861
|
}
|
|
18563
18862
|
return object;
|
|
18564
18863
|
};
|
|
18565
|
-
|
|
18864
|
+
JobList.prototype.toJSON = function toJSON() {
|
|
18566
18865
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
18567
18866
|
};
|
|
18568
|
-
|
|
18867
|
+
JobList.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18569
18868
|
if (typeUrlPrefix === void 0) {
|
|
18570
18869
|
typeUrlPrefix = "type.googleapis.com";
|
|
18571
18870
|
}
|
|
18572
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
18871
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobList";
|
|
18573
18872
|
};
|
|
18574
|
-
return
|
|
18873
|
+
return JobList;
|
|
18575
18874
|
}();
|
|
18576
|
-
jobs.
|
|
18577
|
-
function
|
|
18875
|
+
jobs.JobStartRequest = function() {
|
|
18876
|
+
function JobStartRequest(properties) {
|
|
18578
18877
|
if (properties) {
|
|
18579
18878
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18580
18879
|
if (properties[keys[i]] != null)
|
|
18581
18880
|
this[keys[i]] = properties[keys[i]];
|
|
18582
18881
|
}
|
|
18583
18882
|
}
|
|
18584
|
-
|
|
18585
|
-
|
|
18586
|
-
JobEvent.prototype.status = 0;
|
|
18587
|
-
JobEvent.prototype.statusText = "";
|
|
18588
|
-
JobEvent.prototype.error = null;
|
|
18589
|
-
JobEvent.prototype.timingInfo = null;
|
|
18883
|
+
JobStartRequest.prototype.exportRequest = null;
|
|
18884
|
+
JobStartRequest.prototype.importRequest = null;
|
|
18590
18885
|
let $oneOfFields;
|
|
18591
|
-
Object.defineProperty(
|
|
18592
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
18593
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
18594
|
-
});
|
|
18595
|
-
Object.defineProperty(JobEvent.prototype, "_timingInfo", {
|
|
18596
|
-
get: $util.oneOfGetter($oneOfFields = ["timingInfo"]),
|
|
18886
|
+
Object.defineProperty(JobStartRequest.prototype, "config", {
|
|
18887
|
+
get: $util.oneOfGetter($oneOfFields = ["exportRequest", "importRequest"]),
|
|
18597
18888
|
set: $util.oneOfSetter($oneOfFields)
|
|
18598
18889
|
});
|
|
18599
|
-
|
|
18600
|
-
return new
|
|
18890
|
+
JobStartRequest.create = function create(properties) {
|
|
18891
|
+
return new JobStartRequest(properties);
|
|
18601
18892
|
};
|
|
18602
|
-
|
|
18893
|
+
JobStartRequest.encode = function encode(message, writer) {
|
|
18603
18894
|
if (!writer)
|
|
18604
18895
|
writer = $Writer.create();
|
|
18605
|
-
if (message.
|
|
18606
|
-
writer.uint32(
|
|
18607
|
-
/* id 1, wireType
|
|
18608
|
-
|
|
18609
|
-
).
|
|
18610
|
-
if (message.
|
|
18611
|
-
writer.uint32(
|
|
18896
|
+
if (message.exportRequest != null && Object.hasOwnProperty.call(message, "exportRequest"))
|
|
18897
|
+
$root.sesame.v1.jobs.ExportStartRequest.encode(message.exportRequest, writer.uint32(
|
|
18898
|
+
/* id 1, wireType 2 =*/
|
|
18899
|
+
10
|
|
18900
|
+
).fork()).ldelim();
|
|
18901
|
+
if (message.importRequest != null && Object.hasOwnProperty.call(message, "importRequest"))
|
|
18902
|
+
$root.sesame.v1.jobs.ImportStartRequest.encode(message.importRequest, writer.uint32(
|
|
18612
18903
|
/* id 2, wireType 2 =*/
|
|
18613
18904
|
18
|
|
18614
|
-
).string(message.source);
|
|
18615
|
-
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
18616
|
-
writer.uint32(
|
|
18617
|
-
/* id 3, wireType 0 =*/
|
|
18618
|
-
24
|
|
18619
|
-
).int32(message.status);
|
|
18620
|
-
if (message.statusText != null && Object.hasOwnProperty.call(message, "statusText"))
|
|
18621
|
-
writer.uint32(
|
|
18622
|
-
/* id 4, wireType 2 =*/
|
|
18623
|
-
34
|
|
18624
|
-
).string(message.statusText);
|
|
18625
|
-
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
|
18626
|
-
writer.uint32(
|
|
18627
|
-
/* id 5, wireType 2 =*/
|
|
18628
|
-
42
|
|
18629
|
-
).string(message.error);
|
|
18630
|
-
if (message.timingInfo != null && Object.hasOwnProperty.call(message, "timingInfo"))
|
|
18631
|
-
$root.sesame.v1.jobs.TimingInfo.encode(message.timingInfo, writer.uint32(
|
|
18632
|
-
/* id 6, wireType 2 =*/
|
|
18633
|
-
50
|
|
18634
18905
|
).fork()).ldelim();
|
|
18635
18906
|
return writer;
|
|
18636
18907
|
};
|
|
18637
|
-
|
|
18908
|
+
JobStartRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18638
18909
|
return this.encode(message, writer).ldelim();
|
|
18639
18910
|
};
|
|
18640
|
-
|
|
18911
|
+
JobStartRequest.decode = function decode(reader, length, error) {
|
|
18641
18912
|
if (!(reader instanceof $Reader))
|
|
18642
18913
|
reader = $Reader.create(reader);
|
|
18643
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.
|
|
18914
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStartRequest();
|
|
18644
18915
|
while (reader.pos < end) {
|
|
18645
18916
|
let tag = reader.uint32();
|
|
18646
18917
|
if (tag === error)
|
|
18647
18918
|
break;
|
|
18648
18919
|
switch (tag >>> 3) {
|
|
18649
18920
|
case 1: {
|
|
18650
|
-
message.
|
|
18921
|
+
message.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.decode(reader, reader.uint32());
|
|
18651
18922
|
break;
|
|
18652
18923
|
}
|
|
18653
18924
|
case 2: {
|
|
18654
|
-
message.
|
|
18655
|
-
break;
|
|
18656
|
-
}
|
|
18657
|
-
case 3: {
|
|
18658
|
-
message.status = reader.int32();
|
|
18659
|
-
break;
|
|
18660
|
-
}
|
|
18661
|
-
case 4: {
|
|
18662
|
-
message.statusText = reader.string();
|
|
18663
|
-
break;
|
|
18664
|
-
}
|
|
18665
|
-
case 5: {
|
|
18666
|
-
message.error = reader.string();
|
|
18667
|
-
break;
|
|
18668
|
-
}
|
|
18669
|
-
case 6: {
|
|
18670
|
-
message.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(reader, reader.uint32());
|
|
18925
|
+
message.importRequest = $root.sesame.v1.jobs.ImportStartRequest.decode(reader, reader.uint32());
|
|
18671
18926
|
break;
|
|
18672
18927
|
}
|
|
18673
18928
|
default:
|
|
@@ -18677,145 +18932,317 @@ var sesame = $root.sesame = (() => {
|
|
|
18677
18932
|
}
|
|
18678
18933
|
return message;
|
|
18679
18934
|
};
|
|
18680
|
-
|
|
18935
|
+
JobStartRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
18681
18936
|
if (!(reader instanceof $Reader))
|
|
18682
18937
|
reader = new $Reader(reader);
|
|
18683
18938
|
return this.decode(reader, reader.uint32());
|
|
18684
18939
|
};
|
|
18685
|
-
|
|
18940
|
+
JobStartRequest.verify = function verify(message) {
|
|
18686
18941
|
if (typeof message !== "object" || message === null)
|
|
18687
18942
|
return "object expected";
|
|
18688
18943
|
let properties = {};
|
|
18689
|
-
if (message.
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
|
|
18694
|
-
|
|
18695
|
-
return "source: string expected";
|
|
18696
|
-
}
|
|
18697
|
-
if (message.status != null && message.hasOwnProperty("status"))
|
|
18698
|
-
switch (message.status) {
|
|
18699
|
-
default:
|
|
18700
|
-
return "status: enum value expected";
|
|
18701
|
-
case 0:
|
|
18702
|
-
case 1:
|
|
18703
|
-
case 2:
|
|
18704
|
-
case 3:
|
|
18705
|
-
case 4:
|
|
18706
|
-
case 5:
|
|
18707
|
-
break;
|
|
18944
|
+
if (message.exportRequest != null && message.hasOwnProperty("exportRequest")) {
|
|
18945
|
+
properties.config = 1;
|
|
18946
|
+
{
|
|
18947
|
+
let error = $root.sesame.v1.jobs.ExportStartRequest.verify(message.exportRequest);
|
|
18948
|
+
if (error)
|
|
18949
|
+
return "exportRequest." + error;
|
|
18708
18950
|
}
|
|
18709
|
-
if (message.statusText != null && message.hasOwnProperty("statusText")) {
|
|
18710
|
-
if (!$util.isString(message.statusText))
|
|
18711
|
-
return "statusText: string expected";
|
|
18712
18951
|
}
|
|
18713
|
-
if (message.
|
|
18714
|
-
properties.
|
|
18715
|
-
|
|
18716
|
-
|
|
18717
|
-
}
|
|
18718
|
-
if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
|
|
18719
|
-
properties._timingInfo = 1;
|
|
18952
|
+
if (message.importRequest != null && message.hasOwnProperty("importRequest")) {
|
|
18953
|
+
if (properties.config === 1)
|
|
18954
|
+
return "config: multiple values";
|
|
18955
|
+
properties.config = 1;
|
|
18720
18956
|
{
|
|
18721
|
-
let error = $root.sesame.v1.jobs.
|
|
18957
|
+
let error = $root.sesame.v1.jobs.ImportStartRequest.verify(message.importRequest);
|
|
18722
18958
|
if (error)
|
|
18723
|
-
return "
|
|
18959
|
+
return "importRequest." + error;
|
|
18724
18960
|
}
|
|
18725
18961
|
}
|
|
18726
18962
|
return null;
|
|
18727
18963
|
};
|
|
18728
|
-
|
|
18729
|
-
if (object instanceof $root.sesame.v1.jobs.
|
|
18964
|
+
JobStartRequest.fromObject = function fromObject(object) {
|
|
18965
|
+
if (object instanceof $root.sesame.v1.jobs.JobStartRequest)
|
|
18730
18966
|
return object;
|
|
18731
|
-
let message = new $root.sesame.v1.jobs.
|
|
18732
|
-
if (object.
|
|
18733
|
-
|
|
18734
|
-
|
|
18735
|
-
message.
|
|
18736
|
-
|
|
18737
|
-
|
|
18738
|
-
|
|
18739
|
-
|
|
18740
|
-
|
|
18741
|
-
|
|
18742
|
-
|
|
18743
|
-
|
|
18744
|
-
|
|
18745
|
-
|
|
18746
|
-
|
|
18747
|
-
|
|
18748
|
-
|
|
18749
|
-
|
|
18750
|
-
|
|
18751
|
-
|
|
18752
|
-
|
|
18753
|
-
|
|
18754
|
-
|
|
18755
|
-
|
|
18756
|
-
|
|
18757
|
-
|
|
18758
|
-
|
|
18759
|
-
|
|
18760
|
-
|
|
18761
|
-
|
|
18762
|
-
|
|
18763
|
-
|
|
18764
|
-
|
|
18765
|
-
|
|
18967
|
+
let message = new $root.sesame.v1.jobs.JobStartRequest();
|
|
18968
|
+
if (object.exportRequest != null) {
|
|
18969
|
+
if (typeof object.exportRequest !== "object")
|
|
18970
|
+
throw TypeError(".sesame.v1.jobs.JobStartRequest.exportRequest: object expected");
|
|
18971
|
+
message.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.fromObject(object.exportRequest);
|
|
18972
|
+
}
|
|
18973
|
+
if (object.importRequest != null) {
|
|
18974
|
+
if (typeof object.importRequest !== "object")
|
|
18975
|
+
throw TypeError(".sesame.v1.jobs.JobStartRequest.importRequest: object expected");
|
|
18976
|
+
message.importRequest = $root.sesame.v1.jobs.ImportStartRequest.fromObject(object.importRequest);
|
|
18977
|
+
}
|
|
18978
|
+
return message;
|
|
18979
|
+
};
|
|
18980
|
+
JobStartRequest.toObject = function toObject(message, options) {
|
|
18981
|
+
if (!options)
|
|
18982
|
+
options = {};
|
|
18983
|
+
let object = {};
|
|
18984
|
+
if (message.exportRequest != null && message.hasOwnProperty("exportRequest")) {
|
|
18985
|
+
object.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.toObject(message.exportRequest, options);
|
|
18986
|
+
if (options.oneofs)
|
|
18987
|
+
object.config = "exportRequest";
|
|
18988
|
+
}
|
|
18989
|
+
if (message.importRequest != null && message.hasOwnProperty("importRequest")) {
|
|
18990
|
+
object.importRequest = $root.sesame.v1.jobs.ImportStartRequest.toObject(message.importRequest, options);
|
|
18991
|
+
if (options.oneofs)
|
|
18992
|
+
object.config = "importRequest";
|
|
18993
|
+
}
|
|
18994
|
+
return object;
|
|
18995
|
+
};
|
|
18996
|
+
JobStartRequest.prototype.toJSON = function toJSON() {
|
|
18997
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
18998
|
+
};
|
|
18999
|
+
JobStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19000
|
+
if (typeUrlPrefix === void 0) {
|
|
19001
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
19002
|
+
}
|
|
19003
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobStartRequest";
|
|
19004
|
+
};
|
|
19005
|
+
return JobStartRequest;
|
|
19006
|
+
}();
|
|
19007
|
+
jobs.JobAbortRequest = function() {
|
|
19008
|
+
function JobAbortRequest(properties) {
|
|
19009
|
+
if (properties) {
|
|
19010
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19011
|
+
if (properties[keys[i]] != null)
|
|
19012
|
+
this[keys[i]] = properties[keys[i]];
|
|
19013
|
+
}
|
|
19014
|
+
}
|
|
19015
|
+
JobAbortRequest.prototype.jobId = 0;
|
|
19016
|
+
JobAbortRequest.create = function create(properties) {
|
|
19017
|
+
return new JobAbortRequest(properties);
|
|
19018
|
+
};
|
|
19019
|
+
JobAbortRequest.encode = function encode(message, writer) {
|
|
19020
|
+
if (!writer)
|
|
19021
|
+
writer = $Writer.create();
|
|
19022
|
+
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
19023
|
+
writer.uint32(
|
|
19024
|
+
/* id 1, wireType 0 =*/
|
|
19025
|
+
8
|
|
19026
|
+
).uint32(message.jobId);
|
|
19027
|
+
return writer;
|
|
19028
|
+
};
|
|
19029
|
+
JobAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19030
|
+
return this.encode(message, writer).ldelim();
|
|
19031
|
+
};
|
|
19032
|
+
JobAbortRequest.decode = function decode(reader, length, error) {
|
|
19033
|
+
if (!(reader instanceof $Reader))
|
|
19034
|
+
reader = $Reader.create(reader);
|
|
19035
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobAbortRequest();
|
|
19036
|
+
while (reader.pos < end) {
|
|
19037
|
+
let tag = reader.uint32();
|
|
19038
|
+
if (tag === error)
|
|
18766
19039
|
break;
|
|
19040
|
+
switch (tag >>> 3) {
|
|
19041
|
+
case 1: {
|
|
19042
|
+
message.jobId = reader.uint32();
|
|
19043
|
+
break;
|
|
19044
|
+
}
|
|
19045
|
+
default:
|
|
19046
|
+
reader.skipType(tag & 7);
|
|
19047
|
+
break;
|
|
19048
|
+
}
|
|
18767
19049
|
}
|
|
18768
|
-
|
|
18769
|
-
|
|
18770
|
-
|
|
18771
|
-
|
|
18772
|
-
|
|
18773
|
-
|
|
18774
|
-
|
|
18775
|
-
|
|
19050
|
+
return message;
|
|
19051
|
+
};
|
|
19052
|
+
JobAbortRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19053
|
+
if (!(reader instanceof $Reader))
|
|
19054
|
+
reader = new $Reader(reader);
|
|
19055
|
+
return this.decode(reader, reader.uint32());
|
|
19056
|
+
};
|
|
19057
|
+
JobAbortRequest.verify = function verify(message) {
|
|
19058
|
+
if (typeof message !== "object" || message === null)
|
|
19059
|
+
return "object expected";
|
|
19060
|
+
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19061
|
+
if (!$util.isInteger(message.jobId))
|
|
19062
|
+
return "jobId: integer expected";
|
|
18776
19063
|
}
|
|
19064
|
+
return null;
|
|
19065
|
+
};
|
|
19066
|
+
JobAbortRequest.fromObject = function fromObject(object) {
|
|
19067
|
+
if (object instanceof $root.sesame.v1.jobs.JobAbortRequest)
|
|
19068
|
+
return object;
|
|
19069
|
+
let message = new $root.sesame.v1.jobs.JobAbortRequest();
|
|
19070
|
+
if (object.jobId != null)
|
|
19071
|
+
message.jobId = object.jobId >>> 0;
|
|
18777
19072
|
return message;
|
|
18778
19073
|
};
|
|
18779
|
-
|
|
19074
|
+
JobAbortRequest.toObject = function toObject(message, options) {
|
|
18780
19075
|
if (!options)
|
|
18781
19076
|
options = {};
|
|
18782
19077
|
let object = {};
|
|
18783
|
-
if (options.defaults)
|
|
19078
|
+
if (options.defaults)
|
|
18784
19079
|
object.jobId = 0;
|
|
18785
|
-
object.source = "";
|
|
18786
|
-
object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
|
|
18787
|
-
object.statusText = "";
|
|
18788
|
-
}
|
|
18789
19080
|
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
18790
19081
|
object.jobId = message.jobId;
|
|
18791
|
-
|
|
18792
|
-
|
|
18793
|
-
|
|
18794
|
-
|
|
18795
|
-
|
|
18796
|
-
|
|
18797
|
-
if (
|
|
18798
|
-
|
|
18799
|
-
if (options.oneofs)
|
|
18800
|
-
object._error = "error";
|
|
19082
|
+
return object;
|
|
19083
|
+
};
|
|
19084
|
+
JobAbortRequest.prototype.toJSON = function toJSON() {
|
|
19085
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
19086
|
+
};
|
|
19087
|
+
JobAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19088
|
+
if (typeUrlPrefix === void 0) {
|
|
19089
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
18801
19090
|
}
|
|
18802
|
-
|
|
18803
|
-
|
|
18804
|
-
|
|
18805
|
-
|
|
19091
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobAbortRequest";
|
|
19092
|
+
};
|
|
19093
|
+
return JobAbortRequest;
|
|
19094
|
+
}();
|
|
19095
|
+
jobs.JobStatusRequest = function() {
|
|
19096
|
+
function JobStatusRequest(properties) {
|
|
19097
|
+
if (properties) {
|
|
19098
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19099
|
+
if (properties[keys[i]] != null)
|
|
19100
|
+
this[keys[i]] = properties[keys[i]];
|
|
19101
|
+
}
|
|
19102
|
+
}
|
|
19103
|
+
JobStatusRequest.prototype.jobId = 0;
|
|
19104
|
+
JobStatusRequest.create = function create(properties) {
|
|
19105
|
+
return new JobStatusRequest(properties);
|
|
19106
|
+
};
|
|
19107
|
+
JobStatusRequest.encode = function encode(message, writer) {
|
|
19108
|
+
if (!writer)
|
|
19109
|
+
writer = $Writer.create();
|
|
19110
|
+
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
19111
|
+
writer.uint32(
|
|
19112
|
+
/* id 1, wireType 0 =*/
|
|
19113
|
+
8
|
|
19114
|
+
).uint32(message.jobId);
|
|
19115
|
+
return writer;
|
|
19116
|
+
};
|
|
19117
|
+
JobStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19118
|
+
return this.encode(message, writer).ldelim();
|
|
19119
|
+
};
|
|
19120
|
+
JobStatusRequest.decode = function decode(reader, length, error) {
|
|
19121
|
+
if (!(reader instanceof $Reader))
|
|
19122
|
+
reader = $Reader.create(reader);
|
|
19123
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStatusRequest();
|
|
19124
|
+
while (reader.pos < end) {
|
|
19125
|
+
let tag = reader.uint32();
|
|
19126
|
+
if (tag === error)
|
|
19127
|
+
break;
|
|
19128
|
+
switch (tag >>> 3) {
|
|
19129
|
+
case 1: {
|
|
19130
|
+
message.jobId = reader.uint32();
|
|
19131
|
+
break;
|
|
19132
|
+
}
|
|
19133
|
+
default:
|
|
19134
|
+
reader.skipType(tag & 7);
|
|
19135
|
+
break;
|
|
19136
|
+
}
|
|
19137
|
+
}
|
|
19138
|
+
return message;
|
|
19139
|
+
};
|
|
19140
|
+
JobStatusRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19141
|
+
if (!(reader instanceof $Reader))
|
|
19142
|
+
reader = new $Reader(reader);
|
|
19143
|
+
return this.decode(reader, reader.uint32());
|
|
19144
|
+
};
|
|
19145
|
+
JobStatusRequest.verify = function verify(message) {
|
|
19146
|
+
if (typeof message !== "object" || message === null)
|
|
19147
|
+
return "object expected";
|
|
19148
|
+
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19149
|
+
if (!$util.isInteger(message.jobId))
|
|
19150
|
+
return "jobId: integer expected";
|
|
18806
19151
|
}
|
|
19152
|
+
return null;
|
|
19153
|
+
};
|
|
19154
|
+
JobStatusRequest.fromObject = function fromObject(object) {
|
|
19155
|
+
if (object instanceof $root.sesame.v1.jobs.JobStatusRequest)
|
|
19156
|
+
return object;
|
|
19157
|
+
let message = new $root.sesame.v1.jobs.JobStatusRequest();
|
|
19158
|
+
if (object.jobId != null)
|
|
19159
|
+
message.jobId = object.jobId >>> 0;
|
|
19160
|
+
return message;
|
|
19161
|
+
};
|
|
19162
|
+
JobStatusRequest.toObject = function toObject(message, options) {
|
|
19163
|
+
if (!options)
|
|
19164
|
+
options = {};
|
|
19165
|
+
let object = {};
|
|
19166
|
+
if (options.defaults)
|
|
19167
|
+
object.jobId = 0;
|
|
19168
|
+
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
19169
|
+
object.jobId = message.jobId;
|
|
18807
19170
|
return object;
|
|
18808
19171
|
};
|
|
18809
|
-
|
|
19172
|
+
JobStatusRequest.prototype.toJSON = function toJSON() {
|
|
19173
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
19174
|
+
};
|
|
19175
|
+
JobStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19176
|
+
if (typeUrlPrefix === void 0) {
|
|
19177
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
19178
|
+
}
|
|
19179
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobStatusRequest";
|
|
19180
|
+
};
|
|
19181
|
+
return JobStatusRequest;
|
|
19182
|
+
}();
|
|
19183
|
+
jobs.JobListRequest = function() {
|
|
19184
|
+
function JobListRequest(properties) {
|
|
19185
|
+
if (properties) {
|
|
19186
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19187
|
+
if (properties[keys[i]] != null)
|
|
19188
|
+
this[keys[i]] = properties[keys[i]];
|
|
19189
|
+
}
|
|
19190
|
+
}
|
|
19191
|
+
JobListRequest.create = function create(properties) {
|
|
19192
|
+
return new JobListRequest(properties);
|
|
19193
|
+
};
|
|
19194
|
+
JobListRequest.encode = function encode(message, writer) {
|
|
19195
|
+
if (!writer)
|
|
19196
|
+
writer = $Writer.create();
|
|
19197
|
+
return writer;
|
|
19198
|
+
};
|
|
19199
|
+
JobListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19200
|
+
return this.encode(message, writer).ldelim();
|
|
19201
|
+
};
|
|
19202
|
+
JobListRequest.decode = function decode(reader, length, error) {
|
|
19203
|
+
if (!(reader instanceof $Reader))
|
|
19204
|
+
reader = $Reader.create(reader);
|
|
19205
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobListRequest();
|
|
19206
|
+
while (reader.pos < end) {
|
|
19207
|
+
let tag = reader.uint32();
|
|
19208
|
+
if (tag === error)
|
|
19209
|
+
break;
|
|
19210
|
+
switch (tag >>> 3) {
|
|
19211
|
+
default:
|
|
19212
|
+
reader.skipType(tag & 7);
|
|
19213
|
+
break;
|
|
19214
|
+
}
|
|
19215
|
+
}
|
|
19216
|
+
return message;
|
|
19217
|
+
};
|
|
19218
|
+
JobListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19219
|
+
if (!(reader instanceof $Reader))
|
|
19220
|
+
reader = new $Reader(reader);
|
|
19221
|
+
return this.decode(reader, reader.uint32());
|
|
19222
|
+
};
|
|
19223
|
+
JobListRequest.verify = function verify(message) {
|
|
19224
|
+
if (typeof message !== "object" || message === null)
|
|
19225
|
+
return "object expected";
|
|
19226
|
+
return null;
|
|
19227
|
+
};
|
|
19228
|
+
JobListRequest.fromObject = function fromObject(object) {
|
|
19229
|
+
if (object instanceof $root.sesame.v1.jobs.JobListRequest)
|
|
19230
|
+
return object;
|
|
19231
|
+
return new $root.sesame.v1.jobs.JobListRequest();
|
|
19232
|
+
};
|
|
19233
|
+
JobListRequest.toObject = function toObject() {
|
|
19234
|
+
return {};
|
|
19235
|
+
};
|
|
19236
|
+
JobListRequest.prototype.toJSON = function toJSON() {
|
|
18810
19237
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
18811
19238
|
};
|
|
18812
|
-
|
|
19239
|
+
JobListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18813
19240
|
if (typeUrlPrefix === void 0) {
|
|
18814
19241
|
typeUrlPrefix = "type.googleapis.com";
|
|
18815
19242
|
}
|
|
18816
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
19243
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobListRequest";
|
|
18817
19244
|
};
|
|
18818
|
-
return
|
|
19245
|
+
return JobListRequest;
|
|
18819
19246
|
}();
|
|
18820
19247
|
jobs.ExportConfiguration = function() {
|
|
18821
19248
|
function ExportConfiguration(properties) {
|
|
@@ -19138,6 +19565,11 @@ var sesame = $root.sesame = (() => {
|
|
|
19138
19565
|
case 4:
|
|
19139
19566
|
case 5:
|
|
19140
19567
|
case 6:
|
|
19568
|
+
case 7:
|
|
19569
|
+
case 64:
|
|
19570
|
+
case 65:
|
|
19571
|
+
case 66:
|
|
19572
|
+
case 67:
|
|
19141
19573
|
break;
|
|
19142
19574
|
}
|
|
19143
19575
|
if (message.width != null && message.hasOwnProperty("width")) {
|
|
@@ -19219,6 +19651,13 @@ var sesame = $root.sesame = (() => {
|
|
|
19219
19651
|
case 2:
|
|
19220
19652
|
case 3:
|
|
19221
19653
|
case 4:
|
|
19654
|
+
case 5:
|
|
19655
|
+
case 6:
|
|
19656
|
+
case 7:
|
|
19657
|
+
case 64:
|
|
19658
|
+
case 65:
|
|
19659
|
+
case 66:
|
|
19660
|
+
case 67:
|
|
19222
19661
|
break;
|
|
19223
19662
|
}
|
|
19224
19663
|
if (message.audioBitrateKbps != null && message.hasOwnProperty("audioBitrateKbps")) {
|
|
@@ -19283,34 +19722,54 @@ var sesame = $root.sesame = (() => {
|
|
|
19283
19722
|
break;
|
|
19284
19723
|
}
|
|
19285
19724
|
break;
|
|
19286
|
-
case "
|
|
19725
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
19287
19726
|
case 0:
|
|
19288
19727
|
message.videoCodec = 0;
|
|
19289
19728
|
break;
|
|
19290
|
-
case "
|
|
19729
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
19291
19730
|
case 1:
|
|
19292
19731
|
message.videoCodec = 1;
|
|
19293
19732
|
break;
|
|
19294
|
-
case "
|
|
19733
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
19295
19734
|
case 2:
|
|
19296
19735
|
message.videoCodec = 2;
|
|
19297
19736
|
break;
|
|
19298
|
-
case "
|
|
19737
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
19299
19738
|
case 3:
|
|
19300
19739
|
message.videoCodec = 3;
|
|
19301
19740
|
break;
|
|
19302
|
-
case "
|
|
19741
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
19303
19742
|
case 4:
|
|
19304
19743
|
message.videoCodec = 4;
|
|
19305
19744
|
break;
|
|
19306
|
-
case "
|
|
19745
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
19307
19746
|
case 5:
|
|
19308
19747
|
message.videoCodec = 5;
|
|
19309
19748
|
break;
|
|
19310
|
-
case "
|
|
19749
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
19311
19750
|
case 6:
|
|
19312
19751
|
message.videoCodec = 6;
|
|
19313
19752
|
break;
|
|
19753
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
19754
|
+
case 7:
|
|
19755
|
+
message.videoCodec = 7;
|
|
19756
|
+
break;
|
|
19757
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
19758
|
+
case 64:
|
|
19759
|
+
message.videoCodec = 64;
|
|
19760
|
+
break;
|
|
19761
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
19762
|
+
case 65:
|
|
19763
|
+
message.videoCodec = 65;
|
|
19764
|
+
break;
|
|
19765
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
19766
|
+
case 66:
|
|
19767
|
+
message.videoCodec = 66;
|
|
19768
|
+
break;
|
|
19769
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
19770
|
+
case 67:
|
|
19771
|
+
message.videoCodec = 67;
|
|
19772
|
+
break;
|
|
19314
19773
|
}
|
|
19315
19774
|
if (object.width != null)
|
|
19316
19775
|
message.width = object.width >>> 0;
|
|
@@ -19373,26 +19832,54 @@ var sesame = $root.sesame = (() => {
|
|
|
19373
19832
|
break;
|
|
19374
19833
|
}
|
|
19375
19834
|
break;
|
|
19376
|
-
case "
|
|
19835
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
19377
19836
|
case 0:
|
|
19378
19837
|
message.audioCodec = 0;
|
|
19379
19838
|
break;
|
|
19380
|
-
case "
|
|
19839
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
19381
19840
|
case 1:
|
|
19382
19841
|
message.audioCodec = 1;
|
|
19383
19842
|
break;
|
|
19384
|
-
case "
|
|
19843
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
19385
19844
|
case 2:
|
|
19386
19845
|
message.audioCodec = 2;
|
|
19387
19846
|
break;
|
|
19388
|
-
case "
|
|
19847
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
19389
19848
|
case 3:
|
|
19390
19849
|
message.audioCodec = 3;
|
|
19391
19850
|
break;
|
|
19392
|
-
case "
|
|
19851
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
19393
19852
|
case 4:
|
|
19394
19853
|
message.audioCodec = 4;
|
|
19395
19854
|
break;
|
|
19855
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
19856
|
+
case 5:
|
|
19857
|
+
message.audioCodec = 5;
|
|
19858
|
+
break;
|
|
19859
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
19860
|
+
case 6:
|
|
19861
|
+
message.audioCodec = 6;
|
|
19862
|
+
break;
|
|
19863
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
19864
|
+
case 7:
|
|
19865
|
+
message.audioCodec = 7;
|
|
19866
|
+
break;
|
|
19867
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
19868
|
+
case 64:
|
|
19869
|
+
message.audioCodec = 64;
|
|
19870
|
+
break;
|
|
19871
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
19872
|
+
case 65:
|
|
19873
|
+
message.audioCodec = 65;
|
|
19874
|
+
break;
|
|
19875
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
19876
|
+
case 66:
|
|
19877
|
+
message.audioCodec = 66;
|
|
19878
|
+
break;
|
|
19879
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
19880
|
+
case 67:
|
|
19881
|
+
message.audioCodec = 67;
|
|
19882
|
+
break;
|
|
19396
19883
|
}
|
|
19397
19884
|
if (object.audioBitrateKbps != null)
|
|
19398
19885
|
message.audioBitrateKbps = object.audioBitrateKbps >>> 0;
|
|
@@ -19418,7 +19905,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19418
19905
|
if (options.defaults) {
|
|
19419
19906
|
object.filename = "";
|
|
19420
19907
|
object.container = options.enums === String ? "CONTAINER_FORMAT_UNSPECIFIED" : 0;
|
|
19421
|
-
object.videoCodec = options.enums === String ? "
|
|
19908
|
+
object.videoCodec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
19422
19909
|
object.width = 0;
|
|
19423
19910
|
object.height = 0;
|
|
19424
19911
|
object.fpsNum = 0;
|
|
@@ -19435,7 +19922,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19435
19922
|
object.colorTransfer = "";
|
|
19436
19923
|
object.colorMatrix = "";
|
|
19437
19924
|
object.fullRange = false;
|
|
19438
|
-
object.audioCodec = options.enums === String ? "
|
|
19925
|
+
object.audioCodec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
19439
19926
|
object.audioBitrateKbps = 0;
|
|
19440
19927
|
object.audioSampleRateHz = 0;
|
|
19441
19928
|
object.audioChannels = 0;
|
|
@@ -19445,7 +19932,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19445
19932
|
if (message.container != null && message.hasOwnProperty("container"))
|
|
19446
19933
|
object.container = options.enums === String ? $root.sesame.v1.jobs.ContainerFormat[message.container] === void 0 ? message.container : $root.sesame.v1.jobs.ContainerFormat[message.container] : message.container;
|
|
19447
19934
|
if (message.videoCodec != null && message.hasOwnProperty("videoCodec"))
|
|
19448
|
-
object.videoCodec = options.enums === String ? $root.sesame.v1.common.
|
|
19935
|
+
object.videoCodec = options.enums === String ? $root.sesame.v1.common.CodecType[message.videoCodec] === void 0 ? message.videoCodec : $root.sesame.v1.common.CodecType[message.videoCodec] : message.videoCodec;
|
|
19449
19936
|
if (message.width != null && message.hasOwnProperty("width"))
|
|
19450
19937
|
object.width = message.width;
|
|
19451
19938
|
if (message.height != null && message.hasOwnProperty("height"))
|
|
@@ -19479,7 +19966,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19479
19966
|
if (message.fullRange != null && message.hasOwnProperty("fullRange"))
|
|
19480
19967
|
object.fullRange = message.fullRange;
|
|
19481
19968
|
if (message.audioCodec != null && message.hasOwnProperty("audioCodec"))
|
|
19482
|
-
object.audioCodec = options.enums === String ? $root.sesame.v1.
|
|
19969
|
+
object.audioCodec = options.enums === String ? $root.sesame.v1.common.CodecType[message.audioCodec] === void 0 ? message.audioCodec : $root.sesame.v1.common.CodecType[message.audioCodec] : message.audioCodec;
|
|
19483
19970
|
if (message.audioBitrateKbps != null && message.hasOwnProperty("audioBitrateKbps"))
|
|
19484
19971
|
object.audioBitrateKbps = message.audioBitrateKbps;
|
|
19485
19972
|
if (message.audioSampleRateHz != null && message.hasOwnProperty("audioSampleRateHz"))
|
|
@@ -19636,249 +20123,9 @@ var sesame = $root.sesame = (() => {
|
|
|
19636
20123
|
};
|
|
19637
20124
|
return ExportStartRequest;
|
|
19638
20125
|
}();
|
|
19639
|
-
jobs.
|
|
19640
|
-
function
|
|
19641
|
-
|
|
19642
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19643
|
-
if (properties[keys[i]] != null)
|
|
19644
|
-
this[keys[i]] = properties[keys[i]];
|
|
19645
|
-
}
|
|
19646
|
-
}
|
|
19647
|
-
ExportAbortRequest.prototype.jobId = 0;
|
|
19648
|
-
ExportAbortRequest.create = function create(properties) {
|
|
19649
|
-
return new ExportAbortRequest(properties);
|
|
19650
|
-
};
|
|
19651
|
-
ExportAbortRequest.encode = function encode(message, writer) {
|
|
19652
|
-
if (!writer)
|
|
19653
|
-
writer = $Writer.create();
|
|
19654
|
-
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
19655
|
-
writer.uint32(
|
|
19656
|
-
/* id 1, wireType 0 =*/
|
|
19657
|
-
8
|
|
19658
|
-
).uint32(message.jobId);
|
|
19659
|
-
return writer;
|
|
19660
|
-
};
|
|
19661
|
-
ExportAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19662
|
-
return this.encode(message, writer).ldelim();
|
|
19663
|
-
};
|
|
19664
|
-
ExportAbortRequest.decode = function decode(reader, length, error) {
|
|
19665
|
-
if (!(reader instanceof $Reader))
|
|
19666
|
-
reader = $Reader.create(reader);
|
|
19667
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportAbortRequest();
|
|
19668
|
-
while (reader.pos < end) {
|
|
19669
|
-
let tag = reader.uint32();
|
|
19670
|
-
if (tag === error)
|
|
19671
|
-
break;
|
|
19672
|
-
switch (tag >>> 3) {
|
|
19673
|
-
case 1: {
|
|
19674
|
-
message.jobId = reader.uint32();
|
|
19675
|
-
break;
|
|
19676
|
-
}
|
|
19677
|
-
default:
|
|
19678
|
-
reader.skipType(tag & 7);
|
|
19679
|
-
break;
|
|
19680
|
-
}
|
|
19681
|
-
}
|
|
19682
|
-
return message;
|
|
19683
|
-
};
|
|
19684
|
-
ExportAbortRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19685
|
-
if (!(reader instanceof $Reader))
|
|
19686
|
-
reader = new $Reader(reader);
|
|
19687
|
-
return this.decode(reader, reader.uint32());
|
|
19688
|
-
};
|
|
19689
|
-
ExportAbortRequest.verify = function verify(message) {
|
|
19690
|
-
if (typeof message !== "object" || message === null)
|
|
19691
|
-
return "object expected";
|
|
19692
|
-
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19693
|
-
if (!$util.isInteger(message.jobId))
|
|
19694
|
-
return "jobId: integer expected";
|
|
19695
|
-
}
|
|
19696
|
-
return null;
|
|
19697
|
-
};
|
|
19698
|
-
ExportAbortRequest.fromObject = function fromObject(object) {
|
|
19699
|
-
if (object instanceof $root.sesame.v1.jobs.ExportAbortRequest)
|
|
19700
|
-
return object;
|
|
19701
|
-
let message = new $root.sesame.v1.jobs.ExportAbortRequest();
|
|
19702
|
-
if (object.jobId != null)
|
|
19703
|
-
message.jobId = object.jobId >>> 0;
|
|
19704
|
-
return message;
|
|
19705
|
-
};
|
|
19706
|
-
ExportAbortRequest.toObject = function toObject(message, options) {
|
|
19707
|
-
if (!options)
|
|
19708
|
-
options = {};
|
|
19709
|
-
let object = {};
|
|
19710
|
-
if (options.defaults)
|
|
19711
|
-
object.jobId = 0;
|
|
19712
|
-
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
19713
|
-
object.jobId = message.jobId;
|
|
19714
|
-
return object;
|
|
19715
|
-
};
|
|
19716
|
-
ExportAbortRequest.prototype.toJSON = function toJSON() {
|
|
19717
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
19718
|
-
};
|
|
19719
|
-
ExportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19720
|
-
if (typeUrlPrefix === void 0) {
|
|
19721
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
19722
|
-
}
|
|
19723
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ExportAbortRequest";
|
|
19724
|
-
};
|
|
19725
|
-
return ExportAbortRequest;
|
|
19726
|
-
}();
|
|
19727
|
-
jobs.ExportStatusRequest = function() {
|
|
19728
|
-
function ExportStatusRequest(properties) {
|
|
19729
|
-
if (properties) {
|
|
19730
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19731
|
-
if (properties[keys[i]] != null)
|
|
19732
|
-
this[keys[i]] = properties[keys[i]];
|
|
19733
|
-
}
|
|
19734
|
-
}
|
|
19735
|
-
ExportStatusRequest.prototype.jobId = 0;
|
|
19736
|
-
ExportStatusRequest.create = function create(properties) {
|
|
19737
|
-
return new ExportStatusRequest(properties);
|
|
19738
|
-
};
|
|
19739
|
-
ExportStatusRequest.encode = function encode(message, writer) {
|
|
19740
|
-
if (!writer)
|
|
19741
|
-
writer = $Writer.create();
|
|
19742
|
-
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
19743
|
-
writer.uint32(
|
|
19744
|
-
/* id 1, wireType 0 =*/
|
|
19745
|
-
8
|
|
19746
|
-
).uint32(message.jobId);
|
|
19747
|
-
return writer;
|
|
19748
|
-
};
|
|
19749
|
-
ExportStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19750
|
-
return this.encode(message, writer).ldelim();
|
|
19751
|
-
};
|
|
19752
|
-
ExportStatusRequest.decode = function decode(reader, length, error) {
|
|
19753
|
-
if (!(reader instanceof $Reader))
|
|
19754
|
-
reader = $Reader.create(reader);
|
|
19755
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportStatusRequest();
|
|
19756
|
-
while (reader.pos < end) {
|
|
19757
|
-
let tag = reader.uint32();
|
|
19758
|
-
if (tag === error)
|
|
19759
|
-
break;
|
|
19760
|
-
switch (tag >>> 3) {
|
|
19761
|
-
case 1: {
|
|
19762
|
-
message.jobId = reader.uint32();
|
|
19763
|
-
break;
|
|
19764
|
-
}
|
|
19765
|
-
default:
|
|
19766
|
-
reader.skipType(tag & 7);
|
|
19767
|
-
break;
|
|
19768
|
-
}
|
|
19769
|
-
}
|
|
19770
|
-
return message;
|
|
19771
|
-
};
|
|
19772
|
-
ExportStatusRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19773
|
-
if (!(reader instanceof $Reader))
|
|
19774
|
-
reader = new $Reader(reader);
|
|
19775
|
-
return this.decode(reader, reader.uint32());
|
|
19776
|
-
};
|
|
19777
|
-
ExportStatusRequest.verify = function verify(message) {
|
|
19778
|
-
if (typeof message !== "object" || message === null)
|
|
19779
|
-
return "object expected";
|
|
19780
|
-
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19781
|
-
if (!$util.isInteger(message.jobId))
|
|
19782
|
-
return "jobId: integer expected";
|
|
19783
|
-
}
|
|
19784
|
-
return null;
|
|
19785
|
-
};
|
|
19786
|
-
ExportStatusRequest.fromObject = function fromObject(object) {
|
|
19787
|
-
if (object instanceof $root.sesame.v1.jobs.ExportStatusRequest)
|
|
19788
|
-
return object;
|
|
19789
|
-
let message = new $root.sesame.v1.jobs.ExportStatusRequest();
|
|
19790
|
-
if (object.jobId != null)
|
|
19791
|
-
message.jobId = object.jobId >>> 0;
|
|
19792
|
-
return message;
|
|
19793
|
-
};
|
|
19794
|
-
ExportStatusRequest.toObject = function toObject(message, options) {
|
|
19795
|
-
if (!options)
|
|
19796
|
-
options = {};
|
|
19797
|
-
let object = {};
|
|
19798
|
-
if (options.defaults)
|
|
19799
|
-
object.jobId = 0;
|
|
19800
|
-
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
19801
|
-
object.jobId = message.jobId;
|
|
19802
|
-
return object;
|
|
19803
|
-
};
|
|
19804
|
-
ExportStatusRequest.prototype.toJSON = function toJSON() {
|
|
19805
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
19806
|
-
};
|
|
19807
|
-
ExportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19808
|
-
if (typeUrlPrefix === void 0) {
|
|
19809
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
19810
|
-
}
|
|
19811
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ExportStatusRequest";
|
|
19812
|
-
};
|
|
19813
|
-
return ExportStatusRequest;
|
|
19814
|
-
}();
|
|
19815
|
-
jobs.ExportListRequest = function() {
|
|
19816
|
-
function ExportListRequest(properties) {
|
|
19817
|
-
if (properties) {
|
|
19818
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19819
|
-
if (properties[keys[i]] != null)
|
|
19820
|
-
this[keys[i]] = properties[keys[i]];
|
|
19821
|
-
}
|
|
19822
|
-
}
|
|
19823
|
-
ExportListRequest.create = function create(properties) {
|
|
19824
|
-
return new ExportListRequest(properties);
|
|
19825
|
-
};
|
|
19826
|
-
ExportListRequest.encode = function encode(message, writer) {
|
|
19827
|
-
if (!writer)
|
|
19828
|
-
writer = $Writer.create();
|
|
19829
|
-
return writer;
|
|
19830
|
-
};
|
|
19831
|
-
ExportListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19832
|
-
return this.encode(message, writer).ldelim();
|
|
19833
|
-
};
|
|
19834
|
-
ExportListRequest.decode = function decode(reader, length, error) {
|
|
19835
|
-
if (!(reader instanceof $Reader))
|
|
19836
|
-
reader = $Reader.create(reader);
|
|
19837
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportListRequest();
|
|
19838
|
-
while (reader.pos < end) {
|
|
19839
|
-
let tag = reader.uint32();
|
|
19840
|
-
if (tag === error)
|
|
19841
|
-
break;
|
|
19842
|
-
switch (tag >>> 3) {
|
|
19843
|
-
default:
|
|
19844
|
-
reader.skipType(tag & 7);
|
|
19845
|
-
break;
|
|
19846
|
-
}
|
|
19847
|
-
}
|
|
19848
|
-
return message;
|
|
19849
|
-
};
|
|
19850
|
-
ExportListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19851
|
-
if (!(reader instanceof $Reader))
|
|
19852
|
-
reader = new $Reader(reader);
|
|
19853
|
-
return this.decode(reader, reader.uint32());
|
|
19854
|
-
};
|
|
19855
|
-
ExportListRequest.verify = function verify(message) {
|
|
19856
|
-
if (typeof message !== "object" || message === null)
|
|
19857
|
-
return "object expected";
|
|
19858
|
-
return null;
|
|
19859
|
-
};
|
|
19860
|
-
ExportListRequest.fromObject = function fromObject(object) {
|
|
19861
|
-
if (object instanceof $root.sesame.v1.jobs.ExportListRequest)
|
|
19862
|
-
return object;
|
|
19863
|
-
return new $root.sesame.v1.jobs.ExportListRequest();
|
|
19864
|
-
};
|
|
19865
|
-
ExportListRequest.toObject = function toObject() {
|
|
19866
|
-
return {};
|
|
19867
|
-
};
|
|
19868
|
-
ExportListRequest.prototype.toJSON = function toJSON() {
|
|
19869
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
19870
|
-
};
|
|
19871
|
-
ExportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19872
|
-
if (typeUrlPrefix === void 0) {
|
|
19873
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
19874
|
-
}
|
|
19875
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ExportListRequest";
|
|
19876
|
-
};
|
|
19877
|
-
return ExportListRequest;
|
|
19878
|
-
}();
|
|
19879
|
-
jobs.ImportConfiguration = function() {
|
|
19880
|
-
function ImportConfiguration(properties) {
|
|
19881
|
-
this.audioRouting = [];
|
|
20126
|
+
jobs.ImportConfiguration = function() {
|
|
20127
|
+
function ImportConfiguration(properties) {
|
|
20128
|
+
this.audioRouting = [];
|
|
19882
20129
|
if (properties) {
|
|
19883
20130
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19884
20131
|
if (properties[keys[i]] != null)
|
|
@@ -20067,254 +20314,74 @@ var sesame = $root.sesame = (() => {
|
|
|
20067
20314
|
object.dstClipId = options.longs === String ? "0" : 0;
|
|
20068
20315
|
object.dstClipName = "";
|
|
20069
20316
|
object.dstClipUserData = "";
|
|
20070
|
-
}
|
|
20071
|
-
if (message.srcFilename != null && message.hasOwnProperty("srcFilename"))
|
|
20072
|
-
object.srcFilename = message.srcFilename;
|
|
20073
|
-
if (message.audioRouting && message.audioRouting.length) {
|
|
20074
|
-
object.audioRouting = [];
|
|
20075
|
-
for (let j = 0; j < message.audioRouting.length; ++j)
|
|
20076
|
-
object.audioRouting[j] = message.audioRouting[j];
|
|
20077
|
-
}
|
|
20078
|
-
if (message.dstRecorderId != null && message.hasOwnProperty("dstRecorderId"))
|
|
20079
|
-
object.dstRecorderId = message.dstRecorderId;
|
|
20080
|
-
if (message.dstClipId != null && message.hasOwnProperty("dstClipId"))
|
|
20081
|
-
if (typeof message.dstClipId === "number")
|
|
20082
|
-
object.dstClipId = options.longs === String ? String(message.dstClipId) : message.dstClipId;
|
|
20083
|
-
else
|
|
20084
|
-
object.dstClipId = options.longs === String ? $util.Long.prototype.toString.call(message.dstClipId) : options.longs === Number ? new $util.LongBits(message.dstClipId.low >>> 0, message.dstClipId.high >>> 0).toNumber(true) : message.dstClipId;
|
|
20085
|
-
if (message.dstClipName != null && message.hasOwnProperty("dstClipName"))
|
|
20086
|
-
object.dstClipName = message.dstClipName;
|
|
20087
|
-
if (message.dstClipUserData != null && message.hasOwnProperty("dstClipUserData"))
|
|
20088
|
-
object.dstClipUserData = message.dstClipUserData;
|
|
20089
|
-
return object;
|
|
20090
|
-
};
|
|
20091
|
-
ImportConfiguration.prototype.toJSON = function toJSON() {
|
|
20092
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
20093
|
-
};
|
|
20094
|
-
ImportConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20095
|
-
if (typeUrlPrefix === void 0) {
|
|
20096
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
20097
|
-
}
|
|
20098
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ImportConfiguration";
|
|
20099
|
-
};
|
|
20100
|
-
return ImportConfiguration;
|
|
20101
|
-
}();
|
|
20102
|
-
jobs.ImportStartRequest = function() {
|
|
20103
|
-
function ImportStartRequest(properties) {
|
|
20104
|
-
if (properties) {
|
|
20105
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20106
|
-
if (properties[keys[i]] != null)
|
|
20107
|
-
this[keys[i]] = properties[keys[i]];
|
|
20108
|
-
}
|
|
20109
|
-
}
|
|
20110
|
-
ImportStartRequest.prototype.config = null;
|
|
20111
|
-
ImportStartRequest.create = function create(properties) {
|
|
20112
|
-
return new ImportStartRequest(properties);
|
|
20113
|
-
};
|
|
20114
|
-
ImportStartRequest.encode = function encode(message, writer) {
|
|
20115
|
-
if (!writer)
|
|
20116
|
-
writer = $Writer.create();
|
|
20117
|
-
if (message.config != null && Object.hasOwnProperty.call(message, "config"))
|
|
20118
|
-
$root.sesame.v1.jobs.ImportConfiguration.encode(message.config, writer.uint32(
|
|
20119
|
-
/* id 1, wireType 2 =*/
|
|
20120
|
-
10
|
|
20121
|
-
).fork()).ldelim();
|
|
20122
|
-
return writer;
|
|
20123
|
-
};
|
|
20124
|
-
ImportStartRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20125
|
-
return this.encode(message, writer).ldelim();
|
|
20126
|
-
};
|
|
20127
|
-
ImportStartRequest.decode = function decode(reader, length, error) {
|
|
20128
|
-
if (!(reader instanceof $Reader))
|
|
20129
|
-
reader = $Reader.create(reader);
|
|
20130
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
20131
|
-
while (reader.pos < end) {
|
|
20132
|
-
let tag = reader.uint32();
|
|
20133
|
-
if (tag === error)
|
|
20134
|
-
break;
|
|
20135
|
-
switch (tag >>> 3) {
|
|
20136
|
-
case 1: {
|
|
20137
|
-
message.config = $root.sesame.v1.jobs.ImportConfiguration.decode(reader, reader.uint32());
|
|
20138
|
-
break;
|
|
20139
|
-
}
|
|
20140
|
-
default:
|
|
20141
|
-
reader.skipType(tag & 7);
|
|
20142
|
-
break;
|
|
20143
|
-
}
|
|
20144
|
-
}
|
|
20145
|
-
return message;
|
|
20146
|
-
};
|
|
20147
|
-
ImportStartRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
20148
|
-
if (!(reader instanceof $Reader))
|
|
20149
|
-
reader = new $Reader(reader);
|
|
20150
|
-
return this.decode(reader, reader.uint32());
|
|
20151
|
-
};
|
|
20152
|
-
ImportStartRequest.verify = function verify(message) {
|
|
20153
|
-
if (typeof message !== "object" || message === null)
|
|
20154
|
-
return "object expected";
|
|
20155
|
-
if (message.config != null && message.hasOwnProperty("config")) {
|
|
20156
|
-
let error = $root.sesame.v1.jobs.ImportConfiguration.verify(message.config);
|
|
20157
|
-
if (error)
|
|
20158
|
-
return "config." + error;
|
|
20159
|
-
}
|
|
20160
|
-
return null;
|
|
20161
|
-
};
|
|
20162
|
-
ImportStartRequest.fromObject = function fromObject(object) {
|
|
20163
|
-
if (object instanceof $root.sesame.v1.jobs.ImportStartRequest)
|
|
20164
|
-
return object;
|
|
20165
|
-
let message = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
20166
|
-
if (object.config != null) {
|
|
20167
|
-
if (typeof object.config !== "object")
|
|
20168
|
-
throw TypeError(".sesame.v1.jobs.ImportStartRequest.config: object expected");
|
|
20169
|
-
message.config = $root.sesame.v1.jobs.ImportConfiguration.fromObject(object.config);
|
|
20170
|
-
}
|
|
20171
|
-
return message;
|
|
20172
|
-
};
|
|
20173
|
-
ImportStartRequest.toObject = function toObject(message, options) {
|
|
20174
|
-
if (!options)
|
|
20175
|
-
options = {};
|
|
20176
|
-
let object = {};
|
|
20177
|
-
if (options.defaults)
|
|
20178
|
-
object.config = null;
|
|
20179
|
-
if (message.config != null && message.hasOwnProperty("config"))
|
|
20180
|
-
object.config = $root.sesame.v1.jobs.ImportConfiguration.toObject(message.config, options);
|
|
20181
|
-
return object;
|
|
20182
|
-
};
|
|
20183
|
-
ImportStartRequest.prototype.toJSON = function toJSON() {
|
|
20184
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
20185
|
-
};
|
|
20186
|
-
ImportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20187
|
-
if (typeUrlPrefix === void 0) {
|
|
20188
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
20189
|
-
}
|
|
20190
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ImportStartRequest";
|
|
20191
|
-
};
|
|
20192
|
-
return ImportStartRequest;
|
|
20193
|
-
}();
|
|
20194
|
-
jobs.ImportAbortRequest = function() {
|
|
20195
|
-
function ImportAbortRequest(properties) {
|
|
20196
|
-
if (properties) {
|
|
20197
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20198
|
-
if (properties[keys[i]] != null)
|
|
20199
|
-
this[keys[i]] = properties[keys[i]];
|
|
20200
|
-
}
|
|
20201
|
-
}
|
|
20202
|
-
ImportAbortRequest.prototype.jobId = 0;
|
|
20203
|
-
ImportAbortRequest.create = function create(properties) {
|
|
20204
|
-
return new ImportAbortRequest(properties);
|
|
20205
|
-
};
|
|
20206
|
-
ImportAbortRequest.encode = function encode(message, writer) {
|
|
20207
|
-
if (!writer)
|
|
20208
|
-
writer = $Writer.create();
|
|
20209
|
-
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
20210
|
-
writer.uint32(
|
|
20211
|
-
/* id 1, wireType 0 =*/
|
|
20212
|
-
8
|
|
20213
|
-
).uint32(message.jobId);
|
|
20214
|
-
return writer;
|
|
20215
|
-
};
|
|
20216
|
-
ImportAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20217
|
-
return this.encode(message, writer).ldelim();
|
|
20218
|
-
};
|
|
20219
|
-
ImportAbortRequest.decode = function decode(reader, length, error) {
|
|
20220
|
-
if (!(reader instanceof $Reader))
|
|
20221
|
-
reader = $Reader.create(reader);
|
|
20222
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportAbortRequest();
|
|
20223
|
-
while (reader.pos < end) {
|
|
20224
|
-
let tag = reader.uint32();
|
|
20225
|
-
if (tag === error)
|
|
20226
|
-
break;
|
|
20227
|
-
switch (tag >>> 3) {
|
|
20228
|
-
case 1: {
|
|
20229
|
-
message.jobId = reader.uint32();
|
|
20230
|
-
break;
|
|
20231
|
-
}
|
|
20232
|
-
default:
|
|
20233
|
-
reader.skipType(tag & 7);
|
|
20234
|
-
break;
|
|
20235
|
-
}
|
|
20236
|
-
}
|
|
20237
|
-
return message;
|
|
20238
|
-
};
|
|
20239
|
-
ImportAbortRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
20240
|
-
if (!(reader instanceof $Reader))
|
|
20241
|
-
reader = new $Reader(reader);
|
|
20242
|
-
return this.decode(reader, reader.uint32());
|
|
20243
|
-
};
|
|
20244
|
-
ImportAbortRequest.verify = function verify(message) {
|
|
20245
|
-
if (typeof message !== "object" || message === null)
|
|
20246
|
-
return "object expected";
|
|
20247
|
-
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
20248
|
-
if (!$util.isInteger(message.jobId))
|
|
20249
|
-
return "jobId: integer expected";
|
|
20250
|
-
}
|
|
20251
|
-
return null;
|
|
20252
|
-
};
|
|
20253
|
-
ImportAbortRequest.fromObject = function fromObject(object) {
|
|
20254
|
-
if (object instanceof $root.sesame.v1.jobs.ImportAbortRequest)
|
|
20255
|
-
return object;
|
|
20256
|
-
let message = new $root.sesame.v1.jobs.ImportAbortRequest();
|
|
20257
|
-
if (object.jobId != null)
|
|
20258
|
-
message.jobId = object.jobId >>> 0;
|
|
20259
|
-
return message;
|
|
20260
|
-
};
|
|
20261
|
-
ImportAbortRequest.toObject = function toObject(message, options) {
|
|
20262
|
-
if (!options)
|
|
20263
|
-
options = {};
|
|
20264
|
-
let object = {};
|
|
20265
|
-
if (options.defaults)
|
|
20266
|
-
object.jobId = 0;
|
|
20267
|
-
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
20268
|
-
object.jobId = message.jobId;
|
|
20317
|
+
}
|
|
20318
|
+
if (message.srcFilename != null && message.hasOwnProperty("srcFilename"))
|
|
20319
|
+
object.srcFilename = message.srcFilename;
|
|
20320
|
+
if (message.audioRouting && message.audioRouting.length) {
|
|
20321
|
+
object.audioRouting = [];
|
|
20322
|
+
for (let j = 0; j < message.audioRouting.length; ++j)
|
|
20323
|
+
object.audioRouting[j] = message.audioRouting[j];
|
|
20324
|
+
}
|
|
20325
|
+
if (message.dstRecorderId != null && message.hasOwnProperty("dstRecorderId"))
|
|
20326
|
+
object.dstRecorderId = message.dstRecorderId;
|
|
20327
|
+
if (message.dstClipId != null && message.hasOwnProperty("dstClipId"))
|
|
20328
|
+
if (typeof message.dstClipId === "number")
|
|
20329
|
+
object.dstClipId = options.longs === String ? String(message.dstClipId) : message.dstClipId;
|
|
20330
|
+
else
|
|
20331
|
+
object.dstClipId = options.longs === String ? $util.Long.prototype.toString.call(message.dstClipId) : options.longs === Number ? new $util.LongBits(message.dstClipId.low >>> 0, message.dstClipId.high >>> 0).toNumber(true) : message.dstClipId;
|
|
20332
|
+
if (message.dstClipName != null && message.hasOwnProperty("dstClipName"))
|
|
20333
|
+
object.dstClipName = message.dstClipName;
|
|
20334
|
+
if (message.dstClipUserData != null && message.hasOwnProperty("dstClipUserData"))
|
|
20335
|
+
object.dstClipUserData = message.dstClipUserData;
|
|
20269
20336
|
return object;
|
|
20270
20337
|
};
|
|
20271
|
-
|
|
20338
|
+
ImportConfiguration.prototype.toJSON = function toJSON() {
|
|
20272
20339
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
20273
20340
|
};
|
|
20274
|
-
|
|
20341
|
+
ImportConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20275
20342
|
if (typeUrlPrefix === void 0) {
|
|
20276
20343
|
typeUrlPrefix = "type.googleapis.com";
|
|
20277
20344
|
}
|
|
20278
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
20345
|
+
return typeUrlPrefix + "/sesame.v1.jobs.ImportConfiguration";
|
|
20279
20346
|
};
|
|
20280
|
-
return
|
|
20347
|
+
return ImportConfiguration;
|
|
20281
20348
|
}();
|
|
20282
|
-
jobs.
|
|
20283
|
-
function
|
|
20349
|
+
jobs.ImportStartRequest = function() {
|
|
20350
|
+
function ImportStartRequest(properties) {
|
|
20284
20351
|
if (properties) {
|
|
20285
20352
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20286
20353
|
if (properties[keys[i]] != null)
|
|
20287
20354
|
this[keys[i]] = properties[keys[i]];
|
|
20288
20355
|
}
|
|
20289
20356
|
}
|
|
20290
|
-
|
|
20291
|
-
|
|
20292
|
-
return new
|
|
20357
|
+
ImportStartRequest.prototype.config = null;
|
|
20358
|
+
ImportStartRequest.create = function create(properties) {
|
|
20359
|
+
return new ImportStartRequest(properties);
|
|
20293
20360
|
};
|
|
20294
|
-
|
|
20361
|
+
ImportStartRequest.encode = function encode(message, writer) {
|
|
20295
20362
|
if (!writer)
|
|
20296
20363
|
writer = $Writer.create();
|
|
20297
|
-
if (message.
|
|
20298
|
-
writer.uint32(
|
|
20299
|
-
/* id 1, wireType
|
|
20300
|
-
|
|
20301
|
-
).
|
|
20364
|
+
if (message.config != null && Object.hasOwnProperty.call(message, "config"))
|
|
20365
|
+
$root.sesame.v1.jobs.ImportConfiguration.encode(message.config, writer.uint32(
|
|
20366
|
+
/* id 1, wireType 2 =*/
|
|
20367
|
+
10
|
|
20368
|
+
).fork()).ldelim();
|
|
20302
20369
|
return writer;
|
|
20303
20370
|
};
|
|
20304
|
-
|
|
20371
|
+
ImportStartRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20305
20372
|
return this.encode(message, writer).ldelim();
|
|
20306
20373
|
};
|
|
20307
|
-
|
|
20374
|
+
ImportStartRequest.decode = function decode(reader, length, error) {
|
|
20308
20375
|
if (!(reader instanceof $Reader))
|
|
20309
20376
|
reader = $Reader.create(reader);
|
|
20310
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.
|
|
20377
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
20311
20378
|
while (reader.pos < end) {
|
|
20312
20379
|
let tag = reader.uint32();
|
|
20313
20380
|
if (tag === error)
|
|
20314
20381
|
break;
|
|
20315
20382
|
switch (tag >>> 3) {
|
|
20316
20383
|
case 1: {
|
|
20317
|
-
message.
|
|
20384
|
+
message.config = $root.sesame.v1.jobs.ImportConfiguration.decode(reader, reader.uint32());
|
|
20318
20385
|
break;
|
|
20319
20386
|
}
|
|
20320
20387
|
default:
|
|
@@ -20324,112 +20391,52 @@ var sesame = $root.sesame = (() => {
|
|
|
20324
20391
|
}
|
|
20325
20392
|
return message;
|
|
20326
20393
|
};
|
|
20327
|
-
|
|
20394
|
+
ImportStartRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
20328
20395
|
if (!(reader instanceof $Reader))
|
|
20329
20396
|
reader = new $Reader(reader);
|
|
20330
20397
|
return this.decode(reader, reader.uint32());
|
|
20331
20398
|
};
|
|
20332
|
-
|
|
20399
|
+
ImportStartRequest.verify = function verify(message) {
|
|
20333
20400
|
if (typeof message !== "object" || message === null)
|
|
20334
20401
|
return "object expected";
|
|
20335
|
-
if (message.
|
|
20336
|
-
|
|
20337
|
-
|
|
20402
|
+
if (message.config != null && message.hasOwnProperty("config")) {
|
|
20403
|
+
let error = $root.sesame.v1.jobs.ImportConfiguration.verify(message.config);
|
|
20404
|
+
if (error)
|
|
20405
|
+
return "config." + error;
|
|
20338
20406
|
}
|
|
20339
20407
|
return null;
|
|
20340
20408
|
};
|
|
20341
|
-
|
|
20342
|
-
if (object instanceof $root.sesame.v1.jobs.
|
|
20409
|
+
ImportStartRequest.fromObject = function fromObject(object) {
|
|
20410
|
+
if (object instanceof $root.sesame.v1.jobs.ImportStartRequest)
|
|
20343
20411
|
return object;
|
|
20344
|
-
let message = new $root.sesame.v1.jobs.
|
|
20345
|
-
if (object.
|
|
20346
|
-
|
|
20412
|
+
let message = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
20413
|
+
if (object.config != null) {
|
|
20414
|
+
if (typeof object.config !== "object")
|
|
20415
|
+
throw TypeError(".sesame.v1.jobs.ImportStartRequest.config: object expected");
|
|
20416
|
+
message.config = $root.sesame.v1.jobs.ImportConfiguration.fromObject(object.config);
|
|
20417
|
+
}
|
|
20347
20418
|
return message;
|
|
20348
20419
|
};
|
|
20349
|
-
|
|
20420
|
+
ImportStartRequest.toObject = function toObject(message, options) {
|
|
20350
20421
|
if (!options)
|
|
20351
20422
|
options = {};
|
|
20352
20423
|
let object = {};
|
|
20353
20424
|
if (options.defaults)
|
|
20354
|
-
object.
|
|
20355
|
-
if (message.
|
|
20356
|
-
object.
|
|
20425
|
+
object.config = null;
|
|
20426
|
+
if (message.config != null && message.hasOwnProperty("config"))
|
|
20427
|
+
object.config = $root.sesame.v1.jobs.ImportConfiguration.toObject(message.config, options);
|
|
20357
20428
|
return object;
|
|
20358
20429
|
};
|
|
20359
|
-
|
|
20360
|
-
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
20361
|
-
};
|
|
20362
|
-
ImportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20363
|
-
if (typeUrlPrefix === void 0) {
|
|
20364
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
20365
|
-
}
|
|
20366
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ImportStatusRequest";
|
|
20367
|
-
};
|
|
20368
|
-
return ImportStatusRequest;
|
|
20369
|
-
}();
|
|
20370
|
-
jobs.ImportListRequest = function() {
|
|
20371
|
-
function ImportListRequest(properties) {
|
|
20372
|
-
if (properties) {
|
|
20373
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20374
|
-
if (properties[keys[i]] != null)
|
|
20375
|
-
this[keys[i]] = properties[keys[i]];
|
|
20376
|
-
}
|
|
20377
|
-
}
|
|
20378
|
-
ImportListRequest.create = function create(properties) {
|
|
20379
|
-
return new ImportListRequest(properties);
|
|
20380
|
-
};
|
|
20381
|
-
ImportListRequest.encode = function encode(message, writer) {
|
|
20382
|
-
if (!writer)
|
|
20383
|
-
writer = $Writer.create();
|
|
20384
|
-
return writer;
|
|
20385
|
-
};
|
|
20386
|
-
ImportListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20387
|
-
return this.encode(message, writer).ldelim();
|
|
20388
|
-
};
|
|
20389
|
-
ImportListRequest.decode = function decode(reader, length, error) {
|
|
20390
|
-
if (!(reader instanceof $Reader))
|
|
20391
|
-
reader = $Reader.create(reader);
|
|
20392
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportListRequest();
|
|
20393
|
-
while (reader.pos < end) {
|
|
20394
|
-
let tag = reader.uint32();
|
|
20395
|
-
if (tag === error)
|
|
20396
|
-
break;
|
|
20397
|
-
switch (tag >>> 3) {
|
|
20398
|
-
default:
|
|
20399
|
-
reader.skipType(tag & 7);
|
|
20400
|
-
break;
|
|
20401
|
-
}
|
|
20402
|
-
}
|
|
20403
|
-
return message;
|
|
20404
|
-
};
|
|
20405
|
-
ImportListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
20406
|
-
if (!(reader instanceof $Reader))
|
|
20407
|
-
reader = new $Reader(reader);
|
|
20408
|
-
return this.decode(reader, reader.uint32());
|
|
20409
|
-
};
|
|
20410
|
-
ImportListRequest.verify = function verify(message) {
|
|
20411
|
-
if (typeof message !== "object" || message === null)
|
|
20412
|
-
return "object expected";
|
|
20413
|
-
return null;
|
|
20414
|
-
};
|
|
20415
|
-
ImportListRequest.fromObject = function fromObject(object) {
|
|
20416
|
-
if (object instanceof $root.sesame.v1.jobs.ImportListRequest)
|
|
20417
|
-
return object;
|
|
20418
|
-
return new $root.sesame.v1.jobs.ImportListRequest();
|
|
20419
|
-
};
|
|
20420
|
-
ImportListRequest.toObject = function toObject() {
|
|
20421
|
-
return {};
|
|
20422
|
-
};
|
|
20423
|
-
ImportListRequest.prototype.toJSON = function toJSON() {
|
|
20430
|
+
ImportStartRequest.prototype.toJSON = function toJSON() {
|
|
20424
20431
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
20425
20432
|
};
|
|
20426
|
-
|
|
20433
|
+
ImportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20427
20434
|
if (typeUrlPrefix === void 0) {
|
|
20428
20435
|
typeUrlPrefix = "type.googleapis.com";
|
|
20429
20436
|
}
|
|
20430
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
20437
|
+
return typeUrlPrefix + "/sesame.v1.jobs.ImportStartRequest";
|
|
20431
20438
|
};
|
|
20432
|
-
return
|
|
20439
|
+
return ImportStartRequest;
|
|
20433
20440
|
}();
|
|
20434
20441
|
return jobs;
|
|
20435
20442
|
}();
|
|
@@ -20962,7 +20969,6 @@ var sesame = $root.sesame = (() => {
|
|
|
20962
20969
|
case 2:
|
|
20963
20970
|
case 3:
|
|
20964
20971
|
case 4:
|
|
20965
|
-
case 5:
|
|
20966
20972
|
case 6:
|
|
20967
20973
|
break;
|
|
20968
20974
|
}
|
|
@@ -20999,14 +21005,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20999
21005
|
case 3:
|
|
21000
21006
|
message.topic = 3;
|
|
21001
21007
|
break;
|
|
21002
|
-
case "
|
|
21008
|
+
case "EVENT_TOPIC_JOB":
|
|
21003
21009
|
case 4:
|
|
21004
21010
|
message.topic = 4;
|
|
21005
21011
|
break;
|
|
21006
|
-
case "EVENT_TOPIC_CLIP_IMPORT":
|
|
21007
|
-
case 5:
|
|
21008
|
-
message.topic = 5;
|
|
21009
|
-
break;
|
|
21010
21012
|
case "EVENT_TOPIC_RECORDER":
|
|
21011
21013
|
case 6:
|
|
21012
21014
|
message.topic = 6;
|
|
@@ -21077,30 +21079,18 @@ var sesame = $root.sesame = (() => {
|
|
|
21077
21079
|
Object.defineProperty(SesameAPIService.prototype.requestRecorderOperation = function requestRecorderOperation(request, callback) {
|
|
21078
21080
|
return this.rpcCall(requestRecorderOperation, $root.sesame.v1.recorder.RecorderRequest, $root.sesame.v1.recorder.RecorderResponse, request, callback);
|
|
21079
21081
|
}, "name", { value: "RequestRecorderOperation" });
|
|
21080
|
-
Object.defineProperty(SesameAPIService.prototype.
|
|
21081
|
-
return this.rpcCall(
|
|
21082
|
-
}, "name", { value: "
|
|
21083
|
-
Object.defineProperty(SesameAPIService.prototype.
|
|
21084
|
-
return this.rpcCall(
|
|
21085
|
-
}, "name", { value: "
|
|
21086
|
-
Object.defineProperty(SesameAPIService.prototype.
|
|
21087
|
-
return this.rpcCall(
|
|
21088
|
-
}, "name", { value: "
|
|
21089
|
-
Object.defineProperty(SesameAPIService.prototype.
|
|
21090
|
-
return this.rpcCall(
|
|
21091
|
-
}, "name", { value: "
|
|
21092
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportStart = function requestClipImportStart(request, callback) {
|
|
21093
|
-
return this.rpcCall(requestClipImportStart, $root.sesame.v1.jobs.ImportStartRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21094
|
-
}, "name", { value: "RequestClipImportStart" });
|
|
21095
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportAbort = function requestClipImportAbort(request, callback) {
|
|
21096
|
-
return this.rpcCall(requestClipImportAbort, $root.sesame.v1.jobs.ImportAbortRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21097
|
-
}, "name", { value: "RequestClipImportAbort" });
|
|
21098
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportStatus = function requestClipImportStatus(request, callback) {
|
|
21099
|
-
return this.rpcCall(requestClipImportStatus, $root.sesame.v1.jobs.ImportStatusRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21100
|
-
}, "name", { value: "RequestClipImportStatus" });
|
|
21101
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportList = function requestClipImportList(request, callback) {
|
|
21102
|
-
return this.rpcCall(requestClipImportList, $root.sesame.v1.jobs.ImportListRequest, $root.sesame.v1.jobs.JobListResponse, request, callback);
|
|
21103
|
-
}, "name", { value: "RequestClipImportList" });
|
|
21082
|
+
Object.defineProperty(SesameAPIService.prototype.startJob = function startJob(request, callback) {
|
|
21083
|
+
return this.rpcCall(startJob, $root.sesame.v1.jobs.JobStartRequest, $root.sesame.v1.jobs.Job, request, callback);
|
|
21084
|
+
}, "name", { value: "StartJob" });
|
|
21085
|
+
Object.defineProperty(SesameAPIService.prototype.abortJob = function abortJob(request, callback) {
|
|
21086
|
+
return this.rpcCall(abortJob, $root.sesame.v1.jobs.JobAbortRequest, $root.sesame.v1.jobs.Job, request, callback);
|
|
21087
|
+
}, "name", { value: "AbortJob" });
|
|
21088
|
+
Object.defineProperty(SesameAPIService.prototype.getJobStatus = function getJobStatus(request, callback) {
|
|
21089
|
+
return this.rpcCall(getJobStatus, $root.sesame.v1.jobs.JobStatusRequest, $root.sesame.v1.jobs.Job, request, callback);
|
|
21090
|
+
}, "name", { value: "GetJobStatus" });
|
|
21091
|
+
Object.defineProperty(SesameAPIService.prototype.listJobs = function listJobs(request, callback) {
|
|
21092
|
+
return this.rpcCall(listJobs, $root.sesame.v1.jobs.JobListRequest, $root.sesame.v1.jobs.JobList, request, callback);
|
|
21093
|
+
}, "name", { value: "ListJobs" });
|
|
21104
21094
|
Object.defineProperty(SesameAPIService.prototype.requestKeyframe = function requestKeyframe(request, callback) {
|
|
21105
21095
|
return this.rpcCall(requestKeyframe, $root.sesame.v1.outputs.KeyframeRequest, $root.sesame.v1.common.Empty, request, callback);
|
|
21106
21096
|
}, "name", { value: "RequestKeyframe" });
|
|
@@ -21121,19 +21111,7 @@ var sesame = $root.sesame = (() => {
|
|
|
21121
21111
|
values[valuesById[3] = "FRAME_TYPE_AUDIO"] = 3;
|
|
21122
21112
|
values[valuesById[4] = "FRAME_TYPE_MUXED"] = 4;
|
|
21123
21113
|
values[valuesById[5] = "FRAME_TYPE_DECODER_DATA"] = 5;
|
|
21124
|
-
|
|
21125
|
-
}();
|
|
21126
|
-
wire.CodecType = function() {
|
|
21127
|
-
const valuesById = {}, values = Object.create(valuesById);
|
|
21128
|
-
values[valuesById[0] = "CODEC_TYPE_UNSPECIFIED"] = 0;
|
|
21129
|
-
values[valuesById[1] = "CODEC_TYPE_VIDEO_VP8"] = 1;
|
|
21130
|
-
values[valuesById[2] = "CODEC_TYPE_VIDEO_VP9"] = 2;
|
|
21131
|
-
values[valuesById[3] = "CODEC_TYPE_VIDEO_AVC"] = 3;
|
|
21132
|
-
values[valuesById[4] = "CODEC_TYPE_VIDEO_HEVC"] = 4;
|
|
21133
|
-
values[valuesById[5] = "CODEC_TYPE_VIDEO_AV1"] = 5;
|
|
21134
|
-
values[valuesById[64] = "CODEC_TYPE_AUDIO_OPUS"] = 64;
|
|
21135
|
-
values[valuesById[65] = "CODEC_TYPE_AUDIO_AAC"] = 65;
|
|
21136
|
-
values[valuesById[66] = "CODEC_TYPE_AUDIO_PCM"] = 66;
|
|
21114
|
+
values[valuesById[6] = "FRAME_TYPE_DATA"] = 6;
|
|
21137
21115
|
return values;
|
|
21138
21116
|
}();
|
|
21139
21117
|
wire.MediaCodecData = function() {
|
|
@@ -21289,9 +21267,12 @@ var sesame = $root.sesame = (() => {
|
|
|
21289
21267
|
case 3:
|
|
21290
21268
|
case 4:
|
|
21291
21269
|
case 5:
|
|
21270
|
+
case 6:
|
|
21271
|
+
case 7:
|
|
21292
21272
|
case 64:
|
|
21293
21273
|
case 65:
|
|
21294
21274
|
case 66:
|
|
21275
|
+
case 67:
|
|
21295
21276
|
break;
|
|
21296
21277
|
}
|
|
21297
21278
|
if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) {
|
|
@@ -21367,6 +21348,14 @@ var sesame = $root.sesame = (() => {
|
|
|
21367
21348
|
case 5:
|
|
21368
21349
|
message.codecType = 5;
|
|
21369
21350
|
break;
|
|
21351
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
21352
|
+
case 6:
|
|
21353
|
+
message.codecType = 6;
|
|
21354
|
+
break;
|
|
21355
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
21356
|
+
case 7:
|
|
21357
|
+
message.codecType = 7;
|
|
21358
|
+
break;
|
|
21370
21359
|
case "CODEC_TYPE_AUDIO_OPUS":
|
|
21371
21360
|
case 64:
|
|
21372
21361
|
message.codecType = 64;
|
|
@@ -21379,75 +21368,225 @@ var sesame = $root.sesame = (() => {
|
|
|
21379
21368
|
case 66:
|
|
21380
21369
|
message.codecType = 66;
|
|
21381
21370
|
break;
|
|
21371
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
21372
|
+
case 67:
|
|
21373
|
+
message.codecType = 67;
|
|
21374
|
+
break;
|
|
21375
|
+
}
|
|
21376
|
+
if (object.sampleRate != null)
|
|
21377
|
+
message.sampleRate = object.sampleRate >>> 0;
|
|
21378
|
+
if (object.timebaseNum != null)
|
|
21379
|
+
message.timebaseNum = object.timebaseNum >>> 0;
|
|
21380
|
+
if (object.timebaseDen != null)
|
|
21381
|
+
message.timebaseDen = object.timebaseDen >>> 0;
|
|
21382
|
+
if (object.codecProfile != null)
|
|
21383
|
+
message.codecProfile = object.codecProfile >>> 0;
|
|
21384
|
+
if (object.codecLevel != null)
|
|
21385
|
+
message.codecLevel = object.codecLevel >>> 0;
|
|
21386
|
+
if (object.width != null)
|
|
21387
|
+
message.width = object.width >>> 0;
|
|
21388
|
+
if (object.height != null)
|
|
21389
|
+
message.height = object.height >>> 0;
|
|
21390
|
+
if (object.channels != null)
|
|
21391
|
+
message.channels = object.channels >>> 0;
|
|
21392
|
+
if (object.bitDepth != null)
|
|
21393
|
+
message.bitDepth = object.bitDepth >>> 0;
|
|
21394
|
+
return message;
|
|
21395
|
+
};
|
|
21396
|
+
MediaCodecData2.toObject = function toObject(message, options) {
|
|
21397
|
+
if (!options)
|
|
21398
|
+
options = {};
|
|
21399
|
+
let object = {};
|
|
21400
|
+
if (options.defaults) {
|
|
21401
|
+
object.codecType = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
21402
|
+
object.sampleRate = 0;
|
|
21403
|
+
object.timebaseNum = 0;
|
|
21404
|
+
object.timebaseDen = 0;
|
|
21405
|
+
object.codecProfile = 0;
|
|
21406
|
+
object.codecLevel = 0;
|
|
21407
|
+
object.width = 0;
|
|
21408
|
+
object.height = 0;
|
|
21409
|
+
object.channels = 0;
|
|
21410
|
+
object.bitDepth = 0;
|
|
21411
|
+
}
|
|
21412
|
+
if (message.codecType != null && message.hasOwnProperty("codecType"))
|
|
21413
|
+
object.codecType = options.enums === String ? $root.sesame.v1.common.CodecType[message.codecType] === void 0 ? message.codecType : $root.sesame.v1.common.CodecType[message.codecType] : message.codecType;
|
|
21414
|
+
if (message.sampleRate != null && message.hasOwnProperty("sampleRate"))
|
|
21415
|
+
object.sampleRate = message.sampleRate;
|
|
21416
|
+
if (message.timebaseNum != null && message.hasOwnProperty("timebaseNum"))
|
|
21417
|
+
object.timebaseNum = message.timebaseNum;
|
|
21418
|
+
if (message.timebaseDen != null && message.hasOwnProperty("timebaseDen"))
|
|
21419
|
+
object.timebaseDen = message.timebaseDen;
|
|
21420
|
+
if (message.codecProfile != null && message.hasOwnProperty("codecProfile"))
|
|
21421
|
+
object.codecProfile = message.codecProfile;
|
|
21422
|
+
if (message.codecLevel != null && message.hasOwnProperty("codecLevel"))
|
|
21423
|
+
object.codecLevel = message.codecLevel;
|
|
21424
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
21425
|
+
object.width = message.width;
|
|
21426
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
21427
|
+
object.height = message.height;
|
|
21428
|
+
if (message.channels != null && message.hasOwnProperty("channels"))
|
|
21429
|
+
object.channels = message.channels;
|
|
21430
|
+
if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
|
|
21431
|
+
object.bitDepth = message.bitDepth;
|
|
21432
|
+
return object;
|
|
21433
|
+
};
|
|
21434
|
+
MediaCodecData2.prototype.toJSON = function toJSON() {
|
|
21435
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
21436
|
+
};
|
|
21437
|
+
MediaCodecData2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21438
|
+
if (typeUrlPrefix === void 0) {
|
|
21439
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
21440
|
+
}
|
|
21441
|
+
return typeUrlPrefix + "/sesame.v1.wire.MediaCodecData";
|
|
21442
|
+
};
|
|
21443
|
+
return MediaCodecData2;
|
|
21444
|
+
}();
|
|
21445
|
+
wire.MediaFrameData = function() {
|
|
21446
|
+
function MediaFrameData(properties) {
|
|
21447
|
+
if (properties) {
|
|
21448
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21449
|
+
if (properties[keys[i]] != null)
|
|
21450
|
+
this[keys[i]] = properties[keys[i]];
|
|
21451
|
+
}
|
|
21452
|
+
}
|
|
21453
|
+
MediaFrameData.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
21454
|
+
MediaFrameData.prototype.keyframe = false;
|
|
21455
|
+
MediaFrameData.prototype.codecData = null;
|
|
21456
|
+
MediaFrameData.create = function create(properties) {
|
|
21457
|
+
return new MediaFrameData(properties);
|
|
21458
|
+
};
|
|
21459
|
+
MediaFrameData.encode = function encode(message, writer) {
|
|
21460
|
+
if (!writer)
|
|
21461
|
+
writer = $Writer.create();
|
|
21462
|
+
if (message.pts != null && Object.hasOwnProperty.call(message, "pts"))
|
|
21463
|
+
writer.uint32(
|
|
21464
|
+
/* id 1, wireType 0 =*/
|
|
21465
|
+
8
|
|
21466
|
+
).uint64(message.pts);
|
|
21467
|
+
if (message.keyframe != null && Object.hasOwnProperty.call(message, "keyframe"))
|
|
21468
|
+
writer.uint32(
|
|
21469
|
+
/* id 2, wireType 0 =*/
|
|
21470
|
+
16
|
|
21471
|
+
).bool(message.keyframe);
|
|
21472
|
+
if (message.codecData != null && Object.hasOwnProperty.call(message, "codecData"))
|
|
21473
|
+
$root.sesame.v1.wire.MediaCodecData.encode(message.codecData, writer.uint32(
|
|
21474
|
+
/* id 3, wireType 2 =*/
|
|
21475
|
+
26
|
|
21476
|
+
).fork()).ldelim();
|
|
21477
|
+
return writer;
|
|
21478
|
+
};
|
|
21479
|
+
MediaFrameData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21480
|
+
return this.encode(message, writer).ldelim();
|
|
21481
|
+
};
|
|
21482
|
+
MediaFrameData.decode = function decode(reader, length, error) {
|
|
21483
|
+
if (!(reader instanceof $Reader))
|
|
21484
|
+
reader = $Reader.create(reader);
|
|
21485
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.wire.MediaFrameData();
|
|
21486
|
+
while (reader.pos < end) {
|
|
21487
|
+
let tag = reader.uint32();
|
|
21488
|
+
if (tag === error)
|
|
21489
|
+
break;
|
|
21490
|
+
switch (tag >>> 3) {
|
|
21491
|
+
case 1: {
|
|
21492
|
+
message.pts = reader.uint64();
|
|
21493
|
+
break;
|
|
21494
|
+
}
|
|
21495
|
+
case 2: {
|
|
21496
|
+
message.keyframe = reader.bool();
|
|
21497
|
+
break;
|
|
21498
|
+
}
|
|
21499
|
+
case 3: {
|
|
21500
|
+
message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
|
|
21501
|
+
break;
|
|
21502
|
+
}
|
|
21503
|
+
default:
|
|
21504
|
+
reader.skipType(tag & 7);
|
|
21505
|
+
break;
|
|
21506
|
+
}
|
|
21382
21507
|
}
|
|
21383
|
-
if (object.sampleRate != null)
|
|
21384
|
-
message.sampleRate = object.sampleRate >>> 0;
|
|
21385
|
-
if (object.timebaseNum != null)
|
|
21386
|
-
message.timebaseNum = object.timebaseNum >>> 0;
|
|
21387
|
-
if (object.timebaseDen != null)
|
|
21388
|
-
message.timebaseDen = object.timebaseDen >>> 0;
|
|
21389
|
-
if (object.codecProfile != null)
|
|
21390
|
-
message.codecProfile = object.codecProfile >>> 0;
|
|
21391
|
-
if (object.codecLevel != null)
|
|
21392
|
-
message.codecLevel = object.codecLevel >>> 0;
|
|
21393
|
-
if (object.width != null)
|
|
21394
|
-
message.width = object.width >>> 0;
|
|
21395
|
-
if (object.height != null)
|
|
21396
|
-
message.height = object.height >>> 0;
|
|
21397
|
-
if (object.channels != null)
|
|
21398
|
-
message.channels = object.channels >>> 0;
|
|
21399
|
-
if (object.bitDepth != null)
|
|
21400
|
-
message.bitDepth = object.bitDepth >>> 0;
|
|
21401
21508
|
return message;
|
|
21402
21509
|
};
|
|
21403
|
-
|
|
21510
|
+
MediaFrameData.decodeDelimited = function decodeDelimited(reader) {
|
|
21511
|
+
if (!(reader instanceof $Reader))
|
|
21512
|
+
reader = new $Reader(reader);
|
|
21513
|
+
return this.decode(reader, reader.uint32());
|
|
21514
|
+
};
|
|
21515
|
+
MediaFrameData.verify = function verify(message) {
|
|
21516
|
+
if (typeof message !== "object" || message === null)
|
|
21517
|
+
return "object expected";
|
|
21518
|
+
if (message.pts != null && message.hasOwnProperty("pts")) {
|
|
21519
|
+
if (!$util.isInteger(message.pts) && !(message.pts && $util.isInteger(message.pts.low) && $util.isInteger(message.pts.high)))
|
|
21520
|
+
return "pts: integer|Long expected";
|
|
21521
|
+
}
|
|
21522
|
+
if (message.keyframe != null && message.hasOwnProperty("keyframe")) {
|
|
21523
|
+
if (typeof message.keyframe !== "boolean")
|
|
21524
|
+
return "keyframe: boolean expected";
|
|
21525
|
+
}
|
|
21526
|
+
if (message.codecData != null && message.hasOwnProperty("codecData")) {
|
|
21527
|
+
let error = $root.sesame.v1.wire.MediaCodecData.verify(message.codecData);
|
|
21528
|
+
if (error)
|
|
21529
|
+
return "codecData." + error;
|
|
21530
|
+
}
|
|
21531
|
+
return null;
|
|
21532
|
+
};
|
|
21533
|
+
MediaFrameData.fromObject = function fromObject(object) {
|
|
21534
|
+
if (object instanceof $root.sesame.v1.wire.MediaFrameData)
|
|
21535
|
+
return object;
|
|
21536
|
+
let message = new $root.sesame.v1.wire.MediaFrameData();
|
|
21537
|
+
if (object.pts != null) {
|
|
21538
|
+
if ($util.Long)
|
|
21539
|
+
(message.pts = $util.Long.fromValue(object.pts)).unsigned = true;
|
|
21540
|
+
else if (typeof object.pts === "string")
|
|
21541
|
+
message.pts = parseInt(object.pts, 10);
|
|
21542
|
+
else if (typeof object.pts === "number")
|
|
21543
|
+
message.pts = object.pts;
|
|
21544
|
+
else if (typeof object.pts === "object")
|
|
21545
|
+
message.pts = new $util.LongBits(object.pts.low >>> 0, object.pts.high >>> 0).toNumber(true);
|
|
21546
|
+
}
|
|
21547
|
+
if (object.keyframe != null)
|
|
21548
|
+
message.keyframe = Boolean(object.keyframe);
|
|
21549
|
+
if (object.codecData != null) {
|
|
21550
|
+
if (typeof object.codecData !== "object")
|
|
21551
|
+
throw TypeError(".sesame.v1.wire.MediaFrameData.codecData: object expected");
|
|
21552
|
+
message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
|
|
21553
|
+
}
|
|
21554
|
+
return message;
|
|
21555
|
+
};
|
|
21556
|
+
MediaFrameData.toObject = function toObject(message, options) {
|
|
21404
21557
|
if (!options)
|
|
21405
21558
|
options = {};
|
|
21406
21559
|
let object = {};
|
|
21407
21560
|
if (options.defaults) {
|
|
21408
|
-
|
|
21409
|
-
|
|
21410
|
-
|
|
21411
|
-
|
|
21412
|
-
|
|
21413
|
-
object.
|
|
21414
|
-
object.
|
|
21415
|
-
object.height = 0;
|
|
21416
|
-
object.channels = 0;
|
|
21417
|
-
object.bitDepth = 0;
|
|
21561
|
+
if ($util.Long) {
|
|
21562
|
+
let long = new $util.Long(0, 0, true);
|
|
21563
|
+
object.pts = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21564
|
+
} else
|
|
21565
|
+
object.pts = options.longs === String ? "0" : 0;
|
|
21566
|
+
object.keyframe = false;
|
|
21567
|
+
object.codecData = null;
|
|
21418
21568
|
}
|
|
21419
|
-
if (message.
|
|
21420
|
-
|
|
21421
|
-
|
|
21422
|
-
|
|
21423
|
-
|
|
21424
|
-
|
|
21425
|
-
|
|
21426
|
-
|
|
21427
|
-
|
|
21428
|
-
object.codecProfile = message.codecProfile;
|
|
21429
|
-
if (message.codecLevel != null && message.hasOwnProperty("codecLevel"))
|
|
21430
|
-
object.codecLevel = message.codecLevel;
|
|
21431
|
-
if (message.width != null && message.hasOwnProperty("width"))
|
|
21432
|
-
object.width = message.width;
|
|
21433
|
-
if (message.height != null && message.hasOwnProperty("height"))
|
|
21434
|
-
object.height = message.height;
|
|
21435
|
-
if (message.channels != null && message.hasOwnProperty("channels"))
|
|
21436
|
-
object.channels = message.channels;
|
|
21437
|
-
if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
|
|
21438
|
-
object.bitDepth = message.bitDepth;
|
|
21569
|
+
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
21570
|
+
if (typeof message.pts === "number")
|
|
21571
|
+
object.pts = options.longs === String ? String(message.pts) : message.pts;
|
|
21572
|
+
else
|
|
21573
|
+
object.pts = options.longs === String ? $util.Long.prototype.toString.call(message.pts) : options.longs === Number ? new $util.LongBits(message.pts.low >>> 0, message.pts.high >>> 0).toNumber(true) : message.pts;
|
|
21574
|
+
if (message.keyframe != null && message.hasOwnProperty("keyframe"))
|
|
21575
|
+
object.keyframe = message.keyframe;
|
|
21576
|
+
if (message.codecData != null && message.hasOwnProperty("codecData"))
|
|
21577
|
+
object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
|
|
21439
21578
|
return object;
|
|
21440
21579
|
};
|
|
21441
|
-
|
|
21580
|
+
MediaFrameData.prototype.toJSON = function toJSON() {
|
|
21442
21581
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
21443
21582
|
};
|
|
21444
|
-
|
|
21583
|
+
MediaFrameData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21445
21584
|
if (typeUrlPrefix === void 0) {
|
|
21446
21585
|
typeUrlPrefix = "type.googleapis.com";
|
|
21447
21586
|
}
|
|
21448
|
-
return typeUrlPrefix + "/sesame.v1.wire.
|
|
21587
|
+
return typeUrlPrefix + "/sesame.v1.wire.MediaFrameData";
|
|
21449
21588
|
};
|
|
21450
|
-
return
|
|
21589
|
+
return MediaFrameData;
|
|
21451
21590
|
}();
|
|
21452
21591
|
wire.FrameHeader = function() {
|
|
21453
21592
|
function FrameHeader2(properties) {
|
|
@@ -21458,11 +21597,13 @@ var sesame = $root.sesame = (() => {
|
|
|
21458
21597
|
}
|
|
21459
21598
|
}
|
|
21460
21599
|
FrameHeader2.prototype.type = 0;
|
|
21461
|
-
FrameHeader2.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
21462
|
-
FrameHeader2.prototype.id = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
21463
|
-
FrameHeader2.prototype.keyframe = false;
|
|
21464
|
-
FrameHeader2.prototype.codecData = null;
|
|
21465
21600
|
FrameHeader2.prototype.routingMetadata = "";
|
|
21601
|
+
FrameHeader2.prototype.media = null;
|
|
21602
|
+
let $oneOfFields;
|
|
21603
|
+
Object.defineProperty(FrameHeader2.prototype, "typeData", {
|
|
21604
|
+
get: $util.oneOfGetter($oneOfFields = ["media"]),
|
|
21605
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
21606
|
+
});
|
|
21466
21607
|
FrameHeader2.create = function create(properties) {
|
|
21467
21608
|
return new FrameHeader2(properties);
|
|
21468
21609
|
};
|
|
@@ -21474,31 +21615,16 @@ var sesame = $root.sesame = (() => {
|
|
|
21474
21615
|
/* id 1, wireType 0 =*/
|
|
21475
21616
|
8
|
|
21476
21617
|
).int32(message.type);
|
|
21477
|
-
if (message.pts != null && Object.hasOwnProperty.call(message, "pts"))
|
|
21478
|
-
writer.uint32(
|
|
21479
|
-
/* id 2, wireType 0 =*/
|
|
21480
|
-
16
|
|
21481
|
-
).uint64(message.pts);
|
|
21482
|
-
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
21483
|
-
writer.uint32(
|
|
21484
|
-
/* id 3, wireType 0 =*/
|
|
21485
|
-
24
|
|
21486
|
-
).uint64(message.id);
|
|
21487
|
-
if (message.keyframe != null && Object.hasOwnProperty.call(message, "keyframe"))
|
|
21488
|
-
writer.uint32(
|
|
21489
|
-
/* id 4, wireType 0 =*/
|
|
21490
|
-
32
|
|
21491
|
-
).bool(message.keyframe);
|
|
21492
|
-
if (message.codecData != null && Object.hasOwnProperty.call(message, "codecData"))
|
|
21493
|
-
$root.sesame.v1.wire.MediaCodecData.encode(message.codecData, writer.uint32(
|
|
21494
|
-
/* id 5, wireType 2 =*/
|
|
21495
|
-
42
|
|
21496
|
-
).fork()).ldelim();
|
|
21497
21618
|
if (message.routingMetadata != null && Object.hasOwnProperty.call(message, "routingMetadata"))
|
|
21498
21619
|
writer.uint32(
|
|
21499
21620
|
/* id 6, wireType 2 =*/
|
|
21500
21621
|
50
|
|
21501
21622
|
).string(message.routingMetadata);
|
|
21623
|
+
if (message.media != null && Object.hasOwnProperty.call(message, "media"))
|
|
21624
|
+
$root.sesame.v1.wire.MediaFrameData.encode(message.media, writer.uint32(
|
|
21625
|
+
/* id 7, wireType 2 =*/
|
|
21626
|
+
58
|
|
21627
|
+
).fork()).ldelim();
|
|
21502
21628
|
return writer;
|
|
21503
21629
|
};
|
|
21504
21630
|
FrameHeader2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -21517,26 +21643,14 @@ var sesame = $root.sesame = (() => {
|
|
|
21517
21643
|
message.type = reader.int32();
|
|
21518
21644
|
break;
|
|
21519
21645
|
}
|
|
21520
|
-
case 2: {
|
|
21521
|
-
message.pts = reader.uint64();
|
|
21522
|
-
break;
|
|
21523
|
-
}
|
|
21524
|
-
case 3: {
|
|
21525
|
-
message.id = reader.uint64();
|
|
21526
|
-
break;
|
|
21527
|
-
}
|
|
21528
|
-
case 4: {
|
|
21529
|
-
message.keyframe = reader.bool();
|
|
21530
|
-
break;
|
|
21531
|
-
}
|
|
21532
|
-
case 5: {
|
|
21533
|
-
message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
|
|
21534
|
-
break;
|
|
21535
|
-
}
|
|
21536
21646
|
case 6: {
|
|
21537
21647
|
message.routingMetadata = reader.string();
|
|
21538
21648
|
break;
|
|
21539
21649
|
}
|
|
21650
|
+
case 7: {
|
|
21651
|
+
message.media = $root.sesame.v1.wire.MediaFrameData.decode(reader, reader.uint32());
|
|
21652
|
+
break;
|
|
21653
|
+
}
|
|
21540
21654
|
default:
|
|
21541
21655
|
reader.skipType(tag & 7);
|
|
21542
21656
|
break;
|
|
@@ -21552,6 +21666,7 @@ var sesame = $root.sesame = (() => {
|
|
|
21552
21666
|
FrameHeader2.verify = function verify(message) {
|
|
21553
21667
|
if (typeof message !== "object" || message === null)
|
|
21554
21668
|
return "object expected";
|
|
21669
|
+
let properties = {};
|
|
21555
21670
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
21556
21671
|
switch (message.type) {
|
|
21557
21672
|
default:
|
|
@@ -21562,29 +21677,21 @@ var sesame = $root.sesame = (() => {
|
|
|
21562
21677
|
case 3:
|
|
21563
21678
|
case 4:
|
|
21564
21679
|
case 5:
|
|
21680
|
+
case 6:
|
|
21565
21681
|
break;
|
|
21566
21682
|
}
|
|
21567
|
-
if (message.pts != null && message.hasOwnProperty("pts")) {
|
|
21568
|
-
if (!$util.isInteger(message.pts) && !(message.pts && $util.isInteger(message.pts.low) && $util.isInteger(message.pts.high)))
|
|
21569
|
-
return "pts: integer|Long expected";
|
|
21570
|
-
}
|
|
21571
|
-
if (message.id != null && message.hasOwnProperty("id")) {
|
|
21572
|
-
if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
|
|
21573
|
-
return "id: integer|Long expected";
|
|
21574
|
-
}
|
|
21575
|
-
if (message.keyframe != null && message.hasOwnProperty("keyframe")) {
|
|
21576
|
-
if (typeof message.keyframe !== "boolean")
|
|
21577
|
-
return "keyframe: boolean expected";
|
|
21578
|
-
}
|
|
21579
|
-
if (message.codecData != null && message.hasOwnProperty("codecData")) {
|
|
21580
|
-
let error = $root.sesame.v1.wire.MediaCodecData.verify(message.codecData);
|
|
21581
|
-
if (error)
|
|
21582
|
-
return "codecData." + error;
|
|
21583
|
-
}
|
|
21584
21683
|
if (message.routingMetadata != null && message.hasOwnProperty("routingMetadata")) {
|
|
21585
21684
|
if (!$util.isString(message.routingMetadata))
|
|
21586
21685
|
return "routingMetadata: string expected";
|
|
21587
21686
|
}
|
|
21687
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
21688
|
+
properties.typeData = 1;
|
|
21689
|
+
{
|
|
21690
|
+
let error = $root.sesame.v1.wire.MediaFrameData.verify(message.media);
|
|
21691
|
+
if (error)
|
|
21692
|
+
return "media." + error;
|
|
21693
|
+
}
|
|
21694
|
+
}
|
|
21588
21695
|
return null;
|
|
21589
21696
|
};
|
|
21590
21697
|
FrameHeader2.fromObject = function fromObject(object) {
|
|
@@ -21622,36 +21729,18 @@ var sesame = $root.sesame = (() => {
|
|
|
21622
21729
|
case 5:
|
|
21623
21730
|
message.type = 5;
|
|
21624
21731
|
break;
|
|
21625
|
-
|
|
21626
|
-
|
|
21627
|
-
|
|
21628
|
-
|
|
21629
|
-
else if (typeof object.pts === "string")
|
|
21630
|
-
message.pts = parseInt(object.pts, 10);
|
|
21631
|
-
else if (typeof object.pts === "number")
|
|
21632
|
-
message.pts = object.pts;
|
|
21633
|
-
else if (typeof object.pts === "object")
|
|
21634
|
-
message.pts = new $util.LongBits(object.pts.low >>> 0, object.pts.high >>> 0).toNumber(true);
|
|
21635
|
-
}
|
|
21636
|
-
if (object.id != null) {
|
|
21637
|
-
if ($util.Long)
|
|
21638
|
-
(message.id = $util.Long.fromValue(object.id)).unsigned = true;
|
|
21639
|
-
else if (typeof object.id === "string")
|
|
21640
|
-
message.id = parseInt(object.id, 10);
|
|
21641
|
-
else if (typeof object.id === "number")
|
|
21642
|
-
message.id = object.id;
|
|
21643
|
-
else if (typeof object.id === "object")
|
|
21644
|
-
message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true);
|
|
21645
|
-
}
|
|
21646
|
-
if (object.keyframe != null)
|
|
21647
|
-
message.keyframe = Boolean(object.keyframe);
|
|
21648
|
-
if (object.codecData != null) {
|
|
21649
|
-
if (typeof object.codecData !== "object")
|
|
21650
|
-
throw TypeError(".sesame.v1.wire.FrameHeader.codecData: object expected");
|
|
21651
|
-
message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
|
|
21732
|
+
case "FRAME_TYPE_DATA":
|
|
21733
|
+
case 6:
|
|
21734
|
+
message.type = 6;
|
|
21735
|
+
break;
|
|
21652
21736
|
}
|
|
21653
21737
|
if (object.routingMetadata != null)
|
|
21654
21738
|
message.routingMetadata = String(object.routingMetadata);
|
|
21739
|
+
if (object.media != null) {
|
|
21740
|
+
if (typeof object.media !== "object")
|
|
21741
|
+
throw TypeError(".sesame.v1.wire.FrameHeader.media: object expected");
|
|
21742
|
+
message.media = $root.sesame.v1.wire.MediaFrameData.fromObject(object.media);
|
|
21743
|
+
}
|
|
21655
21744
|
return message;
|
|
21656
21745
|
};
|
|
21657
21746
|
FrameHeader2.toObject = function toObject(message, options) {
|
|
@@ -21660,38 +21749,17 @@ var sesame = $root.sesame = (() => {
|
|
|
21660
21749
|
let object = {};
|
|
21661
21750
|
if (options.defaults) {
|
|
21662
21751
|
object.type = options.enums === String ? "FRAME_TYPE_UNSPECIFIED" : 0;
|
|
21663
|
-
if ($util.Long) {
|
|
21664
|
-
let long = new $util.Long(0, 0, true);
|
|
21665
|
-
object.pts = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21666
|
-
} else
|
|
21667
|
-
object.pts = options.longs === String ? "0" : 0;
|
|
21668
|
-
if ($util.Long) {
|
|
21669
|
-
let long = new $util.Long(0, 0, true);
|
|
21670
|
-
object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21671
|
-
} else
|
|
21672
|
-
object.id = options.longs === String ? "0" : 0;
|
|
21673
|
-
object.keyframe = false;
|
|
21674
|
-
object.codecData = null;
|
|
21675
21752
|
object.routingMetadata = "";
|
|
21676
21753
|
}
|
|
21677
21754
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
21678
21755
|
object.type = options.enums === String ? $root.sesame.v1.wire.FrameType[message.type] === void 0 ? message.type : $root.sesame.v1.wire.FrameType[message.type] : message.type;
|
|
21679
|
-
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
21680
|
-
if (typeof message.pts === "number")
|
|
21681
|
-
object.pts = options.longs === String ? String(message.pts) : message.pts;
|
|
21682
|
-
else
|
|
21683
|
-
object.pts = options.longs === String ? $util.Long.prototype.toString.call(message.pts) : options.longs === Number ? new $util.LongBits(message.pts.low >>> 0, message.pts.high >>> 0).toNumber(true) : message.pts;
|
|
21684
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
21685
|
-
if (typeof message.id === "number")
|
|
21686
|
-
object.id = options.longs === String ? String(message.id) : message.id;
|
|
21687
|
-
else
|
|
21688
|
-
object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id;
|
|
21689
|
-
if (message.keyframe != null && message.hasOwnProperty("keyframe"))
|
|
21690
|
-
object.keyframe = message.keyframe;
|
|
21691
|
-
if (message.codecData != null && message.hasOwnProperty("codecData"))
|
|
21692
|
-
object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
|
|
21693
21756
|
if (message.routingMetadata != null && message.hasOwnProperty("routingMetadata"))
|
|
21694
21757
|
object.routingMetadata = message.routingMetadata;
|
|
21758
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
21759
|
+
object.media = $root.sesame.v1.wire.MediaFrameData.toObject(message.media, options);
|
|
21760
|
+
if (options.oneofs)
|
|
21761
|
+
object.typeData = "media";
|
|
21762
|
+
}
|
|
21695
21763
|
return object;
|
|
21696
21764
|
};
|
|
21697
21765
|
FrameHeader2.prototype.toJSON = function toJSON() {
|
|
@@ -22104,8 +22172,8 @@ var RPCClient = class extends import_events.EventEmitter {
|
|
|
22104
22172
|
} else {
|
|
22105
22173
|
throw new Error("Unsupported RPC message payload");
|
|
22106
22174
|
}
|
|
22107
|
-
} catch (
|
|
22108
|
-
const error = new Error(
|
|
22175
|
+
} catch (err) {
|
|
22176
|
+
const error = new Error(`Got invalid message: ${err instanceof Error ? err.message : String(err)}`);
|
|
22109
22177
|
this.errorHandler(error);
|
|
22110
22178
|
}
|
|
22111
22179
|
};
|
|
@@ -22114,10 +22182,33 @@ var RPCClient = class extends import_events.EventEmitter {
|
|
|
22114
22182
|
this.connection.on("rpc", (data) => this.messageHandler(data));
|
|
22115
22183
|
this.connection.on("error", this.errorHandler);
|
|
22116
22184
|
this.options = options;
|
|
22117
|
-
this.service = service.create(this.rpcImpl);
|
|
22185
|
+
this.service = this.wrapServicePromises(service.create(this.rpcImpl));
|
|
22118
22186
|
this.eventTypes = options.eventTypes || {};
|
|
22119
22187
|
this.sendTimeout = options.sendTimeout || 5 * 1e3;
|
|
22120
22188
|
}
|
|
22189
|
+
/**
|
|
22190
|
+
* Wraps service method calls to attach a rejection handler on all returned
|
|
22191
|
+
* promises. This prevents unhandled promise rejections (e.g. from timeouts
|
|
22192
|
+
* while disconnected) from crashing the host process. Callers can still
|
|
22193
|
+
* catch errors normally via await / .catch().
|
|
22194
|
+
*/
|
|
22195
|
+
wrapServicePromises(service) {
|
|
22196
|
+
const self = this;
|
|
22197
|
+
return new Proxy(service, {
|
|
22198
|
+
get(target, prop) {
|
|
22199
|
+
const value = target[prop];
|
|
22200
|
+
if (typeof value !== "function") return value;
|
|
22201
|
+
return function(...args) {
|
|
22202
|
+
const result = value.apply(target, args);
|
|
22203
|
+
if (result != null && typeof result.catch === "function") {
|
|
22204
|
+
result.catch(() => {
|
|
22205
|
+
});
|
|
22206
|
+
}
|
|
22207
|
+
return result;
|
|
22208
|
+
};
|
|
22209
|
+
}
|
|
22210
|
+
});
|
|
22211
|
+
}
|
|
22121
22212
|
async flushMessageBuffer() {
|
|
22122
22213
|
const messages = [];
|
|
22123
22214
|
for (const seq in this.messageBuffer) {
|
|
@@ -22157,8 +22248,8 @@ var RPCClient = class extends import_events.EventEmitter {
|
|
|
22157
22248
|
try {
|
|
22158
22249
|
payload = type.decode(event.payload);
|
|
22159
22250
|
object = type.toObject(payload, { longs: Number });
|
|
22160
|
-
} catch (
|
|
22161
|
-
const error = new Error(
|
|
22251
|
+
} catch (err) {
|
|
22252
|
+
const error = new Error(`Could not decode event payload: ${err instanceof Error ? err.message : String(err)}`);
|
|
22162
22253
|
this.errorHandler(error);
|
|
22163
22254
|
return;
|
|
22164
22255
|
}
|
|
@@ -22177,7 +22268,7 @@ var import_events2 = require("events");
|
|
|
22177
22268
|
var FrameType = sesame.v1.wire.FrameType;
|
|
22178
22269
|
var FrameHeader = sesame.v1.wire.FrameHeader;
|
|
22179
22270
|
var MediaCodecData = sesame.v1.wire.MediaCodecData;
|
|
22180
|
-
var CodecType = sesame.v1.
|
|
22271
|
+
var CodecType = sesame.v1.common.CodecType;
|
|
22181
22272
|
var PREFIX_SIZE = 4;
|
|
22182
22273
|
var WireProtocol = class {
|
|
22183
22274
|
/**
|
|
@@ -22313,14 +22404,29 @@ var SesameConnection = class extends import_events2.EventEmitter {
|
|
|
22313
22404
|
this.socket.addEventListener("close", this.boundCloseHandler);
|
|
22314
22405
|
this.socket.addEventListener("error", this.boundErrorHandler);
|
|
22315
22406
|
this.socket.binaryType = "arraybuffer";
|
|
22316
|
-
await new Promise((resolve) => {
|
|
22317
|
-
const
|
|
22318
|
-
this.removeListener("open",
|
|
22319
|
-
this.removeListener("close",
|
|
22320
|
-
|
|
22407
|
+
await new Promise((resolve, reject) => {
|
|
22408
|
+
const cleanup = () => {
|
|
22409
|
+
this.removeListener("open", onOpen);
|
|
22410
|
+
this.removeListener("close", onClose);
|
|
22411
|
+
this.removeListener("error", onError);
|
|
22412
|
+
};
|
|
22413
|
+
const onOpen = () => {
|
|
22414
|
+
cleanup();
|
|
22415
|
+
resolve();
|
|
22416
|
+
};
|
|
22417
|
+
const onError = (err) => {
|
|
22418
|
+
cleanup();
|
|
22419
|
+
reject(err instanceof Error ? err : new Error("WebSocket connection error"));
|
|
22321
22420
|
};
|
|
22322
|
-
|
|
22323
|
-
|
|
22421
|
+
const onClose = () => {
|
|
22422
|
+
if (!this.isConnected()) {
|
|
22423
|
+
cleanup();
|
|
22424
|
+
reject(new Error("WebSocket connection closed before opening"));
|
|
22425
|
+
}
|
|
22426
|
+
};
|
|
22427
|
+
this.on("open", onOpen);
|
|
22428
|
+
this.on("close", onClose);
|
|
22429
|
+
this.on("error", onError);
|
|
22324
22430
|
});
|
|
22325
22431
|
}
|
|
22326
22432
|
/**
|
|
@@ -22450,55 +22556,52 @@ var JobsApi = class {
|
|
|
22450
22556
|
this.rpc = rpc;
|
|
22451
22557
|
}
|
|
22452
22558
|
async importClip(config) {
|
|
22453
|
-
const
|
|
22454
|
-
|
|
22455
|
-
const
|
|
22559
|
+
const importReq = sesame.v1.jobs.ImportStartRequest.create();
|
|
22560
|
+
importReq.config = config;
|
|
22561
|
+
const msg = sesame.v1.jobs.JobStartRequest.create({ importRequest: importReq });
|
|
22562
|
+
const res = await this.rpc.service.startJob(msg);
|
|
22456
22563
|
if (res.error) {
|
|
22457
22564
|
throw new Error(res.error);
|
|
22458
22565
|
}
|
|
22459
22566
|
return res;
|
|
22460
22567
|
}
|
|
22461
|
-
async getImportStatus() {
|
|
22462
|
-
const msg = sesame.v1.jobs.ImportListRequest.create();
|
|
22463
|
-
return this.rpc.service.requestClipImportList(msg);
|
|
22464
|
-
}
|
|
22465
|
-
async abortImport(jobId) {
|
|
22466
|
-
const msg = { jobId };
|
|
22467
|
-
return this.rpc.service.requestClipImportAbort(msg);
|
|
22468
|
-
}
|
|
22469
22568
|
async exportPlaylist(playlist, config) {
|
|
22470
|
-
const
|
|
22569
|
+
const exportReq = sesame.v1.jobs.ExportStartRequest.create();
|
|
22471
22570
|
if (!config.filename) throw new Error("Filename is required");
|
|
22472
|
-
|
|
22571
|
+
exportReq.config = {
|
|
22473
22572
|
...config,
|
|
22474
|
-
|
|
22475
|
-
videoCodec: config.videoCodec ?? sesame.v1.common.CodecId.CODEC_ID_H264,
|
|
22573
|
+
videoCodec: config.videoCodec ?? sesame.v1.common.CodecType.CODEC_TYPE_VIDEO_AVC,
|
|
22476
22574
|
videoBitrateKbps: config.videoBitrateKbps ?? 1024,
|
|
22477
|
-
audioCodec: config.audioCodec ?? sesame.v1.
|
|
22575
|
+
audioCodec: config.audioCodec ?? sesame.v1.common.CodecType.CODEC_TYPE_AUDIO_AAC,
|
|
22478
22576
|
audioBitrateKbps: config.audioBitrateKbps ?? 128,
|
|
22479
22577
|
audioChannels: config.audioChannels ?? 4,
|
|
22480
22578
|
audioRouting: config.audioRouting ?? [0, 1, 2, 3]
|
|
22481
22579
|
};
|
|
22482
|
-
|
|
22483
|
-
|
|
22484
|
-
recorderId: clip.recorderId,
|
|
22580
|
+
exportReq.items = playlist.clips.map((clip) => ({
|
|
22581
|
+
...clip,
|
|
22485
22582
|
transitionTimeUs: clip.transitionTimeUs ?? 0,
|
|
22486
22583
|
transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
|
|
22487
22584
|
transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 },
|
|
22488
|
-
speed: clip.speed ?? 1
|
|
22489
|
-
audioRouting: clip.audioRouting,
|
|
22490
|
-
startTimeUs: clip.startTimeUs,
|
|
22491
|
-
endTimeUs: clip.endTimeUs
|
|
22585
|
+
speed: clip.speed ?? 1
|
|
22492
22586
|
}));
|
|
22493
|
-
|
|
22587
|
+
const msg = sesame.v1.jobs.JobStartRequest.create({ exportRequest: exportReq });
|
|
22588
|
+
const job = await this.rpc.service.startJob(msg);
|
|
22589
|
+
if (job.error) {
|
|
22590
|
+
throw new Error(job.error);
|
|
22591
|
+
}
|
|
22592
|
+
return job;
|
|
22494
22593
|
}
|
|
22495
|
-
async
|
|
22496
|
-
const msg =
|
|
22497
|
-
return this.rpc.service.
|
|
22594
|
+
async abortJob(jobId) {
|
|
22595
|
+
const msg = { jobId };
|
|
22596
|
+
return this.rpc.service.abortJob(msg);
|
|
22498
22597
|
}
|
|
22499
|
-
async
|
|
22598
|
+
async getJobStatus(jobId) {
|
|
22500
22599
|
const msg = { jobId };
|
|
22501
|
-
return this.rpc.service.
|
|
22600
|
+
return this.rpc.service.getJobStatus(msg);
|
|
22601
|
+
}
|
|
22602
|
+
async listJobs() {
|
|
22603
|
+
const msg = {};
|
|
22604
|
+
return this.rpc.service.listJobs(msg);
|
|
22502
22605
|
}
|
|
22503
22606
|
};
|
|
22504
22607
|
|
|
@@ -22558,8 +22661,7 @@ var SesameClient = class extends import_events3.EventEmitter {
|
|
|
22558
22661
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_ERROR]: sesame.v1.status.Event,
|
|
22559
22662
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_TRANSPORT]: sesame.v1.status.Event,
|
|
22560
22663
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_CALLBACK]: sesame.v1.status.Event,
|
|
22561
|
-
[sesame.v1.common.EventTopic.
|
|
22562
|
-
[sesame.v1.common.EventTopic.EVENT_TOPIC_CLIP_IMPORT]: sesame.v1.status.Event,
|
|
22664
|
+
[sesame.v1.common.EventTopic.EVENT_TOPIC_JOB]: sesame.v1.status.Event,
|
|
22563
22665
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_RECORDER]: sesame.v1.status.Event
|
|
22564
22666
|
};
|
|
22565
22667
|
let options = {
|