@stinkycomputing/sesame-api-client 1.4.1-beta.1 → 1.4.1-beta.11
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.mjs
CHANGED
|
@@ -3146,15 +3146,20 @@ var sesame = $root.sesame = (() => {
|
|
|
3146
3146
|
values[valuesById[4] = "VIDEO_FORMAT_1080_60P"] = 4;
|
|
3147
3147
|
return values;
|
|
3148
3148
|
}();
|
|
3149
|
-
common.
|
|
3149
|
+
common.CodecType = function() {
|
|
3150
3150
|
const valuesById = {}, values = Object.create(valuesById);
|
|
3151
|
-
values[valuesById[0] = "
|
|
3152
|
-
values[valuesById[1] = "
|
|
3153
|
-
values[valuesById[2] = "
|
|
3154
|
-
values[valuesById[3] = "
|
|
3155
|
-
values[valuesById[4] = "
|
|
3156
|
-
values[valuesById[5] = "
|
|
3157
|
-
values[valuesById[6] = "
|
|
3151
|
+
values[valuesById[0] = "CODEC_TYPE_UNSPECIFIED"] = 0;
|
|
3152
|
+
values[valuesById[1] = "CODEC_TYPE_VIDEO_VP8"] = 1;
|
|
3153
|
+
values[valuesById[2] = "CODEC_TYPE_VIDEO_VP9"] = 2;
|
|
3154
|
+
values[valuesById[3] = "CODEC_TYPE_VIDEO_AVC"] = 3;
|
|
3155
|
+
values[valuesById[4] = "CODEC_TYPE_VIDEO_HEVC"] = 4;
|
|
3156
|
+
values[valuesById[5] = "CODEC_TYPE_VIDEO_AV1"] = 5;
|
|
3157
|
+
values[valuesById[6] = "CODEC_TYPE_VIDEO_PRORES"] = 6;
|
|
3158
|
+
values[valuesById[7] = "CODEC_TYPE_VIDEO_DNXHR"] = 7;
|
|
3159
|
+
values[valuesById[64] = "CODEC_TYPE_AUDIO_OPUS"] = 64;
|
|
3160
|
+
values[valuesById[65] = "CODEC_TYPE_AUDIO_AAC"] = 65;
|
|
3161
|
+
values[valuesById[66] = "CODEC_TYPE_AUDIO_PCM"] = 66;
|
|
3162
|
+
values[valuesById[67] = "CODEC_TYPE_AUDIO_PCM_S24LE"] = 67;
|
|
3158
3163
|
return values;
|
|
3159
3164
|
}();
|
|
3160
3165
|
common.Empty = function() {
|
|
@@ -3742,7 +3747,7 @@ var sesame = $root.sesame = (() => {
|
|
|
3742
3747
|
}
|
|
3743
3748
|
}
|
|
3744
3749
|
NameValue.prototype.name = "";
|
|
3745
|
-
NameValue.prototype.value =
|
|
3750
|
+
NameValue.prototype.value = null;
|
|
3746
3751
|
NameValue.create = function create(properties) {
|
|
3747
3752
|
return new NameValue(properties);
|
|
3748
3753
|
};
|
|
@@ -3755,10 +3760,10 @@ var sesame = $root.sesame = (() => {
|
|
|
3755
3760
|
10
|
|
3756
3761
|
).string(message.name);
|
|
3757
3762
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
3758
|
-
writer.uint32(
|
|
3763
|
+
$root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
|
|
3759
3764
|
/* id 2, wireType 2 =*/
|
|
3760
3765
|
18
|
|
3761
|
-
).
|
|
3766
|
+
).fork()).ldelim();
|
|
3762
3767
|
return writer;
|
|
3763
3768
|
};
|
|
3764
3769
|
NameValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -3778,7 +3783,7 @@ var sesame = $root.sesame = (() => {
|
|
|
3778
3783
|
break;
|
|
3779
3784
|
}
|
|
3780
3785
|
case 2: {
|
|
3781
|
-
message.value = reader.
|
|
3786
|
+
message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
|
|
3782
3787
|
break;
|
|
3783
3788
|
}
|
|
3784
3789
|
default:
|
|
@@ -3801,8 +3806,9 @@ var sesame = $root.sesame = (() => {
|
|
|
3801
3806
|
return "name: string expected";
|
|
3802
3807
|
}
|
|
3803
3808
|
if (message.value != null && message.hasOwnProperty("value")) {
|
|
3804
|
-
|
|
3805
|
-
|
|
3809
|
+
let error = $root.sesame.v1.common.PropValue.verify(message.value);
|
|
3810
|
+
if (error)
|
|
3811
|
+
return "value." + error;
|
|
3806
3812
|
}
|
|
3807
3813
|
return null;
|
|
3808
3814
|
};
|
|
@@ -3812,8 +3818,11 @@ var sesame = $root.sesame = (() => {
|
|
|
3812
3818
|
let message = new $root.sesame.v1.common.NameValue();
|
|
3813
3819
|
if (object.name != null)
|
|
3814
3820
|
message.name = String(object.name);
|
|
3815
|
-
if (object.value != null)
|
|
3816
|
-
|
|
3821
|
+
if (object.value != null) {
|
|
3822
|
+
if (typeof object.value !== "object")
|
|
3823
|
+
throw TypeError(".sesame.v1.common.NameValue.value: object expected");
|
|
3824
|
+
message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
|
|
3825
|
+
}
|
|
3817
3826
|
return message;
|
|
3818
3827
|
};
|
|
3819
3828
|
NameValue.toObject = function toObject(message, options) {
|
|
@@ -3822,12 +3831,12 @@ var sesame = $root.sesame = (() => {
|
|
|
3822
3831
|
let object = {};
|
|
3823
3832
|
if (options.defaults) {
|
|
3824
3833
|
object.name = "";
|
|
3825
|
-
object.value =
|
|
3834
|
+
object.value = null;
|
|
3826
3835
|
}
|
|
3827
3836
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
3828
3837
|
object.name = message.name;
|
|
3829
3838
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
3830
|
-
object.value = message.value;
|
|
3839
|
+
object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
|
|
3831
3840
|
return object;
|
|
3832
3841
|
};
|
|
3833
3842
|
NameValue.prototype.toJSON = function toJSON() {
|
|
@@ -4063,8 +4072,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4063
4072
|
values[valuesById[1] = "EVENT_TOPIC_ERROR"] = 1;
|
|
4064
4073
|
values[valuesById[2] = "EVENT_TOPIC_TRANSPORT"] = 2;
|
|
4065
4074
|
values[valuesById[3] = "EVENT_TOPIC_CALLBACK"] = 3;
|
|
4066
|
-
values[valuesById[4] = "
|
|
4067
|
-
values[valuesById[5] = "EVENT_TOPIC_CLIP_IMPORT"] = 5;
|
|
4075
|
+
values[valuesById[4] = "EVENT_TOPIC_JOB"] = 4;
|
|
4068
4076
|
values[valuesById[6] = "EVENT_TOPIC_RECORDER"] = 6;
|
|
4069
4077
|
return values;
|
|
4070
4078
|
}();
|
|
@@ -4124,14 +4132,6 @@ var sesame = $root.sesame = (() => {
|
|
|
4124
4132
|
values[valuesById[15] = "SOURCE_TRANSPORT_CMD_SET_SCRUBBING"] = 15;
|
|
4125
4133
|
return values;
|
|
4126
4134
|
}();
|
|
4127
|
-
sources.DecoderType = function() {
|
|
4128
|
-
const valuesById = {}, values = Object.create(valuesById);
|
|
4129
|
-
values[valuesById[0] = "DECODER_TYPE_UNSPECIFIED"] = 0;
|
|
4130
|
-
values[valuesById[1] = "DECODER_TYPE_H264"] = 1;
|
|
4131
|
-
values[valuesById[2] = "DECODER_TYPE_HEVC"] = 2;
|
|
4132
|
-
values[valuesById[3] = "DECODER_TYPE_AV1"] = 3;
|
|
4133
|
-
return values;
|
|
4134
|
-
}();
|
|
4135
4135
|
sources.SourceTextureSize = function() {
|
|
4136
4136
|
const valuesById = {}, values = Object.create(valuesById);
|
|
4137
4137
|
values[valuesById[0] = "SOURCE_TEXTURE_SIZE_UNSPECIFIED"] = 0;
|
|
@@ -4893,7 +4893,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4893
4893
|
}
|
|
4894
4894
|
}
|
|
4895
4895
|
RecorderSourceConfig.prototype.recorderId = "";
|
|
4896
|
-
RecorderSourceConfig.prototype.
|
|
4896
|
+
RecorderSourceConfig.prototype.codec = 0;
|
|
4897
4897
|
RecorderSourceConfig.create = function create(properties) {
|
|
4898
4898
|
return new RecorderSourceConfig(properties);
|
|
4899
4899
|
};
|
|
@@ -4905,11 +4905,11 @@ var sesame = $root.sesame = (() => {
|
|
|
4905
4905
|
/* id 1, wireType 2 =*/
|
|
4906
4906
|
10
|
|
4907
4907
|
).string(message.recorderId);
|
|
4908
|
-
if (message.
|
|
4908
|
+
if (message.codec != null && Object.hasOwnProperty.call(message, "codec"))
|
|
4909
4909
|
writer.uint32(
|
|
4910
4910
|
/* id 2, wireType 0 =*/
|
|
4911
4911
|
16
|
|
4912
|
-
).int32(message.
|
|
4912
|
+
).int32(message.codec);
|
|
4913
4913
|
return writer;
|
|
4914
4914
|
};
|
|
4915
4915
|
RecorderSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -4929,7 +4929,7 @@ var sesame = $root.sesame = (() => {
|
|
|
4929
4929
|
break;
|
|
4930
4930
|
}
|
|
4931
4931
|
case 2: {
|
|
4932
|
-
message.
|
|
4932
|
+
message.codec = reader.int32();
|
|
4933
4933
|
break;
|
|
4934
4934
|
}
|
|
4935
4935
|
default:
|
|
@@ -4951,14 +4951,22 @@ var sesame = $root.sesame = (() => {
|
|
|
4951
4951
|
if (!$util.isString(message.recorderId))
|
|
4952
4952
|
return "recorderId: string expected";
|
|
4953
4953
|
}
|
|
4954
|
-
if (message.
|
|
4955
|
-
switch (message.
|
|
4954
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
4955
|
+
switch (message.codec) {
|
|
4956
4956
|
default:
|
|
4957
|
-
return "
|
|
4957
|
+
return "codec: enum value expected";
|
|
4958
4958
|
case 0:
|
|
4959
4959
|
case 1:
|
|
4960
4960
|
case 2:
|
|
4961
4961
|
case 3:
|
|
4962
|
+
case 4:
|
|
4963
|
+
case 5:
|
|
4964
|
+
case 6:
|
|
4965
|
+
case 7:
|
|
4966
|
+
case 64:
|
|
4967
|
+
case 65:
|
|
4968
|
+
case 66:
|
|
4969
|
+
case 67:
|
|
4962
4970
|
break;
|
|
4963
4971
|
}
|
|
4964
4972
|
return null;
|
|
@@ -4969,28 +4977,60 @@ var sesame = $root.sesame = (() => {
|
|
|
4969
4977
|
let message = new $root.sesame.v1.sources.RecorderSourceConfig();
|
|
4970
4978
|
if (object.recorderId != null)
|
|
4971
4979
|
message.recorderId = String(object.recorderId);
|
|
4972
|
-
switch (object.
|
|
4980
|
+
switch (object.codec) {
|
|
4973
4981
|
default:
|
|
4974
|
-
if (typeof object.
|
|
4975
|
-
message.
|
|
4982
|
+
if (typeof object.codec === "number") {
|
|
4983
|
+
message.codec = object.codec;
|
|
4976
4984
|
break;
|
|
4977
4985
|
}
|
|
4978
4986
|
break;
|
|
4979
|
-
case "
|
|
4987
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
4980
4988
|
case 0:
|
|
4981
|
-
message.
|
|
4989
|
+
message.codec = 0;
|
|
4982
4990
|
break;
|
|
4983
|
-
case "
|
|
4991
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
4984
4992
|
case 1:
|
|
4985
|
-
message.
|
|
4993
|
+
message.codec = 1;
|
|
4986
4994
|
break;
|
|
4987
|
-
case "
|
|
4995
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
4988
4996
|
case 2:
|
|
4989
|
-
message.
|
|
4997
|
+
message.codec = 2;
|
|
4990
4998
|
break;
|
|
4991
|
-
case "
|
|
4999
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
4992
5000
|
case 3:
|
|
4993
|
-
message.
|
|
5001
|
+
message.codec = 3;
|
|
5002
|
+
break;
|
|
5003
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
5004
|
+
case 4:
|
|
5005
|
+
message.codec = 4;
|
|
5006
|
+
break;
|
|
5007
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
5008
|
+
case 5:
|
|
5009
|
+
message.codec = 5;
|
|
5010
|
+
break;
|
|
5011
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
5012
|
+
case 6:
|
|
5013
|
+
message.codec = 6;
|
|
5014
|
+
break;
|
|
5015
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
5016
|
+
case 7:
|
|
5017
|
+
message.codec = 7;
|
|
5018
|
+
break;
|
|
5019
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
5020
|
+
case 64:
|
|
5021
|
+
message.codec = 64;
|
|
5022
|
+
break;
|
|
5023
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
5024
|
+
case 65:
|
|
5025
|
+
message.codec = 65;
|
|
5026
|
+
break;
|
|
5027
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
5028
|
+
case 66:
|
|
5029
|
+
message.codec = 66;
|
|
5030
|
+
break;
|
|
5031
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
5032
|
+
case 67:
|
|
5033
|
+
message.codec = 67;
|
|
4994
5034
|
break;
|
|
4995
5035
|
}
|
|
4996
5036
|
return message;
|
|
@@ -5001,12 +5041,12 @@ var sesame = $root.sesame = (() => {
|
|
|
5001
5041
|
let object = {};
|
|
5002
5042
|
if (options.defaults) {
|
|
5003
5043
|
object.recorderId = "";
|
|
5004
|
-
object.
|
|
5044
|
+
object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
5005
5045
|
}
|
|
5006
5046
|
if (message.recorderId != null && message.hasOwnProperty("recorderId"))
|
|
5007
5047
|
object.recorderId = message.recorderId;
|
|
5008
|
-
if (message.
|
|
5009
|
-
object.
|
|
5048
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
5049
|
+
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;
|
|
5010
5050
|
return object;
|
|
5011
5051
|
};
|
|
5012
5052
|
RecorderSourceConfig.prototype.toJSON = function toJSON() {
|
|
@@ -8180,7 +8220,7 @@ var sesame = $root.sesame = (() => {
|
|
|
8180
8220
|
RecorderClip.prototype.endTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8181
8221
|
RecorderClip.prototype.lockedStartUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8182
8222
|
RecorderClip.prototype.lockedEndUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8183
|
-
RecorderClip.prototype.
|
|
8223
|
+
RecorderClip.prototype.userTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
8184
8224
|
RecorderClip.create = function create(properties) {
|
|
8185
8225
|
return new RecorderClip(properties);
|
|
8186
8226
|
};
|
|
@@ -8227,11 +8267,11 @@ var sesame = $root.sesame = (() => {
|
|
|
8227
8267
|
/* id 8, wireType 0 =*/
|
|
8228
8268
|
64
|
|
8229
8269
|
).int64(message.lockedEndUs);
|
|
8230
|
-
if (message.
|
|
8270
|
+
if (message.userTimeUs != null && Object.hasOwnProperty.call(message, "userTimeUs"))
|
|
8231
8271
|
writer.uint32(
|
|
8232
8272
|
/* id 9, wireType 0 =*/
|
|
8233
8273
|
72
|
|
8234
|
-
).int64(message.
|
|
8274
|
+
).int64(message.userTimeUs);
|
|
8235
8275
|
return writer;
|
|
8236
8276
|
};
|
|
8237
8277
|
RecorderClip.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -8279,7 +8319,7 @@ var sesame = $root.sesame = (() => {
|
|
|
8279
8319
|
break;
|
|
8280
8320
|
}
|
|
8281
8321
|
case 9: {
|
|
8282
|
-
message.
|
|
8322
|
+
message.userTimeUs = reader.int64();
|
|
8283
8323
|
break;
|
|
8284
8324
|
}
|
|
8285
8325
|
default:
|
|
@@ -8329,9 +8369,9 @@ var sesame = $root.sesame = (() => {
|
|
|
8329
8369
|
if (!$util.isInteger(message.lockedEndUs) && !(message.lockedEndUs && $util.isInteger(message.lockedEndUs.low) && $util.isInteger(message.lockedEndUs.high)))
|
|
8330
8370
|
return "lockedEndUs: integer|Long expected";
|
|
8331
8371
|
}
|
|
8332
|
-
if (message.
|
|
8333
|
-
if (!$util.isInteger(message.
|
|
8334
|
-
return "
|
|
8372
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs")) {
|
|
8373
|
+
if (!$util.isInteger(message.userTimeUs) && !(message.userTimeUs && $util.isInteger(message.userTimeUs.low) && $util.isInteger(message.userTimeUs.high)))
|
|
8374
|
+
return "userTimeUs: integer|Long expected";
|
|
8335
8375
|
}
|
|
8336
8376
|
return null;
|
|
8337
8377
|
};
|
|
@@ -8403,15 +8443,15 @@ var sesame = $root.sesame = (() => {
|
|
|
8403
8443
|
else if (typeof object.lockedEndUs === "object")
|
|
8404
8444
|
message.lockedEndUs = new $util.LongBits(object.lockedEndUs.low >>> 0, object.lockedEndUs.high >>> 0).toNumber();
|
|
8405
8445
|
}
|
|
8406
|
-
if (object.
|
|
8446
|
+
if (object.userTimeUs != null) {
|
|
8407
8447
|
if ($util.Long)
|
|
8408
|
-
(message.
|
|
8409
|
-
else if (typeof object.
|
|
8410
|
-
message.
|
|
8411
|
-
else if (typeof object.
|
|
8412
|
-
message.
|
|
8413
|
-
else if (typeof object.
|
|
8414
|
-
message.
|
|
8448
|
+
(message.userTimeUs = $util.Long.fromValue(object.userTimeUs)).unsigned = false;
|
|
8449
|
+
else if (typeof object.userTimeUs === "string")
|
|
8450
|
+
message.userTimeUs = parseInt(object.userTimeUs, 10);
|
|
8451
|
+
else if (typeof object.userTimeUs === "number")
|
|
8452
|
+
message.userTimeUs = object.userTimeUs;
|
|
8453
|
+
else if (typeof object.userTimeUs === "object")
|
|
8454
|
+
message.userTimeUs = new $util.LongBits(object.userTimeUs.low >>> 0, object.userTimeUs.high >>> 0).toNumber();
|
|
8415
8455
|
}
|
|
8416
8456
|
return message;
|
|
8417
8457
|
};
|
|
@@ -8454,9 +8494,9 @@ var sesame = $root.sesame = (() => {
|
|
|
8454
8494
|
object.lockedEndUs = options.longs === String ? "0" : 0;
|
|
8455
8495
|
if ($util.Long) {
|
|
8456
8496
|
let long = new $util.Long(0, 0, false);
|
|
8457
|
-
object.
|
|
8497
|
+
object.userTimeUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8458
8498
|
} else
|
|
8459
|
-
object.
|
|
8499
|
+
object.userTimeUs = options.longs === String ? "0" : 0;
|
|
8460
8500
|
}
|
|
8461
8501
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8462
8502
|
if (typeof message.id === "number")
|
|
@@ -8492,11 +8532,11 @@ var sesame = $root.sesame = (() => {
|
|
|
8492
8532
|
object.lockedEndUs = options.longs === String ? String(message.lockedEndUs) : message.lockedEndUs;
|
|
8493
8533
|
else
|
|
8494
8534
|
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;
|
|
8495
|
-
if (message.
|
|
8496
|
-
if (typeof message.
|
|
8497
|
-
object.
|
|
8535
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs"))
|
|
8536
|
+
if (typeof message.userTimeUs === "number")
|
|
8537
|
+
object.userTimeUs = options.longs === String ? String(message.userTimeUs) : message.userTimeUs;
|
|
8498
8538
|
else
|
|
8499
|
-
object.
|
|
8539
|
+
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;
|
|
8500
8540
|
return object;
|
|
8501
8541
|
};
|
|
8502
8542
|
RecorderClip.prototype.toJSON = function toJSON() {
|
|
@@ -13304,15 +13344,22 @@ var sesame = $root.sesame = (() => {
|
|
|
13304
13344
|
}
|
|
13305
13345
|
TransportEvent.prototype.sourceId = "";
|
|
13306
13346
|
TransportEvent.prototype.userId = "";
|
|
13347
|
+
TransportEvent.prototype.uri = "";
|
|
13307
13348
|
TransportEvent.prototype.state = 0;
|
|
13308
13349
|
TransportEvent.prototype.durationUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13309
13350
|
TransportEvent.prototype.positionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13310
13351
|
TransportEvent.prototype.materialPositionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13352
|
+
TransportEvent.prototype.userTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13353
|
+
TransportEvent.prototype.speed = 0;
|
|
13311
13354
|
TransportEvent.prototype.userPlaylistId = "";
|
|
13312
13355
|
TransportEvent.prototype.playlistIndex = 0;
|
|
13313
13356
|
TransportEvent.prototype.playlistLength = 0;
|
|
13314
13357
|
TransportEvent.prototype.clipId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
13315
13358
|
TransportEvent.prototype.clipPositionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13359
|
+
TransportEvent.prototype.clipDurationUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
13360
|
+
TransportEvent.prototype.preroll = 0;
|
|
13361
|
+
TransportEvent.prototype.postroll = 0;
|
|
13362
|
+
TransportEvent.prototype.metadata = null;
|
|
13316
13363
|
TransportEvent.create = function create(properties) {
|
|
13317
13364
|
return new TransportEvent(properties);
|
|
13318
13365
|
};
|
|
@@ -13329,51 +13376,86 @@ var sesame = $root.sesame = (() => {
|
|
|
13329
13376
|
/* id 2, wireType 2 =*/
|
|
13330
13377
|
18
|
|
13331
13378
|
).string(message.userId);
|
|
13379
|
+
if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
|
|
13380
|
+
writer.uint32(
|
|
13381
|
+
/* id 3, wireType 2 =*/
|
|
13382
|
+
26
|
|
13383
|
+
).string(message.uri);
|
|
13332
13384
|
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
13333
13385
|
writer.uint32(
|
|
13334
|
-
/* id
|
|
13335
|
-
|
|
13386
|
+
/* id 4, wireType 0 =*/
|
|
13387
|
+
32
|
|
13336
13388
|
).int32(message.state);
|
|
13337
13389
|
if (message.durationUs != null && Object.hasOwnProperty.call(message, "durationUs"))
|
|
13338
13390
|
writer.uint32(
|
|
13339
|
-
/* id
|
|
13340
|
-
|
|
13391
|
+
/* id 5, wireType 0 =*/
|
|
13392
|
+
40
|
|
13341
13393
|
).int64(message.durationUs);
|
|
13342
13394
|
if (message.positionUs != null && Object.hasOwnProperty.call(message, "positionUs"))
|
|
13343
13395
|
writer.uint32(
|
|
13344
|
-
/* id
|
|
13345
|
-
|
|
13396
|
+
/* id 6, wireType 0 =*/
|
|
13397
|
+
48
|
|
13346
13398
|
).int64(message.positionUs);
|
|
13347
13399
|
if (message.materialPositionUs != null && Object.hasOwnProperty.call(message, "materialPositionUs"))
|
|
13348
13400
|
writer.uint32(
|
|
13349
|
-
/* id
|
|
13350
|
-
|
|
13401
|
+
/* id 7, wireType 0 =*/
|
|
13402
|
+
56
|
|
13351
13403
|
).int64(message.materialPositionUs);
|
|
13404
|
+
if (message.userTimeUs != null && Object.hasOwnProperty.call(message, "userTimeUs"))
|
|
13405
|
+
writer.uint32(
|
|
13406
|
+
/* id 8, wireType 0 =*/
|
|
13407
|
+
64
|
|
13408
|
+
).int64(message.userTimeUs);
|
|
13409
|
+
if (message.speed != null && Object.hasOwnProperty.call(message, "speed"))
|
|
13410
|
+
writer.uint32(
|
|
13411
|
+
/* id 9, wireType 5 =*/
|
|
13412
|
+
77
|
|
13413
|
+
).float(message.speed);
|
|
13352
13414
|
if (message.userPlaylistId != null && Object.hasOwnProperty.call(message, "userPlaylistId"))
|
|
13353
13415
|
writer.uint32(
|
|
13354
|
-
/* id
|
|
13355
|
-
|
|
13416
|
+
/* id 10, wireType 2 =*/
|
|
13417
|
+
82
|
|
13356
13418
|
).string(message.userPlaylistId);
|
|
13357
13419
|
if (message.playlistIndex != null && Object.hasOwnProperty.call(message, "playlistIndex"))
|
|
13358
13420
|
writer.uint32(
|
|
13359
|
-
/* id
|
|
13360
|
-
|
|
13421
|
+
/* id 11, wireType 0 =*/
|
|
13422
|
+
88
|
|
13361
13423
|
).uint32(message.playlistIndex);
|
|
13362
13424
|
if (message.playlistLength != null && Object.hasOwnProperty.call(message, "playlistLength"))
|
|
13363
13425
|
writer.uint32(
|
|
13364
|
-
/* id
|
|
13365
|
-
|
|
13426
|
+
/* id 12, wireType 0 =*/
|
|
13427
|
+
96
|
|
13366
13428
|
).uint32(message.playlistLength);
|
|
13367
13429
|
if (message.clipId != null && Object.hasOwnProperty.call(message, "clipId"))
|
|
13368
13430
|
writer.uint32(
|
|
13369
|
-
/* id
|
|
13370
|
-
|
|
13431
|
+
/* id 13, wireType 0 =*/
|
|
13432
|
+
104
|
|
13371
13433
|
).uint64(message.clipId);
|
|
13372
13434
|
if (message.clipPositionUs != null && Object.hasOwnProperty.call(message, "clipPositionUs"))
|
|
13373
13435
|
writer.uint32(
|
|
13374
|
-
/* id
|
|
13375
|
-
|
|
13436
|
+
/* id 14, wireType 0 =*/
|
|
13437
|
+
112
|
|
13376
13438
|
).int64(message.clipPositionUs);
|
|
13439
|
+
if (message.clipDurationUs != null && Object.hasOwnProperty.call(message, "clipDurationUs"))
|
|
13440
|
+
writer.uint32(
|
|
13441
|
+
/* id 15, wireType 0 =*/
|
|
13442
|
+
120
|
|
13443
|
+
).int64(message.clipDurationUs);
|
|
13444
|
+
if (message.preroll != null && Object.hasOwnProperty.call(message, "preroll"))
|
|
13445
|
+
writer.uint32(
|
|
13446
|
+
/* id 16, wireType 0 =*/
|
|
13447
|
+
128
|
|
13448
|
+
).uint32(message.preroll);
|
|
13449
|
+
if (message.postroll != null && Object.hasOwnProperty.call(message, "postroll"))
|
|
13450
|
+
writer.uint32(
|
|
13451
|
+
/* id 17, wireType 0 =*/
|
|
13452
|
+
136
|
|
13453
|
+
).uint32(message.postroll);
|
|
13454
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
13455
|
+
$root.sesame.v1.common.TransportMetadata.encode(message.metadata, writer.uint32(
|
|
13456
|
+
/* id 18, wireType 2 =*/
|
|
13457
|
+
146
|
|
13458
|
+
).fork()).ldelim();
|
|
13377
13459
|
return writer;
|
|
13378
13460
|
};
|
|
13379
13461
|
TransportEvent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -13397,41 +13479,69 @@ var sesame = $root.sesame = (() => {
|
|
|
13397
13479
|
break;
|
|
13398
13480
|
}
|
|
13399
13481
|
case 3: {
|
|
13400
|
-
message.
|
|
13482
|
+
message.uri = reader.string();
|
|
13401
13483
|
break;
|
|
13402
13484
|
}
|
|
13403
13485
|
case 4: {
|
|
13404
|
-
message.
|
|
13486
|
+
message.state = reader.int32();
|
|
13405
13487
|
break;
|
|
13406
13488
|
}
|
|
13407
13489
|
case 5: {
|
|
13408
|
-
message.
|
|
13490
|
+
message.durationUs = reader.int64();
|
|
13409
13491
|
break;
|
|
13410
13492
|
}
|
|
13411
13493
|
case 6: {
|
|
13412
|
-
message.
|
|
13494
|
+
message.positionUs = reader.int64();
|
|
13413
13495
|
break;
|
|
13414
13496
|
}
|
|
13415
13497
|
case 7: {
|
|
13416
|
-
message.
|
|
13498
|
+
message.materialPositionUs = reader.int64();
|
|
13417
13499
|
break;
|
|
13418
13500
|
}
|
|
13419
13501
|
case 8: {
|
|
13420
|
-
message.
|
|
13502
|
+
message.userTimeUs = reader.int64();
|
|
13421
13503
|
break;
|
|
13422
13504
|
}
|
|
13423
13505
|
case 9: {
|
|
13424
|
-
message.
|
|
13506
|
+
message.speed = reader.float();
|
|
13425
13507
|
break;
|
|
13426
13508
|
}
|
|
13427
13509
|
case 10: {
|
|
13428
|
-
message.
|
|
13510
|
+
message.userPlaylistId = reader.string();
|
|
13429
13511
|
break;
|
|
13430
13512
|
}
|
|
13431
13513
|
case 11: {
|
|
13514
|
+
message.playlistIndex = reader.uint32();
|
|
13515
|
+
break;
|
|
13516
|
+
}
|
|
13517
|
+
case 12: {
|
|
13518
|
+
message.playlistLength = reader.uint32();
|
|
13519
|
+
break;
|
|
13520
|
+
}
|
|
13521
|
+
case 13: {
|
|
13522
|
+
message.clipId = reader.uint64();
|
|
13523
|
+
break;
|
|
13524
|
+
}
|
|
13525
|
+
case 14: {
|
|
13432
13526
|
message.clipPositionUs = reader.int64();
|
|
13433
13527
|
break;
|
|
13434
13528
|
}
|
|
13529
|
+
case 15: {
|
|
13530
|
+
message.clipDurationUs = reader.int64();
|
|
13531
|
+
break;
|
|
13532
|
+
}
|
|
13533
|
+
case 16: {
|
|
13534
|
+
message.preroll = reader.uint32();
|
|
13535
|
+
break;
|
|
13536
|
+
}
|
|
13537
|
+
case 17: {
|
|
13538
|
+
message.postroll = reader.uint32();
|
|
13539
|
+
break;
|
|
13540
|
+
}
|
|
13541
|
+
case 18: {
|
|
13542
|
+
message.metadata = $root.sesame.v1.common.TransportMetadata.decode(reader, reader.uint32());
|
|
13543
|
+
break;
|
|
13544
|
+
}
|
|
13435
13545
|
default:
|
|
13436
13546
|
reader.skipType(tag & 7);
|
|
13437
13547
|
break;
|
|
@@ -13455,6 +13565,10 @@ var sesame = $root.sesame = (() => {
|
|
|
13455
13565
|
if (!$util.isString(message.userId))
|
|
13456
13566
|
return "userId: string expected";
|
|
13457
13567
|
}
|
|
13568
|
+
if (message.uri != null && message.hasOwnProperty("uri")) {
|
|
13569
|
+
if (!$util.isString(message.uri))
|
|
13570
|
+
return "uri: string expected";
|
|
13571
|
+
}
|
|
13458
13572
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
13459
13573
|
switch (message.state) {
|
|
13460
13574
|
default:
|
|
@@ -13478,6 +13592,14 @@ var sesame = $root.sesame = (() => {
|
|
|
13478
13592
|
if (!$util.isInteger(message.materialPositionUs) && !(message.materialPositionUs && $util.isInteger(message.materialPositionUs.low) && $util.isInteger(message.materialPositionUs.high)))
|
|
13479
13593
|
return "materialPositionUs: integer|Long expected";
|
|
13480
13594
|
}
|
|
13595
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs")) {
|
|
13596
|
+
if (!$util.isInteger(message.userTimeUs) && !(message.userTimeUs && $util.isInteger(message.userTimeUs.low) && $util.isInteger(message.userTimeUs.high)))
|
|
13597
|
+
return "userTimeUs: integer|Long expected";
|
|
13598
|
+
}
|
|
13599
|
+
if (message.speed != null && message.hasOwnProperty("speed")) {
|
|
13600
|
+
if (typeof message.speed !== "number")
|
|
13601
|
+
return "speed: number expected";
|
|
13602
|
+
}
|
|
13481
13603
|
if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId")) {
|
|
13482
13604
|
if (!$util.isString(message.userPlaylistId))
|
|
13483
13605
|
return "userPlaylistId: string expected";
|
|
@@ -13498,6 +13620,23 @@ var sesame = $root.sesame = (() => {
|
|
|
13498
13620
|
if (!$util.isInteger(message.clipPositionUs) && !(message.clipPositionUs && $util.isInteger(message.clipPositionUs.low) && $util.isInteger(message.clipPositionUs.high)))
|
|
13499
13621
|
return "clipPositionUs: integer|Long expected";
|
|
13500
13622
|
}
|
|
13623
|
+
if (message.clipDurationUs != null && message.hasOwnProperty("clipDurationUs")) {
|
|
13624
|
+
if (!$util.isInteger(message.clipDurationUs) && !(message.clipDurationUs && $util.isInteger(message.clipDurationUs.low) && $util.isInteger(message.clipDurationUs.high)))
|
|
13625
|
+
return "clipDurationUs: integer|Long expected";
|
|
13626
|
+
}
|
|
13627
|
+
if (message.preroll != null && message.hasOwnProperty("preroll")) {
|
|
13628
|
+
if (!$util.isInteger(message.preroll))
|
|
13629
|
+
return "preroll: integer expected";
|
|
13630
|
+
}
|
|
13631
|
+
if (message.postroll != null && message.hasOwnProperty("postroll")) {
|
|
13632
|
+
if (!$util.isInteger(message.postroll))
|
|
13633
|
+
return "postroll: integer expected";
|
|
13634
|
+
}
|
|
13635
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
13636
|
+
let error = $root.sesame.v1.common.TransportMetadata.verify(message.metadata);
|
|
13637
|
+
if (error)
|
|
13638
|
+
return "metadata." + error;
|
|
13639
|
+
}
|
|
13501
13640
|
return null;
|
|
13502
13641
|
};
|
|
13503
13642
|
TransportEvent.fromObject = function fromObject(object) {
|
|
@@ -13508,6 +13647,8 @@ var sesame = $root.sesame = (() => {
|
|
|
13508
13647
|
message.sourceId = String(object.sourceId);
|
|
13509
13648
|
if (object.userId != null)
|
|
13510
13649
|
message.userId = String(object.userId);
|
|
13650
|
+
if (object.uri != null)
|
|
13651
|
+
message.uri = String(object.uri);
|
|
13511
13652
|
switch (object.state) {
|
|
13512
13653
|
default:
|
|
13513
13654
|
if (typeof object.state === "number") {
|
|
@@ -13566,6 +13707,18 @@ var sesame = $root.sesame = (() => {
|
|
|
13566
13707
|
else if (typeof object.materialPositionUs === "object")
|
|
13567
13708
|
message.materialPositionUs = new $util.LongBits(object.materialPositionUs.low >>> 0, object.materialPositionUs.high >>> 0).toNumber();
|
|
13568
13709
|
}
|
|
13710
|
+
if (object.userTimeUs != null) {
|
|
13711
|
+
if ($util.Long)
|
|
13712
|
+
(message.userTimeUs = $util.Long.fromValue(object.userTimeUs)).unsigned = false;
|
|
13713
|
+
else if (typeof object.userTimeUs === "string")
|
|
13714
|
+
message.userTimeUs = parseInt(object.userTimeUs, 10);
|
|
13715
|
+
else if (typeof object.userTimeUs === "number")
|
|
13716
|
+
message.userTimeUs = object.userTimeUs;
|
|
13717
|
+
else if (typeof object.userTimeUs === "object")
|
|
13718
|
+
message.userTimeUs = new $util.LongBits(object.userTimeUs.low >>> 0, object.userTimeUs.high >>> 0).toNumber();
|
|
13719
|
+
}
|
|
13720
|
+
if (object.speed != null)
|
|
13721
|
+
message.speed = Number(object.speed);
|
|
13569
13722
|
if (object.userPlaylistId != null)
|
|
13570
13723
|
message.userPlaylistId = String(object.userPlaylistId);
|
|
13571
13724
|
if (object.playlistIndex != null)
|
|
@@ -13592,6 +13745,25 @@ var sesame = $root.sesame = (() => {
|
|
|
13592
13745
|
else if (typeof object.clipPositionUs === "object")
|
|
13593
13746
|
message.clipPositionUs = new $util.LongBits(object.clipPositionUs.low >>> 0, object.clipPositionUs.high >>> 0).toNumber();
|
|
13594
13747
|
}
|
|
13748
|
+
if (object.clipDurationUs != null) {
|
|
13749
|
+
if ($util.Long)
|
|
13750
|
+
(message.clipDurationUs = $util.Long.fromValue(object.clipDurationUs)).unsigned = false;
|
|
13751
|
+
else if (typeof object.clipDurationUs === "string")
|
|
13752
|
+
message.clipDurationUs = parseInt(object.clipDurationUs, 10);
|
|
13753
|
+
else if (typeof object.clipDurationUs === "number")
|
|
13754
|
+
message.clipDurationUs = object.clipDurationUs;
|
|
13755
|
+
else if (typeof object.clipDurationUs === "object")
|
|
13756
|
+
message.clipDurationUs = new $util.LongBits(object.clipDurationUs.low >>> 0, object.clipDurationUs.high >>> 0).toNumber();
|
|
13757
|
+
}
|
|
13758
|
+
if (object.preroll != null)
|
|
13759
|
+
message.preroll = object.preroll >>> 0;
|
|
13760
|
+
if (object.postroll != null)
|
|
13761
|
+
message.postroll = object.postroll >>> 0;
|
|
13762
|
+
if (object.metadata != null) {
|
|
13763
|
+
if (typeof object.metadata !== "object")
|
|
13764
|
+
throw TypeError(".sesame.v1.status.TransportEvent.metadata: object expected");
|
|
13765
|
+
message.metadata = $root.sesame.v1.common.TransportMetadata.fromObject(object.metadata);
|
|
13766
|
+
}
|
|
13595
13767
|
return message;
|
|
13596
13768
|
};
|
|
13597
13769
|
TransportEvent.toObject = function toObject(message, options) {
|
|
@@ -13601,6 +13773,7 @@ var sesame = $root.sesame = (() => {
|
|
|
13601
13773
|
if (options.defaults) {
|
|
13602
13774
|
object.sourceId = "";
|
|
13603
13775
|
object.userId = "";
|
|
13776
|
+
object.uri = "";
|
|
13604
13777
|
object.state = options.enums === String ? "SOURCE_TRANSPORT_STATE_STOPPED" : 0;
|
|
13605
13778
|
if ($util.Long) {
|
|
13606
13779
|
let long = new $util.Long(0, 0, false);
|
|
@@ -13617,6 +13790,12 @@ var sesame = $root.sesame = (() => {
|
|
|
13617
13790
|
object.materialPositionUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13618
13791
|
} else
|
|
13619
13792
|
object.materialPositionUs = options.longs === String ? "0" : 0;
|
|
13793
|
+
if ($util.Long) {
|
|
13794
|
+
let long = new $util.Long(0, 0, false);
|
|
13795
|
+
object.userTimeUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13796
|
+
} else
|
|
13797
|
+
object.userTimeUs = options.longs === String ? "0" : 0;
|
|
13798
|
+
object.speed = 0;
|
|
13620
13799
|
object.userPlaylistId = "";
|
|
13621
13800
|
object.playlistIndex = 0;
|
|
13622
13801
|
object.playlistLength = 0;
|
|
@@ -13630,11 +13809,21 @@ var sesame = $root.sesame = (() => {
|
|
|
13630
13809
|
object.clipPositionUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13631
13810
|
} else
|
|
13632
13811
|
object.clipPositionUs = options.longs === String ? "0" : 0;
|
|
13812
|
+
if ($util.Long) {
|
|
13813
|
+
let long = new $util.Long(0, 0, false);
|
|
13814
|
+
object.clipDurationUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13815
|
+
} else
|
|
13816
|
+
object.clipDurationUs = options.longs === String ? "0" : 0;
|
|
13817
|
+
object.preroll = 0;
|
|
13818
|
+
object.postroll = 0;
|
|
13819
|
+
object.metadata = null;
|
|
13633
13820
|
}
|
|
13634
13821
|
if (message.sourceId != null && message.hasOwnProperty("sourceId"))
|
|
13635
13822
|
object.sourceId = message.sourceId;
|
|
13636
13823
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
13637
13824
|
object.userId = message.userId;
|
|
13825
|
+
if (message.uri != null && message.hasOwnProperty("uri"))
|
|
13826
|
+
object.uri = message.uri;
|
|
13638
13827
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
13639
13828
|
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;
|
|
13640
13829
|
if (message.durationUs != null && message.hasOwnProperty("durationUs"))
|
|
@@ -13652,6 +13841,13 @@ var sesame = $root.sesame = (() => {
|
|
|
13652
13841
|
object.materialPositionUs = options.longs === String ? String(message.materialPositionUs) : message.materialPositionUs;
|
|
13653
13842
|
else
|
|
13654
13843
|
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;
|
|
13844
|
+
if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs"))
|
|
13845
|
+
if (typeof message.userTimeUs === "number")
|
|
13846
|
+
object.userTimeUs = options.longs === String ? String(message.userTimeUs) : message.userTimeUs;
|
|
13847
|
+
else
|
|
13848
|
+
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;
|
|
13849
|
+
if (message.speed != null && message.hasOwnProperty("speed"))
|
|
13850
|
+
object.speed = options.json && !isFinite(message.speed) ? String(message.speed) : message.speed;
|
|
13655
13851
|
if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId"))
|
|
13656
13852
|
object.userPlaylistId = message.userPlaylistId;
|
|
13657
13853
|
if (message.playlistIndex != null && message.hasOwnProperty("playlistIndex"))
|
|
@@ -13668,6 +13864,17 @@ var sesame = $root.sesame = (() => {
|
|
|
13668
13864
|
object.clipPositionUs = options.longs === String ? String(message.clipPositionUs) : message.clipPositionUs;
|
|
13669
13865
|
else
|
|
13670
13866
|
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;
|
|
13867
|
+
if (message.clipDurationUs != null && message.hasOwnProperty("clipDurationUs"))
|
|
13868
|
+
if (typeof message.clipDurationUs === "number")
|
|
13869
|
+
object.clipDurationUs = options.longs === String ? String(message.clipDurationUs) : message.clipDurationUs;
|
|
13870
|
+
else
|
|
13871
|
+
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;
|
|
13872
|
+
if (message.preroll != null && message.hasOwnProperty("preroll"))
|
|
13873
|
+
object.preroll = message.preroll;
|
|
13874
|
+
if (message.postroll != null && message.hasOwnProperty("postroll"))
|
|
13875
|
+
object.postroll = message.postroll;
|
|
13876
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
13877
|
+
object.metadata = $root.sesame.v1.common.TransportMetadata.toObject(message.metadata, options);
|
|
13671
13878
|
return object;
|
|
13672
13879
|
};
|
|
13673
13880
|
TransportEvent.prototype.toJSON = function toJSON() {
|
|
@@ -13692,12 +13899,11 @@ var sesame = $root.sesame = (() => {
|
|
|
13692
13899
|
Event2.prototype.errorEvent = null;
|
|
13693
13900
|
Event2.prototype.transportEvent = null;
|
|
13694
13901
|
Event2.prototype.callbackEvent = null;
|
|
13695
|
-
Event2.prototype.
|
|
13696
|
-
Event2.prototype.clipImportEvent = null;
|
|
13902
|
+
Event2.prototype.jobEvent = null;
|
|
13697
13903
|
Event2.prototype.recorderEvent = null;
|
|
13698
13904
|
let $oneOfFields;
|
|
13699
13905
|
Object.defineProperty(Event2.prototype, "event", {
|
|
13700
|
-
get: $util.oneOfGetter($oneOfFields = ["errorEvent", "transportEvent", "callbackEvent", "
|
|
13906
|
+
get: $util.oneOfGetter($oneOfFields = ["errorEvent", "transportEvent", "callbackEvent", "jobEvent", "recorderEvent"]),
|
|
13701
13907
|
set: $util.oneOfSetter($oneOfFields)
|
|
13702
13908
|
});
|
|
13703
13909
|
Event2.create = function create(properties) {
|
|
@@ -13721,16 +13927,11 @@ var sesame = $root.sesame = (() => {
|
|
|
13721
13927
|
/* id 3, wireType 2 =*/
|
|
13722
13928
|
26
|
|
13723
13929
|
).fork()).ldelim();
|
|
13724
|
-
if (message.
|
|
13725
|
-
$root.sesame.v1.jobs.
|
|
13930
|
+
if (message.jobEvent != null && Object.hasOwnProperty.call(message, "jobEvent"))
|
|
13931
|
+
$root.sesame.v1.jobs.Job.encode(message.jobEvent, writer.uint32(
|
|
13726
13932
|
/* id 4, wireType 2 =*/
|
|
13727
13933
|
34
|
|
13728
13934
|
).fork()).ldelim();
|
|
13729
|
-
if (message.clipImportEvent != null && Object.hasOwnProperty.call(message, "clipImportEvent"))
|
|
13730
|
-
$root.sesame.v1.jobs.JobEvent.encode(message.clipImportEvent, writer.uint32(
|
|
13731
|
-
/* id 5, wireType 2 =*/
|
|
13732
|
-
42
|
|
13733
|
-
).fork()).ldelim();
|
|
13734
13935
|
if (message.recorderEvent != null && Object.hasOwnProperty.call(message, "recorderEvent"))
|
|
13735
13936
|
$root.sesame.v1.recorder.RecorderEvent.encode(message.recorderEvent, writer.uint32(
|
|
13736
13937
|
/* id 6, wireType 2 =*/
|
|
@@ -13763,11 +13964,7 @@ var sesame = $root.sesame = (() => {
|
|
|
13763
13964
|
break;
|
|
13764
13965
|
}
|
|
13765
13966
|
case 4: {
|
|
13766
|
-
message.
|
|
13767
|
-
break;
|
|
13768
|
-
}
|
|
13769
|
-
case 5: {
|
|
13770
|
-
message.clipImportEvent = $root.sesame.v1.jobs.JobEvent.decode(reader, reader.uint32());
|
|
13967
|
+
message.jobEvent = $root.sesame.v1.jobs.Job.decode(reader, reader.uint32());
|
|
13771
13968
|
break;
|
|
13772
13969
|
}
|
|
13773
13970
|
case 6: {
|
|
@@ -13818,24 +14015,14 @@ var sesame = $root.sesame = (() => {
|
|
|
13818
14015
|
return "callbackEvent." + error;
|
|
13819
14016
|
}
|
|
13820
14017
|
}
|
|
13821
|
-
if (message.
|
|
13822
|
-
if (properties.event === 1)
|
|
13823
|
-
return "event: multiple values";
|
|
13824
|
-
properties.event = 1;
|
|
13825
|
-
{
|
|
13826
|
-
let error = $root.sesame.v1.jobs.JobEvent.verify(message.playlistExportEvent);
|
|
13827
|
-
if (error)
|
|
13828
|
-
return "playlistExportEvent." + error;
|
|
13829
|
-
}
|
|
13830
|
-
}
|
|
13831
|
-
if (message.clipImportEvent != null && message.hasOwnProperty("clipImportEvent")) {
|
|
14018
|
+
if (message.jobEvent != null && message.hasOwnProperty("jobEvent")) {
|
|
13832
14019
|
if (properties.event === 1)
|
|
13833
14020
|
return "event: multiple values";
|
|
13834
14021
|
properties.event = 1;
|
|
13835
14022
|
{
|
|
13836
|
-
let error = $root.sesame.v1.jobs.
|
|
14023
|
+
let error = $root.sesame.v1.jobs.Job.verify(message.jobEvent);
|
|
13837
14024
|
if (error)
|
|
13838
|
-
return "
|
|
14025
|
+
return "jobEvent." + error;
|
|
13839
14026
|
}
|
|
13840
14027
|
}
|
|
13841
14028
|
if (message.recorderEvent != null && message.hasOwnProperty("recorderEvent")) {
|
|
@@ -13869,15 +14056,10 @@ var sesame = $root.sesame = (() => {
|
|
|
13869
14056
|
throw TypeError(".sesame.v1.status.Event.callbackEvent: object expected");
|
|
13870
14057
|
message.callbackEvent = $root.sesame.v1.common.Callback.fromObject(object.callbackEvent);
|
|
13871
14058
|
}
|
|
13872
|
-
if (object.
|
|
13873
|
-
if (typeof object.
|
|
13874
|
-
throw TypeError(".sesame.v1.status.Event.
|
|
13875
|
-
message.
|
|
13876
|
-
}
|
|
13877
|
-
if (object.clipImportEvent != null) {
|
|
13878
|
-
if (typeof object.clipImportEvent !== "object")
|
|
13879
|
-
throw TypeError(".sesame.v1.status.Event.clipImportEvent: object expected");
|
|
13880
|
-
message.clipImportEvent = $root.sesame.v1.jobs.JobEvent.fromObject(object.clipImportEvent);
|
|
14059
|
+
if (object.jobEvent != null) {
|
|
14060
|
+
if (typeof object.jobEvent !== "object")
|
|
14061
|
+
throw TypeError(".sesame.v1.status.Event.jobEvent: object expected");
|
|
14062
|
+
message.jobEvent = $root.sesame.v1.jobs.Job.fromObject(object.jobEvent);
|
|
13881
14063
|
}
|
|
13882
14064
|
if (object.recorderEvent != null) {
|
|
13883
14065
|
if (typeof object.recorderEvent !== "object")
|
|
@@ -13905,15 +14087,10 @@ var sesame = $root.sesame = (() => {
|
|
|
13905
14087
|
if (options.oneofs)
|
|
13906
14088
|
object.event = "callbackEvent";
|
|
13907
14089
|
}
|
|
13908
|
-
if (message.
|
|
13909
|
-
object.
|
|
13910
|
-
if (options.oneofs)
|
|
13911
|
-
object.event = "playlistExportEvent";
|
|
13912
|
-
}
|
|
13913
|
-
if (message.clipImportEvent != null && message.hasOwnProperty("clipImportEvent")) {
|
|
13914
|
-
object.clipImportEvent = $root.sesame.v1.jobs.JobEvent.toObject(message.clipImportEvent, options);
|
|
14090
|
+
if (message.jobEvent != null && message.hasOwnProperty("jobEvent")) {
|
|
14091
|
+
object.jobEvent = $root.sesame.v1.jobs.Job.toObject(message.jobEvent, options);
|
|
13915
14092
|
if (options.oneofs)
|
|
13916
|
-
object.event = "
|
|
14093
|
+
object.event = "jobEvent";
|
|
13917
14094
|
}
|
|
13918
14095
|
if (message.recorderEvent != null && message.hasOwnProperty("recorderEvent")) {
|
|
13919
14096
|
object.recorderEvent = $root.sesame.v1.recorder.RecorderEvent.toObject(message.recorderEvent, options);
|
|
@@ -14024,7 +14201,6 @@ var sesame = $root.sesame = (() => {
|
|
|
14024
14201
|
case 2:
|
|
14025
14202
|
case 3:
|
|
14026
14203
|
case 4:
|
|
14027
|
-
case 5:
|
|
14028
14204
|
case 6:
|
|
14029
14205
|
break;
|
|
14030
14206
|
}
|
|
@@ -14069,14 +14245,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14069
14245
|
case 3:
|
|
14070
14246
|
message.eventTopics[i] = 3;
|
|
14071
14247
|
break;
|
|
14072
|
-
case "
|
|
14248
|
+
case "EVENT_TOPIC_JOB":
|
|
14073
14249
|
case 4:
|
|
14074
14250
|
message.eventTopics[i] = 4;
|
|
14075
14251
|
break;
|
|
14076
|
-
case "EVENT_TOPIC_CLIP_IMPORT":
|
|
14077
|
-
case 5:
|
|
14078
|
-
message.eventTopics[i] = 5;
|
|
14079
|
-
break;
|
|
14080
14252
|
case "EVENT_TOPIC_RECORDER":
|
|
14081
14253
|
case 6:
|
|
14082
14254
|
message.eventTopics[i] = 6;
|
|
@@ -14162,7 +14334,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14162
14334
|
this[keys[i]] = properties[keys[i]];
|
|
14163
14335
|
}
|
|
14164
14336
|
}
|
|
14165
|
-
EncoderConfig.prototype.
|
|
14337
|
+
EncoderConfig.prototype.codec = 0;
|
|
14166
14338
|
EncoderConfig.prototype.preset = 0;
|
|
14167
14339
|
EncoderConfig.prototype.bitrateKbps = 0;
|
|
14168
14340
|
EncoderConfig.prototype.keyframeInterval = 0;
|
|
@@ -14175,11 +14347,11 @@ var sesame = $root.sesame = (() => {
|
|
|
14175
14347
|
EncoderConfig.encode = function encode(message, writer) {
|
|
14176
14348
|
if (!writer)
|
|
14177
14349
|
writer = $Writer.create();
|
|
14178
|
-
if (message.
|
|
14350
|
+
if (message.codec != null && Object.hasOwnProperty.call(message, "codec"))
|
|
14179
14351
|
writer.uint32(
|
|
14180
14352
|
/* id 1, wireType 0 =*/
|
|
14181
14353
|
8
|
|
14182
|
-
).int32(message.
|
|
14354
|
+
).int32(message.codec);
|
|
14183
14355
|
if (message.preset != null && Object.hasOwnProperty.call(message, "preset"))
|
|
14184
14356
|
writer.uint32(
|
|
14185
14357
|
/* id 2, wireType 0 =*/
|
|
@@ -14225,7 +14397,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14225
14397
|
break;
|
|
14226
14398
|
switch (tag >>> 3) {
|
|
14227
14399
|
case 1: {
|
|
14228
|
-
message.
|
|
14400
|
+
message.codec = reader.int32();
|
|
14229
14401
|
break;
|
|
14230
14402
|
}
|
|
14231
14403
|
case 2: {
|
|
@@ -14267,10 +14439,10 @@ var sesame = $root.sesame = (() => {
|
|
|
14267
14439
|
EncoderConfig.verify = function verify(message) {
|
|
14268
14440
|
if (typeof message !== "object" || message === null)
|
|
14269
14441
|
return "object expected";
|
|
14270
|
-
if (message.
|
|
14271
|
-
switch (message.
|
|
14442
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
14443
|
+
switch (message.codec) {
|
|
14272
14444
|
default:
|
|
14273
|
-
return "
|
|
14445
|
+
return "codec: enum value expected";
|
|
14274
14446
|
case 0:
|
|
14275
14447
|
case 1:
|
|
14276
14448
|
case 2:
|
|
@@ -14278,6 +14450,11 @@ var sesame = $root.sesame = (() => {
|
|
|
14278
14450
|
case 4:
|
|
14279
14451
|
case 5:
|
|
14280
14452
|
case 6:
|
|
14453
|
+
case 7:
|
|
14454
|
+
case 64:
|
|
14455
|
+
case 65:
|
|
14456
|
+
case 66:
|
|
14457
|
+
case 67:
|
|
14281
14458
|
break;
|
|
14282
14459
|
}
|
|
14283
14460
|
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
@@ -14316,40 +14493,60 @@ var sesame = $root.sesame = (() => {
|
|
|
14316
14493
|
if (object instanceof $root.sesame.v1.outputs.EncoderConfig)
|
|
14317
14494
|
return object;
|
|
14318
14495
|
let message = new $root.sesame.v1.outputs.EncoderConfig();
|
|
14319
|
-
switch (object.
|
|
14496
|
+
switch (object.codec) {
|
|
14320
14497
|
default:
|
|
14321
|
-
if (typeof object.
|
|
14322
|
-
message.
|
|
14498
|
+
if (typeof object.codec === "number") {
|
|
14499
|
+
message.codec = object.codec;
|
|
14323
14500
|
break;
|
|
14324
14501
|
}
|
|
14325
14502
|
break;
|
|
14326
|
-
case "
|
|
14503
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
14327
14504
|
case 0:
|
|
14328
|
-
message.
|
|
14505
|
+
message.codec = 0;
|
|
14329
14506
|
break;
|
|
14330
|
-
case "
|
|
14507
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
14331
14508
|
case 1:
|
|
14332
|
-
message.
|
|
14509
|
+
message.codec = 1;
|
|
14333
14510
|
break;
|
|
14334
|
-
case "
|
|
14511
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
14335
14512
|
case 2:
|
|
14336
|
-
message.
|
|
14513
|
+
message.codec = 2;
|
|
14337
14514
|
break;
|
|
14338
|
-
case "
|
|
14515
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
14339
14516
|
case 3:
|
|
14340
|
-
message.
|
|
14517
|
+
message.codec = 3;
|
|
14341
14518
|
break;
|
|
14342
|
-
case "
|
|
14519
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
14343
14520
|
case 4:
|
|
14344
|
-
message.
|
|
14521
|
+
message.codec = 4;
|
|
14345
14522
|
break;
|
|
14346
|
-
case "
|
|
14523
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
14347
14524
|
case 5:
|
|
14348
|
-
message.
|
|
14525
|
+
message.codec = 5;
|
|
14349
14526
|
break;
|
|
14350
|
-
case "
|
|
14527
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
14351
14528
|
case 6:
|
|
14352
|
-
message.
|
|
14529
|
+
message.codec = 6;
|
|
14530
|
+
break;
|
|
14531
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
14532
|
+
case 7:
|
|
14533
|
+
message.codec = 7;
|
|
14534
|
+
break;
|
|
14535
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
14536
|
+
case 64:
|
|
14537
|
+
message.codec = 64;
|
|
14538
|
+
break;
|
|
14539
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
14540
|
+
case 65:
|
|
14541
|
+
message.codec = 65;
|
|
14542
|
+
break;
|
|
14543
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
14544
|
+
case 66:
|
|
14545
|
+
message.codec = 66;
|
|
14546
|
+
break;
|
|
14547
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
14548
|
+
case 67:
|
|
14549
|
+
message.codec = 67;
|
|
14353
14550
|
break;
|
|
14354
14551
|
}
|
|
14355
14552
|
switch (object.preset) {
|
|
@@ -14393,7 +14590,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14393
14590
|
options = {};
|
|
14394
14591
|
let object = {};
|
|
14395
14592
|
if (options.defaults) {
|
|
14396
|
-
object.
|
|
14593
|
+
object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
14397
14594
|
object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
|
|
14398
14595
|
object.bitrateKbps = 0;
|
|
14399
14596
|
object.keyframeInterval = 0;
|
|
@@ -14401,8 +14598,8 @@ var sesame = $root.sesame = (() => {
|
|
|
14401
14598
|
object.height = 0;
|
|
14402
14599
|
object.fps = 0;
|
|
14403
14600
|
}
|
|
14404
|
-
if (message.
|
|
14405
|
-
object.
|
|
14601
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
14602
|
+
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;
|
|
14406
14603
|
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
14407
14604
|
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;
|
|
14408
14605
|
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
|
|
@@ -17984,6 +18181,13 @@ var sesame = $root.sesame = (() => {
|
|
|
17984
18181
|
}();
|
|
17985
18182
|
v1.jobs = function() {
|
|
17986
18183
|
const jobs = {};
|
|
18184
|
+
jobs.JobType = function() {
|
|
18185
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
18186
|
+
values[valuesById[0] = "JOB_TYPE_UNSPECIFIED"] = 0;
|
|
18187
|
+
values[valuesById[1] = "JOB_TYPE_EXPORT"] = 1;
|
|
18188
|
+
values[valuesById[2] = "JOB_TYPE_IMPORT"] = 2;
|
|
18189
|
+
return values;
|
|
18190
|
+
}();
|
|
17987
18191
|
jobs.JobStatus = function() {
|
|
17988
18192
|
const valuesById = {}, values = Object.create(valuesById);
|
|
17989
18193
|
values[valuesById[0] = "JOB_STATUS_UNSPECIFIED"] = 0;
|
|
@@ -18003,15 +18207,6 @@ var sesame = $root.sesame = (() => {
|
|
|
18003
18207
|
values[valuesById[4] = "CONTAINER_FORMAT_MXF"] = 4;
|
|
18004
18208
|
return values;
|
|
18005
18209
|
}();
|
|
18006
|
-
jobs.AudioCodecId = function() {
|
|
18007
|
-
const valuesById = {}, values = Object.create(valuesById);
|
|
18008
|
-
values[valuesById[0] = "AUDIO_CODEC_ID_UNSPECIFIED"] = 0;
|
|
18009
|
-
values[valuesById[1] = "AUDIO_CODEC_ID_AAC"] = 1;
|
|
18010
|
-
values[valuesById[2] = "AUDIO_CODEC_ID_OPUS"] = 2;
|
|
18011
|
-
values[valuesById[3] = "AUDIO_CODEC_ID_PCM_S16LE"] = 3;
|
|
18012
|
-
values[valuesById[4] = "AUDIO_CODEC_ID_PCM_S24LE"] = 4;
|
|
18013
|
-
return values;
|
|
18014
|
-
}();
|
|
18015
18210
|
jobs.RateControlMode = function() {
|
|
18016
18211
|
const valuesById = {}, values = Object.create(valuesById);
|
|
18017
18212
|
values[valuesById[0] = "RATE_CONTROL_MODE_UNSPECIFIED"] = 0;
|
|
@@ -18158,107 +18353,131 @@ var sesame = $root.sesame = (() => {
|
|
|
18158
18353
|
};
|
|
18159
18354
|
return TimingInfo;
|
|
18160
18355
|
}();
|
|
18161
|
-
jobs.
|
|
18162
|
-
function
|
|
18356
|
+
jobs.Job = function() {
|
|
18357
|
+
function Job(properties) {
|
|
18163
18358
|
if (properties) {
|
|
18164
18359
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18165
18360
|
if (properties[keys[i]] != null)
|
|
18166
18361
|
this[keys[i]] = properties[keys[i]];
|
|
18167
18362
|
}
|
|
18168
18363
|
}
|
|
18169
|
-
|
|
18170
|
-
|
|
18171
|
-
|
|
18172
|
-
|
|
18173
|
-
|
|
18174
|
-
|
|
18175
|
-
|
|
18364
|
+
Job.prototype.id = 0;
|
|
18365
|
+
Job.prototype.type = 0;
|
|
18366
|
+
Job.prototype.status = 0;
|
|
18367
|
+
Job.prototype.name = "";
|
|
18368
|
+
Job.prototype.description = "";
|
|
18369
|
+
Job.prototype.error = null;
|
|
18370
|
+
Job.prototype.progress = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
18371
|
+
Job.prototype.total = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
|
|
18372
|
+
Job.prototype.timingInfo = null;
|
|
18176
18373
|
let $oneOfFields;
|
|
18177
|
-
Object.defineProperty(
|
|
18374
|
+
Object.defineProperty(Job.prototype, "_error", {
|
|
18178
18375
|
get: $util.oneOfGetter($oneOfFields = ["error"]),
|
|
18179
18376
|
set: $util.oneOfSetter($oneOfFields)
|
|
18180
18377
|
});
|
|
18181
|
-
|
|
18182
|
-
|
|
18378
|
+
Object.defineProperty(Job.prototype, "_timingInfo", {
|
|
18379
|
+
get: $util.oneOfGetter($oneOfFields = ["timingInfo"]),
|
|
18380
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18381
|
+
});
|
|
18382
|
+
Job.create = function create(properties) {
|
|
18383
|
+
return new Job(properties);
|
|
18183
18384
|
};
|
|
18184
|
-
|
|
18385
|
+
Job.encode = function encode(message, writer) {
|
|
18185
18386
|
if (!writer)
|
|
18186
18387
|
writer = $Writer.create();
|
|
18187
|
-
if (message.
|
|
18388
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
18188
18389
|
writer.uint32(
|
|
18189
18390
|
/* id 1, wireType 0 =*/
|
|
18190
18391
|
8
|
|
18191
|
-
).uint32(message.
|
|
18192
|
-
if (message.
|
|
18392
|
+
).uint32(message.id);
|
|
18393
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
18193
18394
|
writer.uint32(
|
|
18194
|
-
/* id 2, wireType
|
|
18195
|
-
|
|
18196
|
-
).
|
|
18197
|
-
if (message.
|
|
18395
|
+
/* id 2, wireType 0 =*/
|
|
18396
|
+
16
|
|
18397
|
+
).int32(message.type);
|
|
18398
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
18198
18399
|
writer.uint32(
|
|
18199
|
-
/* id 3, wireType
|
|
18200
|
-
|
|
18201
|
-
).string(message.description);
|
|
18202
|
-
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
18203
|
-
writer.uint32(
|
|
18204
|
-
/* id 4, wireType 0 =*/
|
|
18205
|
-
32
|
|
18400
|
+
/* id 3, wireType 0 =*/
|
|
18401
|
+
24
|
|
18206
18402
|
).int32(message.status);
|
|
18207
|
-
if (message.
|
|
18403
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
18404
|
+
writer.uint32(
|
|
18405
|
+
/* id 4, wireType 2 =*/
|
|
18406
|
+
34
|
|
18407
|
+
).string(message.name);
|
|
18408
|
+
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
18208
18409
|
writer.uint32(
|
|
18209
18410
|
/* id 5, wireType 2 =*/
|
|
18210
18411
|
42
|
|
18412
|
+
).string(message.description);
|
|
18413
|
+
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
|
18414
|
+
writer.uint32(
|
|
18415
|
+
/* id 6, wireType 2 =*/
|
|
18416
|
+
50
|
|
18211
18417
|
).string(message.error);
|
|
18212
18418
|
if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
|
|
18213
|
-
writer.uint32(
|
|
18214
|
-
/* id 6, wireType 0 =*/
|
|
18215
|
-
48
|
|
18216
|
-
).uint32(message.progress);
|
|
18217
|
-
if (message.total != null && Object.hasOwnProperty.call(message, "total"))
|
|
18218
18419
|
writer.uint32(
|
|
18219
18420
|
/* id 7, wireType 0 =*/
|
|
18220
18421
|
56
|
|
18221
|
-
).
|
|
18422
|
+
).int64(message.progress);
|
|
18423
|
+
if (message.total != null && Object.hasOwnProperty.call(message, "total"))
|
|
18424
|
+
writer.uint32(
|
|
18425
|
+
/* id 8, wireType 0 =*/
|
|
18426
|
+
64
|
|
18427
|
+
).int64(message.total);
|
|
18428
|
+
if (message.timingInfo != null && Object.hasOwnProperty.call(message, "timingInfo"))
|
|
18429
|
+
$root.sesame.v1.jobs.TimingInfo.encode(message.timingInfo, writer.uint32(
|
|
18430
|
+
/* id 9, wireType 2 =*/
|
|
18431
|
+
74
|
|
18432
|
+
).fork()).ldelim();
|
|
18222
18433
|
return writer;
|
|
18223
18434
|
};
|
|
18224
|
-
|
|
18435
|
+
Job.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18225
18436
|
return this.encode(message, writer).ldelim();
|
|
18226
18437
|
};
|
|
18227
|
-
|
|
18438
|
+
Job.decode = function decode(reader, length, error) {
|
|
18228
18439
|
if (!(reader instanceof $Reader))
|
|
18229
18440
|
reader = $Reader.create(reader);
|
|
18230
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.
|
|
18441
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.Job();
|
|
18231
18442
|
while (reader.pos < end) {
|
|
18232
18443
|
let tag = reader.uint32();
|
|
18233
18444
|
if (tag === error)
|
|
18234
18445
|
break;
|
|
18235
18446
|
switch (tag >>> 3) {
|
|
18236
18447
|
case 1: {
|
|
18237
|
-
message.
|
|
18448
|
+
message.id = reader.uint32();
|
|
18238
18449
|
break;
|
|
18239
18450
|
}
|
|
18240
18451
|
case 2: {
|
|
18241
|
-
message.
|
|
18452
|
+
message.type = reader.int32();
|
|
18242
18453
|
break;
|
|
18243
18454
|
}
|
|
18244
18455
|
case 3: {
|
|
18245
|
-
message.
|
|
18456
|
+
message.status = reader.int32();
|
|
18246
18457
|
break;
|
|
18247
18458
|
}
|
|
18248
18459
|
case 4: {
|
|
18249
|
-
message.
|
|
18460
|
+
message.name = reader.string();
|
|
18250
18461
|
break;
|
|
18251
18462
|
}
|
|
18252
18463
|
case 5: {
|
|
18253
|
-
message.
|
|
18464
|
+
message.description = reader.string();
|
|
18254
18465
|
break;
|
|
18255
18466
|
}
|
|
18256
18467
|
case 6: {
|
|
18257
|
-
message.
|
|
18468
|
+
message.error = reader.string();
|
|
18258
18469
|
break;
|
|
18259
18470
|
}
|
|
18260
18471
|
case 7: {
|
|
18261
|
-
message.
|
|
18472
|
+
message.progress = reader.int64();
|
|
18473
|
+
break;
|
|
18474
|
+
}
|
|
18475
|
+
case 8: {
|
|
18476
|
+
message.total = reader.int64();
|
|
18477
|
+
break;
|
|
18478
|
+
}
|
|
18479
|
+
case 9: {
|
|
18480
|
+
message.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(reader, reader.uint32());
|
|
18262
18481
|
break;
|
|
18263
18482
|
}
|
|
18264
18483
|
default:
|
|
@@ -18268,27 +18487,28 @@ var sesame = $root.sesame = (() => {
|
|
|
18268
18487
|
}
|
|
18269
18488
|
return message;
|
|
18270
18489
|
};
|
|
18271
|
-
|
|
18490
|
+
Job.decodeDelimited = function decodeDelimited(reader) {
|
|
18272
18491
|
if (!(reader instanceof $Reader))
|
|
18273
18492
|
reader = new $Reader(reader);
|
|
18274
18493
|
return this.decode(reader, reader.uint32());
|
|
18275
18494
|
};
|
|
18276
|
-
|
|
18495
|
+
Job.verify = function verify(message) {
|
|
18277
18496
|
if (typeof message !== "object" || message === null)
|
|
18278
18497
|
return "object expected";
|
|
18279
18498
|
let properties = {};
|
|
18280
|
-
if (message.
|
|
18281
|
-
if (!$util.isInteger(message.
|
|
18282
|
-
return "
|
|
18283
|
-
}
|
|
18284
|
-
if (message.name != null && message.hasOwnProperty("name")) {
|
|
18285
|
-
if (!$util.isString(message.name))
|
|
18286
|
-
return "name: string expected";
|
|
18287
|
-
}
|
|
18288
|
-
if (message.description != null && message.hasOwnProperty("description")) {
|
|
18289
|
-
if (!$util.isString(message.description))
|
|
18290
|
-
return "description: string expected";
|
|
18499
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
18500
|
+
if (!$util.isInteger(message.id))
|
|
18501
|
+
return "id: integer expected";
|
|
18291
18502
|
}
|
|
18503
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18504
|
+
switch (message.type) {
|
|
18505
|
+
default:
|
|
18506
|
+
return "type: enum value expected";
|
|
18507
|
+
case 0:
|
|
18508
|
+
case 1:
|
|
18509
|
+
case 2:
|
|
18510
|
+
break;
|
|
18511
|
+
}
|
|
18292
18512
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
18293
18513
|
switch (message.status) {
|
|
18294
18514
|
default:
|
|
@@ -18301,31 +18521,63 @@ var sesame = $root.sesame = (() => {
|
|
|
18301
18521
|
case 5:
|
|
18302
18522
|
break;
|
|
18303
18523
|
}
|
|
18524
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
18525
|
+
if (!$util.isString(message.name))
|
|
18526
|
+
return "name: string expected";
|
|
18527
|
+
}
|
|
18528
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
18529
|
+
if (!$util.isString(message.description))
|
|
18530
|
+
return "description: string expected";
|
|
18531
|
+
}
|
|
18304
18532
|
if (message.error != null && message.hasOwnProperty("error")) {
|
|
18305
18533
|
properties._error = 1;
|
|
18306
18534
|
if (!$util.isString(message.error))
|
|
18307
18535
|
return "error: string expected";
|
|
18308
18536
|
}
|
|
18309
18537
|
if (message.progress != null && message.hasOwnProperty("progress")) {
|
|
18310
|
-
if (!$util.isInteger(message.progress))
|
|
18311
|
-
return "progress: integer expected";
|
|
18538
|
+
if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
|
|
18539
|
+
return "progress: integer|Long expected";
|
|
18312
18540
|
}
|
|
18313
18541
|
if (message.total != null && message.hasOwnProperty("total")) {
|
|
18314
|
-
if (!$util.isInteger(message.total))
|
|
18315
|
-
return "total: integer expected";
|
|
18542
|
+
if (!$util.isInteger(message.total) && !(message.total && $util.isInteger(message.total.low) && $util.isInteger(message.total.high)))
|
|
18543
|
+
return "total: integer|Long expected";
|
|
18544
|
+
}
|
|
18545
|
+
if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
|
|
18546
|
+
properties._timingInfo = 1;
|
|
18547
|
+
{
|
|
18548
|
+
let error = $root.sesame.v1.jobs.TimingInfo.verify(message.timingInfo);
|
|
18549
|
+
if (error)
|
|
18550
|
+
return "timingInfo." + error;
|
|
18551
|
+
}
|
|
18316
18552
|
}
|
|
18317
18553
|
return null;
|
|
18318
18554
|
};
|
|
18319
|
-
|
|
18320
|
-
if (object instanceof $root.sesame.v1.jobs.
|
|
18555
|
+
Job.fromObject = function fromObject(object) {
|
|
18556
|
+
if (object instanceof $root.sesame.v1.jobs.Job)
|
|
18321
18557
|
return object;
|
|
18322
|
-
let message = new $root.sesame.v1.jobs.
|
|
18323
|
-
if (object.
|
|
18324
|
-
message.
|
|
18325
|
-
|
|
18326
|
-
|
|
18327
|
-
|
|
18328
|
-
|
|
18558
|
+
let message = new $root.sesame.v1.jobs.Job();
|
|
18559
|
+
if (object.id != null)
|
|
18560
|
+
message.id = object.id >>> 0;
|
|
18561
|
+
switch (object.type) {
|
|
18562
|
+
default:
|
|
18563
|
+
if (typeof object.type === "number") {
|
|
18564
|
+
message.type = object.type;
|
|
18565
|
+
break;
|
|
18566
|
+
}
|
|
18567
|
+
break;
|
|
18568
|
+
case "JOB_TYPE_UNSPECIFIED":
|
|
18569
|
+
case 0:
|
|
18570
|
+
message.type = 0;
|
|
18571
|
+
break;
|
|
18572
|
+
case "JOB_TYPE_EXPORT":
|
|
18573
|
+
case 1:
|
|
18574
|
+
message.type = 1;
|
|
18575
|
+
break;
|
|
18576
|
+
case "JOB_TYPE_IMPORT":
|
|
18577
|
+
case 2:
|
|
18578
|
+
message.type = 2;
|
|
18579
|
+
break;
|
|
18580
|
+
}
|
|
18329
18581
|
switch (object.status) {
|
|
18330
18582
|
default:
|
|
18331
18583
|
if (typeof object.status === "number") {
|
|
@@ -18358,58 +18610,105 @@ var sesame = $root.sesame = (() => {
|
|
|
18358
18610
|
message.status = 5;
|
|
18359
18611
|
break;
|
|
18360
18612
|
}
|
|
18613
|
+
if (object.name != null)
|
|
18614
|
+
message.name = String(object.name);
|
|
18615
|
+
if (object.description != null)
|
|
18616
|
+
message.description = String(object.description);
|
|
18361
18617
|
if (object.error != null)
|
|
18362
18618
|
message.error = String(object.error);
|
|
18363
|
-
if (object.progress != null)
|
|
18364
|
-
|
|
18365
|
-
|
|
18366
|
-
|
|
18619
|
+
if (object.progress != null) {
|
|
18620
|
+
if ($util.Long)
|
|
18621
|
+
(message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
|
|
18622
|
+
else if (typeof object.progress === "string")
|
|
18623
|
+
message.progress = parseInt(object.progress, 10);
|
|
18624
|
+
else if (typeof object.progress === "number")
|
|
18625
|
+
message.progress = object.progress;
|
|
18626
|
+
else if (typeof object.progress === "object")
|
|
18627
|
+
message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
|
|
18628
|
+
}
|
|
18629
|
+
if (object.total != null) {
|
|
18630
|
+
if ($util.Long)
|
|
18631
|
+
(message.total = $util.Long.fromValue(object.total)).unsigned = false;
|
|
18632
|
+
else if (typeof object.total === "string")
|
|
18633
|
+
message.total = parseInt(object.total, 10);
|
|
18634
|
+
else if (typeof object.total === "number")
|
|
18635
|
+
message.total = object.total;
|
|
18636
|
+
else if (typeof object.total === "object")
|
|
18637
|
+
message.total = new $util.LongBits(object.total.low >>> 0, object.total.high >>> 0).toNumber();
|
|
18638
|
+
}
|
|
18639
|
+
if (object.timingInfo != null) {
|
|
18640
|
+
if (typeof object.timingInfo !== "object")
|
|
18641
|
+
throw TypeError(".sesame.v1.jobs.Job.timingInfo: object expected");
|
|
18642
|
+
message.timingInfo = $root.sesame.v1.jobs.TimingInfo.fromObject(object.timingInfo);
|
|
18643
|
+
}
|
|
18367
18644
|
return message;
|
|
18368
18645
|
};
|
|
18369
|
-
|
|
18646
|
+
Job.toObject = function toObject(message, options) {
|
|
18370
18647
|
if (!options)
|
|
18371
18648
|
options = {};
|
|
18372
18649
|
let object = {};
|
|
18373
18650
|
if (options.defaults) {
|
|
18374
|
-
object.
|
|
18651
|
+
object.id = 0;
|
|
18652
|
+
object.type = options.enums === String ? "JOB_TYPE_UNSPECIFIED" : 0;
|
|
18653
|
+
object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
|
|
18375
18654
|
object.name = "";
|
|
18376
18655
|
object.description = "";
|
|
18377
|
-
|
|
18378
|
-
|
|
18379
|
-
|
|
18656
|
+
if ($util.Long) {
|
|
18657
|
+
let long = new $util.Long(0, 0, false);
|
|
18658
|
+
object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18659
|
+
} else
|
|
18660
|
+
object.progress = options.longs === String ? "0" : 0;
|
|
18661
|
+
if ($util.Long) {
|
|
18662
|
+
let long = new $util.Long(0, 0, false);
|
|
18663
|
+
object.total = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18664
|
+
} else
|
|
18665
|
+
object.total = options.longs === String ? "0" : 0;
|
|
18380
18666
|
}
|
|
18381
|
-
if (message.
|
|
18382
|
-
object.
|
|
18667
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
18668
|
+
object.id = message.id;
|
|
18669
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18670
|
+
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;
|
|
18671
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
18672
|
+
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;
|
|
18383
18673
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
18384
18674
|
object.name = message.name;
|
|
18385
18675
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
18386
18676
|
object.description = message.description;
|
|
18387
|
-
if (message.status != null && message.hasOwnProperty("status"))
|
|
18388
|
-
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;
|
|
18389
18677
|
if (message.error != null && message.hasOwnProperty("error")) {
|
|
18390
18678
|
object.error = message.error;
|
|
18391
18679
|
if (options.oneofs)
|
|
18392
18680
|
object._error = "error";
|
|
18393
18681
|
}
|
|
18394
18682
|
if (message.progress != null && message.hasOwnProperty("progress"))
|
|
18395
|
-
|
|
18683
|
+
if (typeof message.progress === "number")
|
|
18684
|
+
object.progress = options.longs === String ? String(message.progress) : message.progress;
|
|
18685
|
+
else
|
|
18686
|
+
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;
|
|
18396
18687
|
if (message.total != null && message.hasOwnProperty("total"))
|
|
18397
|
-
|
|
18688
|
+
if (typeof message.total === "number")
|
|
18689
|
+
object.total = options.longs === String ? String(message.total) : message.total;
|
|
18690
|
+
else
|
|
18691
|
+
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;
|
|
18692
|
+
if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
|
|
18693
|
+
object.timingInfo = $root.sesame.v1.jobs.TimingInfo.toObject(message.timingInfo, options);
|
|
18694
|
+
if (options.oneofs)
|
|
18695
|
+
object._timingInfo = "timingInfo";
|
|
18696
|
+
}
|
|
18398
18697
|
return object;
|
|
18399
18698
|
};
|
|
18400
|
-
|
|
18699
|
+
Job.prototype.toJSON = function toJSON() {
|
|
18401
18700
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18402
18701
|
};
|
|
18403
|
-
|
|
18702
|
+
Job.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18404
18703
|
if (typeUrlPrefix === void 0) {
|
|
18405
18704
|
typeUrlPrefix = "type.googleapis.com";
|
|
18406
18705
|
}
|
|
18407
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
18706
|
+
return typeUrlPrefix + "/sesame.v1.jobs.Job";
|
|
18408
18707
|
};
|
|
18409
|
-
return
|
|
18708
|
+
return Job;
|
|
18410
18709
|
}();
|
|
18411
|
-
jobs.
|
|
18412
|
-
function
|
|
18710
|
+
jobs.JobList = function() {
|
|
18711
|
+
function JobList(properties) {
|
|
18413
18712
|
this.jobs = [];
|
|
18414
18713
|
if (properties) {
|
|
18415
18714
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -18417,28 +18716,28 @@ var sesame = $root.sesame = (() => {
|
|
|
18417
18716
|
this[keys[i]] = properties[keys[i]];
|
|
18418
18717
|
}
|
|
18419
18718
|
}
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
return new
|
|
18719
|
+
JobList.prototype.jobs = $util.emptyArray;
|
|
18720
|
+
JobList.create = function create(properties) {
|
|
18721
|
+
return new JobList(properties);
|
|
18423
18722
|
};
|
|
18424
|
-
|
|
18723
|
+
JobList.encode = function encode(message, writer) {
|
|
18425
18724
|
if (!writer)
|
|
18426
18725
|
writer = $Writer.create();
|
|
18427
18726
|
if (message.jobs != null && message.jobs.length)
|
|
18428
18727
|
for (let i = 0; i < message.jobs.length; ++i)
|
|
18429
|
-
$root.sesame.v1.jobs.
|
|
18728
|
+
$root.sesame.v1.jobs.Job.encode(message.jobs[i], writer.uint32(
|
|
18430
18729
|
/* id 1, wireType 2 =*/
|
|
18431
18730
|
10
|
|
18432
18731
|
).fork()).ldelim();
|
|
18433
18732
|
return writer;
|
|
18434
18733
|
};
|
|
18435
|
-
|
|
18734
|
+
JobList.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18436
18735
|
return this.encode(message, writer).ldelim();
|
|
18437
18736
|
};
|
|
18438
|
-
|
|
18737
|
+
JobList.decode = function decode(reader, length, error) {
|
|
18439
18738
|
if (!(reader instanceof $Reader))
|
|
18440
18739
|
reader = $Reader.create(reader);
|
|
18441
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.
|
|
18740
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobList();
|
|
18442
18741
|
while (reader.pos < end) {
|
|
18443
18742
|
let tag = reader.uint32();
|
|
18444
18743
|
if (tag === error)
|
|
@@ -18447,7 +18746,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18447
18746
|
case 1: {
|
|
18448
18747
|
if (!(message.jobs && message.jobs.length))
|
|
18449
18748
|
message.jobs = [];
|
|
18450
|
-
message.jobs.push($root.sesame.v1.jobs.
|
|
18749
|
+
message.jobs.push($root.sesame.v1.jobs.Job.decode(reader, reader.uint32()));
|
|
18451
18750
|
break;
|
|
18452
18751
|
}
|
|
18453
18752
|
default:
|
|
@@ -18457,42 +18756,42 @@ var sesame = $root.sesame = (() => {
|
|
|
18457
18756
|
}
|
|
18458
18757
|
return message;
|
|
18459
18758
|
};
|
|
18460
|
-
|
|
18759
|
+
JobList.decodeDelimited = function decodeDelimited(reader) {
|
|
18461
18760
|
if (!(reader instanceof $Reader))
|
|
18462
18761
|
reader = new $Reader(reader);
|
|
18463
18762
|
return this.decode(reader, reader.uint32());
|
|
18464
18763
|
};
|
|
18465
|
-
|
|
18764
|
+
JobList.verify = function verify(message) {
|
|
18466
18765
|
if (typeof message !== "object" || message === null)
|
|
18467
18766
|
return "object expected";
|
|
18468
18767
|
if (message.jobs != null && message.hasOwnProperty("jobs")) {
|
|
18469
18768
|
if (!Array.isArray(message.jobs))
|
|
18470
18769
|
return "jobs: array expected";
|
|
18471
18770
|
for (let i = 0; i < message.jobs.length; ++i) {
|
|
18472
|
-
let error = $root.sesame.v1.jobs.
|
|
18771
|
+
let error = $root.sesame.v1.jobs.Job.verify(message.jobs[i]);
|
|
18473
18772
|
if (error)
|
|
18474
18773
|
return "jobs." + error;
|
|
18475
18774
|
}
|
|
18476
18775
|
}
|
|
18477
18776
|
return null;
|
|
18478
18777
|
};
|
|
18479
|
-
|
|
18480
|
-
if (object instanceof $root.sesame.v1.jobs.
|
|
18778
|
+
JobList.fromObject = function fromObject(object) {
|
|
18779
|
+
if (object instanceof $root.sesame.v1.jobs.JobList)
|
|
18481
18780
|
return object;
|
|
18482
|
-
let message = new $root.sesame.v1.jobs.
|
|
18781
|
+
let message = new $root.sesame.v1.jobs.JobList();
|
|
18483
18782
|
if (object.jobs) {
|
|
18484
18783
|
if (!Array.isArray(object.jobs))
|
|
18485
|
-
throw TypeError(".sesame.v1.jobs.
|
|
18784
|
+
throw TypeError(".sesame.v1.jobs.JobList.jobs: array expected");
|
|
18486
18785
|
message.jobs = [];
|
|
18487
18786
|
for (let i = 0; i < object.jobs.length; ++i) {
|
|
18488
18787
|
if (typeof object.jobs[i] !== "object")
|
|
18489
|
-
throw TypeError(".sesame.v1.jobs.
|
|
18490
|
-
message.jobs[i] = $root.sesame.v1.jobs.
|
|
18788
|
+
throw TypeError(".sesame.v1.jobs.JobList.jobs: object expected");
|
|
18789
|
+
message.jobs[i] = $root.sesame.v1.jobs.Job.fromObject(object.jobs[i]);
|
|
18491
18790
|
}
|
|
18492
18791
|
}
|
|
18493
18792
|
return message;
|
|
18494
18793
|
};
|
|
18495
|
-
|
|
18794
|
+
JobList.toObject = function toObject(message, options) {
|
|
18496
18795
|
if (!options)
|
|
18497
18796
|
options = {};
|
|
18498
18797
|
let object = {};
|
|
@@ -18501,116 +18800,72 @@ var sesame = $root.sesame = (() => {
|
|
|
18501
18800
|
if (message.jobs && message.jobs.length) {
|
|
18502
18801
|
object.jobs = [];
|
|
18503
18802
|
for (let j = 0; j < message.jobs.length; ++j)
|
|
18504
|
-
object.jobs[j] = $root.sesame.v1.jobs.
|
|
18803
|
+
object.jobs[j] = $root.sesame.v1.jobs.Job.toObject(message.jobs[j], options);
|
|
18505
18804
|
}
|
|
18506
18805
|
return object;
|
|
18507
18806
|
};
|
|
18508
|
-
|
|
18807
|
+
JobList.prototype.toJSON = function toJSON() {
|
|
18509
18808
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18510
18809
|
};
|
|
18511
|
-
|
|
18810
|
+
JobList.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18512
18811
|
if (typeUrlPrefix === void 0) {
|
|
18513
18812
|
typeUrlPrefix = "type.googleapis.com";
|
|
18514
18813
|
}
|
|
18515
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
18814
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobList";
|
|
18516
18815
|
};
|
|
18517
|
-
return
|
|
18816
|
+
return JobList;
|
|
18518
18817
|
}();
|
|
18519
|
-
jobs.
|
|
18520
|
-
function
|
|
18818
|
+
jobs.JobStartRequest = function() {
|
|
18819
|
+
function JobStartRequest(properties) {
|
|
18521
18820
|
if (properties) {
|
|
18522
18821
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18523
18822
|
if (properties[keys[i]] != null)
|
|
18524
18823
|
this[keys[i]] = properties[keys[i]];
|
|
18525
18824
|
}
|
|
18526
18825
|
}
|
|
18527
|
-
|
|
18528
|
-
|
|
18529
|
-
JobEvent.prototype.status = 0;
|
|
18530
|
-
JobEvent.prototype.statusText = "";
|
|
18531
|
-
JobEvent.prototype.error = null;
|
|
18532
|
-
JobEvent.prototype.timingInfo = null;
|
|
18826
|
+
JobStartRequest.prototype.exportRequest = null;
|
|
18827
|
+
JobStartRequest.prototype.importRequest = null;
|
|
18533
18828
|
let $oneOfFields;
|
|
18534
|
-
Object.defineProperty(
|
|
18535
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
18536
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
18537
|
-
});
|
|
18538
|
-
Object.defineProperty(JobEvent.prototype, "_timingInfo", {
|
|
18539
|
-
get: $util.oneOfGetter($oneOfFields = ["timingInfo"]),
|
|
18829
|
+
Object.defineProperty(JobStartRequest.prototype, "config", {
|
|
18830
|
+
get: $util.oneOfGetter($oneOfFields = ["exportRequest", "importRequest"]),
|
|
18540
18831
|
set: $util.oneOfSetter($oneOfFields)
|
|
18541
18832
|
});
|
|
18542
|
-
|
|
18543
|
-
return new
|
|
18833
|
+
JobStartRequest.create = function create(properties) {
|
|
18834
|
+
return new JobStartRequest(properties);
|
|
18544
18835
|
};
|
|
18545
|
-
|
|
18836
|
+
JobStartRequest.encode = function encode(message, writer) {
|
|
18546
18837
|
if (!writer)
|
|
18547
18838
|
writer = $Writer.create();
|
|
18548
|
-
if (message.
|
|
18549
|
-
writer.uint32(
|
|
18550
|
-
/* id 1, wireType
|
|
18551
|
-
|
|
18552
|
-
).
|
|
18553
|
-
if (message.
|
|
18554
|
-
writer.uint32(
|
|
18839
|
+
if (message.exportRequest != null && Object.hasOwnProperty.call(message, "exportRequest"))
|
|
18840
|
+
$root.sesame.v1.jobs.ExportStartRequest.encode(message.exportRequest, writer.uint32(
|
|
18841
|
+
/* id 1, wireType 2 =*/
|
|
18842
|
+
10
|
|
18843
|
+
).fork()).ldelim();
|
|
18844
|
+
if (message.importRequest != null && Object.hasOwnProperty.call(message, "importRequest"))
|
|
18845
|
+
$root.sesame.v1.jobs.ImportStartRequest.encode(message.importRequest, writer.uint32(
|
|
18555
18846
|
/* id 2, wireType 2 =*/
|
|
18556
18847
|
18
|
|
18557
|
-
).string(message.source);
|
|
18558
|
-
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
18559
|
-
writer.uint32(
|
|
18560
|
-
/* id 3, wireType 0 =*/
|
|
18561
|
-
24
|
|
18562
|
-
).int32(message.status);
|
|
18563
|
-
if (message.statusText != null && Object.hasOwnProperty.call(message, "statusText"))
|
|
18564
|
-
writer.uint32(
|
|
18565
|
-
/* id 4, wireType 2 =*/
|
|
18566
|
-
34
|
|
18567
|
-
).string(message.statusText);
|
|
18568
|
-
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
|
18569
|
-
writer.uint32(
|
|
18570
|
-
/* id 5, wireType 2 =*/
|
|
18571
|
-
42
|
|
18572
|
-
).string(message.error);
|
|
18573
|
-
if (message.timingInfo != null && Object.hasOwnProperty.call(message, "timingInfo"))
|
|
18574
|
-
$root.sesame.v1.jobs.TimingInfo.encode(message.timingInfo, writer.uint32(
|
|
18575
|
-
/* id 6, wireType 2 =*/
|
|
18576
|
-
50
|
|
18577
18848
|
).fork()).ldelim();
|
|
18578
18849
|
return writer;
|
|
18579
18850
|
};
|
|
18580
|
-
|
|
18851
|
+
JobStartRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18581
18852
|
return this.encode(message, writer).ldelim();
|
|
18582
18853
|
};
|
|
18583
|
-
|
|
18854
|
+
JobStartRequest.decode = function decode(reader, length, error) {
|
|
18584
18855
|
if (!(reader instanceof $Reader))
|
|
18585
18856
|
reader = $Reader.create(reader);
|
|
18586
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.
|
|
18857
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStartRequest();
|
|
18587
18858
|
while (reader.pos < end) {
|
|
18588
18859
|
let tag = reader.uint32();
|
|
18589
18860
|
if (tag === error)
|
|
18590
18861
|
break;
|
|
18591
18862
|
switch (tag >>> 3) {
|
|
18592
18863
|
case 1: {
|
|
18593
|
-
message.
|
|
18864
|
+
message.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.decode(reader, reader.uint32());
|
|
18594
18865
|
break;
|
|
18595
18866
|
}
|
|
18596
18867
|
case 2: {
|
|
18597
|
-
message.
|
|
18598
|
-
break;
|
|
18599
|
-
}
|
|
18600
|
-
case 3: {
|
|
18601
|
-
message.status = reader.int32();
|
|
18602
|
-
break;
|
|
18603
|
-
}
|
|
18604
|
-
case 4: {
|
|
18605
|
-
message.statusText = reader.string();
|
|
18606
|
-
break;
|
|
18607
|
-
}
|
|
18608
|
-
case 5: {
|
|
18609
|
-
message.error = reader.string();
|
|
18610
|
-
break;
|
|
18611
|
-
}
|
|
18612
|
-
case 6: {
|
|
18613
|
-
message.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(reader, reader.uint32());
|
|
18868
|
+
message.importRequest = $root.sesame.v1.jobs.ImportStartRequest.decode(reader, reader.uint32());
|
|
18614
18869
|
break;
|
|
18615
18870
|
}
|
|
18616
18871
|
default:
|
|
@@ -18620,145 +18875,317 @@ var sesame = $root.sesame = (() => {
|
|
|
18620
18875
|
}
|
|
18621
18876
|
return message;
|
|
18622
18877
|
};
|
|
18623
|
-
|
|
18878
|
+
JobStartRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
18624
18879
|
if (!(reader instanceof $Reader))
|
|
18625
18880
|
reader = new $Reader(reader);
|
|
18626
18881
|
return this.decode(reader, reader.uint32());
|
|
18627
18882
|
};
|
|
18628
|
-
|
|
18883
|
+
JobStartRequest.verify = function verify(message) {
|
|
18629
18884
|
if (typeof message !== "object" || message === null)
|
|
18630
18885
|
return "object expected";
|
|
18631
18886
|
let properties = {};
|
|
18632
|
-
if (message.
|
|
18633
|
-
|
|
18634
|
-
|
|
18635
|
-
|
|
18636
|
-
|
|
18637
|
-
|
|
18638
|
-
return "source: string expected";
|
|
18639
|
-
}
|
|
18640
|
-
if (message.status != null && message.hasOwnProperty("status"))
|
|
18641
|
-
switch (message.status) {
|
|
18642
|
-
default:
|
|
18643
|
-
return "status: enum value expected";
|
|
18644
|
-
case 0:
|
|
18645
|
-
case 1:
|
|
18646
|
-
case 2:
|
|
18647
|
-
case 3:
|
|
18648
|
-
case 4:
|
|
18649
|
-
case 5:
|
|
18650
|
-
break;
|
|
18887
|
+
if (message.exportRequest != null && message.hasOwnProperty("exportRequest")) {
|
|
18888
|
+
properties.config = 1;
|
|
18889
|
+
{
|
|
18890
|
+
let error = $root.sesame.v1.jobs.ExportStartRequest.verify(message.exportRequest);
|
|
18891
|
+
if (error)
|
|
18892
|
+
return "exportRequest." + error;
|
|
18651
18893
|
}
|
|
18652
|
-
if (message.statusText != null && message.hasOwnProperty("statusText")) {
|
|
18653
|
-
if (!$util.isString(message.statusText))
|
|
18654
|
-
return "statusText: string expected";
|
|
18655
18894
|
}
|
|
18656
|
-
if (message.
|
|
18657
|
-
properties.
|
|
18658
|
-
|
|
18659
|
-
|
|
18660
|
-
}
|
|
18661
|
-
if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
|
|
18662
|
-
properties._timingInfo = 1;
|
|
18895
|
+
if (message.importRequest != null && message.hasOwnProperty("importRequest")) {
|
|
18896
|
+
if (properties.config === 1)
|
|
18897
|
+
return "config: multiple values";
|
|
18898
|
+
properties.config = 1;
|
|
18663
18899
|
{
|
|
18664
|
-
let error = $root.sesame.v1.jobs.
|
|
18900
|
+
let error = $root.sesame.v1.jobs.ImportStartRequest.verify(message.importRequest);
|
|
18665
18901
|
if (error)
|
|
18666
|
-
return "
|
|
18902
|
+
return "importRequest." + error;
|
|
18667
18903
|
}
|
|
18668
18904
|
}
|
|
18669
18905
|
return null;
|
|
18670
18906
|
};
|
|
18671
|
-
|
|
18672
|
-
if (object instanceof $root.sesame.v1.jobs.
|
|
18907
|
+
JobStartRequest.fromObject = function fromObject(object) {
|
|
18908
|
+
if (object instanceof $root.sesame.v1.jobs.JobStartRequest)
|
|
18673
18909
|
return object;
|
|
18674
|
-
let message = new $root.sesame.v1.jobs.
|
|
18675
|
-
if (object.
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
message.
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
|
|
18694
|
-
|
|
18695
|
-
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
|
|
18699
|
-
|
|
18700
|
-
|
|
18701
|
-
|
|
18702
|
-
|
|
18703
|
-
|
|
18704
|
-
|
|
18705
|
-
|
|
18706
|
-
|
|
18707
|
-
|
|
18708
|
-
|
|
18910
|
+
let message = new $root.sesame.v1.jobs.JobStartRequest();
|
|
18911
|
+
if (object.exportRequest != null) {
|
|
18912
|
+
if (typeof object.exportRequest !== "object")
|
|
18913
|
+
throw TypeError(".sesame.v1.jobs.JobStartRequest.exportRequest: object expected");
|
|
18914
|
+
message.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.fromObject(object.exportRequest);
|
|
18915
|
+
}
|
|
18916
|
+
if (object.importRequest != null) {
|
|
18917
|
+
if (typeof object.importRequest !== "object")
|
|
18918
|
+
throw TypeError(".sesame.v1.jobs.JobStartRequest.importRequest: object expected");
|
|
18919
|
+
message.importRequest = $root.sesame.v1.jobs.ImportStartRequest.fromObject(object.importRequest);
|
|
18920
|
+
}
|
|
18921
|
+
return message;
|
|
18922
|
+
};
|
|
18923
|
+
JobStartRequest.toObject = function toObject(message, options) {
|
|
18924
|
+
if (!options)
|
|
18925
|
+
options = {};
|
|
18926
|
+
let object = {};
|
|
18927
|
+
if (message.exportRequest != null && message.hasOwnProperty("exportRequest")) {
|
|
18928
|
+
object.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.toObject(message.exportRequest, options);
|
|
18929
|
+
if (options.oneofs)
|
|
18930
|
+
object.config = "exportRequest";
|
|
18931
|
+
}
|
|
18932
|
+
if (message.importRequest != null && message.hasOwnProperty("importRequest")) {
|
|
18933
|
+
object.importRequest = $root.sesame.v1.jobs.ImportStartRequest.toObject(message.importRequest, options);
|
|
18934
|
+
if (options.oneofs)
|
|
18935
|
+
object.config = "importRequest";
|
|
18936
|
+
}
|
|
18937
|
+
return object;
|
|
18938
|
+
};
|
|
18939
|
+
JobStartRequest.prototype.toJSON = function toJSON() {
|
|
18940
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18941
|
+
};
|
|
18942
|
+
JobStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18943
|
+
if (typeUrlPrefix === void 0) {
|
|
18944
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
18945
|
+
}
|
|
18946
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobStartRequest";
|
|
18947
|
+
};
|
|
18948
|
+
return JobStartRequest;
|
|
18949
|
+
}();
|
|
18950
|
+
jobs.JobAbortRequest = function() {
|
|
18951
|
+
function JobAbortRequest(properties) {
|
|
18952
|
+
if (properties) {
|
|
18953
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18954
|
+
if (properties[keys[i]] != null)
|
|
18955
|
+
this[keys[i]] = properties[keys[i]];
|
|
18956
|
+
}
|
|
18957
|
+
}
|
|
18958
|
+
JobAbortRequest.prototype.jobId = 0;
|
|
18959
|
+
JobAbortRequest.create = function create(properties) {
|
|
18960
|
+
return new JobAbortRequest(properties);
|
|
18961
|
+
};
|
|
18962
|
+
JobAbortRequest.encode = function encode(message, writer) {
|
|
18963
|
+
if (!writer)
|
|
18964
|
+
writer = $Writer.create();
|
|
18965
|
+
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
18966
|
+
writer.uint32(
|
|
18967
|
+
/* id 1, wireType 0 =*/
|
|
18968
|
+
8
|
|
18969
|
+
).uint32(message.jobId);
|
|
18970
|
+
return writer;
|
|
18971
|
+
};
|
|
18972
|
+
JobAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18973
|
+
return this.encode(message, writer).ldelim();
|
|
18974
|
+
};
|
|
18975
|
+
JobAbortRequest.decode = function decode(reader, length, error) {
|
|
18976
|
+
if (!(reader instanceof $Reader))
|
|
18977
|
+
reader = $Reader.create(reader);
|
|
18978
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobAbortRequest();
|
|
18979
|
+
while (reader.pos < end) {
|
|
18980
|
+
let tag = reader.uint32();
|
|
18981
|
+
if (tag === error)
|
|
18709
18982
|
break;
|
|
18983
|
+
switch (tag >>> 3) {
|
|
18984
|
+
case 1: {
|
|
18985
|
+
message.jobId = reader.uint32();
|
|
18986
|
+
break;
|
|
18987
|
+
}
|
|
18988
|
+
default:
|
|
18989
|
+
reader.skipType(tag & 7);
|
|
18990
|
+
break;
|
|
18991
|
+
}
|
|
18710
18992
|
}
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
|
|
18716
|
-
|
|
18717
|
-
|
|
18718
|
-
|
|
18993
|
+
return message;
|
|
18994
|
+
};
|
|
18995
|
+
JobAbortRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
18996
|
+
if (!(reader instanceof $Reader))
|
|
18997
|
+
reader = new $Reader(reader);
|
|
18998
|
+
return this.decode(reader, reader.uint32());
|
|
18999
|
+
};
|
|
19000
|
+
JobAbortRequest.verify = function verify(message) {
|
|
19001
|
+
if (typeof message !== "object" || message === null)
|
|
19002
|
+
return "object expected";
|
|
19003
|
+
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19004
|
+
if (!$util.isInteger(message.jobId))
|
|
19005
|
+
return "jobId: integer expected";
|
|
18719
19006
|
}
|
|
19007
|
+
return null;
|
|
19008
|
+
};
|
|
19009
|
+
JobAbortRequest.fromObject = function fromObject(object) {
|
|
19010
|
+
if (object instanceof $root.sesame.v1.jobs.JobAbortRequest)
|
|
19011
|
+
return object;
|
|
19012
|
+
let message = new $root.sesame.v1.jobs.JobAbortRequest();
|
|
19013
|
+
if (object.jobId != null)
|
|
19014
|
+
message.jobId = object.jobId >>> 0;
|
|
18720
19015
|
return message;
|
|
18721
19016
|
};
|
|
18722
|
-
|
|
19017
|
+
JobAbortRequest.toObject = function toObject(message, options) {
|
|
18723
19018
|
if (!options)
|
|
18724
19019
|
options = {};
|
|
18725
19020
|
let object = {};
|
|
18726
|
-
if (options.defaults)
|
|
19021
|
+
if (options.defaults)
|
|
18727
19022
|
object.jobId = 0;
|
|
18728
|
-
object.source = "";
|
|
18729
|
-
object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
|
|
18730
|
-
object.statusText = "";
|
|
18731
|
-
}
|
|
18732
19023
|
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
18733
19024
|
object.jobId = message.jobId;
|
|
18734
|
-
|
|
18735
|
-
|
|
18736
|
-
|
|
18737
|
-
|
|
18738
|
-
|
|
18739
|
-
|
|
18740
|
-
if (
|
|
18741
|
-
|
|
18742
|
-
if (options.oneofs)
|
|
18743
|
-
object._error = "error";
|
|
19025
|
+
return object;
|
|
19026
|
+
};
|
|
19027
|
+
JobAbortRequest.prototype.toJSON = function toJSON() {
|
|
19028
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19029
|
+
};
|
|
19030
|
+
JobAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19031
|
+
if (typeUrlPrefix === void 0) {
|
|
19032
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
18744
19033
|
}
|
|
18745
|
-
|
|
18746
|
-
|
|
18747
|
-
|
|
18748
|
-
|
|
19034
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobAbortRequest";
|
|
19035
|
+
};
|
|
19036
|
+
return JobAbortRequest;
|
|
19037
|
+
}();
|
|
19038
|
+
jobs.JobStatusRequest = function() {
|
|
19039
|
+
function JobStatusRequest(properties) {
|
|
19040
|
+
if (properties) {
|
|
19041
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19042
|
+
if (properties[keys[i]] != null)
|
|
19043
|
+
this[keys[i]] = properties[keys[i]];
|
|
19044
|
+
}
|
|
19045
|
+
}
|
|
19046
|
+
JobStatusRequest.prototype.jobId = 0;
|
|
19047
|
+
JobStatusRequest.create = function create(properties) {
|
|
19048
|
+
return new JobStatusRequest(properties);
|
|
19049
|
+
};
|
|
19050
|
+
JobStatusRequest.encode = function encode(message, writer) {
|
|
19051
|
+
if (!writer)
|
|
19052
|
+
writer = $Writer.create();
|
|
19053
|
+
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
19054
|
+
writer.uint32(
|
|
19055
|
+
/* id 1, wireType 0 =*/
|
|
19056
|
+
8
|
|
19057
|
+
).uint32(message.jobId);
|
|
19058
|
+
return writer;
|
|
19059
|
+
};
|
|
19060
|
+
JobStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19061
|
+
return this.encode(message, writer).ldelim();
|
|
19062
|
+
};
|
|
19063
|
+
JobStatusRequest.decode = function decode(reader, length, error) {
|
|
19064
|
+
if (!(reader instanceof $Reader))
|
|
19065
|
+
reader = $Reader.create(reader);
|
|
19066
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStatusRequest();
|
|
19067
|
+
while (reader.pos < end) {
|
|
19068
|
+
let tag = reader.uint32();
|
|
19069
|
+
if (tag === error)
|
|
19070
|
+
break;
|
|
19071
|
+
switch (tag >>> 3) {
|
|
19072
|
+
case 1: {
|
|
19073
|
+
message.jobId = reader.uint32();
|
|
19074
|
+
break;
|
|
19075
|
+
}
|
|
19076
|
+
default:
|
|
19077
|
+
reader.skipType(tag & 7);
|
|
19078
|
+
break;
|
|
19079
|
+
}
|
|
19080
|
+
}
|
|
19081
|
+
return message;
|
|
19082
|
+
};
|
|
19083
|
+
JobStatusRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19084
|
+
if (!(reader instanceof $Reader))
|
|
19085
|
+
reader = new $Reader(reader);
|
|
19086
|
+
return this.decode(reader, reader.uint32());
|
|
19087
|
+
};
|
|
19088
|
+
JobStatusRequest.verify = function verify(message) {
|
|
19089
|
+
if (typeof message !== "object" || message === null)
|
|
19090
|
+
return "object expected";
|
|
19091
|
+
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19092
|
+
if (!$util.isInteger(message.jobId))
|
|
19093
|
+
return "jobId: integer expected";
|
|
18749
19094
|
}
|
|
19095
|
+
return null;
|
|
19096
|
+
};
|
|
19097
|
+
JobStatusRequest.fromObject = function fromObject(object) {
|
|
19098
|
+
if (object instanceof $root.sesame.v1.jobs.JobStatusRequest)
|
|
19099
|
+
return object;
|
|
19100
|
+
let message = new $root.sesame.v1.jobs.JobStatusRequest();
|
|
19101
|
+
if (object.jobId != null)
|
|
19102
|
+
message.jobId = object.jobId >>> 0;
|
|
19103
|
+
return message;
|
|
19104
|
+
};
|
|
19105
|
+
JobStatusRequest.toObject = function toObject(message, options) {
|
|
19106
|
+
if (!options)
|
|
19107
|
+
options = {};
|
|
19108
|
+
let object = {};
|
|
19109
|
+
if (options.defaults)
|
|
19110
|
+
object.jobId = 0;
|
|
19111
|
+
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
19112
|
+
object.jobId = message.jobId;
|
|
18750
19113
|
return object;
|
|
18751
19114
|
};
|
|
18752
|
-
|
|
19115
|
+
JobStatusRequest.prototype.toJSON = function toJSON() {
|
|
19116
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19117
|
+
};
|
|
19118
|
+
JobStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19119
|
+
if (typeUrlPrefix === void 0) {
|
|
19120
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
19121
|
+
}
|
|
19122
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobStatusRequest";
|
|
19123
|
+
};
|
|
19124
|
+
return JobStatusRequest;
|
|
19125
|
+
}();
|
|
19126
|
+
jobs.JobListRequest = function() {
|
|
19127
|
+
function JobListRequest(properties) {
|
|
19128
|
+
if (properties) {
|
|
19129
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19130
|
+
if (properties[keys[i]] != null)
|
|
19131
|
+
this[keys[i]] = properties[keys[i]];
|
|
19132
|
+
}
|
|
19133
|
+
}
|
|
19134
|
+
JobListRequest.create = function create(properties) {
|
|
19135
|
+
return new JobListRequest(properties);
|
|
19136
|
+
};
|
|
19137
|
+
JobListRequest.encode = function encode(message, writer) {
|
|
19138
|
+
if (!writer)
|
|
19139
|
+
writer = $Writer.create();
|
|
19140
|
+
return writer;
|
|
19141
|
+
};
|
|
19142
|
+
JobListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19143
|
+
return this.encode(message, writer).ldelim();
|
|
19144
|
+
};
|
|
19145
|
+
JobListRequest.decode = function decode(reader, length, error) {
|
|
19146
|
+
if (!(reader instanceof $Reader))
|
|
19147
|
+
reader = $Reader.create(reader);
|
|
19148
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobListRequest();
|
|
19149
|
+
while (reader.pos < end) {
|
|
19150
|
+
let tag = reader.uint32();
|
|
19151
|
+
if (tag === error)
|
|
19152
|
+
break;
|
|
19153
|
+
switch (tag >>> 3) {
|
|
19154
|
+
default:
|
|
19155
|
+
reader.skipType(tag & 7);
|
|
19156
|
+
break;
|
|
19157
|
+
}
|
|
19158
|
+
}
|
|
19159
|
+
return message;
|
|
19160
|
+
};
|
|
19161
|
+
JobListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19162
|
+
if (!(reader instanceof $Reader))
|
|
19163
|
+
reader = new $Reader(reader);
|
|
19164
|
+
return this.decode(reader, reader.uint32());
|
|
19165
|
+
};
|
|
19166
|
+
JobListRequest.verify = function verify(message) {
|
|
19167
|
+
if (typeof message !== "object" || message === null)
|
|
19168
|
+
return "object expected";
|
|
19169
|
+
return null;
|
|
19170
|
+
};
|
|
19171
|
+
JobListRequest.fromObject = function fromObject(object) {
|
|
19172
|
+
if (object instanceof $root.sesame.v1.jobs.JobListRequest)
|
|
19173
|
+
return object;
|
|
19174
|
+
return new $root.sesame.v1.jobs.JobListRequest();
|
|
19175
|
+
};
|
|
19176
|
+
JobListRequest.toObject = function toObject() {
|
|
19177
|
+
return {};
|
|
19178
|
+
};
|
|
19179
|
+
JobListRequest.prototype.toJSON = function toJSON() {
|
|
18753
19180
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18754
19181
|
};
|
|
18755
|
-
|
|
19182
|
+
JobListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18756
19183
|
if (typeUrlPrefix === void 0) {
|
|
18757
19184
|
typeUrlPrefix = "type.googleapis.com";
|
|
18758
19185
|
}
|
|
18759
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
19186
|
+
return typeUrlPrefix + "/sesame.v1.jobs.JobListRequest";
|
|
18760
19187
|
};
|
|
18761
|
-
return
|
|
19188
|
+
return JobListRequest;
|
|
18762
19189
|
}();
|
|
18763
19190
|
jobs.ExportConfiguration = function() {
|
|
18764
19191
|
function ExportConfiguration(properties) {
|
|
@@ -19081,6 +19508,11 @@ var sesame = $root.sesame = (() => {
|
|
|
19081
19508
|
case 4:
|
|
19082
19509
|
case 5:
|
|
19083
19510
|
case 6:
|
|
19511
|
+
case 7:
|
|
19512
|
+
case 64:
|
|
19513
|
+
case 65:
|
|
19514
|
+
case 66:
|
|
19515
|
+
case 67:
|
|
19084
19516
|
break;
|
|
19085
19517
|
}
|
|
19086
19518
|
if (message.width != null && message.hasOwnProperty("width")) {
|
|
@@ -19162,6 +19594,13 @@ var sesame = $root.sesame = (() => {
|
|
|
19162
19594
|
case 2:
|
|
19163
19595
|
case 3:
|
|
19164
19596
|
case 4:
|
|
19597
|
+
case 5:
|
|
19598
|
+
case 6:
|
|
19599
|
+
case 7:
|
|
19600
|
+
case 64:
|
|
19601
|
+
case 65:
|
|
19602
|
+
case 66:
|
|
19603
|
+
case 67:
|
|
19165
19604
|
break;
|
|
19166
19605
|
}
|
|
19167
19606
|
if (message.audioBitrateKbps != null && message.hasOwnProperty("audioBitrateKbps")) {
|
|
@@ -19226,34 +19665,54 @@ var sesame = $root.sesame = (() => {
|
|
|
19226
19665
|
break;
|
|
19227
19666
|
}
|
|
19228
19667
|
break;
|
|
19229
|
-
case "
|
|
19668
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
19230
19669
|
case 0:
|
|
19231
19670
|
message.videoCodec = 0;
|
|
19232
19671
|
break;
|
|
19233
|
-
case "
|
|
19672
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
19234
19673
|
case 1:
|
|
19235
19674
|
message.videoCodec = 1;
|
|
19236
19675
|
break;
|
|
19237
|
-
case "
|
|
19676
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
19238
19677
|
case 2:
|
|
19239
19678
|
message.videoCodec = 2;
|
|
19240
19679
|
break;
|
|
19241
|
-
case "
|
|
19680
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
19242
19681
|
case 3:
|
|
19243
19682
|
message.videoCodec = 3;
|
|
19244
19683
|
break;
|
|
19245
|
-
case "
|
|
19684
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
19246
19685
|
case 4:
|
|
19247
19686
|
message.videoCodec = 4;
|
|
19248
19687
|
break;
|
|
19249
|
-
case "
|
|
19688
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
19250
19689
|
case 5:
|
|
19251
19690
|
message.videoCodec = 5;
|
|
19252
19691
|
break;
|
|
19253
|
-
case "
|
|
19692
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
19254
19693
|
case 6:
|
|
19255
19694
|
message.videoCodec = 6;
|
|
19256
19695
|
break;
|
|
19696
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
19697
|
+
case 7:
|
|
19698
|
+
message.videoCodec = 7;
|
|
19699
|
+
break;
|
|
19700
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
19701
|
+
case 64:
|
|
19702
|
+
message.videoCodec = 64;
|
|
19703
|
+
break;
|
|
19704
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
19705
|
+
case 65:
|
|
19706
|
+
message.videoCodec = 65;
|
|
19707
|
+
break;
|
|
19708
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
19709
|
+
case 66:
|
|
19710
|
+
message.videoCodec = 66;
|
|
19711
|
+
break;
|
|
19712
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
19713
|
+
case 67:
|
|
19714
|
+
message.videoCodec = 67;
|
|
19715
|
+
break;
|
|
19257
19716
|
}
|
|
19258
19717
|
if (object.width != null)
|
|
19259
19718
|
message.width = object.width >>> 0;
|
|
@@ -19316,26 +19775,54 @@ var sesame = $root.sesame = (() => {
|
|
|
19316
19775
|
break;
|
|
19317
19776
|
}
|
|
19318
19777
|
break;
|
|
19319
|
-
case "
|
|
19778
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
19320
19779
|
case 0:
|
|
19321
19780
|
message.audioCodec = 0;
|
|
19322
19781
|
break;
|
|
19323
|
-
case "
|
|
19782
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
19324
19783
|
case 1:
|
|
19325
19784
|
message.audioCodec = 1;
|
|
19326
19785
|
break;
|
|
19327
|
-
case "
|
|
19786
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
19328
19787
|
case 2:
|
|
19329
19788
|
message.audioCodec = 2;
|
|
19330
19789
|
break;
|
|
19331
|
-
case "
|
|
19790
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
19332
19791
|
case 3:
|
|
19333
19792
|
message.audioCodec = 3;
|
|
19334
19793
|
break;
|
|
19335
|
-
case "
|
|
19794
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
19336
19795
|
case 4:
|
|
19337
19796
|
message.audioCodec = 4;
|
|
19338
19797
|
break;
|
|
19798
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
19799
|
+
case 5:
|
|
19800
|
+
message.audioCodec = 5;
|
|
19801
|
+
break;
|
|
19802
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
19803
|
+
case 6:
|
|
19804
|
+
message.audioCodec = 6;
|
|
19805
|
+
break;
|
|
19806
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
19807
|
+
case 7:
|
|
19808
|
+
message.audioCodec = 7;
|
|
19809
|
+
break;
|
|
19810
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
19811
|
+
case 64:
|
|
19812
|
+
message.audioCodec = 64;
|
|
19813
|
+
break;
|
|
19814
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
19815
|
+
case 65:
|
|
19816
|
+
message.audioCodec = 65;
|
|
19817
|
+
break;
|
|
19818
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
19819
|
+
case 66:
|
|
19820
|
+
message.audioCodec = 66;
|
|
19821
|
+
break;
|
|
19822
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
19823
|
+
case 67:
|
|
19824
|
+
message.audioCodec = 67;
|
|
19825
|
+
break;
|
|
19339
19826
|
}
|
|
19340
19827
|
if (object.audioBitrateKbps != null)
|
|
19341
19828
|
message.audioBitrateKbps = object.audioBitrateKbps >>> 0;
|
|
@@ -19361,7 +19848,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19361
19848
|
if (options.defaults) {
|
|
19362
19849
|
object.filename = "";
|
|
19363
19850
|
object.container = options.enums === String ? "CONTAINER_FORMAT_UNSPECIFIED" : 0;
|
|
19364
|
-
object.videoCodec = options.enums === String ? "
|
|
19851
|
+
object.videoCodec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
19365
19852
|
object.width = 0;
|
|
19366
19853
|
object.height = 0;
|
|
19367
19854
|
object.fpsNum = 0;
|
|
@@ -19378,7 +19865,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19378
19865
|
object.colorTransfer = "";
|
|
19379
19866
|
object.colorMatrix = "";
|
|
19380
19867
|
object.fullRange = false;
|
|
19381
|
-
object.audioCodec = options.enums === String ? "
|
|
19868
|
+
object.audioCodec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
19382
19869
|
object.audioBitrateKbps = 0;
|
|
19383
19870
|
object.audioSampleRateHz = 0;
|
|
19384
19871
|
object.audioChannels = 0;
|
|
@@ -19388,7 +19875,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19388
19875
|
if (message.container != null && message.hasOwnProperty("container"))
|
|
19389
19876
|
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;
|
|
19390
19877
|
if (message.videoCodec != null && message.hasOwnProperty("videoCodec"))
|
|
19391
|
-
object.videoCodec = options.enums === String ? $root.sesame.v1.common.
|
|
19878
|
+
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;
|
|
19392
19879
|
if (message.width != null && message.hasOwnProperty("width"))
|
|
19393
19880
|
object.width = message.width;
|
|
19394
19881
|
if (message.height != null && message.hasOwnProperty("height"))
|
|
@@ -19422,7 +19909,7 @@ var sesame = $root.sesame = (() => {
|
|
|
19422
19909
|
if (message.fullRange != null && message.hasOwnProperty("fullRange"))
|
|
19423
19910
|
object.fullRange = message.fullRange;
|
|
19424
19911
|
if (message.audioCodec != null && message.hasOwnProperty("audioCodec"))
|
|
19425
|
-
object.audioCodec = options.enums === String ? $root.sesame.v1.
|
|
19912
|
+
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;
|
|
19426
19913
|
if (message.audioBitrateKbps != null && message.hasOwnProperty("audioBitrateKbps"))
|
|
19427
19914
|
object.audioBitrateKbps = message.audioBitrateKbps;
|
|
19428
19915
|
if (message.audioSampleRateHz != null && message.hasOwnProperty("audioSampleRateHz"))
|
|
@@ -19579,249 +20066,9 @@ var sesame = $root.sesame = (() => {
|
|
|
19579
20066
|
};
|
|
19580
20067
|
return ExportStartRequest;
|
|
19581
20068
|
}();
|
|
19582
|
-
jobs.
|
|
19583
|
-
function
|
|
19584
|
-
|
|
19585
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19586
|
-
if (properties[keys[i]] != null)
|
|
19587
|
-
this[keys[i]] = properties[keys[i]];
|
|
19588
|
-
}
|
|
19589
|
-
}
|
|
19590
|
-
ExportAbortRequest.prototype.jobId = 0;
|
|
19591
|
-
ExportAbortRequest.create = function create(properties) {
|
|
19592
|
-
return new ExportAbortRequest(properties);
|
|
19593
|
-
};
|
|
19594
|
-
ExportAbortRequest.encode = function encode(message, writer) {
|
|
19595
|
-
if (!writer)
|
|
19596
|
-
writer = $Writer.create();
|
|
19597
|
-
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
19598
|
-
writer.uint32(
|
|
19599
|
-
/* id 1, wireType 0 =*/
|
|
19600
|
-
8
|
|
19601
|
-
).uint32(message.jobId);
|
|
19602
|
-
return writer;
|
|
19603
|
-
};
|
|
19604
|
-
ExportAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19605
|
-
return this.encode(message, writer).ldelim();
|
|
19606
|
-
};
|
|
19607
|
-
ExportAbortRequest.decode = function decode(reader, length, error) {
|
|
19608
|
-
if (!(reader instanceof $Reader))
|
|
19609
|
-
reader = $Reader.create(reader);
|
|
19610
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportAbortRequest();
|
|
19611
|
-
while (reader.pos < end) {
|
|
19612
|
-
let tag = reader.uint32();
|
|
19613
|
-
if (tag === error)
|
|
19614
|
-
break;
|
|
19615
|
-
switch (tag >>> 3) {
|
|
19616
|
-
case 1: {
|
|
19617
|
-
message.jobId = reader.uint32();
|
|
19618
|
-
break;
|
|
19619
|
-
}
|
|
19620
|
-
default:
|
|
19621
|
-
reader.skipType(tag & 7);
|
|
19622
|
-
break;
|
|
19623
|
-
}
|
|
19624
|
-
}
|
|
19625
|
-
return message;
|
|
19626
|
-
};
|
|
19627
|
-
ExportAbortRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19628
|
-
if (!(reader instanceof $Reader))
|
|
19629
|
-
reader = new $Reader(reader);
|
|
19630
|
-
return this.decode(reader, reader.uint32());
|
|
19631
|
-
};
|
|
19632
|
-
ExportAbortRequest.verify = function verify(message) {
|
|
19633
|
-
if (typeof message !== "object" || message === null)
|
|
19634
|
-
return "object expected";
|
|
19635
|
-
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19636
|
-
if (!$util.isInteger(message.jobId))
|
|
19637
|
-
return "jobId: integer expected";
|
|
19638
|
-
}
|
|
19639
|
-
return null;
|
|
19640
|
-
};
|
|
19641
|
-
ExportAbortRequest.fromObject = function fromObject(object) {
|
|
19642
|
-
if (object instanceof $root.sesame.v1.jobs.ExportAbortRequest)
|
|
19643
|
-
return object;
|
|
19644
|
-
let message = new $root.sesame.v1.jobs.ExportAbortRequest();
|
|
19645
|
-
if (object.jobId != null)
|
|
19646
|
-
message.jobId = object.jobId >>> 0;
|
|
19647
|
-
return message;
|
|
19648
|
-
};
|
|
19649
|
-
ExportAbortRequest.toObject = function toObject(message, options) {
|
|
19650
|
-
if (!options)
|
|
19651
|
-
options = {};
|
|
19652
|
-
let object = {};
|
|
19653
|
-
if (options.defaults)
|
|
19654
|
-
object.jobId = 0;
|
|
19655
|
-
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
19656
|
-
object.jobId = message.jobId;
|
|
19657
|
-
return object;
|
|
19658
|
-
};
|
|
19659
|
-
ExportAbortRequest.prototype.toJSON = function toJSON() {
|
|
19660
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19661
|
-
};
|
|
19662
|
-
ExportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19663
|
-
if (typeUrlPrefix === void 0) {
|
|
19664
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
19665
|
-
}
|
|
19666
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ExportAbortRequest";
|
|
19667
|
-
};
|
|
19668
|
-
return ExportAbortRequest;
|
|
19669
|
-
}();
|
|
19670
|
-
jobs.ExportStatusRequest = function() {
|
|
19671
|
-
function ExportStatusRequest(properties) {
|
|
19672
|
-
if (properties) {
|
|
19673
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19674
|
-
if (properties[keys[i]] != null)
|
|
19675
|
-
this[keys[i]] = properties[keys[i]];
|
|
19676
|
-
}
|
|
19677
|
-
}
|
|
19678
|
-
ExportStatusRequest.prototype.jobId = 0;
|
|
19679
|
-
ExportStatusRequest.create = function create(properties) {
|
|
19680
|
-
return new ExportStatusRequest(properties);
|
|
19681
|
-
};
|
|
19682
|
-
ExportStatusRequest.encode = function encode(message, writer) {
|
|
19683
|
-
if (!writer)
|
|
19684
|
-
writer = $Writer.create();
|
|
19685
|
-
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
19686
|
-
writer.uint32(
|
|
19687
|
-
/* id 1, wireType 0 =*/
|
|
19688
|
-
8
|
|
19689
|
-
).uint32(message.jobId);
|
|
19690
|
-
return writer;
|
|
19691
|
-
};
|
|
19692
|
-
ExportStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19693
|
-
return this.encode(message, writer).ldelim();
|
|
19694
|
-
};
|
|
19695
|
-
ExportStatusRequest.decode = function decode(reader, length, error) {
|
|
19696
|
-
if (!(reader instanceof $Reader))
|
|
19697
|
-
reader = $Reader.create(reader);
|
|
19698
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportStatusRequest();
|
|
19699
|
-
while (reader.pos < end) {
|
|
19700
|
-
let tag = reader.uint32();
|
|
19701
|
-
if (tag === error)
|
|
19702
|
-
break;
|
|
19703
|
-
switch (tag >>> 3) {
|
|
19704
|
-
case 1: {
|
|
19705
|
-
message.jobId = reader.uint32();
|
|
19706
|
-
break;
|
|
19707
|
-
}
|
|
19708
|
-
default:
|
|
19709
|
-
reader.skipType(tag & 7);
|
|
19710
|
-
break;
|
|
19711
|
-
}
|
|
19712
|
-
}
|
|
19713
|
-
return message;
|
|
19714
|
-
};
|
|
19715
|
-
ExportStatusRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19716
|
-
if (!(reader instanceof $Reader))
|
|
19717
|
-
reader = new $Reader(reader);
|
|
19718
|
-
return this.decode(reader, reader.uint32());
|
|
19719
|
-
};
|
|
19720
|
-
ExportStatusRequest.verify = function verify(message) {
|
|
19721
|
-
if (typeof message !== "object" || message === null)
|
|
19722
|
-
return "object expected";
|
|
19723
|
-
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
19724
|
-
if (!$util.isInteger(message.jobId))
|
|
19725
|
-
return "jobId: integer expected";
|
|
19726
|
-
}
|
|
19727
|
-
return null;
|
|
19728
|
-
};
|
|
19729
|
-
ExportStatusRequest.fromObject = function fromObject(object) {
|
|
19730
|
-
if (object instanceof $root.sesame.v1.jobs.ExportStatusRequest)
|
|
19731
|
-
return object;
|
|
19732
|
-
let message = new $root.sesame.v1.jobs.ExportStatusRequest();
|
|
19733
|
-
if (object.jobId != null)
|
|
19734
|
-
message.jobId = object.jobId >>> 0;
|
|
19735
|
-
return message;
|
|
19736
|
-
};
|
|
19737
|
-
ExportStatusRequest.toObject = function toObject(message, options) {
|
|
19738
|
-
if (!options)
|
|
19739
|
-
options = {};
|
|
19740
|
-
let object = {};
|
|
19741
|
-
if (options.defaults)
|
|
19742
|
-
object.jobId = 0;
|
|
19743
|
-
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
19744
|
-
object.jobId = message.jobId;
|
|
19745
|
-
return object;
|
|
19746
|
-
};
|
|
19747
|
-
ExportStatusRequest.prototype.toJSON = function toJSON() {
|
|
19748
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19749
|
-
};
|
|
19750
|
-
ExportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19751
|
-
if (typeUrlPrefix === void 0) {
|
|
19752
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
19753
|
-
}
|
|
19754
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ExportStatusRequest";
|
|
19755
|
-
};
|
|
19756
|
-
return ExportStatusRequest;
|
|
19757
|
-
}();
|
|
19758
|
-
jobs.ExportListRequest = function() {
|
|
19759
|
-
function ExportListRequest(properties) {
|
|
19760
|
-
if (properties) {
|
|
19761
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19762
|
-
if (properties[keys[i]] != null)
|
|
19763
|
-
this[keys[i]] = properties[keys[i]];
|
|
19764
|
-
}
|
|
19765
|
-
}
|
|
19766
|
-
ExportListRequest.create = function create(properties) {
|
|
19767
|
-
return new ExportListRequest(properties);
|
|
19768
|
-
};
|
|
19769
|
-
ExportListRequest.encode = function encode(message, writer) {
|
|
19770
|
-
if (!writer)
|
|
19771
|
-
writer = $Writer.create();
|
|
19772
|
-
return writer;
|
|
19773
|
-
};
|
|
19774
|
-
ExportListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19775
|
-
return this.encode(message, writer).ldelim();
|
|
19776
|
-
};
|
|
19777
|
-
ExportListRequest.decode = function decode(reader, length, error) {
|
|
19778
|
-
if (!(reader instanceof $Reader))
|
|
19779
|
-
reader = $Reader.create(reader);
|
|
19780
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportListRequest();
|
|
19781
|
-
while (reader.pos < end) {
|
|
19782
|
-
let tag = reader.uint32();
|
|
19783
|
-
if (tag === error)
|
|
19784
|
-
break;
|
|
19785
|
-
switch (tag >>> 3) {
|
|
19786
|
-
default:
|
|
19787
|
-
reader.skipType(tag & 7);
|
|
19788
|
-
break;
|
|
19789
|
-
}
|
|
19790
|
-
}
|
|
19791
|
-
return message;
|
|
19792
|
-
};
|
|
19793
|
-
ExportListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
19794
|
-
if (!(reader instanceof $Reader))
|
|
19795
|
-
reader = new $Reader(reader);
|
|
19796
|
-
return this.decode(reader, reader.uint32());
|
|
19797
|
-
};
|
|
19798
|
-
ExportListRequest.verify = function verify(message) {
|
|
19799
|
-
if (typeof message !== "object" || message === null)
|
|
19800
|
-
return "object expected";
|
|
19801
|
-
return null;
|
|
19802
|
-
};
|
|
19803
|
-
ExportListRequest.fromObject = function fromObject(object) {
|
|
19804
|
-
if (object instanceof $root.sesame.v1.jobs.ExportListRequest)
|
|
19805
|
-
return object;
|
|
19806
|
-
return new $root.sesame.v1.jobs.ExportListRequest();
|
|
19807
|
-
};
|
|
19808
|
-
ExportListRequest.toObject = function toObject() {
|
|
19809
|
-
return {};
|
|
19810
|
-
};
|
|
19811
|
-
ExportListRequest.prototype.toJSON = function toJSON() {
|
|
19812
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19813
|
-
};
|
|
19814
|
-
ExportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19815
|
-
if (typeUrlPrefix === void 0) {
|
|
19816
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
19817
|
-
}
|
|
19818
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ExportListRequest";
|
|
19819
|
-
};
|
|
19820
|
-
return ExportListRequest;
|
|
19821
|
-
}();
|
|
19822
|
-
jobs.ImportConfiguration = function() {
|
|
19823
|
-
function ImportConfiguration(properties) {
|
|
19824
|
-
this.audioRouting = [];
|
|
20069
|
+
jobs.ImportConfiguration = function() {
|
|
20070
|
+
function ImportConfiguration(properties) {
|
|
20071
|
+
this.audioRouting = [];
|
|
19825
20072
|
if (properties) {
|
|
19826
20073
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19827
20074
|
if (properties[keys[i]] != null)
|
|
@@ -20010,254 +20257,74 @@ var sesame = $root.sesame = (() => {
|
|
|
20010
20257
|
object.dstClipId = options.longs === String ? "0" : 0;
|
|
20011
20258
|
object.dstClipName = "";
|
|
20012
20259
|
object.dstClipUserData = "";
|
|
20013
|
-
}
|
|
20014
|
-
if (message.srcFilename != null && message.hasOwnProperty("srcFilename"))
|
|
20015
|
-
object.srcFilename = message.srcFilename;
|
|
20016
|
-
if (message.audioRouting && message.audioRouting.length) {
|
|
20017
|
-
object.audioRouting = [];
|
|
20018
|
-
for (let j = 0; j < message.audioRouting.length; ++j)
|
|
20019
|
-
object.audioRouting[j] = message.audioRouting[j];
|
|
20020
|
-
}
|
|
20021
|
-
if (message.dstRecorderId != null && message.hasOwnProperty("dstRecorderId"))
|
|
20022
|
-
object.dstRecorderId = message.dstRecorderId;
|
|
20023
|
-
if (message.dstClipId != null && message.hasOwnProperty("dstClipId"))
|
|
20024
|
-
if (typeof message.dstClipId === "number")
|
|
20025
|
-
object.dstClipId = options.longs === String ? String(message.dstClipId) : message.dstClipId;
|
|
20026
|
-
else
|
|
20027
|
-
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;
|
|
20028
|
-
if (message.dstClipName != null && message.hasOwnProperty("dstClipName"))
|
|
20029
|
-
object.dstClipName = message.dstClipName;
|
|
20030
|
-
if (message.dstClipUserData != null && message.hasOwnProperty("dstClipUserData"))
|
|
20031
|
-
object.dstClipUserData = message.dstClipUserData;
|
|
20032
|
-
return object;
|
|
20033
|
-
};
|
|
20034
|
-
ImportConfiguration.prototype.toJSON = function toJSON() {
|
|
20035
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20036
|
-
};
|
|
20037
|
-
ImportConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20038
|
-
if (typeUrlPrefix === void 0) {
|
|
20039
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
20040
|
-
}
|
|
20041
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ImportConfiguration";
|
|
20042
|
-
};
|
|
20043
|
-
return ImportConfiguration;
|
|
20044
|
-
}();
|
|
20045
|
-
jobs.ImportStartRequest = function() {
|
|
20046
|
-
function ImportStartRequest(properties) {
|
|
20047
|
-
if (properties) {
|
|
20048
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20049
|
-
if (properties[keys[i]] != null)
|
|
20050
|
-
this[keys[i]] = properties[keys[i]];
|
|
20051
|
-
}
|
|
20052
|
-
}
|
|
20053
|
-
ImportStartRequest.prototype.config = null;
|
|
20054
|
-
ImportStartRequest.create = function create(properties) {
|
|
20055
|
-
return new ImportStartRequest(properties);
|
|
20056
|
-
};
|
|
20057
|
-
ImportStartRequest.encode = function encode(message, writer) {
|
|
20058
|
-
if (!writer)
|
|
20059
|
-
writer = $Writer.create();
|
|
20060
|
-
if (message.config != null && Object.hasOwnProperty.call(message, "config"))
|
|
20061
|
-
$root.sesame.v1.jobs.ImportConfiguration.encode(message.config, writer.uint32(
|
|
20062
|
-
/* id 1, wireType 2 =*/
|
|
20063
|
-
10
|
|
20064
|
-
).fork()).ldelim();
|
|
20065
|
-
return writer;
|
|
20066
|
-
};
|
|
20067
|
-
ImportStartRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20068
|
-
return this.encode(message, writer).ldelim();
|
|
20069
|
-
};
|
|
20070
|
-
ImportStartRequest.decode = function decode(reader, length, error) {
|
|
20071
|
-
if (!(reader instanceof $Reader))
|
|
20072
|
-
reader = $Reader.create(reader);
|
|
20073
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
20074
|
-
while (reader.pos < end) {
|
|
20075
|
-
let tag = reader.uint32();
|
|
20076
|
-
if (tag === error)
|
|
20077
|
-
break;
|
|
20078
|
-
switch (tag >>> 3) {
|
|
20079
|
-
case 1: {
|
|
20080
|
-
message.config = $root.sesame.v1.jobs.ImportConfiguration.decode(reader, reader.uint32());
|
|
20081
|
-
break;
|
|
20082
|
-
}
|
|
20083
|
-
default:
|
|
20084
|
-
reader.skipType(tag & 7);
|
|
20085
|
-
break;
|
|
20086
|
-
}
|
|
20087
|
-
}
|
|
20088
|
-
return message;
|
|
20089
|
-
};
|
|
20090
|
-
ImportStartRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
20091
|
-
if (!(reader instanceof $Reader))
|
|
20092
|
-
reader = new $Reader(reader);
|
|
20093
|
-
return this.decode(reader, reader.uint32());
|
|
20094
|
-
};
|
|
20095
|
-
ImportStartRequest.verify = function verify(message) {
|
|
20096
|
-
if (typeof message !== "object" || message === null)
|
|
20097
|
-
return "object expected";
|
|
20098
|
-
if (message.config != null && message.hasOwnProperty("config")) {
|
|
20099
|
-
let error = $root.sesame.v1.jobs.ImportConfiguration.verify(message.config);
|
|
20100
|
-
if (error)
|
|
20101
|
-
return "config." + error;
|
|
20102
|
-
}
|
|
20103
|
-
return null;
|
|
20104
|
-
};
|
|
20105
|
-
ImportStartRequest.fromObject = function fromObject(object) {
|
|
20106
|
-
if (object instanceof $root.sesame.v1.jobs.ImportStartRequest)
|
|
20107
|
-
return object;
|
|
20108
|
-
let message = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
20109
|
-
if (object.config != null) {
|
|
20110
|
-
if (typeof object.config !== "object")
|
|
20111
|
-
throw TypeError(".sesame.v1.jobs.ImportStartRequest.config: object expected");
|
|
20112
|
-
message.config = $root.sesame.v1.jobs.ImportConfiguration.fromObject(object.config);
|
|
20113
|
-
}
|
|
20114
|
-
return message;
|
|
20115
|
-
};
|
|
20116
|
-
ImportStartRequest.toObject = function toObject(message, options) {
|
|
20117
|
-
if (!options)
|
|
20118
|
-
options = {};
|
|
20119
|
-
let object = {};
|
|
20120
|
-
if (options.defaults)
|
|
20121
|
-
object.config = null;
|
|
20122
|
-
if (message.config != null && message.hasOwnProperty("config"))
|
|
20123
|
-
object.config = $root.sesame.v1.jobs.ImportConfiguration.toObject(message.config, options);
|
|
20124
|
-
return object;
|
|
20125
|
-
};
|
|
20126
|
-
ImportStartRequest.prototype.toJSON = function toJSON() {
|
|
20127
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20128
|
-
};
|
|
20129
|
-
ImportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20130
|
-
if (typeUrlPrefix === void 0) {
|
|
20131
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
20132
|
-
}
|
|
20133
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ImportStartRequest";
|
|
20134
|
-
};
|
|
20135
|
-
return ImportStartRequest;
|
|
20136
|
-
}();
|
|
20137
|
-
jobs.ImportAbortRequest = function() {
|
|
20138
|
-
function ImportAbortRequest(properties) {
|
|
20139
|
-
if (properties) {
|
|
20140
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20141
|
-
if (properties[keys[i]] != null)
|
|
20142
|
-
this[keys[i]] = properties[keys[i]];
|
|
20143
|
-
}
|
|
20144
|
-
}
|
|
20145
|
-
ImportAbortRequest.prototype.jobId = 0;
|
|
20146
|
-
ImportAbortRequest.create = function create(properties) {
|
|
20147
|
-
return new ImportAbortRequest(properties);
|
|
20148
|
-
};
|
|
20149
|
-
ImportAbortRequest.encode = function encode(message, writer) {
|
|
20150
|
-
if (!writer)
|
|
20151
|
-
writer = $Writer.create();
|
|
20152
|
-
if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
|
|
20153
|
-
writer.uint32(
|
|
20154
|
-
/* id 1, wireType 0 =*/
|
|
20155
|
-
8
|
|
20156
|
-
).uint32(message.jobId);
|
|
20157
|
-
return writer;
|
|
20158
|
-
};
|
|
20159
|
-
ImportAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20160
|
-
return this.encode(message, writer).ldelim();
|
|
20161
|
-
};
|
|
20162
|
-
ImportAbortRequest.decode = function decode(reader, length, error) {
|
|
20163
|
-
if (!(reader instanceof $Reader))
|
|
20164
|
-
reader = $Reader.create(reader);
|
|
20165
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportAbortRequest();
|
|
20166
|
-
while (reader.pos < end) {
|
|
20167
|
-
let tag = reader.uint32();
|
|
20168
|
-
if (tag === error)
|
|
20169
|
-
break;
|
|
20170
|
-
switch (tag >>> 3) {
|
|
20171
|
-
case 1: {
|
|
20172
|
-
message.jobId = reader.uint32();
|
|
20173
|
-
break;
|
|
20174
|
-
}
|
|
20175
|
-
default:
|
|
20176
|
-
reader.skipType(tag & 7);
|
|
20177
|
-
break;
|
|
20178
|
-
}
|
|
20179
|
-
}
|
|
20180
|
-
return message;
|
|
20181
|
-
};
|
|
20182
|
-
ImportAbortRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
20183
|
-
if (!(reader instanceof $Reader))
|
|
20184
|
-
reader = new $Reader(reader);
|
|
20185
|
-
return this.decode(reader, reader.uint32());
|
|
20186
|
-
};
|
|
20187
|
-
ImportAbortRequest.verify = function verify(message) {
|
|
20188
|
-
if (typeof message !== "object" || message === null)
|
|
20189
|
-
return "object expected";
|
|
20190
|
-
if (message.jobId != null && message.hasOwnProperty("jobId")) {
|
|
20191
|
-
if (!$util.isInteger(message.jobId))
|
|
20192
|
-
return "jobId: integer expected";
|
|
20193
|
-
}
|
|
20194
|
-
return null;
|
|
20195
|
-
};
|
|
20196
|
-
ImportAbortRequest.fromObject = function fromObject(object) {
|
|
20197
|
-
if (object instanceof $root.sesame.v1.jobs.ImportAbortRequest)
|
|
20198
|
-
return object;
|
|
20199
|
-
let message = new $root.sesame.v1.jobs.ImportAbortRequest();
|
|
20200
|
-
if (object.jobId != null)
|
|
20201
|
-
message.jobId = object.jobId >>> 0;
|
|
20202
|
-
return message;
|
|
20203
|
-
};
|
|
20204
|
-
ImportAbortRequest.toObject = function toObject(message, options) {
|
|
20205
|
-
if (!options)
|
|
20206
|
-
options = {};
|
|
20207
|
-
let object = {};
|
|
20208
|
-
if (options.defaults)
|
|
20209
|
-
object.jobId = 0;
|
|
20210
|
-
if (message.jobId != null && message.hasOwnProperty("jobId"))
|
|
20211
|
-
object.jobId = message.jobId;
|
|
20260
|
+
}
|
|
20261
|
+
if (message.srcFilename != null && message.hasOwnProperty("srcFilename"))
|
|
20262
|
+
object.srcFilename = message.srcFilename;
|
|
20263
|
+
if (message.audioRouting && message.audioRouting.length) {
|
|
20264
|
+
object.audioRouting = [];
|
|
20265
|
+
for (let j = 0; j < message.audioRouting.length; ++j)
|
|
20266
|
+
object.audioRouting[j] = message.audioRouting[j];
|
|
20267
|
+
}
|
|
20268
|
+
if (message.dstRecorderId != null && message.hasOwnProperty("dstRecorderId"))
|
|
20269
|
+
object.dstRecorderId = message.dstRecorderId;
|
|
20270
|
+
if (message.dstClipId != null && message.hasOwnProperty("dstClipId"))
|
|
20271
|
+
if (typeof message.dstClipId === "number")
|
|
20272
|
+
object.dstClipId = options.longs === String ? String(message.dstClipId) : message.dstClipId;
|
|
20273
|
+
else
|
|
20274
|
+
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;
|
|
20275
|
+
if (message.dstClipName != null && message.hasOwnProperty("dstClipName"))
|
|
20276
|
+
object.dstClipName = message.dstClipName;
|
|
20277
|
+
if (message.dstClipUserData != null && message.hasOwnProperty("dstClipUserData"))
|
|
20278
|
+
object.dstClipUserData = message.dstClipUserData;
|
|
20212
20279
|
return object;
|
|
20213
20280
|
};
|
|
20214
|
-
|
|
20281
|
+
ImportConfiguration.prototype.toJSON = function toJSON() {
|
|
20215
20282
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20216
20283
|
};
|
|
20217
|
-
|
|
20284
|
+
ImportConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20218
20285
|
if (typeUrlPrefix === void 0) {
|
|
20219
20286
|
typeUrlPrefix = "type.googleapis.com";
|
|
20220
20287
|
}
|
|
20221
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
20288
|
+
return typeUrlPrefix + "/sesame.v1.jobs.ImportConfiguration";
|
|
20222
20289
|
};
|
|
20223
|
-
return
|
|
20290
|
+
return ImportConfiguration;
|
|
20224
20291
|
}();
|
|
20225
|
-
jobs.
|
|
20226
|
-
function
|
|
20292
|
+
jobs.ImportStartRequest = function() {
|
|
20293
|
+
function ImportStartRequest(properties) {
|
|
20227
20294
|
if (properties) {
|
|
20228
20295
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20229
20296
|
if (properties[keys[i]] != null)
|
|
20230
20297
|
this[keys[i]] = properties[keys[i]];
|
|
20231
20298
|
}
|
|
20232
20299
|
}
|
|
20233
|
-
|
|
20234
|
-
|
|
20235
|
-
return new
|
|
20300
|
+
ImportStartRequest.prototype.config = null;
|
|
20301
|
+
ImportStartRequest.create = function create(properties) {
|
|
20302
|
+
return new ImportStartRequest(properties);
|
|
20236
20303
|
};
|
|
20237
|
-
|
|
20304
|
+
ImportStartRequest.encode = function encode(message, writer) {
|
|
20238
20305
|
if (!writer)
|
|
20239
20306
|
writer = $Writer.create();
|
|
20240
|
-
if (message.
|
|
20241
|
-
writer.uint32(
|
|
20242
|
-
/* id 1, wireType
|
|
20243
|
-
|
|
20244
|
-
).
|
|
20307
|
+
if (message.config != null && Object.hasOwnProperty.call(message, "config"))
|
|
20308
|
+
$root.sesame.v1.jobs.ImportConfiguration.encode(message.config, writer.uint32(
|
|
20309
|
+
/* id 1, wireType 2 =*/
|
|
20310
|
+
10
|
|
20311
|
+
).fork()).ldelim();
|
|
20245
20312
|
return writer;
|
|
20246
20313
|
};
|
|
20247
|
-
|
|
20314
|
+
ImportStartRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20248
20315
|
return this.encode(message, writer).ldelim();
|
|
20249
20316
|
};
|
|
20250
|
-
|
|
20317
|
+
ImportStartRequest.decode = function decode(reader, length, error) {
|
|
20251
20318
|
if (!(reader instanceof $Reader))
|
|
20252
20319
|
reader = $Reader.create(reader);
|
|
20253
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.
|
|
20320
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
20254
20321
|
while (reader.pos < end) {
|
|
20255
20322
|
let tag = reader.uint32();
|
|
20256
20323
|
if (tag === error)
|
|
20257
20324
|
break;
|
|
20258
20325
|
switch (tag >>> 3) {
|
|
20259
20326
|
case 1: {
|
|
20260
|
-
message.
|
|
20327
|
+
message.config = $root.sesame.v1.jobs.ImportConfiguration.decode(reader, reader.uint32());
|
|
20261
20328
|
break;
|
|
20262
20329
|
}
|
|
20263
20330
|
default:
|
|
@@ -20267,112 +20334,52 @@ var sesame = $root.sesame = (() => {
|
|
|
20267
20334
|
}
|
|
20268
20335
|
return message;
|
|
20269
20336
|
};
|
|
20270
|
-
|
|
20337
|
+
ImportStartRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
20271
20338
|
if (!(reader instanceof $Reader))
|
|
20272
20339
|
reader = new $Reader(reader);
|
|
20273
20340
|
return this.decode(reader, reader.uint32());
|
|
20274
20341
|
};
|
|
20275
|
-
|
|
20342
|
+
ImportStartRequest.verify = function verify(message) {
|
|
20276
20343
|
if (typeof message !== "object" || message === null)
|
|
20277
20344
|
return "object expected";
|
|
20278
|
-
if (message.
|
|
20279
|
-
|
|
20280
|
-
|
|
20345
|
+
if (message.config != null && message.hasOwnProperty("config")) {
|
|
20346
|
+
let error = $root.sesame.v1.jobs.ImportConfiguration.verify(message.config);
|
|
20347
|
+
if (error)
|
|
20348
|
+
return "config." + error;
|
|
20281
20349
|
}
|
|
20282
20350
|
return null;
|
|
20283
20351
|
};
|
|
20284
|
-
|
|
20285
|
-
if (object instanceof $root.sesame.v1.jobs.
|
|
20352
|
+
ImportStartRequest.fromObject = function fromObject(object) {
|
|
20353
|
+
if (object instanceof $root.sesame.v1.jobs.ImportStartRequest)
|
|
20286
20354
|
return object;
|
|
20287
|
-
let message = new $root.sesame.v1.jobs.
|
|
20288
|
-
if (object.
|
|
20289
|
-
|
|
20355
|
+
let message = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
20356
|
+
if (object.config != null) {
|
|
20357
|
+
if (typeof object.config !== "object")
|
|
20358
|
+
throw TypeError(".sesame.v1.jobs.ImportStartRequest.config: object expected");
|
|
20359
|
+
message.config = $root.sesame.v1.jobs.ImportConfiguration.fromObject(object.config);
|
|
20360
|
+
}
|
|
20290
20361
|
return message;
|
|
20291
20362
|
};
|
|
20292
|
-
|
|
20363
|
+
ImportStartRequest.toObject = function toObject(message, options) {
|
|
20293
20364
|
if (!options)
|
|
20294
20365
|
options = {};
|
|
20295
20366
|
let object = {};
|
|
20296
20367
|
if (options.defaults)
|
|
20297
|
-
object.
|
|
20298
|
-
if (message.
|
|
20299
|
-
object.
|
|
20368
|
+
object.config = null;
|
|
20369
|
+
if (message.config != null && message.hasOwnProperty("config"))
|
|
20370
|
+
object.config = $root.sesame.v1.jobs.ImportConfiguration.toObject(message.config, options);
|
|
20300
20371
|
return object;
|
|
20301
20372
|
};
|
|
20302
|
-
|
|
20303
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20304
|
-
};
|
|
20305
|
-
ImportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20306
|
-
if (typeUrlPrefix === void 0) {
|
|
20307
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
20308
|
-
}
|
|
20309
|
-
return typeUrlPrefix + "/sesame.v1.jobs.ImportStatusRequest";
|
|
20310
|
-
};
|
|
20311
|
-
return ImportStatusRequest;
|
|
20312
|
-
}();
|
|
20313
|
-
jobs.ImportListRequest = function() {
|
|
20314
|
-
function ImportListRequest(properties) {
|
|
20315
|
-
if (properties) {
|
|
20316
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20317
|
-
if (properties[keys[i]] != null)
|
|
20318
|
-
this[keys[i]] = properties[keys[i]];
|
|
20319
|
-
}
|
|
20320
|
-
}
|
|
20321
|
-
ImportListRequest.create = function create(properties) {
|
|
20322
|
-
return new ImportListRequest(properties);
|
|
20323
|
-
};
|
|
20324
|
-
ImportListRequest.encode = function encode(message, writer) {
|
|
20325
|
-
if (!writer)
|
|
20326
|
-
writer = $Writer.create();
|
|
20327
|
-
return writer;
|
|
20328
|
-
};
|
|
20329
|
-
ImportListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20330
|
-
return this.encode(message, writer).ldelim();
|
|
20331
|
-
};
|
|
20332
|
-
ImportListRequest.decode = function decode(reader, length, error) {
|
|
20333
|
-
if (!(reader instanceof $Reader))
|
|
20334
|
-
reader = $Reader.create(reader);
|
|
20335
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportListRequest();
|
|
20336
|
-
while (reader.pos < end) {
|
|
20337
|
-
let tag = reader.uint32();
|
|
20338
|
-
if (tag === error)
|
|
20339
|
-
break;
|
|
20340
|
-
switch (tag >>> 3) {
|
|
20341
|
-
default:
|
|
20342
|
-
reader.skipType(tag & 7);
|
|
20343
|
-
break;
|
|
20344
|
-
}
|
|
20345
|
-
}
|
|
20346
|
-
return message;
|
|
20347
|
-
};
|
|
20348
|
-
ImportListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
20349
|
-
if (!(reader instanceof $Reader))
|
|
20350
|
-
reader = new $Reader(reader);
|
|
20351
|
-
return this.decode(reader, reader.uint32());
|
|
20352
|
-
};
|
|
20353
|
-
ImportListRequest.verify = function verify(message) {
|
|
20354
|
-
if (typeof message !== "object" || message === null)
|
|
20355
|
-
return "object expected";
|
|
20356
|
-
return null;
|
|
20357
|
-
};
|
|
20358
|
-
ImportListRequest.fromObject = function fromObject(object) {
|
|
20359
|
-
if (object instanceof $root.sesame.v1.jobs.ImportListRequest)
|
|
20360
|
-
return object;
|
|
20361
|
-
return new $root.sesame.v1.jobs.ImportListRequest();
|
|
20362
|
-
};
|
|
20363
|
-
ImportListRequest.toObject = function toObject() {
|
|
20364
|
-
return {};
|
|
20365
|
-
};
|
|
20366
|
-
ImportListRequest.prototype.toJSON = function toJSON() {
|
|
20373
|
+
ImportStartRequest.prototype.toJSON = function toJSON() {
|
|
20367
20374
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20368
20375
|
};
|
|
20369
|
-
|
|
20376
|
+
ImportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20370
20377
|
if (typeUrlPrefix === void 0) {
|
|
20371
20378
|
typeUrlPrefix = "type.googleapis.com";
|
|
20372
20379
|
}
|
|
20373
|
-
return typeUrlPrefix + "/sesame.v1.jobs.
|
|
20380
|
+
return typeUrlPrefix + "/sesame.v1.jobs.ImportStartRequest";
|
|
20374
20381
|
};
|
|
20375
|
-
return
|
|
20382
|
+
return ImportStartRequest;
|
|
20376
20383
|
}();
|
|
20377
20384
|
return jobs;
|
|
20378
20385
|
}();
|
|
@@ -20905,7 +20912,6 @@ var sesame = $root.sesame = (() => {
|
|
|
20905
20912
|
case 2:
|
|
20906
20913
|
case 3:
|
|
20907
20914
|
case 4:
|
|
20908
|
-
case 5:
|
|
20909
20915
|
case 6:
|
|
20910
20916
|
break;
|
|
20911
20917
|
}
|
|
@@ -20942,14 +20948,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20942
20948
|
case 3:
|
|
20943
20949
|
message.topic = 3;
|
|
20944
20950
|
break;
|
|
20945
|
-
case "
|
|
20951
|
+
case "EVENT_TOPIC_JOB":
|
|
20946
20952
|
case 4:
|
|
20947
20953
|
message.topic = 4;
|
|
20948
20954
|
break;
|
|
20949
|
-
case "EVENT_TOPIC_CLIP_IMPORT":
|
|
20950
|
-
case 5:
|
|
20951
|
-
message.topic = 5;
|
|
20952
|
-
break;
|
|
20953
20955
|
case "EVENT_TOPIC_RECORDER":
|
|
20954
20956
|
case 6:
|
|
20955
20957
|
message.topic = 6;
|
|
@@ -21020,30 +21022,18 @@ var sesame = $root.sesame = (() => {
|
|
|
21020
21022
|
Object.defineProperty(SesameAPIService.prototype.requestRecorderOperation = function requestRecorderOperation(request, callback) {
|
|
21021
21023
|
return this.rpcCall(requestRecorderOperation, $root.sesame.v1.recorder.RecorderRequest, $root.sesame.v1.recorder.RecorderResponse, request, callback);
|
|
21022
21024
|
}, "name", { value: "RequestRecorderOperation" });
|
|
21023
|
-
Object.defineProperty(SesameAPIService.prototype.
|
|
21024
|
-
return this.rpcCall(
|
|
21025
|
-
}, "name", { value: "
|
|
21026
|
-
Object.defineProperty(SesameAPIService.prototype.
|
|
21027
|
-
return this.rpcCall(
|
|
21028
|
-
}, "name", { value: "
|
|
21029
|
-
Object.defineProperty(SesameAPIService.prototype.
|
|
21030
|
-
return this.rpcCall(
|
|
21031
|
-
}, "name", { value: "
|
|
21032
|
-
Object.defineProperty(SesameAPIService.prototype.
|
|
21033
|
-
return this.rpcCall(
|
|
21034
|
-
}, "name", { value: "
|
|
21035
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportStart = function requestClipImportStart(request, callback) {
|
|
21036
|
-
return this.rpcCall(requestClipImportStart, $root.sesame.v1.jobs.ImportStartRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21037
|
-
}, "name", { value: "RequestClipImportStart" });
|
|
21038
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportAbort = function requestClipImportAbort(request, callback) {
|
|
21039
|
-
return this.rpcCall(requestClipImportAbort, $root.sesame.v1.jobs.ImportAbortRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21040
|
-
}, "name", { value: "RequestClipImportAbort" });
|
|
21041
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportStatus = function requestClipImportStatus(request, callback) {
|
|
21042
|
-
return this.rpcCall(requestClipImportStatus, $root.sesame.v1.jobs.ImportStatusRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
|
|
21043
|
-
}, "name", { value: "RequestClipImportStatus" });
|
|
21044
|
-
Object.defineProperty(SesameAPIService.prototype.requestClipImportList = function requestClipImportList(request, callback) {
|
|
21045
|
-
return this.rpcCall(requestClipImportList, $root.sesame.v1.jobs.ImportListRequest, $root.sesame.v1.jobs.JobListResponse, request, callback);
|
|
21046
|
-
}, "name", { value: "RequestClipImportList" });
|
|
21025
|
+
Object.defineProperty(SesameAPIService.prototype.startJob = function startJob(request, callback) {
|
|
21026
|
+
return this.rpcCall(startJob, $root.sesame.v1.jobs.JobStartRequest, $root.sesame.v1.jobs.Job, request, callback);
|
|
21027
|
+
}, "name", { value: "StartJob" });
|
|
21028
|
+
Object.defineProperty(SesameAPIService.prototype.abortJob = function abortJob(request, callback) {
|
|
21029
|
+
return this.rpcCall(abortJob, $root.sesame.v1.jobs.JobAbortRequest, $root.sesame.v1.jobs.Job, request, callback);
|
|
21030
|
+
}, "name", { value: "AbortJob" });
|
|
21031
|
+
Object.defineProperty(SesameAPIService.prototype.getJobStatus = function getJobStatus(request, callback) {
|
|
21032
|
+
return this.rpcCall(getJobStatus, $root.sesame.v1.jobs.JobStatusRequest, $root.sesame.v1.jobs.Job, request, callback);
|
|
21033
|
+
}, "name", { value: "GetJobStatus" });
|
|
21034
|
+
Object.defineProperty(SesameAPIService.prototype.listJobs = function listJobs(request, callback) {
|
|
21035
|
+
return this.rpcCall(listJobs, $root.sesame.v1.jobs.JobListRequest, $root.sesame.v1.jobs.JobList, request, callback);
|
|
21036
|
+
}, "name", { value: "ListJobs" });
|
|
21047
21037
|
Object.defineProperty(SesameAPIService.prototype.requestKeyframe = function requestKeyframe(request, callback) {
|
|
21048
21038
|
return this.rpcCall(requestKeyframe, $root.sesame.v1.outputs.KeyframeRequest, $root.sesame.v1.common.Empty, request, callback);
|
|
21049
21039
|
}, "name", { value: "RequestKeyframe" });
|
|
@@ -21064,19 +21054,7 @@ var sesame = $root.sesame = (() => {
|
|
|
21064
21054
|
values[valuesById[3] = "FRAME_TYPE_AUDIO"] = 3;
|
|
21065
21055
|
values[valuesById[4] = "FRAME_TYPE_MUXED"] = 4;
|
|
21066
21056
|
values[valuesById[5] = "FRAME_TYPE_DECODER_DATA"] = 5;
|
|
21067
|
-
|
|
21068
|
-
}();
|
|
21069
|
-
wire.CodecType = function() {
|
|
21070
|
-
const valuesById = {}, values = Object.create(valuesById);
|
|
21071
|
-
values[valuesById[0] = "CODEC_TYPE_UNSPECIFIED"] = 0;
|
|
21072
|
-
values[valuesById[1] = "CODEC_TYPE_VIDEO_VP8"] = 1;
|
|
21073
|
-
values[valuesById[2] = "CODEC_TYPE_VIDEO_VP9"] = 2;
|
|
21074
|
-
values[valuesById[3] = "CODEC_TYPE_VIDEO_AVC"] = 3;
|
|
21075
|
-
values[valuesById[4] = "CODEC_TYPE_VIDEO_HEVC"] = 4;
|
|
21076
|
-
values[valuesById[5] = "CODEC_TYPE_VIDEO_AV1"] = 5;
|
|
21077
|
-
values[valuesById[64] = "CODEC_TYPE_AUDIO_OPUS"] = 64;
|
|
21078
|
-
values[valuesById[65] = "CODEC_TYPE_AUDIO_AAC"] = 65;
|
|
21079
|
-
values[valuesById[66] = "CODEC_TYPE_AUDIO_PCM"] = 66;
|
|
21057
|
+
values[valuesById[6] = "FRAME_TYPE_DATA"] = 6;
|
|
21080
21058
|
return values;
|
|
21081
21059
|
}();
|
|
21082
21060
|
wire.MediaCodecData = function() {
|
|
@@ -21232,9 +21210,12 @@ var sesame = $root.sesame = (() => {
|
|
|
21232
21210
|
case 3:
|
|
21233
21211
|
case 4:
|
|
21234
21212
|
case 5:
|
|
21213
|
+
case 6:
|
|
21214
|
+
case 7:
|
|
21235
21215
|
case 64:
|
|
21236
21216
|
case 65:
|
|
21237
21217
|
case 66:
|
|
21218
|
+
case 67:
|
|
21238
21219
|
break;
|
|
21239
21220
|
}
|
|
21240
21221
|
if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) {
|
|
@@ -21310,6 +21291,14 @@ var sesame = $root.sesame = (() => {
|
|
|
21310
21291
|
case 5:
|
|
21311
21292
|
message.codecType = 5;
|
|
21312
21293
|
break;
|
|
21294
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
21295
|
+
case 6:
|
|
21296
|
+
message.codecType = 6;
|
|
21297
|
+
break;
|
|
21298
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
21299
|
+
case 7:
|
|
21300
|
+
message.codecType = 7;
|
|
21301
|
+
break;
|
|
21313
21302
|
case "CODEC_TYPE_AUDIO_OPUS":
|
|
21314
21303
|
case 64:
|
|
21315
21304
|
message.codecType = 64;
|
|
@@ -21322,75 +21311,225 @@ var sesame = $root.sesame = (() => {
|
|
|
21322
21311
|
case 66:
|
|
21323
21312
|
message.codecType = 66;
|
|
21324
21313
|
break;
|
|
21314
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
21315
|
+
case 67:
|
|
21316
|
+
message.codecType = 67;
|
|
21317
|
+
break;
|
|
21318
|
+
}
|
|
21319
|
+
if (object.sampleRate != null)
|
|
21320
|
+
message.sampleRate = object.sampleRate >>> 0;
|
|
21321
|
+
if (object.timebaseNum != null)
|
|
21322
|
+
message.timebaseNum = object.timebaseNum >>> 0;
|
|
21323
|
+
if (object.timebaseDen != null)
|
|
21324
|
+
message.timebaseDen = object.timebaseDen >>> 0;
|
|
21325
|
+
if (object.codecProfile != null)
|
|
21326
|
+
message.codecProfile = object.codecProfile >>> 0;
|
|
21327
|
+
if (object.codecLevel != null)
|
|
21328
|
+
message.codecLevel = object.codecLevel >>> 0;
|
|
21329
|
+
if (object.width != null)
|
|
21330
|
+
message.width = object.width >>> 0;
|
|
21331
|
+
if (object.height != null)
|
|
21332
|
+
message.height = object.height >>> 0;
|
|
21333
|
+
if (object.channels != null)
|
|
21334
|
+
message.channels = object.channels >>> 0;
|
|
21335
|
+
if (object.bitDepth != null)
|
|
21336
|
+
message.bitDepth = object.bitDepth >>> 0;
|
|
21337
|
+
return message;
|
|
21338
|
+
};
|
|
21339
|
+
MediaCodecData2.toObject = function toObject(message, options) {
|
|
21340
|
+
if (!options)
|
|
21341
|
+
options = {};
|
|
21342
|
+
let object = {};
|
|
21343
|
+
if (options.defaults) {
|
|
21344
|
+
object.codecType = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
21345
|
+
object.sampleRate = 0;
|
|
21346
|
+
object.timebaseNum = 0;
|
|
21347
|
+
object.timebaseDen = 0;
|
|
21348
|
+
object.codecProfile = 0;
|
|
21349
|
+
object.codecLevel = 0;
|
|
21350
|
+
object.width = 0;
|
|
21351
|
+
object.height = 0;
|
|
21352
|
+
object.channels = 0;
|
|
21353
|
+
object.bitDepth = 0;
|
|
21354
|
+
}
|
|
21355
|
+
if (message.codecType != null && message.hasOwnProperty("codecType"))
|
|
21356
|
+
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;
|
|
21357
|
+
if (message.sampleRate != null && message.hasOwnProperty("sampleRate"))
|
|
21358
|
+
object.sampleRate = message.sampleRate;
|
|
21359
|
+
if (message.timebaseNum != null && message.hasOwnProperty("timebaseNum"))
|
|
21360
|
+
object.timebaseNum = message.timebaseNum;
|
|
21361
|
+
if (message.timebaseDen != null && message.hasOwnProperty("timebaseDen"))
|
|
21362
|
+
object.timebaseDen = message.timebaseDen;
|
|
21363
|
+
if (message.codecProfile != null && message.hasOwnProperty("codecProfile"))
|
|
21364
|
+
object.codecProfile = message.codecProfile;
|
|
21365
|
+
if (message.codecLevel != null && message.hasOwnProperty("codecLevel"))
|
|
21366
|
+
object.codecLevel = message.codecLevel;
|
|
21367
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
21368
|
+
object.width = message.width;
|
|
21369
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
21370
|
+
object.height = message.height;
|
|
21371
|
+
if (message.channels != null && message.hasOwnProperty("channels"))
|
|
21372
|
+
object.channels = message.channels;
|
|
21373
|
+
if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
|
|
21374
|
+
object.bitDepth = message.bitDepth;
|
|
21375
|
+
return object;
|
|
21376
|
+
};
|
|
21377
|
+
MediaCodecData2.prototype.toJSON = function toJSON() {
|
|
21378
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21379
|
+
};
|
|
21380
|
+
MediaCodecData2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21381
|
+
if (typeUrlPrefix === void 0) {
|
|
21382
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
21383
|
+
}
|
|
21384
|
+
return typeUrlPrefix + "/sesame.v1.wire.MediaCodecData";
|
|
21385
|
+
};
|
|
21386
|
+
return MediaCodecData2;
|
|
21387
|
+
}();
|
|
21388
|
+
wire.MediaFrameData = function() {
|
|
21389
|
+
function MediaFrameData(properties) {
|
|
21390
|
+
if (properties) {
|
|
21391
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21392
|
+
if (properties[keys[i]] != null)
|
|
21393
|
+
this[keys[i]] = properties[keys[i]];
|
|
21394
|
+
}
|
|
21395
|
+
}
|
|
21396
|
+
MediaFrameData.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
21397
|
+
MediaFrameData.prototype.keyframe = false;
|
|
21398
|
+
MediaFrameData.prototype.codecData = null;
|
|
21399
|
+
MediaFrameData.create = function create(properties) {
|
|
21400
|
+
return new MediaFrameData(properties);
|
|
21401
|
+
};
|
|
21402
|
+
MediaFrameData.encode = function encode(message, writer) {
|
|
21403
|
+
if (!writer)
|
|
21404
|
+
writer = $Writer.create();
|
|
21405
|
+
if (message.pts != null && Object.hasOwnProperty.call(message, "pts"))
|
|
21406
|
+
writer.uint32(
|
|
21407
|
+
/* id 1, wireType 0 =*/
|
|
21408
|
+
8
|
|
21409
|
+
).uint64(message.pts);
|
|
21410
|
+
if (message.keyframe != null && Object.hasOwnProperty.call(message, "keyframe"))
|
|
21411
|
+
writer.uint32(
|
|
21412
|
+
/* id 2, wireType 0 =*/
|
|
21413
|
+
16
|
|
21414
|
+
).bool(message.keyframe);
|
|
21415
|
+
if (message.codecData != null && Object.hasOwnProperty.call(message, "codecData"))
|
|
21416
|
+
$root.sesame.v1.wire.MediaCodecData.encode(message.codecData, writer.uint32(
|
|
21417
|
+
/* id 3, wireType 2 =*/
|
|
21418
|
+
26
|
|
21419
|
+
).fork()).ldelim();
|
|
21420
|
+
return writer;
|
|
21421
|
+
};
|
|
21422
|
+
MediaFrameData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21423
|
+
return this.encode(message, writer).ldelim();
|
|
21424
|
+
};
|
|
21425
|
+
MediaFrameData.decode = function decode(reader, length, error) {
|
|
21426
|
+
if (!(reader instanceof $Reader))
|
|
21427
|
+
reader = $Reader.create(reader);
|
|
21428
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.wire.MediaFrameData();
|
|
21429
|
+
while (reader.pos < end) {
|
|
21430
|
+
let tag = reader.uint32();
|
|
21431
|
+
if (tag === error)
|
|
21432
|
+
break;
|
|
21433
|
+
switch (tag >>> 3) {
|
|
21434
|
+
case 1: {
|
|
21435
|
+
message.pts = reader.uint64();
|
|
21436
|
+
break;
|
|
21437
|
+
}
|
|
21438
|
+
case 2: {
|
|
21439
|
+
message.keyframe = reader.bool();
|
|
21440
|
+
break;
|
|
21441
|
+
}
|
|
21442
|
+
case 3: {
|
|
21443
|
+
message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
|
|
21444
|
+
break;
|
|
21445
|
+
}
|
|
21446
|
+
default:
|
|
21447
|
+
reader.skipType(tag & 7);
|
|
21448
|
+
break;
|
|
21449
|
+
}
|
|
21325
21450
|
}
|
|
21326
|
-
if (object.sampleRate != null)
|
|
21327
|
-
message.sampleRate = object.sampleRate >>> 0;
|
|
21328
|
-
if (object.timebaseNum != null)
|
|
21329
|
-
message.timebaseNum = object.timebaseNum >>> 0;
|
|
21330
|
-
if (object.timebaseDen != null)
|
|
21331
|
-
message.timebaseDen = object.timebaseDen >>> 0;
|
|
21332
|
-
if (object.codecProfile != null)
|
|
21333
|
-
message.codecProfile = object.codecProfile >>> 0;
|
|
21334
|
-
if (object.codecLevel != null)
|
|
21335
|
-
message.codecLevel = object.codecLevel >>> 0;
|
|
21336
|
-
if (object.width != null)
|
|
21337
|
-
message.width = object.width >>> 0;
|
|
21338
|
-
if (object.height != null)
|
|
21339
|
-
message.height = object.height >>> 0;
|
|
21340
|
-
if (object.channels != null)
|
|
21341
|
-
message.channels = object.channels >>> 0;
|
|
21342
|
-
if (object.bitDepth != null)
|
|
21343
|
-
message.bitDepth = object.bitDepth >>> 0;
|
|
21344
21451
|
return message;
|
|
21345
21452
|
};
|
|
21346
|
-
|
|
21453
|
+
MediaFrameData.decodeDelimited = function decodeDelimited(reader) {
|
|
21454
|
+
if (!(reader instanceof $Reader))
|
|
21455
|
+
reader = new $Reader(reader);
|
|
21456
|
+
return this.decode(reader, reader.uint32());
|
|
21457
|
+
};
|
|
21458
|
+
MediaFrameData.verify = function verify(message) {
|
|
21459
|
+
if (typeof message !== "object" || message === null)
|
|
21460
|
+
return "object expected";
|
|
21461
|
+
if (message.pts != null && message.hasOwnProperty("pts")) {
|
|
21462
|
+
if (!$util.isInteger(message.pts) && !(message.pts && $util.isInteger(message.pts.low) && $util.isInteger(message.pts.high)))
|
|
21463
|
+
return "pts: integer|Long expected";
|
|
21464
|
+
}
|
|
21465
|
+
if (message.keyframe != null && message.hasOwnProperty("keyframe")) {
|
|
21466
|
+
if (typeof message.keyframe !== "boolean")
|
|
21467
|
+
return "keyframe: boolean expected";
|
|
21468
|
+
}
|
|
21469
|
+
if (message.codecData != null && message.hasOwnProperty("codecData")) {
|
|
21470
|
+
let error = $root.sesame.v1.wire.MediaCodecData.verify(message.codecData);
|
|
21471
|
+
if (error)
|
|
21472
|
+
return "codecData." + error;
|
|
21473
|
+
}
|
|
21474
|
+
return null;
|
|
21475
|
+
};
|
|
21476
|
+
MediaFrameData.fromObject = function fromObject(object) {
|
|
21477
|
+
if (object instanceof $root.sesame.v1.wire.MediaFrameData)
|
|
21478
|
+
return object;
|
|
21479
|
+
let message = new $root.sesame.v1.wire.MediaFrameData();
|
|
21480
|
+
if (object.pts != null) {
|
|
21481
|
+
if ($util.Long)
|
|
21482
|
+
(message.pts = $util.Long.fromValue(object.pts)).unsigned = true;
|
|
21483
|
+
else if (typeof object.pts === "string")
|
|
21484
|
+
message.pts = parseInt(object.pts, 10);
|
|
21485
|
+
else if (typeof object.pts === "number")
|
|
21486
|
+
message.pts = object.pts;
|
|
21487
|
+
else if (typeof object.pts === "object")
|
|
21488
|
+
message.pts = new $util.LongBits(object.pts.low >>> 0, object.pts.high >>> 0).toNumber(true);
|
|
21489
|
+
}
|
|
21490
|
+
if (object.keyframe != null)
|
|
21491
|
+
message.keyframe = Boolean(object.keyframe);
|
|
21492
|
+
if (object.codecData != null) {
|
|
21493
|
+
if (typeof object.codecData !== "object")
|
|
21494
|
+
throw TypeError(".sesame.v1.wire.MediaFrameData.codecData: object expected");
|
|
21495
|
+
message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
|
|
21496
|
+
}
|
|
21497
|
+
return message;
|
|
21498
|
+
};
|
|
21499
|
+
MediaFrameData.toObject = function toObject(message, options) {
|
|
21347
21500
|
if (!options)
|
|
21348
21501
|
options = {};
|
|
21349
21502
|
let object = {};
|
|
21350
21503
|
if (options.defaults) {
|
|
21351
|
-
|
|
21352
|
-
|
|
21353
|
-
|
|
21354
|
-
|
|
21355
|
-
|
|
21356
|
-
object.
|
|
21357
|
-
object.
|
|
21358
|
-
object.height = 0;
|
|
21359
|
-
object.channels = 0;
|
|
21360
|
-
object.bitDepth = 0;
|
|
21504
|
+
if ($util.Long) {
|
|
21505
|
+
let long = new $util.Long(0, 0, true);
|
|
21506
|
+
object.pts = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21507
|
+
} else
|
|
21508
|
+
object.pts = options.longs === String ? "0" : 0;
|
|
21509
|
+
object.keyframe = false;
|
|
21510
|
+
object.codecData = null;
|
|
21361
21511
|
}
|
|
21362
|
-
if (message.
|
|
21363
|
-
|
|
21364
|
-
|
|
21365
|
-
|
|
21366
|
-
|
|
21367
|
-
|
|
21368
|
-
|
|
21369
|
-
|
|
21370
|
-
|
|
21371
|
-
object.codecProfile = message.codecProfile;
|
|
21372
|
-
if (message.codecLevel != null && message.hasOwnProperty("codecLevel"))
|
|
21373
|
-
object.codecLevel = message.codecLevel;
|
|
21374
|
-
if (message.width != null && message.hasOwnProperty("width"))
|
|
21375
|
-
object.width = message.width;
|
|
21376
|
-
if (message.height != null && message.hasOwnProperty("height"))
|
|
21377
|
-
object.height = message.height;
|
|
21378
|
-
if (message.channels != null && message.hasOwnProperty("channels"))
|
|
21379
|
-
object.channels = message.channels;
|
|
21380
|
-
if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
|
|
21381
|
-
object.bitDepth = message.bitDepth;
|
|
21512
|
+
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
21513
|
+
if (typeof message.pts === "number")
|
|
21514
|
+
object.pts = options.longs === String ? String(message.pts) : message.pts;
|
|
21515
|
+
else
|
|
21516
|
+
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;
|
|
21517
|
+
if (message.keyframe != null && message.hasOwnProperty("keyframe"))
|
|
21518
|
+
object.keyframe = message.keyframe;
|
|
21519
|
+
if (message.codecData != null && message.hasOwnProperty("codecData"))
|
|
21520
|
+
object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
|
|
21382
21521
|
return object;
|
|
21383
21522
|
};
|
|
21384
|
-
|
|
21523
|
+
MediaFrameData.prototype.toJSON = function toJSON() {
|
|
21385
21524
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21386
21525
|
};
|
|
21387
|
-
|
|
21526
|
+
MediaFrameData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21388
21527
|
if (typeUrlPrefix === void 0) {
|
|
21389
21528
|
typeUrlPrefix = "type.googleapis.com";
|
|
21390
21529
|
}
|
|
21391
|
-
return typeUrlPrefix + "/sesame.v1.wire.
|
|
21530
|
+
return typeUrlPrefix + "/sesame.v1.wire.MediaFrameData";
|
|
21392
21531
|
};
|
|
21393
|
-
return
|
|
21532
|
+
return MediaFrameData;
|
|
21394
21533
|
}();
|
|
21395
21534
|
wire.FrameHeader = function() {
|
|
21396
21535
|
function FrameHeader2(properties) {
|
|
@@ -21401,11 +21540,13 @@ var sesame = $root.sesame = (() => {
|
|
|
21401
21540
|
}
|
|
21402
21541
|
}
|
|
21403
21542
|
FrameHeader2.prototype.type = 0;
|
|
21404
|
-
FrameHeader2.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
21405
|
-
FrameHeader2.prototype.id = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
21406
|
-
FrameHeader2.prototype.keyframe = false;
|
|
21407
|
-
FrameHeader2.prototype.codecData = null;
|
|
21408
21543
|
FrameHeader2.prototype.routingMetadata = "";
|
|
21544
|
+
FrameHeader2.prototype.media = null;
|
|
21545
|
+
let $oneOfFields;
|
|
21546
|
+
Object.defineProperty(FrameHeader2.prototype, "typeData", {
|
|
21547
|
+
get: $util.oneOfGetter($oneOfFields = ["media"]),
|
|
21548
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
21549
|
+
});
|
|
21409
21550
|
FrameHeader2.create = function create(properties) {
|
|
21410
21551
|
return new FrameHeader2(properties);
|
|
21411
21552
|
};
|
|
@@ -21417,31 +21558,16 @@ var sesame = $root.sesame = (() => {
|
|
|
21417
21558
|
/* id 1, wireType 0 =*/
|
|
21418
21559
|
8
|
|
21419
21560
|
).int32(message.type);
|
|
21420
|
-
if (message.pts != null && Object.hasOwnProperty.call(message, "pts"))
|
|
21421
|
-
writer.uint32(
|
|
21422
|
-
/* id 2, wireType 0 =*/
|
|
21423
|
-
16
|
|
21424
|
-
).uint64(message.pts);
|
|
21425
|
-
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
21426
|
-
writer.uint32(
|
|
21427
|
-
/* id 3, wireType 0 =*/
|
|
21428
|
-
24
|
|
21429
|
-
).uint64(message.id);
|
|
21430
|
-
if (message.keyframe != null && Object.hasOwnProperty.call(message, "keyframe"))
|
|
21431
|
-
writer.uint32(
|
|
21432
|
-
/* id 4, wireType 0 =*/
|
|
21433
|
-
32
|
|
21434
|
-
).bool(message.keyframe);
|
|
21435
|
-
if (message.codecData != null && Object.hasOwnProperty.call(message, "codecData"))
|
|
21436
|
-
$root.sesame.v1.wire.MediaCodecData.encode(message.codecData, writer.uint32(
|
|
21437
|
-
/* id 5, wireType 2 =*/
|
|
21438
|
-
42
|
|
21439
|
-
).fork()).ldelim();
|
|
21440
21561
|
if (message.routingMetadata != null && Object.hasOwnProperty.call(message, "routingMetadata"))
|
|
21441
21562
|
writer.uint32(
|
|
21442
21563
|
/* id 6, wireType 2 =*/
|
|
21443
21564
|
50
|
|
21444
21565
|
).string(message.routingMetadata);
|
|
21566
|
+
if (message.media != null && Object.hasOwnProperty.call(message, "media"))
|
|
21567
|
+
$root.sesame.v1.wire.MediaFrameData.encode(message.media, writer.uint32(
|
|
21568
|
+
/* id 7, wireType 2 =*/
|
|
21569
|
+
58
|
|
21570
|
+
).fork()).ldelim();
|
|
21445
21571
|
return writer;
|
|
21446
21572
|
};
|
|
21447
21573
|
FrameHeader2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -21460,26 +21586,14 @@ var sesame = $root.sesame = (() => {
|
|
|
21460
21586
|
message.type = reader.int32();
|
|
21461
21587
|
break;
|
|
21462
21588
|
}
|
|
21463
|
-
case 2: {
|
|
21464
|
-
message.pts = reader.uint64();
|
|
21465
|
-
break;
|
|
21466
|
-
}
|
|
21467
|
-
case 3: {
|
|
21468
|
-
message.id = reader.uint64();
|
|
21469
|
-
break;
|
|
21470
|
-
}
|
|
21471
|
-
case 4: {
|
|
21472
|
-
message.keyframe = reader.bool();
|
|
21473
|
-
break;
|
|
21474
|
-
}
|
|
21475
|
-
case 5: {
|
|
21476
|
-
message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
|
|
21477
|
-
break;
|
|
21478
|
-
}
|
|
21479
21589
|
case 6: {
|
|
21480
21590
|
message.routingMetadata = reader.string();
|
|
21481
21591
|
break;
|
|
21482
21592
|
}
|
|
21593
|
+
case 7: {
|
|
21594
|
+
message.media = $root.sesame.v1.wire.MediaFrameData.decode(reader, reader.uint32());
|
|
21595
|
+
break;
|
|
21596
|
+
}
|
|
21483
21597
|
default:
|
|
21484
21598
|
reader.skipType(tag & 7);
|
|
21485
21599
|
break;
|
|
@@ -21495,6 +21609,7 @@ var sesame = $root.sesame = (() => {
|
|
|
21495
21609
|
FrameHeader2.verify = function verify(message) {
|
|
21496
21610
|
if (typeof message !== "object" || message === null)
|
|
21497
21611
|
return "object expected";
|
|
21612
|
+
let properties = {};
|
|
21498
21613
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
21499
21614
|
switch (message.type) {
|
|
21500
21615
|
default:
|
|
@@ -21505,29 +21620,21 @@ var sesame = $root.sesame = (() => {
|
|
|
21505
21620
|
case 3:
|
|
21506
21621
|
case 4:
|
|
21507
21622
|
case 5:
|
|
21623
|
+
case 6:
|
|
21508
21624
|
break;
|
|
21509
21625
|
}
|
|
21510
|
-
if (message.pts != null && message.hasOwnProperty("pts")) {
|
|
21511
|
-
if (!$util.isInteger(message.pts) && !(message.pts && $util.isInteger(message.pts.low) && $util.isInteger(message.pts.high)))
|
|
21512
|
-
return "pts: integer|Long expected";
|
|
21513
|
-
}
|
|
21514
|
-
if (message.id != null && message.hasOwnProperty("id")) {
|
|
21515
|
-
if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
|
|
21516
|
-
return "id: integer|Long expected";
|
|
21517
|
-
}
|
|
21518
|
-
if (message.keyframe != null && message.hasOwnProperty("keyframe")) {
|
|
21519
|
-
if (typeof message.keyframe !== "boolean")
|
|
21520
|
-
return "keyframe: boolean expected";
|
|
21521
|
-
}
|
|
21522
|
-
if (message.codecData != null && message.hasOwnProperty("codecData")) {
|
|
21523
|
-
let error = $root.sesame.v1.wire.MediaCodecData.verify(message.codecData);
|
|
21524
|
-
if (error)
|
|
21525
|
-
return "codecData." + error;
|
|
21526
|
-
}
|
|
21527
21626
|
if (message.routingMetadata != null && message.hasOwnProperty("routingMetadata")) {
|
|
21528
21627
|
if (!$util.isString(message.routingMetadata))
|
|
21529
21628
|
return "routingMetadata: string expected";
|
|
21530
21629
|
}
|
|
21630
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
21631
|
+
properties.typeData = 1;
|
|
21632
|
+
{
|
|
21633
|
+
let error = $root.sesame.v1.wire.MediaFrameData.verify(message.media);
|
|
21634
|
+
if (error)
|
|
21635
|
+
return "media." + error;
|
|
21636
|
+
}
|
|
21637
|
+
}
|
|
21531
21638
|
return null;
|
|
21532
21639
|
};
|
|
21533
21640
|
FrameHeader2.fromObject = function fromObject(object) {
|
|
@@ -21565,36 +21672,18 @@ var sesame = $root.sesame = (() => {
|
|
|
21565
21672
|
case 5:
|
|
21566
21673
|
message.type = 5;
|
|
21567
21674
|
break;
|
|
21568
|
-
|
|
21569
|
-
|
|
21570
|
-
|
|
21571
|
-
|
|
21572
|
-
else if (typeof object.pts === "string")
|
|
21573
|
-
message.pts = parseInt(object.pts, 10);
|
|
21574
|
-
else if (typeof object.pts === "number")
|
|
21575
|
-
message.pts = object.pts;
|
|
21576
|
-
else if (typeof object.pts === "object")
|
|
21577
|
-
message.pts = new $util.LongBits(object.pts.low >>> 0, object.pts.high >>> 0).toNumber(true);
|
|
21578
|
-
}
|
|
21579
|
-
if (object.id != null) {
|
|
21580
|
-
if ($util.Long)
|
|
21581
|
-
(message.id = $util.Long.fromValue(object.id)).unsigned = true;
|
|
21582
|
-
else if (typeof object.id === "string")
|
|
21583
|
-
message.id = parseInt(object.id, 10);
|
|
21584
|
-
else if (typeof object.id === "number")
|
|
21585
|
-
message.id = object.id;
|
|
21586
|
-
else if (typeof object.id === "object")
|
|
21587
|
-
message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true);
|
|
21588
|
-
}
|
|
21589
|
-
if (object.keyframe != null)
|
|
21590
|
-
message.keyframe = Boolean(object.keyframe);
|
|
21591
|
-
if (object.codecData != null) {
|
|
21592
|
-
if (typeof object.codecData !== "object")
|
|
21593
|
-
throw TypeError(".sesame.v1.wire.FrameHeader.codecData: object expected");
|
|
21594
|
-
message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
|
|
21675
|
+
case "FRAME_TYPE_DATA":
|
|
21676
|
+
case 6:
|
|
21677
|
+
message.type = 6;
|
|
21678
|
+
break;
|
|
21595
21679
|
}
|
|
21596
21680
|
if (object.routingMetadata != null)
|
|
21597
21681
|
message.routingMetadata = String(object.routingMetadata);
|
|
21682
|
+
if (object.media != null) {
|
|
21683
|
+
if (typeof object.media !== "object")
|
|
21684
|
+
throw TypeError(".sesame.v1.wire.FrameHeader.media: object expected");
|
|
21685
|
+
message.media = $root.sesame.v1.wire.MediaFrameData.fromObject(object.media);
|
|
21686
|
+
}
|
|
21598
21687
|
return message;
|
|
21599
21688
|
};
|
|
21600
21689
|
FrameHeader2.toObject = function toObject(message, options) {
|
|
@@ -21603,38 +21692,17 @@ var sesame = $root.sesame = (() => {
|
|
|
21603
21692
|
let object = {};
|
|
21604
21693
|
if (options.defaults) {
|
|
21605
21694
|
object.type = options.enums === String ? "FRAME_TYPE_UNSPECIFIED" : 0;
|
|
21606
|
-
if ($util.Long) {
|
|
21607
|
-
let long = new $util.Long(0, 0, true);
|
|
21608
|
-
object.pts = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21609
|
-
} else
|
|
21610
|
-
object.pts = options.longs === String ? "0" : 0;
|
|
21611
|
-
if ($util.Long) {
|
|
21612
|
-
let long = new $util.Long(0, 0, true);
|
|
21613
|
-
object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21614
|
-
} else
|
|
21615
|
-
object.id = options.longs === String ? "0" : 0;
|
|
21616
|
-
object.keyframe = false;
|
|
21617
|
-
object.codecData = null;
|
|
21618
21695
|
object.routingMetadata = "";
|
|
21619
21696
|
}
|
|
21620
21697
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
21621
21698
|
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;
|
|
21622
|
-
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
21623
|
-
if (typeof message.pts === "number")
|
|
21624
|
-
object.pts = options.longs === String ? String(message.pts) : message.pts;
|
|
21625
|
-
else
|
|
21626
|
-
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;
|
|
21627
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
21628
|
-
if (typeof message.id === "number")
|
|
21629
|
-
object.id = options.longs === String ? String(message.id) : message.id;
|
|
21630
|
-
else
|
|
21631
|
-
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;
|
|
21632
|
-
if (message.keyframe != null && message.hasOwnProperty("keyframe"))
|
|
21633
|
-
object.keyframe = message.keyframe;
|
|
21634
|
-
if (message.codecData != null && message.hasOwnProperty("codecData"))
|
|
21635
|
-
object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
|
|
21636
21699
|
if (message.routingMetadata != null && message.hasOwnProperty("routingMetadata"))
|
|
21637
21700
|
object.routingMetadata = message.routingMetadata;
|
|
21701
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
21702
|
+
object.media = $root.sesame.v1.wire.MediaFrameData.toObject(message.media, options);
|
|
21703
|
+
if (options.oneofs)
|
|
21704
|
+
object.typeData = "media";
|
|
21705
|
+
}
|
|
21638
21706
|
return object;
|
|
21639
21707
|
};
|
|
21640
21708
|
FrameHeader2.prototype.toJSON = function toJSON() {
|
|
@@ -22047,8 +22115,8 @@ var RPCClient = class extends EventEmitter {
|
|
|
22047
22115
|
} else {
|
|
22048
22116
|
throw new Error("Unsupported RPC message payload");
|
|
22049
22117
|
}
|
|
22050
|
-
} catch (
|
|
22051
|
-
const error = new Error(
|
|
22118
|
+
} catch (err) {
|
|
22119
|
+
const error = new Error(`Got invalid message: ${err instanceof Error ? err.message : String(err)}`);
|
|
22052
22120
|
this.errorHandler(error);
|
|
22053
22121
|
}
|
|
22054
22122
|
};
|
|
@@ -22057,10 +22125,33 @@ var RPCClient = class extends EventEmitter {
|
|
|
22057
22125
|
this.connection.on("rpc", (data) => this.messageHandler(data));
|
|
22058
22126
|
this.connection.on("error", this.errorHandler);
|
|
22059
22127
|
this.options = options;
|
|
22060
|
-
this.service = service.create(this.rpcImpl);
|
|
22128
|
+
this.service = this.wrapServicePromises(service.create(this.rpcImpl));
|
|
22061
22129
|
this.eventTypes = options.eventTypes || {};
|
|
22062
22130
|
this.sendTimeout = options.sendTimeout || 5 * 1e3;
|
|
22063
22131
|
}
|
|
22132
|
+
/**
|
|
22133
|
+
* Wraps service method calls to attach a rejection handler on all returned
|
|
22134
|
+
* promises. This prevents unhandled promise rejections (e.g. from timeouts
|
|
22135
|
+
* while disconnected) from crashing the host process. Callers can still
|
|
22136
|
+
* catch errors normally via await / .catch().
|
|
22137
|
+
*/
|
|
22138
|
+
wrapServicePromises(service) {
|
|
22139
|
+
const self = this;
|
|
22140
|
+
return new Proxy(service, {
|
|
22141
|
+
get(target, prop) {
|
|
22142
|
+
const value = target[prop];
|
|
22143
|
+
if (typeof value !== "function") return value;
|
|
22144
|
+
return function(...args) {
|
|
22145
|
+
const result = value.apply(target, args);
|
|
22146
|
+
if (result != null && typeof result.catch === "function") {
|
|
22147
|
+
result.catch(() => {
|
|
22148
|
+
});
|
|
22149
|
+
}
|
|
22150
|
+
return result;
|
|
22151
|
+
};
|
|
22152
|
+
}
|
|
22153
|
+
});
|
|
22154
|
+
}
|
|
22064
22155
|
async flushMessageBuffer() {
|
|
22065
22156
|
const messages = [];
|
|
22066
22157
|
for (const seq in this.messageBuffer) {
|
|
@@ -22100,8 +22191,8 @@ var RPCClient = class extends EventEmitter {
|
|
|
22100
22191
|
try {
|
|
22101
22192
|
payload = type.decode(event.payload);
|
|
22102
22193
|
object = type.toObject(payload, { longs: Number });
|
|
22103
|
-
} catch (
|
|
22104
|
-
const error = new Error(
|
|
22194
|
+
} catch (err) {
|
|
22195
|
+
const error = new Error(`Could not decode event payload: ${err instanceof Error ? err.message : String(err)}`);
|
|
22105
22196
|
this.errorHandler(error);
|
|
22106
22197
|
return;
|
|
22107
22198
|
}
|
|
@@ -22120,7 +22211,7 @@ import { EventEmitter as EventEmitter2 } from "events";
|
|
|
22120
22211
|
var FrameType = sesame.v1.wire.FrameType;
|
|
22121
22212
|
var FrameHeader = sesame.v1.wire.FrameHeader;
|
|
22122
22213
|
var MediaCodecData = sesame.v1.wire.MediaCodecData;
|
|
22123
|
-
var CodecType = sesame.v1.
|
|
22214
|
+
var CodecType = sesame.v1.common.CodecType;
|
|
22124
22215
|
var PREFIX_SIZE = 4;
|
|
22125
22216
|
var WireProtocol = class {
|
|
22126
22217
|
/**
|
|
@@ -22256,14 +22347,29 @@ var SesameConnection = class extends EventEmitter2 {
|
|
|
22256
22347
|
this.socket.addEventListener("close", this.boundCloseHandler);
|
|
22257
22348
|
this.socket.addEventListener("error", this.boundErrorHandler);
|
|
22258
22349
|
this.socket.binaryType = "arraybuffer";
|
|
22259
|
-
await new Promise((resolve) => {
|
|
22260
|
-
const
|
|
22261
|
-
this.removeListener("open",
|
|
22262
|
-
this.removeListener("close",
|
|
22263
|
-
|
|
22350
|
+
await new Promise((resolve, reject) => {
|
|
22351
|
+
const cleanup = () => {
|
|
22352
|
+
this.removeListener("open", onOpen);
|
|
22353
|
+
this.removeListener("close", onClose);
|
|
22354
|
+
this.removeListener("error", onError);
|
|
22355
|
+
};
|
|
22356
|
+
const onOpen = () => {
|
|
22357
|
+
cleanup();
|
|
22358
|
+
resolve();
|
|
22359
|
+
};
|
|
22360
|
+
const onError = (err) => {
|
|
22361
|
+
cleanup();
|
|
22362
|
+
reject(err instanceof Error ? err : new Error("WebSocket connection error"));
|
|
22264
22363
|
};
|
|
22265
|
-
|
|
22266
|
-
|
|
22364
|
+
const onClose = () => {
|
|
22365
|
+
if (!this.isConnected()) {
|
|
22366
|
+
cleanup();
|
|
22367
|
+
reject(new Error("WebSocket connection closed before opening"));
|
|
22368
|
+
}
|
|
22369
|
+
};
|
|
22370
|
+
this.on("open", onOpen);
|
|
22371
|
+
this.on("close", onClose);
|
|
22372
|
+
this.on("error", onError);
|
|
22267
22373
|
});
|
|
22268
22374
|
}
|
|
22269
22375
|
/**
|
|
@@ -22393,55 +22499,52 @@ var JobsApi = class {
|
|
|
22393
22499
|
this.rpc = rpc;
|
|
22394
22500
|
}
|
|
22395
22501
|
async importClip(config) {
|
|
22396
|
-
const
|
|
22397
|
-
|
|
22398
|
-
const
|
|
22502
|
+
const importReq = sesame.v1.jobs.ImportStartRequest.create();
|
|
22503
|
+
importReq.config = config;
|
|
22504
|
+
const msg = sesame.v1.jobs.JobStartRequest.create({ importRequest: importReq });
|
|
22505
|
+
const res = await this.rpc.service.startJob(msg);
|
|
22399
22506
|
if (res.error) {
|
|
22400
22507
|
throw new Error(res.error);
|
|
22401
22508
|
}
|
|
22402
22509
|
return res;
|
|
22403
22510
|
}
|
|
22404
|
-
async getImportStatus() {
|
|
22405
|
-
const msg = sesame.v1.jobs.ImportListRequest.create();
|
|
22406
|
-
return this.rpc.service.requestClipImportList(msg);
|
|
22407
|
-
}
|
|
22408
|
-
async abortImport(jobId) {
|
|
22409
|
-
const msg = { jobId };
|
|
22410
|
-
return this.rpc.service.requestClipImportAbort(msg);
|
|
22411
|
-
}
|
|
22412
22511
|
async exportPlaylist(playlist, config) {
|
|
22413
|
-
const
|
|
22512
|
+
const exportReq = sesame.v1.jobs.ExportStartRequest.create();
|
|
22414
22513
|
if (!config.filename) throw new Error("Filename is required");
|
|
22415
|
-
|
|
22514
|
+
exportReq.config = {
|
|
22416
22515
|
...config,
|
|
22417
|
-
|
|
22418
|
-
videoCodec: config.videoCodec ?? sesame.v1.common.CodecId.CODEC_ID_H264,
|
|
22516
|
+
videoCodec: config.videoCodec ?? sesame.v1.common.CodecType.CODEC_TYPE_VIDEO_AVC,
|
|
22419
22517
|
videoBitrateKbps: config.videoBitrateKbps ?? 1024,
|
|
22420
|
-
audioCodec: config.audioCodec ?? sesame.v1.
|
|
22518
|
+
audioCodec: config.audioCodec ?? sesame.v1.common.CodecType.CODEC_TYPE_AUDIO_AAC,
|
|
22421
22519
|
audioBitrateKbps: config.audioBitrateKbps ?? 128,
|
|
22422
22520
|
audioChannels: config.audioChannels ?? 4,
|
|
22423
22521
|
audioRouting: config.audioRouting ?? [0, 1, 2, 3]
|
|
22424
22522
|
};
|
|
22425
|
-
|
|
22426
|
-
|
|
22427
|
-
recorderId: clip.recorderId,
|
|
22523
|
+
exportReq.items = playlist.clips.map((clip) => ({
|
|
22524
|
+
...clip,
|
|
22428
22525
|
transitionTimeUs: clip.transitionTimeUs ?? 0,
|
|
22429
22526
|
transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
|
|
22430
22527
|
transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 },
|
|
22431
|
-
speed: clip.speed ?? 1
|
|
22432
|
-
audioRouting: clip.audioRouting,
|
|
22433
|
-
startTimeUs: clip.startTimeUs,
|
|
22434
|
-
endTimeUs: clip.endTimeUs
|
|
22528
|
+
speed: clip.speed ?? 1
|
|
22435
22529
|
}));
|
|
22436
|
-
|
|
22530
|
+
const msg = sesame.v1.jobs.JobStartRequest.create({ exportRequest: exportReq });
|
|
22531
|
+
const job = await this.rpc.service.startJob(msg);
|
|
22532
|
+
if (job.error) {
|
|
22533
|
+
throw new Error(job.error);
|
|
22534
|
+
}
|
|
22535
|
+
return job;
|
|
22437
22536
|
}
|
|
22438
|
-
async
|
|
22439
|
-
const msg =
|
|
22440
|
-
return this.rpc.service.
|
|
22537
|
+
async abortJob(jobId) {
|
|
22538
|
+
const msg = { jobId };
|
|
22539
|
+
return this.rpc.service.abortJob(msg);
|
|
22441
22540
|
}
|
|
22442
|
-
async
|
|
22541
|
+
async getJobStatus(jobId) {
|
|
22443
22542
|
const msg = { jobId };
|
|
22444
|
-
return this.rpc.service.
|
|
22543
|
+
return this.rpc.service.getJobStatus(msg);
|
|
22544
|
+
}
|
|
22545
|
+
async listJobs() {
|
|
22546
|
+
const msg = {};
|
|
22547
|
+
return this.rpc.service.listJobs(msg);
|
|
22445
22548
|
}
|
|
22446
22549
|
};
|
|
22447
22550
|
|
|
@@ -22501,8 +22604,7 @@ var SesameClient = class extends EventEmitter3 {
|
|
|
22501
22604
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_ERROR]: sesame.v1.status.Event,
|
|
22502
22605
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_TRANSPORT]: sesame.v1.status.Event,
|
|
22503
22606
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_CALLBACK]: sesame.v1.status.Event,
|
|
22504
|
-
[sesame.v1.common.EventTopic.
|
|
22505
|
-
[sesame.v1.common.EventTopic.EVENT_TOPIC_CLIP_IMPORT]: sesame.v1.status.Event,
|
|
22607
|
+
[sesame.v1.common.EventTopic.EVENT_TOPIC_JOB]: sesame.v1.status.Event,
|
|
22506
22608
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_RECORDER]: sesame.v1.status.Event
|
|
22507
22609
|
};
|
|
22508
22610
|
let options = {
|