@flyteorg/flyteidl 0.23.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen/pb-js/flyteidl.d.ts +246 -2
- package/gen/pb-js/flyteidl.js +582 -4
- package/package.json +1 -1
- package/protos/docs/admin/admin.rst +1 -0
- package/protos/docs/core/core.rst +103 -0
- package/protos/flyteidl/admin/execution.proto +4 -0
- package/protos/flyteidl/core/literals.proto +13 -0
- package/protos/flyteidl/core/types.proto +32 -0
package/gen/pb-js/flyteidl.js
CHANGED
|
@@ -5207,6 +5207,137 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
5207
5207
|
return Schema;
|
|
5208
5208
|
})();
|
|
5209
5209
|
|
|
5210
|
+
core.Union = (function() {
|
|
5211
|
+
|
|
5212
|
+
/**
|
|
5213
|
+
* Properties of an Union.
|
|
5214
|
+
* @memberof flyteidl.core
|
|
5215
|
+
* @interface IUnion
|
|
5216
|
+
* @property {flyteidl.core.ILiteral|null} [value] Union value
|
|
5217
|
+
* @property {flyteidl.core.ILiteralType|null} [type] Union type
|
|
5218
|
+
*/
|
|
5219
|
+
|
|
5220
|
+
/**
|
|
5221
|
+
* Constructs a new Union.
|
|
5222
|
+
* @memberof flyteidl.core
|
|
5223
|
+
* @classdesc Represents an Union.
|
|
5224
|
+
* @implements IUnion
|
|
5225
|
+
* @constructor
|
|
5226
|
+
* @param {flyteidl.core.IUnion=} [properties] Properties to set
|
|
5227
|
+
*/
|
|
5228
|
+
function Union(properties) {
|
|
5229
|
+
if (properties)
|
|
5230
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5231
|
+
if (properties[keys[i]] != null)
|
|
5232
|
+
this[keys[i]] = properties[keys[i]];
|
|
5233
|
+
}
|
|
5234
|
+
|
|
5235
|
+
/**
|
|
5236
|
+
* Union value.
|
|
5237
|
+
* @member {flyteidl.core.ILiteral|null|undefined} value
|
|
5238
|
+
* @memberof flyteidl.core.Union
|
|
5239
|
+
* @instance
|
|
5240
|
+
*/
|
|
5241
|
+
Union.prototype.value = null;
|
|
5242
|
+
|
|
5243
|
+
/**
|
|
5244
|
+
* Union type.
|
|
5245
|
+
* @member {flyteidl.core.ILiteralType|null|undefined} type
|
|
5246
|
+
* @memberof flyteidl.core.Union
|
|
5247
|
+
* @instance
|
|
5248
|
+
*/
|
|
5249
|
+
Union.prototype.type = null;
|
|
5250
|
+
|
|
5251
|
+
/**
|
|
5252
|
+
* Creates a new Union instance using the specified properties.
|
|
5253
|
+
* @function create
|
|
5254
|
+
* @memberof flyteidl.core.Union
|
|
5255
|
+
* @static
|
|
5256
|
+
* @param {flyteidl.core.IUnion=} [properties] Properties to set
|
|
5257
|
+
* @returns {flyteidl.core.Union} Union instance
|
|
5258
|
+
*/
|
|
5259
|
+
Union.create = function create(properties) {
|
|
5260
|
+
return new Union(properties);
|
|
5261
|
+
};
|
|
5262
|
+
|
|
5263
|
+
/**
|
|
5264
|
+
* Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages.
|
|
5265
|
+
* @function encode
|
|
5266
|
+
* @memberof flyteidl.core.Union
|
|
5267
|
+
* @static
|
|
5268
|
+
* @param {flyteidl.core.IUnion} message Union message or plain object to encode
|
|
5269
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5270
|
+
* @returns {$protobuf.Writer} Writer
|
|
5271
|
+
*/
|
|
5272
|
+
Union.encode = function encode(message, writer) {
|
|
5273
|
+
if (!writer)
|
|
5274
|
+
writer = $Writer.create();
|
|
5275
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
5276
|
+
$root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
5277
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
5278
|
+
$root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
5279
|
+
return writer;
|
|
5280
|
+
};
|
|
5281
|
+
|
|
5282
|
+
/**
|
|
5283
|
+
* Decodes an Union message from the specified reader or buffer.
|
|
5284
|
+
* @function decode
|
|
5285
|
+
* @memberof flyteidl.core.Union
|
|
5286
|
+
* @static
|
|
5287
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5288
|
+
* @param {number} [length] Message length if known beforehand
|
|
5289
|
+
* @returns {flyteidl.core.Union} Union
|
|
5290
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5291
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5292
|
+
*/
|
|
5293
|
+
Union.decode = function decode(reader, length) {
|
|
5294
|
+
if (!(reader instanceof $Reader))
|
|
5295
|
+
reader = $Reader.create(reader);
|
|
5296
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Union();
|
|
5297
|
+
while (reader.pos < end) {
|
|
5298
|
+
let tag = reader.uint32();
|
|
5299
|
+
switch (tag >>> 3) {
|
|
5300
|
+
case 1:
|
|
5301
|
+
message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32());
|
|
5302
|
+
break;
|
|
5303
|
+
case 2:
|
|
5304
|
+
message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32());
|
|
5305
|
+
break;
|
|
5306
|
+
default:
|
|
5307
|
+
reader.skipType(tag & 7);
|
|
5308
|
+
break;
|
|
5309
|
+
}
|
|
5310
|
+
}
|
|
5311
|
+
return message;
|
|
5312
|
+
};
|
|
5313
|
+
|
|
5314
|
+
/**
|
|
5315
|
+
* Verifies an Union message.
|
|
5316
|
+
* @function verify
|
|
5317
|
+
* @memberof flyteidl.core.Union
|
|
5318
|
+
* @static
|
|
5319
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5320
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5321
|
+
*/
|
|
5322
|
+
Union.verify = function verify(message) {
|
|
5323
|
+
if (typeof message !== "object" || message === null)
|
|
5324
|
+
return "object expected";
|
|
5325
|
+
if (message.value != null && message.hasOwnProperty("value")) {
|
|
5326
|
+
let error = $root.flyteidl.core.Literal.verify(message.value);
|
|
5327
|
+
if (error)
|
|
5328
|
+
return "value." + error;
|
|
5329
|
+
}
|
|
5330
|
+
if (message.type != null && message.hasOwnProperty("type")) {
|
|
5331
|
+
let error = $root.flyteidl.core.LiteralType.verify(message.type);
|
|
5332
|
+
if (error)
|
|
5333
|
+
return "type." + error;
|
|
5334
|
+
}
|
|
5335
|
+
return null;
|
|
5336
|
+
};
|
|
5337
|
+
|
|
5338
|
+
return Union;
|
|
5339
|
+
})();
|
|
5340
|
+
|
|
5210
5341
|
core.StructuredDatasetMetadata = (function() {
|
|
5211
5342
|
|
|
5212
5343
|
/**
|
|
@@ -5462,6 +5593,7 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
5462
5593
|
* @property {flyteidl.core.IError|null} [error] Scalar error
|
|
5463
5594
|
* @property {google.protobuf.IStruct|null} [generic] Scalar generic
|
|
5464
5595
|
* @property {flyteidl.core.IStructuredDataset|null} [structuredDataset] Scalar structuredDataset
|
|
5596
|
+
* @property {flyteidl.core.IUnion|null} [union] Scalar union
|
|
5465
5597
|
*/
|
|
5466
5598
|
|
|
5467
5599
|
/**
|
|
@@ -5543,17 +5675,25 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
5543
5675
|
*/
|
|
5544
5676
|
Scalar.prototype.structuredDataset = null;
|
|
5545
5677
|
|
|
5678
|
+
/**
|
|
5679
|
+
* Scalar union.
|
|
5680
|
+
* @member {flyteidl.core.IUnion|null|undefined} union
|
|
5681
|
+
* @memberof flyteidl.core.Scalar
|
|
5682
|
+
* @instance
|
|
5683
|
+
*/
|
|
5684
|
+
Scalar.prototype.union = null;
|
|
5685
|
+
|
|
5546
5686
|
// OneOf field names bound to virtual getters and setters
|
|
5547
5687
|
let $oneOfFields;
|
|
5548
5688
|
|
|
5549
5689
|
/**
|
|
5550
5690
|
* Scalar value.
|
|
5551
|
-
* @member {"primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|undefined} value
|
|
5691
|
+
* @member {"primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"|undefined} value
|
|
5552
5692
|
* @memberof flyteidl.core.Scalar
|
|
5553
5693
|
* @instance
|
|
5554
5694
|
*/
|
|
5555
5695
|
Object.defineProperty(Scalar.prototype, "value", {
|
|
5556
|
-
get: $util.oneOfGetter($oneOfFields = ["primitive", "blob", "binary", "schema", "noneType", "error", "generic", "structuredDataset"]),
|
|
5696
|
+
get: $util.oneOfGetter($oneOfFields = ["primitive", "blob", "binary", "schema", "noneType", "error", "generic", "structuredDataset", "union"]),
|
|
5557
5697
|
set: $util.oneOfSetter($oneOfFields)
|
|
5558
5698
|
});
|
|
5559
5699
|
|
|
@@ -5597,6 +5737,8 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
5597
5737
|
$root.google.protobuf.Struct.encode(message.generic, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
5598
5738
|
if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset"))
|
|
5599
5739
|
$root.flyteidl.core.StructuredDataset.encode(message.structuredDataset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
5740
|
+
if (message.union != null && message.hasOwnProperty("union"))
|
|
5741
|
+
$root.flyteidl.core.Union.encode(message.union, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
5600
5742
|
return writer;
|
|
5601
5743
|
};
|
|
5602
5744
|
|
|
@@ -5642,6 +5784,9 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
5642
5784
|
case 8:
|
|
5643
5785
|
message.structuredDataset = $root.flyteidl.core.StructuredDataset.decode(reader, reader.uint32());
|
|
5644
5786
|
break;
|
|
5787
|
+
case 9:
|
|
5788
|
+
message.union = $root.flyteidl.core.Union.decode(reader, reader.uint32());
|
|
5789
|
+
break;
|
|
5645
5790
|
default:
|
|
5646
5791
|
reader.skipType(tag & 7);
|
|
5647
5792
|
break;
|
|
@@ -5740,6 +5885,16 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
5740
5885
|
return "structuredDataset." + error;
|
|
5741
5886
|
}
|
|
5742
5887
|
}
|
|
5888
|
+
if (message.union != null && message.hasOwnProperty("union")) {
|
|
5889
|
+
if (properties.value === 1)
|
|
5890
|
+
return "value: multiple values";
|
|
5891
|
+
properties.value = 1;
|
|
5892
|
+
{
|
|
5893
|
+
let error = $root.flyteidl.core.Union.verify(message.union);
|
|
5894
|
+
if (error)
|
|
5895
|
+
return "union." + error;
|
|
5896
|
+
}
|
|
5897
|
+
}
|
|
5743
5898
|
return null;
|
|
5744
5899
|
};
|
|
5745
5900
|
|
|
@@ -6433,6 +6588,118 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
6433
6588
|
return BindingDataMap;
|
|
6434
6589
|
})();
|
|
6435
6590
|
|
|
6591
|
+
core.UnionInfo = (function() {
|
|
6592
|
+
|
|
6593
|
+
/**
|
|
6594
|
+
* Properties of an UnionInfo.
|
|
6595
|
+
* @memberof flyteidl.core
|
|
6596
|
+
* @interface IUnionInfo
|
|
6597
|
+
* @property {flyteidl.core.ILiteralType|null} [targetType] UnionInfo targetType
|
|
6598
|
+
*/
|
|
6599
|
+
|
|
6600
|
+
/**
|
|
6601
|
+
* Constructs a new UnionInfo.
|
|
6602
|
+
* @memberof flyteidl.core
|
|
6603
|
+
* @classdesc Represents an UnionInfo.
|
|
6604
|
+
* @implements IUnionInfo
|
|
6605
|
+
* @constructor
|
|
6606
|
+
* @param {flyteidl.core.IUnionInfo=} [properties] Properties to set
|
|
6607
|
+
*/
|
|
6608
|
+
function UnionInfo(properties) {
|
|
6609
|
+
if (properties)
|
|
6610
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6611
|
+
if (properties[keys[i]] != null)
|
|
6612
|
+
this[keys[i]] = properties[keys[i]];
|
|
6613
|
+
}
|
|
6614
|
+
|
|
6615
|
+
/**
|
|
6616
|
+
* UnionInfo targetType.
|
|
6617
|
+
* @member {flyteidl.core.ILiteralType|null|undefined} targetType
|
|
6618
|
+
* @memberof flyteidl.core.UnionInfo
|
|
6619
|
+
* @instance
|
|
6620
|
+
*/
|
|
6621
|
+
UnionInfo.prototype.targetType = null;
|
|
6622
|
+
|
|
6623
|
+
/**
|
|
6624
|
+
* Creates a new UnionInfo instance using the specified properties.
|
|
6625
|
+
* @function create
|
|
6626
|
+
* @memberof flyteidl.core.UnionInfo
|
|
6627
|
+
* @static
|
|
6628
|
+
* @param {flyteidl.core.IUnionInfo=} [properties] Properties to set
|
|
6629
|
+
* @returns {flyteidl.core.UnionInfo} UnionInfo instance
|
|
6630
|
+
*/
|
|
6631
|
+
UnionInfo.create = function create(properties) {
|
|
6632
|
+
return new UnionInfo(properties);
|
|
6633
|
+
};
|
|
6634
|
+
|
|
6635
|
+
/**
|
|
6636
|
+
* Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages.
|
|
6637
|
+
* @function encode
|
|
6638
|
+
* @memberof flyteidl.core.UnionInfo
|
|
6639
|
+
* @static
|
|
6640
|
+
* @param {flyteidl.core.IUnionInfo} message UnionInfo message or plain object to encode
|
|
6641
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6642
|
+
* @returns {$protobuf.Writer} Writer
|
|
6643
|
+
*/
|
|
6644
|
+
UnionInfo.encode = function encode(message, writer) {
|
|
6645
|
+
if (!writer)
|
|
6646
|
+
writer = $Writer.create();
|
|
6647
|
+
if (message.targetType != null && message.hasOwnProperty("targetType"))
|
|
6648
|
+
$root.flyteidl.core.LiteralType.encode(message.targetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
6649
|
+
return writer;
|
|
6650
|
+
};
|
|
6651
|
+
|
|
6652
|
+
/**
|
|
6653
|
+
* Decodes an UnionInfo message from the specified reader or buffer.
|
|
6654
|
+
* @function decode
|
|
6655
|
+
* @memberof flyteidl.core.UnionInfo
|
|
6656
|
+
* @static
|
|
6657
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6658
|
+
* @param {number} [length] Message length if known beforehand
|
|
6659
|
+
* @returns {flyteidl.core.UnionInfo} UnionInfo
|
|
6660
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6661
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6662
|
+
*/
|
|
6663
|
+
UnionInfo.decode = function decode(reader, length) {
|
|
6664
|
+
if (!(reader instanceof $Reader))
|
|
6665
|
+
reader = $Reader.create(reader);
|
|
6666
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionInfo();
|
|
6667
|
+
while (reader.pos < end) {
|
|
6668
|
+
let tag = reader.uint32();
|
|
6669
|
+
switch (tag >>> 3) {
|
|
6670
|
+
case 1:
|
|
6671
|
+
message.targetType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32());
|
|
6672
|
+
break;
|
|
6673
|
+
default:
|
|
6674
|
+
reader.skipType(tag & 7);
|
|
6675
|
+
break;
|
|
6676
|
+
}
|
|
6677
|
+
}
|
|
6678
|
+
return message;
|
|
6679
|
+
};
|
|
6680
|
+
|
|
6681
|
+
/**
|
|
6682
|
+
* Verifies an UnionInfo message.
|
|
6683
|
+
* @function verify
|
|
6684
|
+
* @memberof flyteidl.core.UnionInfo
|
|
6685
|
+
* @static
|
|
6686
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6687
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6688
|
+
*/
|
|
6689
|
+
UnionInfo.verify = function verify(message) {
|
|
6690
|
+
if (typeof message !== "object" || message === null)
|
|
6691
|
+
return "object expected";
|
|
6692
|
+
if (message.targetType != null && message.hasOwnProperty("targetType")) {
|
|
6693
|
+
let error = $root.flyteidl.core.LiteralType.verify(message.targetType);
|
|
6694
|
+
if (error)
|
|
6695
|
+
return "targetType." + error;
|
|
6696
|
+
}
|
|
6697
|
+
return null;
|
|
6698
|
+
};
|
|
6699
|
+
|
|
6700
|
+
return UnionInfo;
|
|
6701
|
+
})();
|
|
6702
|
+
|
|
6436
6703
|
core.BindingData = (function() {
|
|
6437
6704
|
|
|
6438
6705
|
/**
|
|
@@ -6443,6 +6710,7 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
6443
6710
|
* @property {flyteidl.core.IBindingDataCollection|null} [collection] BindingData collection
|
|
6444
6711
|
* @property {flyteidl.core.IOutputReference|null} [promise] BindingData promise
|
|
6445
6712
|
* @property {flyteidl.core.IBindingDataMap|null} [map] BindingData map
|
|
6713
|
+
* @property {flyteidl.core.IUnionInfo|null} [union] BindingData union
|
|
6446
6714
|
*/
|
|
6447
6715
|
|
|
6448
6716
|
/**
|
|
@@ -6492,6 +6760,14 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
6492
6760
|
*/
|
|
6493
6761
|
BindingData.prototype.map = null;
|
|
6494
6762
|
|
|
6763
|
+
/**
|
|
6764
|
+
* BindingData union.
|
|
6765
|
+
* @member {flyteidl.core.IUnionInfo|null|undefined} union
|
|
6766
|
+
* @memberof flyteidl.core.BindingData
|
|
6767
|
+
* @instance
|
|
6768
|
+
*/
|
|
6769
|
+
BindingData.prototype.union = null;
|
|
6770
|
+
|
|
6495
6771
|
// OneOf field names bound to virtual getters and setters
|
|
6496
6772
|
let $oneOfFields;
|
|
6497
6773
|
|
|
@@ -6538,6 +6814,8 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
6538
6814
|
$root.flyteidl.core.OutputReference.encode(message.promise, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
6539
6815
|
if (message.map != null && message.hasOwnProperty("map"))
|
|
6540
6816
|
$root.flyteidl.core.BindingDataMap.encode(message.map, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
6817
|
+
if (message.union != null && message.hasOwnProperty("union"))
|
|
6818
|
+
$root.flyteidl.core.UnionInfo.encode(message.union, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
6541
6819
|
return writer;
|
|
6542
6820
|
};
|
|
6543
6821
|
|
|
@@ -6571,6 +6849,9 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
6571
6849
|
case 4:
|
|
6572
6850
|
message.map = $root.flyteidl.core.BindingDataMap.decode(reader, reader.uint32());
|
|
6573
6851
|
break;
|
|
6852
|
+
case 5:
|
|
6853
|
+
message.union = $root.flyteidl.core.UnionInfo.decode(reader, reader.uint32());
|
|
6854
|
+
break;
|
|
6574
6855
|
default:
|
|
6575
6856
|
reader.skipType(tag & 7);
|
|
6576
6857
|
break;
|
|
@@ -6629,6 +6910,11 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
6629
6910
|
return "map." + error;
|
|
6630
6911
|
}
|
|
6631
6912
|
}
|
|
6913
|
+
if (message.union != null && message.hasOwnProperty("union")) {
|
|
6914
|
+
let error = $root.flyteidl.core.UnionInfo.verify(message.union);
|
|
6915
|
+
if (error)
|
|
6916
|
+
return "union." + error;
|
|
6917
|
+
}
|
|
6632
6918
|
return null;
|
|
6633
6919
|
};
|
|
6634
6920
|
|
|
@@ -7873,6 +8159,236 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
7873
8159
|
return EnumType;
|
|
7874
8160
|
})();
|
|
7875
8161
|
|
|
8162
|
+
core.UnionType = (function() {
|
|
8163
|
+
|
|
8164
|
+
/**
|
|
8165
|
+
* Properties of an UnionType.
|
|
8166
|
+
* @memberof flyteidl.core
|
|
8167
|
+
* @interface IUnionType
|
|
8168
|
+
* @property {Array.<flyteidl.core.ILiteralType>|null} [variants] UnionType variants
|
|
8169
|
+
*/
|
|
8170
|
+
|
|
8171
|
+
/**
|
|
8172
|
+
* Constructs a new UnionType.
|
|
8173
|
+
* @memberof flyteidl.core
|
|
8174
|
+
* @classdesc Represents an UnionType.
|
|
8175
|
+
* @implements IUnionType
|
|
8176
|
+
* @constructor
|
|
8177
|
+
* @param {flyteidl.core.IUnionType=} [properties] Properties to set
|
|
8178
|
+
*/
|
|
8179
|
+
function UnionType(properties) {
|
|
8180
|
+
this.variants = [];
|
|
8181
|
+
if (properties)
|
|
8182
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8183
|
+
if (properties[keys[i]] != null)
|
|
8184
|
+
this[keys[i]] = properties[keys[i]];
|
|
8185
|
+
}
|
|
8186
|
+
|
|
8187
|
+
/**
|
|
8188
|
+
* UnionType variants.
|
|
8189
|
+
* @member {Array.<flyteidl.core.ILiteralType>} variants
|
|
8190
|
+
* @memberof flyteidl.core.UnionType
|
|
8191
|
+
* @instance
|
|
8192
|
+
*/
|
|
8193
|
+
UnionType.prototype.variants = $util.emptyArray;
|
|
8194
|
+
|
|
8195
|
+
/**
|
|
8196
|
+
* Creates a new UnionType instance using the specified properties.
|
|
8197
|
+
* @function create
|
|
8198
|
+
* @memberof flyteidl.core.UnionType
|
|
8199
|
+
* @static
|
|
8200
|
+
* @param {flyteidl.core.IUnionType=} [properties] Properties to set
|
|
8201
|
+
* @returns {flyteidl.core.UnionType} UnionType instance
|
|
8202
|
+
*/
|
|
8203
|
+
UnionType.create = function create(properties) {
|
|
8204
|
+
return new UnionType(properties);
|
|
8205
|
+
};
|
|
8206
|
+
|
|
8207
|
+
/**
|
|
8208
|
+
* Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages.
|
|
8209
|
+
* @function encode
|
|
8210
|
+
* @memberof flyteidl.core.UnionType
|
|
8211
|
+
* @static
|
|
8212
|
+
* @param {flyteidl.core.IUnionType} message UnionType message or plain object to encode
|
|
8213
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8214
|
+
* @returns {$protobuf.Writer} Writer
|
|
8215
|
+
*/
|
|
8216
|
+
UnionType.encode = function encode(message, writer) {
|
|
8217
|
+
if (!writer)
|
|
8218
|
+
writer = $Writer.create();
|
|
8219
|
+
if (message.variants != null && message.variants.length)
|
|
8220
|
+
for (let i = 0; i < message.variants.length; ++i)
|
|
8221
|
+
$root.flyteidl.core.LiteralType.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
8222
|
+
return writer;
|
|
8223
|
+
};
|
|
8224
|
+
|
|
8225
|
+
/**
|
|
8226
|
+
* Decodes an UnionType message from the specified reader or buffer.
|
|
8227
|
+
* @function decode
|
|
8228
|
+
* @memberof flyteidl.core.UnionType
|
|
8229
|
+
* @static
|
|
8230
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8231
|
+
* @param {number} [length] Message length if known beforehand
|
|
8232
|
+
* @returns {flyteidl.core.UnionType} UnionType
|
|
8233
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8234
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8235
|
+
*/
|
|
8236
|
+
UnionType.decode = function decode(reader, length) {
|
|
8237
|
+
if (!(reader instanceof $Reader))
|
|
8238
|
+
reader = $Reader.create(reader);
|
|
8239
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionType();
|
|
8240
|
+
while (reader.pos < end) {
|
|
8241
|
+
let tag = reader.uint32();
|
|
8242
|
+
switch (tag >>> 3) {
|
|
8243
|
+
case 1:
|
|
8244
|
+
if (!(message.variants && message.variants.length))
|
|
8245
|
+
message.variants = [];
|
|
8246
|
+
message.variants.push($root.flyteidl.core.LiteralType.decode(reader, reader.uint32()));
|
|
8247
|
+
break;
|
|
8248
|
+
default:
|
|
8249
|
+
reader.skipType(tag & 7);
|
|
8250
|
+
break;
|
|
8251
|
+
}
|
|
8252
|
+
}
|
|
8253
|
+
return message;
|
|
8254
|
+
};
|
|
8255
|
+
|
|
8256
|
+
/**
|
|
8257
|
+
* Verifies an UnionType message.
|
|
8258
|
+
* @function verify
|
|
8259
|
+
* @memberof flyteidl.core.UnionType
|
|
8260
|
+
* @static
|
|
8261
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8262
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8263
|
+
*/
|
|
8264
|
+
UnionType.verify = function verify(message) {
|
|
8265
|
+
if (typeof message !== "object" || message === null)
|
|
8266
|
+
return "object expected";
|
|
8267
|
+
if (message.variants != null && message.hasOwnProperty("variants")) {
|
|
8268
|
+
if (!Array.isArray(message.variants))
|
|
8269
|
+
return "variants: array expected";
|
|
8270
|
+
for (let i = 0; i < message.variants.length; ++i) {
|
|
8271
|
+
let error = $root.flyteidl.core.LiteralType.verify(message.variants[i]);
|
|
8272
|
+
if (error)
|
|
8273
|
+
return "variants." + error;
|
|
8274
|
+
}
|
|
8275
|
+
}
|
|
8276
|
+
return null;
|
|
8277
|
+
};
|
|
8278
|
+
|
|
8279
|
+
return UnionType;
|
|
8280
|
+
})();
|
|
8281
|
+
|
|
8282
|
+
core.TypeStructure = (function() {
|
|
8283
|
+
|
|
8284
|
+
/**
|
|
8285
|
+
* Properties of a TypeStructure.
|
|
8286
|
+
* @memberof flyteidl.core
|
|
8287
|
+
* @interface ITypeStructure
|
|
8288
|
+
* @property {string|null} [tag] TypeStructure tag
|
|
8289
|
+
*/
|
|
8290
|
+
|
|
8291
|
+
/**
|
|
8292
|
+
* Constructs a new TypeStructure.
|
|
8293
|
+
* @memberof flyteidl.core
|
|
8294
|
+
* @classdesc Represents a TypeStructure.
|
|
8295
|
+
* @implements ITypeStructure
|
|
8296
|
+
* @constructor
|
|
8297
|
+
* @param {flyteidl.core.ITypeStructure=} [properties] Properties to set
|
|
8298
|
+
*/
|
|
8299
|
+
function TypeStructure(properties) {
|
|
8300
|
+
if (properties)
|
|
8301
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8302
|
+
if (properties[keys[i]] != null)
|
|
8303
|
+
this[keys[i]] = properties[keys[i]];
|
|
8304
|
+
}
|
|
8305
|
+
|
|
8306
|
+
/**
|
|
8307
|
+
* TypeStructure tag.
|
|
8308
|
+
* @member {string} tag
|
|
8309
|
+
* @memberof flyteidl.core.TypeStructure
|
|
8310
|
+
* @instance
|
|
8311
|
+
*/
|
|
8312
|
+
TypeStructure.prototype.tag = "";
|
|
8313
|
+
|
|
8314
|
+
/**
|
|
8315
|
+
* Creates a new TypeStructure instance using the specified properties.
|
|
8316
|
+
* @function create
|
|
8317
|
+
* @memberof flyteidl.core.TypeStructure
|
|
8318
|
+
* @static
|
|
8319
|
+
* @param {flyteidl.core.ITypeStructure=} [properties] Properties to set
|
|
8320
|
+
* @returns {flyteidl.core.TypeStructure} TypeStructure instance
|
|
8321
|
+
*/
|
|
8322
|
+
TypeStructure.create = function create(properties) {
|
|
8323
|
+
return new TypeStructure(properties);
|
|
8324
|
+
};
|
|
8325
|
+
|
|
8326
|
+
/**
|
|
8327
|
+
* Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages.
|
|
8328
|
+
* @function encode
|
|
8329
|
+
* @memberof flyteidl.core.TypeStructure
|
|
8330
|
+
* @static
|
|
8331
|
+
* @param {flyteidl.core.ITypeStructure} message TypeStructure message or plain object to encode
|
|
8332
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8333
|
+
* @returns {$protobuf.Writer} Writer
|
|
8334
|
+
*/
|
|
8335
|
+
TypeStructure.encode = function encode(message, writer) {
|
|
8336
|
+
if (!writer)
|
|
8337
|
+
writer = $Writer.create();
|
|
8338
|
+
if (message.tag != null && message.hasOwnProperty("tag"))
|
|
8339
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag);
|
|
8340
|
+
return writer;
|
|
8341
|
+
};
|
|
8342
|
+
|
|
8343
|
+
/**
|
|
8344
|
+
* Decodes a TypeStructure message from the specified reader or buffer.
|
|
8345
|
+
* @function decode
|
|
8346
|
+
* @memberof flyteidl.core.TypeStructure
|
|
8347
|
+
* @static
|
|
8348
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8349
|
+
* @param {number} [length] Message length if known beforehand
|
|
8350
|
+
* @returns {flyteidl.core.TypeStructure} TypeStructure
|
|
8351
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8352
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8353
|
+
*/
|
|
8354
|
+
TypeStructure.decode = function decode(reader, length) {
|
|
8355
|
+
if (!(reader instanceof $Reader))
|
|
8356
|
+
reader = $Reader.create(reader);
|
|
8357
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeStructure();
|
|
8358
|
+
while (reader.pos < end) {
|
|
8359
|
+
let tag = reader.uint32();
|
|
8360
|
+
switch (tag >>> 3) {
|
|
8361
|
+
case 1:
|
|
8362
|
+
message.tag = reader.string();
|
|
8363
|
+
break;
|
|
8364
|
+
default:
|
|
8365
|
+
reader.skipType(tag & 7);
|
|
8366
|
+
break;
|
|
8367
|
+
}
|
|
8368
|
+
}
|
|
8369
|
+
return message;
|
|
8370
|
+
};
|
|
8371
|
+
|
|
8372
|
+
/**
|
|
8373
|
+
* Verifies a TypeStructure message.
|
|
8374
|
+
* @function verify
|
|
8375
|
+
* @memberof flyteidl.core.TypeStructure
|
|
8376
|
+
* @static
|
|
8377
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8378
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8379
|
+
*/
|
|
8380
|
+
TypeStructure.verify = function verify(message) {
|
|
8381
|
+
if (typeof message !== "object" || message === null)
|
|
8382
|
+
return "object expected";
|
|
8383
|
+
if (message.tag != null && message.hasOwnProperty("tag"))
|
|
8384
|
+
if (!$util.isString(message.tag))
|
|
8385
|
+
return "tag: string expected";
|
|
8386
|
+
return null;
|
|
8387
|
+
};
|
|
8388
|
+
|
|
8389
|
+
return TypeStructure;
|
|
8390
|
+
})();
|
|
8391
|
+
|
|
7876
8392
|
core.TypeAnnotation = (function() {
|
|
7877
8393
|
|
|
7878
8394
|
/**
|
|
@@ -7998,8 +8514,10 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
7998
8514
|
* @property {flyteidl.core.IBlobType|null} [blob] LiteralType blob
|
|
7999
8515
|
* @property {flyteidl.core.IEnumType|null} [enumType] LiteralType enumType
|
|
8000
8516
|
* @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] LiteralType structuredDatasetType
|
|
8517
|
+
* @property {flyteidl.core.IUnionType|null} [unionType] LiteralType unionType
|
|
8001
8518
|
* @property {google.protobuf.IStruct|null} [metadata] LiteralType metadata
|
|
8002
8519
|
* @property {flyteidl.core.ITypeAnnotation|null} [annotation] LiteralType annotation
|
|
8520
|
+
* @property {flyteidl.core.ITypeStructure|null} [structure] LiteralType structure
|
|
8003
8521
|
*/
|
|
8004
8522
|
|
|
8005
8523
|
/**
|
|
@@ -8073,6 +8591,14 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
8073
8591
|
*/
|
|
8074
8592
|
LiteralType.prototype.structuredDatasetType = null;
|
|
8075
8593
|
|
|
8594
|
+
/**
|
|
8595
|
+
* LiteralType unionType.
|
|
8596
|
+
* @member {flyteidl.core.IUnionType|null|undefined} unionType
|
|
8597
|
+
* @memberof flyteidl.core.LiteralType
|
|
8598
|
+
* @instance
|
|
8599
|
+
*/
|
|
8600
|
+
LiteralType.prototype.unionType = null;
|
|
8601
|
+
|
|
8076
8602
|
/**
|
|
8077
8603
|
* LiteralType metadata.
|
|
8078
8604
|
* @member {google.protobuf.IStruct|null|undefined} metadata
|
|
@@ -8089,17 +8615,25 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
8089
8615
|
*/
|
|
8090
8616
|
LiteralType.prototype.annotation = null;
|
|
8091
8617
|
|
|
8618
|
+
/**
|
|
8619
|
+
* LiteralType structure.
|
|
8620
|
+
* @member {flyteidl.core.ITypeStructure|null|undefined} structure
|
|
8621
|
+
* @memberof flyteidl.core.LiteralType
|
|
8622
|
+
* @instance
|
|
8623
|
+
*/
|
|
8624
|
+
LiteralType.prototype.structure = null;
|
|
8625
|
+
|
|
8092
8626
|
// OneOf field names bound to virtual getters and setters
|
|
8093
8627
|
let $oneOfFields;
|
|
8094
8628
|
|
|
8095
8629
|
/**
|
|
8096
8630
|
* LiteralType type.
|
|
8097
|
-
* @member {"simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|undefined} type
|
|
8631
|
+
* @member {"simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"|undefined} type
|
|
8098
8632
|
* @memberof flyteidl.core.LiteralType
|
|
8099
8633
|
* @instance
|
|
8100
8634
|
*/
|
|
8101
8635
|
Object.defineProperty(LiteralType.prototype, "type", {
|
|
8102
|
-
get: $util.oneOfGetter($oneOfFields = ["simple", "schema", "collectionType", "mapValueType", "blob", "enumType", "structuredDatasetType"]),
|
|
8636
|
+
get: $util.oneOfGetter($oneOfFields = ["simple", "schema", "collectionType", "mapValueType", "blob", "enumType", "structuredDatasetType", "unionType"]),
|
|
8103
8637
|
set: $util.oneOfSetter($oneOfFields)
|
|
8104
8638
|
});
|
|
8105
8639
|
|
|
@@ -8145,6 +8679,10 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
8145
8679
|
$root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
8146
8680
|
if (message.annotation != null && message.hasOwnProperty("annotation"))
|
|
8147
8681
|
$root.flyteidl.core.TypeAnnotation.encode(message.annotation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
8682
|
+
if (message.unionType != null && message.hasOwnProperty("unionType"))
|
|
8683
|
+
$root.flyteidl.core.UnionType.encode(message.unionType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
8684
|
+
if (message.structure != null && message.hasOwnProperty("structure"))
|
|
8685
|
+
$root.flyteidl.core.TypeStructure.encode(message.structure, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
8148
8686
|
return writer;
|
|
8149
8687
|
};
|
|
8150
8688
|
|
|
@@ -8187,12 +8725,18 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
8187
8725
|
case 8:
|
|
8188
8726
|
message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32());
|
|
8189
8727
|
break;
|
|
8728
|
+
case 10:
|
|
8729
|
+
message.unionType = $root.flyteidl.core.UnionType.decode(reader, reader.uint32());
|
|
8730
|
+
break;
|
|
8190
8731
|
case 6:
|
|
8191
8732
|
message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32());
|
|
8192
8733
|
break;
|
|
8193
8734
|
case 9:
|
|
8194
8735
|
message.annotation = $root.flyteidl.core.TypeAnnotation.decode(reader, reader.uint32());
|
|
8195
8736
|
break;
|
|
8737
|
+
case 11:
|
|
8738
|
+
message.structure = $root.flyteidl.core.TypeStructure.decode(reader, reader.uint32());
|
|
8739
|
+
break;
|
|
8196
8740
|
default:
|
|
8197
8741
|
reader.skipType(tag & 7);
|
|
8198
8742
|
break;
|
|
@@ -8291,6 +8835,16 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
8291
8835
|
return "structuredDatasetType." + error;
|
|
8292
8836
|
}
|
|
8293
8837
|
}
|
|
8838
|
+
if (message.unionType != null && message.hasOwnProperty("unionType")) {
|
|
8839
|
+
if (properties.type === 1)
|
|
8840
|
+
return "type: multiple values";
|
|
8841
|
+
properties.type = 1;
|
|
8842
|
+
{
|
|
8843
|
+
let error = $root.flyteidl.core.UnionType.verify(message.unionType);
|
|
8844
|
+
if (error)
|
|
8845
|
+
return "unionType." + error;
|
|
8846
|
+
}
|
|
8847
|
+
}
|
|
8294
8848
|
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
8295
8849
|
let error = $root.google.protobuf.Struct.verify(message.metadata);
|
|
8296
8850
|
if (error)
|
|
@@ -8301,6 +8855,11 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
8301
8855
|
if (error)
|
|
8302
8856
|
return "annotation." + error;
|
|
8303
8857
|
}
|
|
8858
|
+
if (message.structure != null && message.hasOwnProperty("structure")) {
|
|
8859
|
+
let error = $root.flyteidl.core.TypeStructure.verify(message.structure);
|
|
8860
|
+
if (error)
|
|
8861
|
+
return "structure." + error;
|
|
8862
|
+
}
|
|
8304
8863
|
return null;
|
|
8305
8864
|
};
|
|
8306
8865
|
|
|
@@ -22689,6 +23248,7 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
22689
23248
|
* @property {flyteidl.admin.IAuthRole|null} [authRole] ExecutionSpec authRole
|
|
22690
23249
|
* @property {flyteidl.core.IQualityOfService|null} [qualityOfService] ExecutionSpec qualityOfService
|
|
22691
23250
|
* @property {number|null} [maxParallelism] ExecutionSpec maxParallelism
|
|
23251
|
+
* @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] ExecutionSpec rawOutputDataConfig
|
|
22692
23252
|
*/
|
|
22693
23253
|
|
|
22694
23254
|
/**
|
|
@@ -22794,6 +23354,14 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
22794
23354
|
*/
|
|
22795
23355
|
ExecutionSpec.prototype.maxParallelism = 0;
|
|
22796
23356
|
|
|
23357
|
+
/**
|
|
23358
|
+
* ExecutionSpec rawOutputDataConfig.
|
|
23359
|
+
* @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig
|
|
23360
|
+
* @memberof flyteidl.admin.ExecutionSpec
|
|
23361
|
+
* @instance
|
|
23362
|
+
*/
|
|
23363
|
+
ExecutionSpec.prototype.rawOutputDataConfig = null;
|
|
23364
|
+
|
|
22797
23365
|
// OneOf field names bound to virtual getters and setters
|
|
22798
23366
|
let $oneOfFields;
|
|
22799
23367
|
|
|
@@ -22854,6 +23422,8 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
22854
23422
|
$root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
22855
23423
|
if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism"))
|
|
22856
23424
|
writer.uint32(/* id 18, wireType 0 =*/144).int32(message.maxParallelism);
|
|
23425
|
+
if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig"))
|
|
23426
|
+
$root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
22857
23427
|
return writer;
|
|
22858
23428
|
};
|
|
22859
23429
|
|
|
@@ -22908,6 +23478,9 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
22908
23478
|
case 18:
|
|
22909
23479
|
message.maxParallelism = reader.int32();
|
|
22910
23480
|
break;
|
|
23481
|
+
case 19:
|
|
23482
|
+
message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32());
|
|
23483
|
+
break;
|
|
22911
23484
|
default:
|
|
22912
23485
|
reader.skipType(tag & 7);
|
|
22913
23486
|
break;
|
|
@@ -22986,6 +23559,11 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
22986
23559
|
if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism"))
|
|
22987
23560
|
if (!$util.isInteger(message.maxParallelism))
|
|
22988
23561
|
return "maxParallelism: integer expected";
|
|
23562
|
+
if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) {
|
|
23563
|
+
let error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig);
|
|
23564
|
+
if (error)
|
|
23565
|
+
return "rawOutputDataConfig." + error;
|
|
23566
|
+
}
|
|
22989
23567
|
return null;
|
|
22990
23568
|
};
|
|
22991
23569
|
|