@flyteorg/flyteidl 0.21.16 → 0.21.20

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.
@@ -2177,6 +2177,116 @@ export namespace flyteidl {
2177
2177
  public static verify(message: { [k: string]: any }): (string|null);
2178
2178
  }
2179
2179
 
2180
+ /** Properties of a StructuredDatasetMetadata. */
2181
+ interface IStructuredDatasetMetadata {
2182
+
2183
+ /** StructuredDatasetMetadata structuredDatasetType */
2184
+ structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null);
2185
+ }
2186
+
2187
+ /** Represents a StructuredDatasetMetadata. */
2188
+ class StructuredDatasetMetadata implements IStructuredDatasetMetadata {
2189
+
2190
+ /**
2191
+ * Constructs a new StructuredDatasetMetadata.
2192
+ * @param [properties] Properties to set
2193
+ */
2194
+ constructor(properties?: flyteidl.core.IStructuredDatasetMetadata);
2195
+
2196
+ /** StructuredDatasetMetadata structuredDatasetType. */
2197
+ public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null);
2198
+
2199
+ /**
2200
+ * Creates a new StructuredDatasetMetadata instance using the specified properties.
2201
+ * @param [properties] Properties to set
2202
+ * @returns StructuredDatasetMetadata instance
2203
+ */
2204
+ public static create(properties?: flyteidl.core.IStructuredDatasetMetadata): flyteidl.core.StructuredDatasetMetadata;
2205
+
2206
+ /**
2207
+ * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages.
2208
+ * @param message StructuredDatasetMetadata message or plain object to encode
2209
+ * @param [writer] Writer to encode to
2210
+ * @returns Writer
2211
+ */
2212
+ public static encode(message: flyteidl.core.IStructuredDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
2213
+
2214
+ /**
2215
+ * Decodes a StructuredDatasetMetadata message from the specified reader or buffer.
2216
+ * @param reader Reader or buffer to decode from
2217
+ * @param [length] Message length if known beforehand
2218
+ * @returns StructuredDatasetMetadata
2219
+ * @throws {Error} If the payload is not a reader or valid buffer
2220
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2221
+ */
2222
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetMetadata;
2223
+
2224
+ /**
2225
+ * Verifies a StructuredDatasetMetadata message.
2226
+ * @param message Plain object to verify
2227
+ * @returns `null` if valid, otherwise the reason why it is not
2228
+ */
2229
+ public static verify(message: { [k: string]: any }): (string|null);
2230
+ }
2231
+
2232
+ /** Properties of a StructuredDataset. */
2233
+ interface IStructuredDataset {
2234
+
2235
+ /** StructuredDataset uri */
2236
+ uri?: (string|null);
2237
+
2238
+ /** StructuredDataset metadata */
2239
+ metadata?: (flyteidl.core.IStructuredDatasetMetadata|null);
2240
+ }
2241
+
2242
+ /** Represents a StructuredDataset. */
2243
+ class StructuredDataset implements IStructuredDataset {
2244
+
2245
+ /**
2246
+ * Constructs a new StructuredDataset.
2247
+ * @param [properties] Properties to set
2248
+ */
2249
+ constructor(properties?: flyteidl.core.IStructuredDataset);
2250
+
2251
+ /** StructuredDataset uri. */
2252
+ public uri: string;
2253
+
2254
+ /** StructuredDataset metadata. */
2255
+ public metadata?: (flyteidl.core.IStructuredDatasetMetadata|null);
2256
+
2257
+ /**
2258
+ * Creates a new StructuredDataset instance using the specified properties.
2259
+ * @param [properties] Properties to set
2260
+ * @returns StructuredDataset instance
2261
+ */
2262
+ public static create(properties?: flyteidl.core.IStructuredDataset): flyteidl.core.StructuredDataset;
2263
+
2264
+ /**
2265
+ * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages.
2266
+ * @param message StructuredDataset message or plain object to encode
2267
+ * @param [writer] Writer to encode to
2268
+ * @returns Writer
2269
+ */
2270
+ public static encode(message: flyteidl.core.IStructuredDataset, writer?: $protobuf.Writer): $protobuf.Writer;
2271
+
2272
+ /**
2273
+ * Decodes a StructuredDataset message from the specified reader or buffer.
2274
+ * @param reader Reader or buffer to decode from
2275
+ * @param [length] Message length if known beforehand
2276
+ * @returns StructuredDataset
2277
+ * @throws {Error} If the payload is not a reader or valid buffer
2278
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2279
+ */
2280
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDataset;
2281
+
2282
+ /**
2283
+ * Verifies a StructuredDataset message.
2284
+ * @param message Plain object to verify
2285
+ * @returns `null` if valid, otherwise the reason why it is not
2286
+ */
2287
+ public static verify(message: { [k: string]: any }): (string|null);
2288
+ }
2289
+
2180
2290
  /** Properties of a Scalar. */
2181
2291
  interface IScalar {
2182
2292
 
@@ -2200,6 +2310,9 @@ export namespace flyteidl {
2200
2310
 
2201
2311
  /** Scalar generic */
2202
2312
  generic?: (google.protobuf.IStruct|null);
2313
+
2314
+ /** Scalar structuredDataset */
2315
+ structuredDataset?: (flyteidl.core.IStructuredDataset|null);
2203
2316
  }
2204
2317
 
2205
2318
  /** Represents a Scalar. */
@@ -2232,8 +2345,11 @@ export namespace flyteidl {
2232
2345
  /** Scalar generic. */
2233
2346
  public generic?: (google.protobuf.IStruct|null);
2234
2347
 
2348
+ /** Scalar structuredDataset. */
2349
+ public structuredDataset?: (flyteidl.core.IStructuredDataset|null);
2350
+
2235
2351
  /** Scalar value. */
2236
- public value?: ("primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic");
2352
+ public value?: ("primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset");
2237
2353
 
2238
2354
  /**
2239
2355
  * Creates a new Scalar instance using the specified properties.
@@ -2924,6 +3040,137 @@ export namespace flyteidl {
2924
3040
  }
2925
3041
  }
2926
3042
 
3043
+ /** Properties of a StructuredDatasetType. */
3044
+ interface IStructuredDatasetType {
3045
+
3046
+ /** StructuredDatasetType columns */
3047
+ columns?: (flyteidl.core.StructuredDatasetType.IDatasetColumn[]|null);
3048
+
3049
+ /** StructuredDatasetType format */
3050
+ format?: (string|null);
3051
+
3052
+ /** StructuredDatasetType externalSchemaType */
3053
+ externalSchemaType?: (string|null);
3054
+
3055
+ /** StructuredDatasetType externalSchemaBytes */
3056
+ externalSchemaBytes?: (Uint8Array|null);
3057
+ }
3058
+
3059
+ /** Represents a StructuredDatasetType. */
3060
+ class StructuredDatasetType implements IStructuredDatasetType {
3061
+
3062
+ /**
3063
+ * Constructs a new StructuredDatasetType.
3064
+ * @param [properties] Properties to set
3065
+ */
3066
+ constructor(properties?: flyteidl.core.IStructuredDatasetType);
3067
+
3068
+ /** StructuredDatasetType columns. */
3069
+ public columns: flyteidl.core.StructuredDatasetType.IDatasetColumn[];
3070
+
3071
+ /** StructuredDatasetType format. */
3072
+ public format: string;
3073
+
3074
+ /** StructuredDatasetType externalSchemaType. */
3075
+ public externalSchemaType: string;
3076
+
3077
+ /** StructuredDatasetType externalSchemaBytes. */
3078
+ public externalSchemaBytes: Uint8Array;
3079
+
3080
+ /**
3081
+ * Creates a new StructuredDatasetType instance using the specified properties.
3082
+ * @param [properties] Properties to set
3083
+ * @returns StructuredDatasetType instance
3084
+ */
3085
+ public static create(properties?: flyteidl.core.IStructuredDatasetType): flyteidl.core.StructuredDatasetType;
3086
+
3087
+ /**
3088
+ * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages.
3089
+ * @param message StructuredDatasetType message or plain object to encode
3090
+ * @param [writer] Writer to encode to
3091
+ * @returns Writer
3092
+ */
3093
+ public static encode(message: flyteidl.core.IStructuredDatasetType, writer?: $protobuf.Writer): $protobuf.Writer;
3094
+
3095
+ /**
3096
+ * Decodes a StructuredDatasetType message from the specified reader or buffer.
3097
+ * @param reader Reader or buffer to decode from
3098
+ * @param [length] Message length if known beforehand
3099
+ * @returns StructuredDatasetType
3100
+ * @throws {Error} If the payload is not a reader or valid buffer
3101
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3102
+ */
3103
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType;
3104
+
3105
+ /**
3106
+ * Verifies a StructuredDatasetType message.
3107
+ * @param message Plain object to verify
3108
+ * @returns `null` if valid, otherwise the reason why it is not
3109
+ */
3110
+ public static verify(message: { [k: string]: any }): (string|null);
3111
+ }
3112
+
3113
+ namespace StructuredDatasetType {
3114
+
3115
+ /** Properties of a DatasetColumn. */
3116
+ interface IDatasetColumn {
3117
+
3118
+ /** DatasetColumn name */
3119
+ name?: (string|null);
3120
+
3121
+ /** DatasetColumn literalType */
3122
+ literalType?: (flyteidl.core.ILiteralType|null);
3123
+ }
3124
+
3125
+ /** Represents a DatasetColumn. */
3126
+ class DatasetColumn implements IDatasetColumn {
3127
+
3128
+ /**
3129
+ * Constructs a new DatasetColumn.
3130
+ * @param [properties] Properties to set
3131
+ */
3132
+ constructor(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn);
3133
+
3134
+ /** DatasetColumn name. */
3135
+ public name: string;
3136
+
3137
+ /** DatasetColumn literalType. */
3138
+ public literalType?: (flyteidl.core.ILiteralType|null);
3139
+
3140
+ /**
3141
+ * Creates a new DatasetColumn instance using the specified properties.
3142
+ * @param [properties] Properties to set
3143
+ * @returns DatasetColumn instance
3144
+ */
3145
+ public static create(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn): flyteidl.core.StructuredDatasetType.DatasetColumn;
3146
+
3147
+ /**
3148
+ * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages.
3149
+ * @param message DatasetColumn message or plain object to encode
3150
+ * @param [writer] Writer to encode to
3151
+ * @returns Writer
3152
+ */
3153
+ public static encode(message: flyteidl.core.StructuredDatasetType.IDatasetColumn, writer?: $protobuf.Writer): $protobuf.Writer;
3154
+
3155
+ /**
3156
+ * Decodes a DatasetColumn message from the specified reader or buffer.
3157
+ * @param reader Reader or buffer to decode from
3158
+ * @param [length] Message length if known beforehand
3159
+ * @returns DatasetColumn
3160
+ * @throws {Error} If the payload is not a reader or valid buffer
3161
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3162
+ */
3163
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType.DatasetColumn;
3164
+
3165
+ /**
3166
+ * Verifies a DatasetColumn message.
3167
+ * @param message Plain object to verify
3168
+ * @returns `null` if valid, otherwise the reason why it is not
3169
+ */
3170
+ public static verify(message: { [k: string]: any }): (string|null);
3171
+ }
3172
+ }
3173
+
2927
3174
  /** Properties of a BlobType. */
2928
3175
  interface IBlobType {
2929
3176
 
@@ -3064,6 +3311,9 @@ export namespace flyteidl {
3064
3311
  /** LiteralType enumType */
3065
3312
  enumType?: (flyteidl.core.IEnumType|null);
3066
3313
 
3314
+ /** LiteralType structuredDatasetType */
3315
+ structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null);
3316
+
3067
3317
  /** LiteralType metadata */
3068
3318
  metadata?: (google.protobuf.IStruct|null);
3069
3319
  }
@@ -3095,11 +3345,14 @@ export namespace flyteidl {
3095
3345
  /** LiteralType enumType. */
3096
3346
  public enumType?: (flyteidl.core.IEnumType|null);
3097
3347
 
3348
+ /** LiteralType structuredDatasetType. */
3349
+ public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null);
3350
+
3098
3351
  /** LiteralType metadata. */
3099
3352
  public metadata?: (google.protobuf.IStruct|null);
3100
3353
 
3101
3354
  /** LiteralType type. */
3102
- public type?: ("simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType");
3355
+ public type?: ("simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType");
3103
3356
 
3104
3357
  /**
3105
3358
  * Creates a new LiteralType instance using the specified properties.
@@ -5207,6 +5207,247 @@ export const flyteidl = $root.flyteidl = (() => {
5207
5207
  return Schema;
5208
5208
  })();
5209
5209
 
5210
+ core.StructuredDatasetMetadata = (function() {
5211
+
5212
+ /**
5213
+ * Properties of a StructuredDatasetMetadata.
5214
+ * @memberof flyteidl.core
5215
+ * @interface IStructuredDatasetMetadata
5216
+ * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] StructuredDatasetMetadata structuredDatasetType
5217
+ */
5218
+
5219
+ /**
5220
+ * Constructs a new StructuredDatasetMetadata.
5221
+ * @memberof flyteidl.core
5222
+ * @classdesc Represents a StructuredDatasetMetadata.
5223
+ * @implements IStructuredDatasetMetadata
5224
+ * @constructor
5225
+ * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set
5226
+ */
5227
+ function StructuredDatasetMetadata(properties) {
5228
+ if (properties)
5229
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
5230
+ if (properties[keys[i]] != null)
5231
+ this[keys[i]] = properties[keys[i]];
5232
+ }
5233
+
5234
+ /**
5235
+ * StructuredDatasetMetadata structuredDatasetType.
5236
+ * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType
5237
+ * @memberof flyteidl.core.StructuredDatasetMetadata
5238
+ * @instance
5239
+ */
5240
+ StructuredDatasetMetadata.prototype.structuredDatasetType = null;
5241
+
5242
+ /**
5243
+ * Creates a new StructuredDatasetMetadata instance using the specified properties.
5244
+ * @function create
5245
+ * @memberof flyteidl.core.StructuredDatasetMetadata
5246
+ * @static
5247
+ * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set
5248
+ * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata instance
5249
+ */
5250
+ StructuredDatasetMetadata.create = function create(properties) {
5251
+ return new StructuredDatasetMetadata(properties);
5252
+ };
5253
+
5254
+ /**
5255
+ * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages.
5256
+ * @function encode
5257
+ * @memberof flyteidl.core.StructuredDatasetMetadata
5258
+ * @static
5259
+ * @param {flyteidl.core.IStructuredDatasetMetadata} message StructuredDatasetMetadata message or plain object to encode
5260
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5261
+ * @returns {$protobuf.Writer} Writer
5262
+ */
5263
+ StructuredDatasetMetadata.encode = function encode(message, writer) {
5264
+ if (!writer)
5265
+ writer = $Writer.create();
5266
+ if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType"))
5267
+ $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
5268
+ return writer;
5269
+ };
5270
+
5271
+ /**
5272
+ * Decodes a StructuredDatasetMetadata message from the specified reader or buffer.
5273
+ * @function decode
5274
+ * @memberof flyteidl.core.StructuredDatasetMetadata
5275
+ * @static
5276
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5277
+ * @param {number} [length] Message length if known beforehand
5278
+ * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata
5279
+ * @throws {Error} If the payload is not a reader or valid buffer
5280
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5281
+ */
5282
+ StructuredDatasetMetadata.decode = function decode(reader, length) {
5283
+ if (!(reader instanceof $Reader))
5284
+ reader = $Reader.create(reader);
5285
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetMetadata();
5286
+ while (reader.pos < end) {
5287
+ let tag = reader.uint32();
5288
+ switch (tag >>> 3) {
5289
+ case 1:
5290
+ message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32());
5291
+ break;
5292
+ default:
5293
+ reader.skipType(tag & 7);
5294
+ break;
5295
+ }
5296
+ }
5297
+ return message;
5298
+ };
5299
+
5300
+ /**
5301
+ * Verifies a StructuredDatasetMetadata message.
5302
+ * @function verify
5303
+ * @memberof flyteidl.core.StructuredDatasetMetadata
5304
+ * @static
5305
+ * @param {Object.<string,*>} message Plain object to verify
5306
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
5307
+ */
5308
+ StructuredDatasetMetadata.verify = function verify(message) {
5309
+ if (typeof message !== "object" || message === null)
5310
+ return "object expected";
5311
+ if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) {
5312
+ let error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType);
5313
+ if (error)
5314
+ return "structuredDatasetType." + error;
5315
+ }
5316
+ return null;
5317
+ };
5318
+
5319
+ return StructuredDatasetMetadata;
5320
+ })();
5321
+
5322
+ core.StructuredDataset = (function() {
5323
+
5324
+ /**
5325
+ * Properties of a StructuredDataset.
5326
+ * @memberof flyteidl.core
5327
+ * @interface IStructuredDataset
5328
+ * @property {string|null} [uri] StructuredDataset uri
5329
+ * @property {flyteidl.core.IStructuredDatasetMetadata|null} [metadata] StructuredDataset metadata
5330
+ */
5331
+
5332
+ /**
5333
+ * Constructs a new StructuredDataset.
5334
+ * @memberof flyteidl.core
5335
+ * @classdesc Represents a StructuredDataset.
5336
+ * @implements IStructuredDataset
5337
+ * @constructor
5338
+ * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set
5339
+ */
5340
+ function StructuredDataset(properties) {
5341
+ if (properties)
5342
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
5343
+ if (properties[keys[i]] != null)
5344
+ this[keys[i]] = properties[keys[i]];
5345
+ }
5346
+
5347
+ /**
5348
+ * StructuredDataset uri.
5349
+ * @member {string} uri
5350
+ * @memberof flyteidl.core.StructuredDataset
5351
+ * @instance
5352
+ */
5353
+ StructuredDataset.prototype.uri = "";
5354
+
5355
+ /**
5356
+ * StructuredDataset metadata.
5357
+ * @member {flyteidl.core.IStructuredDatasetMetadata|null|undefined} metadata
5358
+ * @memberof flyteidl.core.StructuredDataset
5359
+ * @instance
5360
+ */
5361
+ StructuredDataset.prototype.metadata = null;
5362
+
5363
+ /**
5364
+ * Creates a new StructuredDataset instance using the specified properties.
5365
+ * @function create
5366
+ * @memberof flyteidl.core.StructuredDataset
5367
+ * @static
5368
+ * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set
5369
+ * @returns {flyteidl.core.StructuredDataset} StructuredDataset instance
5370
+ */
5371
+ StructuredDataset.create = function create(properties) {
5372
+ return new StructuredDataset(properties);
5373
+ };
5374
+
5375
+ /**
5376
+ * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages.
5377
+ * @function encode
5378
+ * @memberof flyteidl.core.StructuredDataset
5379
+ * @static
5380
+ * @param {flyteidl.core.IStructuredDataset} message StructuredDataset message or plain object to encode
5381
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5382
+ * @returns {$protobuf.Writer} Writer
5383
+ */
5384
+ StructuredDataset.encode = function encode(message, writer) {
5385
+ if (!writer)
5386
+ writer = $Writer.create();
5387
+ if (message.uri != null && message.hasOwnProperty("uri"))
5388
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri);
5389
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
5390
+ $root.flyteidl.core.StructuredDatasetMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
5391
+ return writer;
5392
+ };
5393
+
5394
+ /**
5395
+ * Decodes a StructuredDataset message from the specified reader or buffer.
5396
+ * @function decode
5397
+ * @memberof flyteidl.core.StructuredDataset
5398
+ * @static
5399
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5400
+ * @param {number} [length] Message length if known beforehand
5401
+ * @returns {flyteidl.core.StructuredDataset} StructuredDataset
5402
+ * @throws {Error} If the payload is not a reader or valid buffer
5403
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5404
+ */
5405
+ StructuredDataset.decode = function decode(reader, length) {
5406
+ if (!(reader instanceof $Reader))
5407
+ reader = $Reader.create(reader);
5408
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDataset();
5409
+ while (reader.pos < end) {
5410
+ let tag = reader.uint32();
5411
+ switch (tag >>> 3) {
5412
+ case 1:
5413
+ message.uri = reader.string();
5414
+ break;
5415
+ case 2:
5416
+ message.metadata = $root.flyteidl.core.StructuredDatasetMetadata.decode(reader, reader.uint32());
5417
+ break;
5418
+ default:
5419
+ reader.skipType(tag & 7);
5420
+ break;
5421
+ }
5422
+ }
5423
+ return message;
5424
+ };
5425
+
5426
+ /**
5427
+ * Verifies a StructuredDataset message.
5428
+ * @function verify
5429
+ * @memberof flyteidl.core.StructuredDataset
5430
+ * @static
5431
+ * @param {Object.<string,*>} message Plain object to verify
5432
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
5433
+ */
5434
+ StructuredDataset.verify = function verify(message) {
5435
+ if (typeof message !== "object" || message === null)
5436
+ return "object expected";
5437
+ if (message.uri != null && message.hasOwnProperty("uri"))
5438
+ if (!$util.isString(message.uri))
5439
+ return "uri: string expected";
5440
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
5441
+ let error = $root.flyteidl.core.StructuredDatasetMetadata.verify(message.metadata);
5442
+ if (error)
5443
+ return "metadata." + error;
5444
+ }
5445
+ return null;
5446
+ };
5447
+
5448
+ return StructuredDataset;
5449
+ })();
5450
+
5210
5451
  core.Scalar = (function() {
5211
5452
 
5212
5453
  /**
@@ -5220,6 +5461,7 @@ export const flyteidl = $root.flyteidl = (() => {
5220
5461
  * @property {flyteidl.core.IVoid|null} [noneType] Scalar noneType
5221
5462
  * @property {flyteidl.core.IError|null} [error] Scalar error
5222
5463
  * @property {google.protobuf.IStruct|null} [generic] Scalar generic
5464
+ * @property {flyteidl.core.IStructuredDataset|null} [structuredDataset] Scalar structuredDataset
5223
5465
  */
5224
5466
 
5225
5467
  /**
@@ -5293,17 +5535,25 @@ export const flyteidl = $root.flyteidl = (() => {
5293
5535
  */
5294
5536
  Scalar.prototype.generic = null;
5295
5537
 
5538
+ /**
5539
+ * Scalar structuredDataset.
5540
+ * @member {flyteidl.core.IStructuredDataset|null|undefined} structuredDataset
5541
+ * @memberof flyteidl.core.Scalar
5542
+ * @instance
5543
+ */
5544
+ Scalar.prototype.structuredDataset = null;
5545
+
5296
5546
  // OneOf field names bound to virtual getters and setters
5297
5547
  let $oneOfFields;
5298
5548
 
5299
5549
  /**
5300
5550
  * Scalar value.
5301
- * @member {"primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|undefined} value
5551
+ * @member {"primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|undefined} value
5302
5552
  * @memberof flyteidl.core.Scalar
5303
5553
  * @instance
5304
5554
  */
5305
5555
  Object.defineProperty(Scalar.prototype, "value", {
5306
- get: $util.oneOfGetter($oneOfFields = ["primitive", "blob", "binary", "schema", "noneType", "error", "generic"]),
5556
+ get: $util.oneOfGetter($oneOfFields = ["primitive", "blob", "binary", "schema", "noneType", "error", "generic", "structuredDataset"]),
5307
5557
  set: $util.oneOfSetter($oneOfFields)
5308
5558
  });
5309
5559
 
@@ -5345,6 +5595,8 @@ export const flyteidl = $root.flyteidl = (() => {
5345
5595
  $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
5346
5596
  if (message.generic != null && message.hasOwnProperty("generic"))
5347
5597
  $root.google.protobuf.Struct.encode(message.generic, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
5598
+ if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset"))
5599
+ $root.flyteidl.core.StructuredDataset.encode(message.structuredDataset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
5348
5600
  return writer;
5349
5601
  };
5350
5602
 
@@ -5387,6 +5639,9 @@ export const flyteidl = $root.flyteidl = (() => {
5387
5639
  case 7:
5388
5640
  message.generic = $root.google.protobuf.Struct.decode(reader, reader.uint32());
5389
5641
  break;
5642
+ case 8:
5643
+ message.structuredDataset = $root.flyteidl.core.StructuredDataset.decode(reader, reader.uint32());
5644
+ break;
5390
5645
  default:
5391
5646
  reader.skipType(tag & 7);
5392
5647
  break;
@@ -5475,6 +5730,16 @@ export const flyteidl = $root.flyteidl = (() => {
5475
5730
  return "generic." + error;
5476
5731
  }
5477
5732
  }
5733
+ if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) {
5734
+ if (properties.value === 1)
5735
+ return "value: multiple values";
5736
+ properties.value = 1;
5737
+ {
5738
+ let error = $root.flyteidl.core.StructuredDataset.verify(message.structuredDataset);
5739
+ if (error)
5740
+ return "structuredDataset." + error;
5741
+ }
5742
+ }
5478
5743
  return null;
5479
5744
  };
5480
5745
 
@@ -7027,6 +7292,306 @@ export const flyteidl = $root.flyteidl = (() => {
7027
7292
  return SchemaType;
7028
7293
  })();
7029
7294
 
7295
+ core.StructuredDatasetType = (function() {
7296
+
7297
+ /**
7298
+ * Properties of a StructuredDatasetType.
7299
+ * @memberof flyteidl.core
7300
+ * @interface IStructuredDatasetType
7301
+ * @property {Array.<flyteidl.core.StructuredDatasetType.IDatasetColumn>|null} [columns] StructuredDatasetType columns
7302
+ * @property {string|null} [format] StructuredDatasetType format
7303
+ * @property {string|null} [externalSchemaType] StructuredDatasetType externalSchemaType
7304
+ * @property {Uint8Array|null} [externalSchemaBytes] StructuredDatasetType externalSchemaBytes
7305
+ */
7306
+
7307
+ /**
7308
+ * Constructs a new StructuredDatasetType.
7309
+ * @memberof flyteidl.core
7310
+ * @classdesc Represents a StructuredDatasetType.
7311
+ * @implements IStructuredDatasetType
7312
+ * @constructor
7313
+ * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set
7314
+ */
7315
+ function StructuredDatasetType(properties) {
7316
+ this.columns = [];
7317
+ if (properties)
7318
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7319
+ if (properties[keys[i]] != null)
7320
+ this[keys[i]] = properties[keys[i]];
7321
+ }
7322
+
7323
+ /**
7324
+ * StructuredDatasetType columns.
7325
+ * @member {Array.<flyteidl.core.StructuredDatasetType.IDatasetColumn>} columns
7326
+ * @memberof flyteidl.core.StructuredDatasetType
7327
+ * @instance
7328
+ */
7329
+ StructuredDatasetType.prototype.columns = $util.emptyArray;
7330
+
7331
+ /**
7332
+ * StructuredDatasetType format.
7333
+ * @member {string} format
7334
+ * @memberof flyteidl.core.StructuredDatasetType
7335
+ * @instance
7336
+ */
7337
+ StructuredDatasetType.prototype.format = "";
7338
+
7339
+ /**
7340
+ * StructuredDatasetType externalSchemaType.
7341
+ * @member {string} externalSchemaType
7342
+ * @memberof flyteidl.core.StructuredDatasetType
7343
+ * @instance
7344
+ */
7345
+ StructuredDatasetType.prototype.externalSchemaType = "";
7346
+
7347
+ /**
7348
+ * StructuredDatasetType externalSchemaBytes.
7349
+ * @member {Uint8Array} externalSchemaBytes
7350
+ * @memberof flyteidl.core.StructuredDatasetType
7351
+ * @instance
7352
+ */
7353
+ StructuredDatasetType.prototype.externalSchemaBytes = $util.newBuffer([]);
7354
+
7355
+ /**
7356
+ * Creates a new StructuredDatasetType instance using the specified properties.
7357
+ * @function create
7358
+ * @memberof flyteidl.core.StructuredDatasetType
7359
+ * @static
7360
+ * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set
7361
+ * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType instance
7362
+ */
7363
+ StructuredDatasetType.create = function create(properties) {
7364
+ return new StructuredDatasetType(properties);
7365
+ };
7366
+
7367
+ /**
7368
+ * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages.
7369
+ * @function encode
7370
+ * @memberof flyteidl.core.StructuredDatasetType
7371
+ * @static
7372
+ * @param {flyteidl.core.IStructuredDatasetType} message StructuredDatasetType message or plain object to encode
7373
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7374
+ * @returns {$protobuf.Writer} Writer
7375
+ */
7376
+ StructuredDatasetType.encode = function encode(message, writer) {
7377
+ if (!writer)
7378
+ writer = $Writer.create();
7379
+ if (message.columns != null && message.columns.length)
7380
+ for (let i = 0; i < message.columns.length; ++i)
7381
+ $root.flyteidl.core.StructuredDatasetType.DatasetColumn.encode(message.columns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
7382
+ if (message.format != null && message.hasOwnProperty("format"))
7383
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.format);
7384
+ if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType"))
7385
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalSchemaType);
7386
+ if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes"))
7387
+ writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.externalSchemaBytes);
7388
+ return writer;
7389
+ };
7390
+
7391
+ /**
7392
+ * Decodes a StructuredDatasetType message from the specified reader or buffer.
7393
+ * @function decode
7394
+ * @memberof flyteidl.core.StructuredDatasetType
7395
+ * @static
7396
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7397
+ * @param {number} [length] Message length if known beforehand
7398
+ * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType
7399
+ * @throws {Error} If the payload is not a reader or valid buffer
7400
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7401
+ */
7402
+ StructuredDatasetType.decode = function decode(reader, length) {
7403
+ if (!(reader instanceof $Reader))
7404
+ reader = $Reader.create(reader);
7405
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType();
7406
+ while (reader.pos < end) {
7407
+ let tag = reader.uint32();
7408
+ switch (tag >>> 3) {
7409
+ case 1:
7410
+ if (!(message.columns && message.columns.length))
7411
+ message.columns = [];
7412
+ message.columns.push($root.flyteidl.core.StructuredDatasetType.DatasetColumn.decode(reader, reader.uint32()));
7413
+ break;
7414
+ case 2:
7415
+ message.format = reader.string();
7416
+ break;
7417
+ case 3:
7418
+ message.externalSchemaType = reader.string();
7419
+ break;
7420
+ case 4:
7421
+ message.externalSchemaBytes = reader.bytes();
7422
+ break;
7423
+ default:
7424
+ reader.skipType(tag & 7);
7425
+ break;
7426
+ }
7427
+ }
7428
+ return message;
7429
+ };
7430
+
7431
+ /**
7432
+ * Verifies a StructuredDatasetType message.
7433
+ * @function verify
7434
+ * @memberof flyteidl.core.StructuredDatasetType
7435
+ * @static
7436
+ * @param {Object.<string,*>} message Plain object to verify
7437
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
7438
+ */
7439
+ StructuredDatasetType.verify = function verify(message) {
7440
+ if (typeof message !== "object" || message === null)
7441
+ return "object expected";
7442
+ if (message.columns != null && message.hasOwnProperty("columns")) {
7443
+ if (!Array.isArray(message.columns))
7444
+ return "columns: array expected";
7445
+ for (let i = 0; i < message.columns.length; ++i) {
7446
+ let error = $root.flyteidl.core.StructuredDatasetType.DatasetColumn.verify(message.columns[i]);
7447
+ if (error)
7448
+ return "columns." + error;
7449
+ }
7450
+ }
7451
+ if (message.format != null && message.hasOwnProperty("format"))
7452
+ if (!$util.isString(message.format))
7453
+ return "format: string expected";
7454
+ if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType"))
7455
+ if (!$util.isString(message.externalSchemaType))
7456
+ return "externalSchemaType: string expected";
7457
+ if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes"))
7458
+ if (!(message.externalSchemaBytes && typeof message.externalSchemaBytes.length === "number" || $util.isString(message.externalSchemaBytes)))
7459
+ return "externalSchemaBytes: buffer expected";
7460
+ return null;
7461
+ };
7462
+
7463
+ StructuredDatasetType.DatasetColumn = (function() {
7464
+
7465
+ /**
7466
+ * Properties of a DatasetColumn.
7467
+ * @memberof flyteidl.core.StructuredDatasetType
7468
+ * @interface IDatasetColumn
7469
+ * @property {string|null} [name] DatasetColumn name
7470
+ * @property {flyteidl.core.ILiteralType|null} [literalType] DatasetColumn literalType
7471
+ */
7472
+
7473
+ /**
7474
+ * Constructs a new DatasetColumn.
7475
+ * @memberof flyteidl.core.StructuredDatasetType
7476
+ * @classdesc Represents a DatasetColumn.
7477
+ * @implements IDatasetColumn
7478
+ * @constructor
7479
+ * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set
7480
+ */
7481
+ function DatasetColumn(properties) {
7482
+ if (properties)
7483
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7484
+ if (properties[keys[i]] != null)
7485
+ this[keys[i]] = properties[keys[i]];
7486
+ }
7487
+
7488
+ /**
7489
+ * DatasetColumn name.
7490
+ * @member {string} name
7491
+ * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn
7492
+ * @instance
7493
+ */
7494
+ DatasetColumn.prototype.name = "";
7495
+
7496
+ /**
7497
+ * DatasetColumn literalType.
7498
+ * @member {flyteidl.core.ILiteralType|null|undefined} literalType
7499
+ * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn
7500
+ * @instance
7501
+ */
7502
+ DatasetColumn.prototype.literalType = null;
7503
+
7504
+ /**
7505
+ * Creates a new DatasetColumn instance using the specified properties.
7506
+ * @function create
7507
+ * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn
7508
+ * @static
7509
+ * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set
7510
+ * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn instance
7511
+ */
7512
+ DatasetColumn.create = function create(properties) {
7513
+ return new DatasetColumn(properties);
7514
+ };
7515
+
7516
+ /**
7517
+ * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages.
7518
+ * @function encode
7519
+ * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn
7520
+ * @static
7521
+ * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn} message DatasetColumn message or plain object to encode
7522
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7523
+ * @returns {$protobuf.Writer} Writer
7524
+ */
7525
+ DatasetColumn.encode = function encode(message, writer) {
7526
+ if (!writer)
7527
+ writer = $Writer.create();
7528
+ if (message.name != null && message.hasOwnProperty("name"))
7529
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
7530
+ if (message.literalType != null && message.hasOwnProperty("literalType"))
7531
+ $root.flyteidl.core.LiteralType.encode(message.literalType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
7532
+ return writer;
7533
+ };
7534
+
7535
+ /**
7536
+ * Decodes a DatasetColumn message from the specified reader or buffer.
7537
+ * @function decode
7538
+ * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn
7539
+ * @static
7540
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7541
+ * @param {number} [length] Message length if known beforehand
7542
+ * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn
7543
+ * @throws {Error} If the payload is not a reader or valid buffer
7544
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7545
+ */
7546
+ DatasetColumn.decode = function decode(reader, length) {
7547
+ if (!(reader instanceof $Reader))
7548
+ reader = $Reader.create(reader);
7549
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType.DatasetColumn();
7550
+ while (reader.pos < end) {
7551
+ let tag = reader.uint32();
7552
+ switch (tag >>> 3) {
7553
+ case 1:
7554
+ message.name = reader.string();
7555
+ break;
7556
+ case 2:
7557
+ message.literalType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32());
7558
+ break;
7559
+ default:
7560
+ reader.skipType(tag & 7);
7561
+ break;
7562
+ }
7563
+ }
7564
+ return message;
7565
+ };
7566
+
7567
+ /**
7568
+ * Verifies a DatasetColumn message.
7569
+ * @function verify
7570
+ * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn
7571
+ * @static
7572
+ * @param {Object.<string,*>} message Plain object to verify
7573
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
7574
+ */
7575
+ DatasetColumn.verify = function verify(message) {
7576
+ if (typeof message !== "object" || message === null)
7577
+ return "object expected";
7578
+ if (message.name != null && message.hasOwnProperty("name"))
7579
+ if (!$util.isString(message.name))
7580
+ return "name: string expected";
7581
+ if (message.literalType != null && message.hasOwnProperty("literalType")) {
7582
+ let error = $root.flyteidl.core.LiteralType.verify(message.literalType);
7583
+ if (error)
7584
+ return "literalType." + error;
7585
+ }
7586
+ return null;
7587
+ };
7588
+
7589
+ return DatasetColumn;
7590
+ })();
7591
+
7592
+ return StructuredDatasetType;
7593
+ })();
7594
+
7030
7595
  core.BlobType = (function() {
7031
7596
 
7032
7597
  /**
@@ -7303,6 +7868,7 @@ export const flyteidl = $root.flyteidl = (() => {
7303
7868
  * @property {flyteidl.core.ILiteralType|null} [mapValueType] LiteralType mapValueType
7304
7869
  * @property {flyteidl.core.IBlobType|null} [blob] LiteralType blob
7305
7870
  * @property {flyteidl.core.IEnumType|null} [enumType] LiteralType enumType
7871
+ * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] LiteralType structuredDatasetType
7306
7872
  * @property {google.protobuf.IStruct|null} [metadata] LiteralType metadata
7307
7873
  */
7308
7874
 
@@ -7369,6 +7935,14 @@ export const flyteidl = $root.flyteidl = (() => {
7369
7935
  */
7370
7936
  LiteralType.prototype.enumType = null;
7371
7937
 
7938
+ /**
7939
+ * LiteralType structuredDatasetType.
7940
+ * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType
7941
+ * @memberof flyteidl.core.LiteralType
7942
+ * @instance
7943
+ */
7944
+ LiteralType.prototype.structuredDatasetType = null;
7945
+
7372
7946
  /**
7373
7947
  * LiteralType metadata.
7374
7948
  * @member {google.protobuf.IStruct|null|undefined} metadata
@@ -7382,12 +7956,12 @@ export const flyteidl = $root.flyteidl = (() => {
7382
7956
 
7383
7957
  /**
7384
7958
  * LiteralType type.
7385
- * @member {"simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|undefined} type
7959
+ * @member {"simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|undefined} type
7386
7960
  * @memberof flyteidl.core.LiteralType
7387
7961
  * @instance
7388
7962
  */
7389
7963
  Object.defineProperty(LiteralType.prototype, "type", {
7390
- get: $util.oneOfGetter($oneOfFields = ["simple", "schema", "collectionType", "mapValueType", "blob", "enumType"]),
7964
+ get: $util.oneOfGetter($oneOfFields = ["simple", "schema", "collectionType", "mapValueType", "blob", "enumType", "structuredDatasetType"]),
7391
7965
  set: $util.oneOfSetter($oneOfFields)
7392
7966
  });
7393
7967
 
@@ -7429,6 +8003,8 @@ export const flyteidl = $root.flyteidl = (() => {
7429
8003
  $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
7430
8004
  if (message.enumType != null && message.hasOwnProperty("enumType"))
7431
8005
  $root.flyteidl.core.EnumType.encode(message.enumType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
8006
+ if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType"))
8007
+ $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
7432
8008
  return writer;
7433
8009
  };
7434
8010
 
@@ -7468,6 +8044,9 @@ export const flyteidl = $root.flyteidl = (() => {
7468
8044
  case 7:
7469
8045
  message.enumType = $root.flyteidl.core.EnumType.decode(reader, reader.uint32());
7470
8046
  break;
8047
+ case 8:
8048
+ message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32());
8049
+ break;
7471
8050
  case 6:
7472
8051
  message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32());
7473
8052
  break;
@@ -7559,6 +8138,16 @@ export const flyteidl = $root.flyteidl = (() => {
7559
8138
  return "enumType." + error;
7560
8139
  }
7561
8140
  }
8141
+ if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) {
8142
+ if (properties.type === 1)
8143
+ return "type: multiple values";
8144
+ properties.type = 1;
8145
+ {
8146
+ let error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType);
8147
+ if (error)
8148
+ return "structuredDatasetType." + error;
8149
+ }
8150
+ }
7562
8151
  if (message.metadata != null && message.hasOwnProperty("metadata")) {
7563
8152
  let error = $root.google.protobuf.Struct.verify(message.metadata);
7564
8153
  if (error)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "0.21.16",
3
+ "version": "0.21.20",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,6 +52,25 @@ message Schema {
52
52
  SchemaType type = 3;
53
53
  }
54
54
 
55
+ message StructuredDatasetMetadata {
56
+ // Bundle the type information along with the literal.
57
+ // This is here because StructuredDatasets can often be more defined at run time than at compile time.
58
+ // That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
59
+ // without any column information, but at run time, you might have that column information.
60
+ // flytekit python will copy this type information into the literal, from the type information, if not provided by
61
+ // the various plugins (encoders).
62
+ // Since this field is run time generated, it's not used for any type checking.
63
+ StructuredDatasetType structured_dataset_type = 1;
64
+ }
65
+
66
+ message StructuredDataset {
67
+ // String location uniquely identifying where the data is.
68
+ // Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
69
+ string uri = 1;
70
+
71
+ StructuredDatasetMetadata metadata = 2;
72
+ }
73
+
55
74
  message Scalar {
56
75
  oneof value {
57
76
  Primitive primitive = 1;
@@ -61,6 +80,7 @@ message Scalar {
61
80
  Void none_type = 5;
62
81
  Error error = 6;
63
82
  google.protobuf.Struct generic = 7;
83
+ StructuredDataset structured_dataset = 8;
64
84
  }
65
85
  }
66
86
 
@@ -43,6 +43,32 @@ message SchemaType {
43
43
  repeated SchemaColumn columns = 3;
44
44
  }
45
45
 
46
+ message StructuredDatasetType {
47
+ message DatasetColumn {
48
+ // A unique name within the schema type for the column.
49
+ string name = 1;
50
+
51
+ // The column type.
52
+ LiteralType literal_type = 2;
53
+ }
54
+
55
+ // A list of ordered columns this schema comprises of.
56
+ repeated DatasetColumn columns = 1;
57
+
58
+ // This is the storage format, the format of the bits at rest
59
+ // parquet, feather, csv, etc.
60
+ // For two types to be compatible, the format will need to be an exact match.
61
+ string format = 2;
62
+
63
+ // This is a string representing the type that the bytes in external_schema_bytes are formatted in.
64
+ // This is an optional field that will not be used for type checking.
65
+ string external_schema_type = 3;
66
+
67
+ // The serialized bytes of a third-party schema library like Arrow.
68
+ // This is an optional field that will not be used for type checking.
69
+ bytes external_schema_bytes = 4;
70
+ }
71
+
46
72
  // Defines type behavior for blob objects
47
73
  message BlobType {
48
74
  enum BlobDimensionality {
@@ -84,6 +110,9 @@ message LiteralType {
84
110
 
85
111
  // Defines an enum with pre-defined string values.
86
112
  EnumType enum_type = 7;
113
+
114
+ // Generalized schema support
115
+ StructuredDatasetType structured_dataset_type = 8;
87
116
  }
88
117
 
89
118
  // This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by