From 227c6a1aa2e69ffdc08416f27b2506b4e4904860 Mon Sep 17 00:00:00 2001 From: Dan Rammer Date: Fri, 9 Feb 2024 13:29:08 -0600 Subject: [PATCH] Add protos to support cache overrides (#4820) * updated protos Signed-off-by: Daniel Rammer * updated golden files Signed-off-by: Daniel Rammer * removed wf yaml compiler testdata Signed-off-by: Daniel Rammer * removed unecessary yaml compiler testdata Signed-off-by: Daniel Rammer --------- Signed-off-by: Daniel Rammer --- flyteidl/clients/go/assets/admin.swagger.json | 41 + .../gen/pb-es/flyteidl/core/compiler_pb.ts | 52 +- .../gen/pb-es/flyteidl/core/workflow_pb.ts | 91 + .../gen/pb-go/flyteidl/core/compiler.pb.go | 291 +- .../gen/pb-go/flyteidl/core/workflow.pb.go | 489 +- .../flyteidl/service/admin.swagger.json | 41 + flyteidl/gen/pb-js/flyteidl.d.ts | 4463 +++--- flyteidl/gen/pb-js/flyteidl.js | 11282 ++++++++-------- .../pb_python/flyteidl/core/compiler_pb2.py | 34 +- .../pb_python/flyteidl/core/compiler_pb2.pyi | 14 +- .../pb_python/flyteidl/core/workflow_pb2.py | 38 +- .../pb_python/flyteidl/core/workflow_pb2.pyi | 18 +- flyteidl/gen/pb_rust/flyteidl.core.rs | 53 + flyteidl/protos/flyteidl/core/compiler.proto | 11 + flyteidl/protos/flyteidl/core/workflow.proto | 23 + 15 files changed, 9030 insertions(+), 7911 deletions(-) diff --git a/flyteidl/clients/go/assets/admin.swagger.json b/flyteidl/clients/go/assets/admin.swagger.json index 590c8ccd2a..5b7e650ee3 100644 --- a/flyteidl/clients/go/assets/admin.swagger.json +++ b/flyteidl/clients/go/assets/admin.swagger.json @@ -11328,6 +11328,16 @@ }, "description": "Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.\nEach expression results in a boolean result." }, + "coreCompiledLaunchPlan": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreLaunchPlanTemplate", + "title": "Completely contained LaunchPlan Template" + } + }, + "title": "Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer" + }, "coreCompiledTask": { "type": "object", "properties": { @@ -11374,6 +11384,14 @@ "$ref": "#/definitions/coreCompiledTask" }, "title": "Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id\n+required (at least 1)" + }, + "launch_plans": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreCompiledLaunchPlan" + }, + "description": "A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan\nwith a given id, i.e., every launch plan has a unique id." } }, "description": "A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow\nand its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that\nwill being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of\ncompiled subworkflows." @@ -11757,6 +11775,20 @@ } } }, + "coreLaunchPlanTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "A globally unique identifier for the launch plan." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "title": "The input and output interface for the launch plan" + } + }, + "description": "A structure that uniquely identifies a launch plan in the system." + }, "coreLiteral": { "type": "object", "properties": { @@ -11964,6 +11996,15 @@ }, "interruptible": { "type": "boolean" + }, + "cacheable": { + "type": "boolean" + }, + "cache_version": { + "type": "string" + }, + "cache_serializable": { + "type": "boolean" } }, "description": "Defines extra information about the Node." diff --git a/flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts index f178306e36..7078e7451e 100644 --- a/flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; -import { WorkflowTemplate } from "./workflow_pb.js"; +import { LaunchPlanTemplate, WorkflowTemplate } from "./workflow_pb.js"; import { TaskTemplate } from "./tasks_pb.js"; /** @@ -144,6 +144,47 @@ export class CompiledWorkflow extends Message { } } +/** + * Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer + * + * @generated from message flyteidl.core.CompiledLaunchPlan + */ +export class CompiledLaunchPlan extends Message { + /** + * Completely contained LaunchPlan Template + * + * @generated from field: flyteidl.core.LaunchPlanTemplate template = 1; + */ + template?: LaunchPlanTemplate; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.CompiledLaunchPlan"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "template", kind: "message", T: LaunchPlanTemplate }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CompiledLaunchPlan { + return new CompiledLaunchPlan().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CompiledLaunchPlan { + return new CompiledLaunchPlan().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CompiledLaunchPlan { + return new CompiledLaunchPlan().fromJsonString(jsonString, options); + } + + static equals(a: CompiledLaunchPlan | PlainMessage | undefined, b: CompiledLaunchPlan | PlainMessage | undefined): boolean { + return proto3.util.equals(CompiledLaunchPlan, a, b); + } +} + /** * Output of the Compilation step. This object represent one Task. We store more metadata at this layer * @@ -219,6 +260,14 @@ export class CompiledWorkflowClosure extends Message { */ tasks: CompiledTask[] = []; + /** + * A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan + * with a given id, i.e., every launch plan has a unique id. + * + * @generated from field: repeated flyteidl.core.CompiledLaunchPlan launch_plans = 4; + */ + launchPlans: CompiledLaunchPlan[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -230,6 +279,7 @@ export class CompiledWorkflowClosure extends Message { { no: 1, name: "primary", kind: "message", T: CompiledWorkflow }, { no: 2, name: "sub_workflows", kind: "message", T: CompiledWorkflow, repeated: true }, { no: 3, name: "tasks", kind: "message", T: CompiledTask, repeated: true }, + { no: 4, name: "launch_plans", kind: "message", T: CompiledLaunchPlan, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CompiledWorkflowClosure { diff --git a/flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts index b48ea57cb6..6c599f08b3 100644 --- a/flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts @@ -612,6 +612,45 @@ export class NodeMetadata extends Message { case: "interruptible"; } | { case: undefined; value?: undefined } = { case: undefined }; + /** + * Identify whether a node should have it's outputs cached. + * + * @generated from oneof flyteidl.core.NodeMetadata.cacheable_value + */ + cacheableValue: { + /** + * @generated from field: bool cacheable = 7; + */ + value: boolean; + case: "cacheable"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * The version of the cache to use. + * + * @generated from oneof flyteidl.core.NodeMetadata.cache_version_value + */ + cacheVersionValue: { + /** + * @generated from field: string cache_version = 8; + */ + value: string; + case: "cacheVersion"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * Identify whether caching operations involving this node should be serialized. + * + * @generated from oneof flyteidl.core.NodeMetadata.cache_serializable_value + */ + cacheSerializableValue: { + /** + * @generated from field: bool cache_serializable = 9; + */ + value: boolean; + case: "cacheSerializable"; + } | { case: undefined; value?: undefined } = { case: undefined }; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -624,6 +663,9 @@ export class NodeMetadata extends Message { { no: 4, name: "timeout", kind: "message", T: Duration }, { no: 5, name: "retries", kind: "message", T: RetryStrategy }, { no: 6, name: "interruptible", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "interruptible_value" }, + { no: 7, name: "cacheable", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "cacheable_value" }, + { no: 8, name: "cache_version", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "cache_version_value" }, + { no: 9, name: "cache_serializable", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "cache_serializable_value" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NodeMetadata { @@ -1108,3 +1150,52 @@ export class TaskNodeOverrides extends Message { } } +/** + * A structure that uniquely identifies a launch plan in the system. + * + * @generated from message flyteidl.core.LaunchPlanTemplate + */ +export class LaunchPlanTemplate extends Message { + /** + * A globally unique identifier for the launch plan. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * The input and output interface for the launch plan + * + * @generated from field: flyteidl.core.TypedInterface interface = 2; + */ + interface?: TypedInterface; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.LaunchPlanTemplate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "interface", kind: "message", T: TypedInterface }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanTemplate { + return new LaunchPlanTemplate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanTemplate { + return new LaunchPlanTemplate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LaunchPlanTemplate { + return new LaunchPlanTemplate().fromJsonString(jsonString, options); + } + + static equals(a: LaunchPlanTemplate | PlainMessage | undefined, b: LaunchPlanTemplate | PlainMessage | undefined): boolean { + return proto3.util.equals(LaunchPlanTemplate, a, b); + } +} + diff --git a/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go index 0122432a98..4bd119175f 100644 --- a/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go @@ -137,6 +137,55 @@ func (x *CompiledWorkflow) GetConnections() *ConnectionSet { return nil } +// Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer +type CompiledLaunchPlan struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Completely contained LaunchPlan Template + Template *LaunchPlanTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` +} + +func (x *CompiledLaunchPlan) Reset() { + *x = CompiledLaunchPlan{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_compiler_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CompiledLaunchPlan) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompiledLaunchPlan) ProtoMessage() {} + +func (x *CompiledLaunchPlan) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_compiler_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CompiledLaunchPlan.ProtoReflect.Descriptor instead. +func (*CompiledLaunchPlan) Descriptor() ([]byte, []int) { + return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{2} +} + +func (x *CompiledLaunchPlan) GetTemplate() *LaunchPlanTemplate { + if x != nil { + return x.Template + } + return nil +} + // Output of the Compilation step. This object represent one Task. We store more metadata at this layer type CompiledTask struct { state protoimpl.MessageState @@ -150,7 +199,7 @@ type CompiledTask struct { func (x *CompiledTask) Reset() { *x = CompiledTask{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_compiler_proto_msgTypes[2] + mi := &file_flyteidl_core_compiler_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -163,7 +212,7 @@ func (x *CompiledTask) String() string { func (*CompiledTask) ProtoMessage() {} func (x *CompiledTask) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_compiler_proto_msgTypes[2] + mi := &file_flyteidl_core_compiler_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -176,7 +225,7 @@ func (x *CompiledTask) ProtoReflect() protoreflect.Message { // Deprecated: Use CompiledTask.ProtoReflect.Descriptor instead. func (*CompiledTask) Descriptor() ([]byte, []int) { - return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{2} + return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{3} } func (x *CompiledTask) GetTemplate() *TaskTemplate { @@ -205,12 +254,15 @@ type CompiledWorkflowClosure struct { // Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id // +required (at least 1) Tasks []*CompiledTask `protobuf:"bytes,3,rep,name=tasks,proto3" json:"tasks,omitempty"` + // A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan + // with a given id, i.e., every launch plan has a unique id. + LaunchPlans []*CompiledLaunchPlan `protobuf:"bytes,4,rep,name=launch_plans,json=launchPlans,proto3" json:"launch_plans,omitempty"` } func (x *CompiledWorkflowClosure) Reset() { *x = CompiledWorkflowClosure{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_compiler_proto_msgTypes[3] + mi := &file_flyteidl_core_compiler_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -223,7 +275,7 @@ func (x *CompiledWorkflowClosure) String() string { func (*CompiledWorkflowClosure) ProtoMessage() {} func (x *CompiledWorkflowClosure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_compiler_proto_msgTypes[3] + mi := &file_flyteidl_core_compiler_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -236,7 +288,7 @@ func (x *CompiledWorkflowClosure) ProtoReflect() protoreflect.Message { // Deprecated: Use CompiledWorkflowClosure.ProtoReflect.Descriptor instead. func (*CompiledWorkflowClosure) Descriptor() ([]byte, []int) { - return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{3} + return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{4} } func (x *CompiledWorkflowClosure) GetPrimary() *CompiledWorkflow { @@ -260,6 +312,13 @@ func (x *CompiledWorkflowClosure) GetTasks() []*CompiledTask { return nil } +func (x *CompiledWorkflowClosure) GetLaunchPlans() []*CompiledLaunchPlan { + if x != nil { + return x.LaunchPlans + } + return nil +} + type ConnectionSet_IdList struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -271,7 +330,7 @@ type ConnectionSet_IdList struct { func (x *ConnectionSet_IdList) Reset() { *x = ConnectionSet_IdList{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_compiler_proto_msgTypes[4] + mi := &file_flyteidl_core_compiler_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -284,7 +343,7 @@ func (x *ConnectionSet_IdList) String() string { func (*ConnectionSet_IdList) ProtoMessage() {} func (x *ConnectionSet_IdList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_compiler_proto_msgTypes[4] + mi := &file_flyteidl_core_compiler_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -312,74 +371,88 @@ var File_flyteidl_core_compiler_proto protoreflect.FileDescriptor var file_flyteidl_core_compiler_proto_rawDesc = []byte{ 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1c, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x03, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x4c, 0x0a, 0x0a, 0x64, 0x6f, 0x77, 0x6e, - 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x64, 0x6f, 0x77, 0x6e, - 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x46, 0x0a, 0x08, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x1a, 0x1a, - 0x0a, 0x06, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x1a, 0x62, 0x0a, 0x0f, 0x44, 0x6f, - 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x49, 0x64, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x60, - 0x0a, 0x0d, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x49, - 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x8f, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x3b, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x03, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x4c, 0x0a, 0x0a, 0x64, 0x6f, 0x77, 0x6e, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x64, 0x6f, 0x77, 0x6e, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x46, 0x0a, 0x08, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x22, 0x47, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x54, 0x61, - 0x73, 0x6b, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, 0xcd, 0x01, 0x0a, 0x17, - 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, - 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, - 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, - 0x72, 0x79, 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, - 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, - 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x11, - 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x42, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, - 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, - 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x08, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x1a, 0x1a, 0x0a, + 0x06, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x1a, 0x62, 0x0a, 0x0f, 0x44, 0x6f, 0x77, + 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x39, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x49, 0x64, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x60, 0x0a, + 0x0d, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x49, 0x64, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0x8f, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x3b, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x65, 0x74, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x53, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4c, 0x61, 0x75, + 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x3d, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x50, 0x6c, 0x61, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, 0x47, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, + 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, + 0x93, 0x02, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x70, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, + 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x07, 0x70, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x5f, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, + 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x0c, + 0x73, 0x75, 0x62, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x31, 0x0a, 0x05, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, + 0x69, 0x6c, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, + 0x44, 0x0a, 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4c, 0x61, + 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x0b, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0d, 0x43, 0x6f, 0x6d, + 0x70, 0x69, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, + 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, + 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, + 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, + 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -394,34 +467,38 @@ func file_flyteidl_core_compiler_proto_rawDescGZIP() []byte { return file_flyteidl_core_compiler_proto_rawDescData } -var file_flyteidl_core_compiler_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_flyteidl_core_compiler_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_flyteidl_core_compiler_proto_goTypes = []interface{}{ (*ConnectionSet)(nil), // 0: flyteidl.core.ConnectionSet (*CompiledWorkflow)(nil), // 1: flyteidl.core.CompiledWorkflow - (*CompiledTask)(nil), // 2: flyteidl.core.CompiledTask - (*CompiledWorkflowClosure)(nil), // 3: flyteidl.core.CompiledWorkflowClosure - (*ConnectionSet_IdList)(nil), // 4: flyteidl.core.ConnectionSet.IdList - nil, // 5: flyteidl.core.ConnectionSet.DownstreamEntry - nil, // 6: flyteidl.core.ConnectionSet.UpstreamEntry - (*WorkflowTemplate)(nil), // 7: flyteidl.core.WorkflowTemplate - (*TaskTemplate)(nil), // 8: flyteidl.core.TaskTemplate + (*CompiledLaunchPlan)(nil), // 2: flyteidl.core.CompiledLaunchPlan + (*CompiledTask)(nil), // 3: flyteidl.core.CompiledTask + (*CompiledWorkflowClosure)(nil), // 4: flyteidl.core.CompiledWorkflowClosure + (*ConnectionSet_IdList)(nil), // 5: flyteidl.core.ConnectionSet.IdList + nil, // 6: flyteidl.core.ConnectionSet.DownstreamEntry + nil, // 7: flyteidl.core.ConnectionSet.UpstreamEntry + (*WorkflowTemplate)(nil), // 8: flyteidl.core.WorkflowTemplate + (*LaunchPlanTemplate)(nil), // 9: flyteidl.core.LaunchPlanTemplate + (*TaskTemplate)(nil), // 10: flyteidl.core.TaskTemplate } var file_flyteidl_core_compiler_proto_depIdxs = []int32{ - 5, // 0: flyteidl.core.ConnectionSet.downstream:type_name -> flyteidl.core.ConnectionSet.DownstreamEntry - 6, // 1: flyteidl.core.ConnectionSet.upstream:type_name -> flyteidl.core.ConnectionSet.UpstreamEntry - 7, // 2: flyteidl.core.CompiledWorkflow.template:type_name -> flyteidl.core.WorkflowTemplate + 6, // 0: flyteidl.core.ConnectionSet.downstream:type_name -> flyteidl.core.ConnectionSet.DownstreamEntry + 7, // 1: flyteidl.core.ConnectionSet.upstream:type_name -> flyteidl.core.ConnectionSet.UpstreamEntry + 8, // 2: flyteidl.core.CompiledWorkflow.template:type_name -> flyteidl.core.WorkflowTemplate 0, // 3: flyteidl.core.CompiledWorkflow.connections:type_name -> flyteidl.core.ConnectionSet - 8, // 4: flyteidl.core.CompiledTask.template:type_name -> flyteidl.core.TaskTemplate - 1, // 5: flyteidl.core.CompiledWorkflowClosure.primary:type_name -> flyteidl.core.CompiledWorkflow - 1, // 6: flyteidl.core.CompiledWorkflowClosure.sub_workflows:type_name -> flyteidl.core.CompiledWorkflow - 2, // 7: flyteidl.core.CompiledWorkflowClosure.tasks:type_name -> flyteidl.core.CompiledTask - 4, // 8: flyteidl.core.ConnectionSet.DownstreamEntry.value:type_name -> flyteidl.core.ConnectionSet.IdList - 4, // 9: flyteidl.core.ConnectionSet.UpstreamEntry.value:type_name -> flyteidl.core.ConnectionSet.IdList - 10, // [10:10] is the sub-list for method output_type - 10, // [10:10] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name + 9, // 4: flyteidl.core.CompiledLaunchPlan.template:type_name -> flyteidl.core.LaunchPlanTemplate + 10, // 5: flyteidl.core.CompiledTask.template:type_name -> flyteidl.core.TaskTemplate + 1, // 6: flyteidl.core.CompiledWorkflowClosure.primary:type_name -> flyteidl.core.CompiledWorkflow + 1, // 7: flyteidl.core.CompiledWorkflowClosure.sub_workflows:type_name -> flyteidl.core.CompiledWorkflow + 3, // 8: flyteidl.core.CompiledWorkflowClosure.tasks:type_name -> flyteidl.core.CompiledTask + 2, // 9: flyteidl.core.CompiledWorkflowClosure.launch_plans:type_name -> flyteidl.core.CompiledLaunchPlan + 5, // 10: flyteidl.core.ConnectionSet.DownstreamEntry.value:type_name -> flyteidl.core.ConnectionSet.IdList + 5, // 11: flyteidl.core.ConnectionSet.UpstreamEntry.value:type_name -> flyteidl.core.ConnectionSet.IdList + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_flyteidl_core_compiler_proto_init() } @@ -429,6 +506,8 @@ func file_flyteidl_core_compiler_proto_init() { if File_flyteidl_core_compiler_proto != nil { return } + file_flyteidl_core_identifier_proto_init() + file_flyteidl_core_interface_proto_init() file_flyteidl_core_workflow_proto_init() file_flyteidl_core_tasks_proto_init() if !protoimpl.UnsafeEnabled { @@ -457,7 +536,7 @@ func file_flyteidl_core_compiler_proto_init() { } } file_flyteidl_core_compiler_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompiledTask); i { + switch v := v.(*CompiledLaunchPlan); i { case 0: return &v.state case 1: @@ -469,7 +548,7 @@ func file_flyteidl_core_compiler_proto_init() { } } file_flyteidl_core_compiler_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompiledWorkflowClosure); i { + switch v := v.(*CompiledTask); i { case 0: return &v.state case 1: @@ -481,6 +560,18 @@ func file_flyteidl_core_compiler_proto_init() { } } file_flyteidl_core_compiler_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CompiledWorkflowClosure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_compiler_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ConnectionSet_IdList); i { case 0: return &v.state @@ -499,7 +590,7 @@ func file_flyteidl_core_compiler_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_flyteidl_core_compiler_proto_rawDesc, NumEnums: 0, - NumMessages: 7, + NumMessages: 8, NumExtensions: 0, NumServices: 0, }, diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go index cadfac4105..66127d2534 100644 --- a/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go @@ -842,6 +842,24 @@ type NodeMetadata struct { // // *NodeMetadata_Interruptible InterruptibleValue isNodeMetadata_InterruptibleValue `protobuf_oneof:"interruptible_value"` + // Identify whether a node should have it's outputs cached. + // + // Types that are assignable to CacheableValue: + // + // *NodeMetadata_Cacheable + CacheableValue isNodeMetadata_CacheableValue `protobuf_oneof:"cacheable_value"` + // The version of the cache to use. + // + // Types that are assignable to CacheVersionValue: + // + // *NodeMetadata_CacheVersion + CacheVersionValue isNodeMetadata_CacheVersionValue `protobuf_oneof:"cache_version_value"` + // Identify whether caching operations involving this node should be serialized. + // + // Types that are assignable to CacheSerializableValue: + // + // *NodeMetadata_CacheSerializable + CacheSerializableValue isNodeMetadata_CacheSerializableValue `protobuf_oneof:"cache_serializable_value"` } func (x *NodeMetadata) Reset() { @@ -911,6 +929,48 @@ func (x *NodeMetadata) GetInterruptible() bool { return false } +func (m *NodeMetadata) GetCacheableValue() isNodeMetadata_CacheableValue { + if m != nil { + return m.CacheableValue + } + return nil +} + +func (x *NodeMetadata) GetCacheable() bool { + if x, ok := x.GetCacheableValue().(*NodeMetadata_Cacheable); ok { + return x.Cacheable + } + return false +} + +func (m *NodeMetadata) GetCacheVersionValue() isNodeMetadata_CacheVersionValue { + if m != nil { + return m.CacheVersionValue + } + return nil +} + +func (x *NodeMetadata) GetCacheVersion() string { + if x, ok := x.GetCacheVersionValue().(*NodeMetadata_CacheVersion); ok { + return x.CacheVersion + } + return "" +} + +func (m *NodeMetadata) GetCacheSerializableValue() isNodeMetadata_CacheSerializableValue { + if m != nil { + return m.CacheSerializableValue + } + return nil +} + +func (x *NodeMetadata) GetCacheSerializable() bool { + if x, ok := x.GetCacheSerializableValue().(*NodeMetadata_CacheSerializable); ok { + return x.CacheSerializable + } + return false +} + type isNodeMetadata_InterruptibleValue interface { isNodeMetadata_InterruptibleValue() } @@ -921,6 +981,36 @@ type NodeMetadata_Interruptible struct { func (*NodeMetadata_Interruptible) isNodeMetadata_InterruptibleValue() {} +type isNodeMetadata_CacheableValue interface { + isNodeMetadata_CacheableValue() +} + +type NodeMetadata_Cacheable struct { + Cacheable bool `protobuf:"varint,7,opt,name=cacheable,proto3,oneof"` +} + +func (*NodeMetadata_Cacheable) isNodeMetadata_CacheableValue() {} + +type isNodeMetadata_CacheVersionValue interface { + isNodeMetadata_CacheVersionValue() +} + +type NodeMetadata_CacheVersion struct { + CacheVersion string `protobuf:"bytes,8,opt,name=cache_version,json=cacheVersion,proto3,oneof"` +} + +func (*NodeMetadata_CacheVersion) isNodeMetadata_CacheVersionValue() {} + +type isNodeMetadata_CacheSerializableValue interface { + isNodeMetadata_CacheSerializableValue() +} + +type NodeMetadata_CacheSerializable struct { + CacheSerializable bool `protobuf:"varint,9,opt,name=cache_serializable,json=cacheSerializable,proto3,oneof"` +} + +func (*NodeMetadata_CacheSerializable) isNodeMetadata_CacheSerializableValue() {} + // Links a variable to an alias. type Alias struct { state protoimpl.MessageState @@ -1456,6 +1546,64 @@ func (x *TaskNodeOverrides) GetExtendedResources() *ExtendedResources { return nil } +// A structure that uniquely identifies a launch plan in the system. +type LaunchPlanTemplate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A globally unique identifier for the launch plan. + Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // The input and output interface for the launch plan + Interface *TypedInterface `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` +} + +func (x *LaunchPlanTemplate) Reset() { + *x = LaunchPlanTemplate{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LaunchPlanTemplate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LaunchPlanTemplate) ProtoMessage() {} + +func (x *LaunchPlanTemplate) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LaunchPlanTemplate.ProtoReflect.Descriptor instead. +func (*LaunchPlanTemplate) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{17} +} + +func (x *LaunchPlanTemplate) GetId() *Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *LaunchPlanTemplate) GetInterface() *TypedInterface { + if x != nil { + return x.Interface + } + return nil +} + var File_flyteidl_core_workflow_proto protoreflect.FileDescriptor var file_flyteidl_core_workflow_proto_rawDesc = []byte{ @@ -1565,7 +1713,7 @@ var file_flyteidl_core_workflow_proto_rawDesc = []byte{ 0x69, 0x6e, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x42, 0x12, 0x0a, 0x10, 0x73, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x22, 0xce, 0x01, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x22, 0x8c, 0x03, 0x0a, 0x0c, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, @@ -1577,122 +1725,141 @@ var file_flyteidl_core_workflow_proto_rawDesc = []byte{ 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, - 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x42, 0x15, 0x0a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2f, - 0x0a, 0x05, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, - 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x22, - 0x9f, 0x04, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x2e, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, - 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x6e, 0x6f, - 0x64, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x70, - 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x12, 0x3b, 0x0a, - 0x0e, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, - 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0d, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, - 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x6f, - 0x64, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, - 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, - 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, - 0x63, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, - 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x6e, 0x6f, 0x64, - 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, - 0x48, 0x00, 0x52, 0x08, 0x67, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x39, 0x0a, 0x0a, - 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x09, 0x61, 0x72, - 0x72, 0x61, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x22, 0xfc, 0x02, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4d, 0x0a, 0x12, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, - 0x79, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x52, 0x10, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4e, 0x0a, 0x0a, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, - 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x6e, 0x46, 0x61, 0x69, - 0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, 0x6f, 0x6e, 0x46, 0x61, - 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, - 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x51, 0x0a, - 0x0f, 0x4f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x12, 0x14, 0x0a, 0x10, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x49, 0x4d, 0x4d, 0x45, 0x44, 0x49, 0x41, - 0x54, 0x45, 0x4c, 0x59, 0x10, 0x00, 0x12, 0x28, 0x0a, 0x24, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x41, - 0x46, 0x54, 0x45, 0x52, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x5f, - 0x4e, 0x4f, 0x44, 0x45, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x01, - 0x22, 0x40, 0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0d, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, - 0x6c, 0x65, 0x22, 0xa2, 0x03, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, + 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, + 0x61, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x48, 0x01, 0x52, 0x09, 0x63, 0x61, + 0x63, 0x68, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x63, 0x61, 0x63, 0x68, 0x65, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, + 0x52, 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, + 0x0a, 0x12, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, + 0x61, 0x62, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x48, 0x03, 0x52, 0x11, 0x63, 0x61, + 0x63, 0x68, 0x65, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x62, 0x6c, 0x65, 0x42, + 0x15, 0x0a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x15, 0x0a, 0x13, 0x63, 0x61, 0x63, + 0x68, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x42, 0x1a, 0x0a, 0x18, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, + 0x69, 0x7a, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2f, 0x0a, 0x05, + 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x9f, 0x04, + 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, - 0x65, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x05, - 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, - 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, - 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x0c, 0x66, 0x61, 0x69, - 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4e, 0x6f, 0x64, - 0x65, 0x12, 0x54, 0x0a, 0x11, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x64, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x73, 0x52, 0x10, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, - 0x4e, 0x6f, 0x64, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x12, 0x36, 0x0a, - 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, - 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x52, 0x11, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0d, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, - 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, - 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, - 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, - 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, + 0x2a, 0x0a, 0x11, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x6e, 0x6f, 0x64, 0x65, + 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x70, 0x73, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x6f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, + 0x12, 0x42, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x6f, 0x64, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6e, + 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x6f, + 0x64, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, + 0x52, 0x08, 0x67, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x61, 0x72, + 0x72, 0x61, 0x79, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, + 0x72, 0x72, 0x61, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x09, 0x61, 0x72, 0x72, 0x61, + 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, + 0xfc, 0x02, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x4d, 0x0a, 0x12, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x5f, + 0x6f, 0x66, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x52, 0x10, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x4e, 0x0a, 0x0a, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, + 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, + 0x75, 0x72, 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, + 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x51, 0x0a, 0x0f, 0x4f, + 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x14, + 0x0a, 0x10, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x49, 0x4d, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, + 0x4c, 0x59, 0x10, 0x00, 0x12, 0x28, 0x0a, 0x24, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x41, 0x46, 0x54, + 0x45, 0x52, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x4e, 0x4f, + 0x44, 0x45, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x01, 0x22, 0x40, + 0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, + 0x22, 0xa2, 0x03, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, 0x0a, + 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, + 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, + 0x64, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, + 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x07, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x0c, 0x66, 0x61, 0x69, 0x6c, 0x75, + 0x72, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, + 0x64, 0x65, 0x52, 0x0b, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, + 0x54, 0x0a, 0x11, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x64, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x52, 0x10, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x44, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, + 0x64, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x52, 0x11, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x22, 0x7c, 0x0a, 0x12, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, + 0x61, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x42, 0xb3, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1708,7 +1875,7 @@ func file_flyteidl_core_workflow_proto_rawDescGZIP() []byte { } var file_flyteidl_core_workflow_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_core_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_flyteidl_core_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 19) var file_flyteidl_core_workflow_proto_goTypes = []interface{}{ (WorkflowMetadata_OnFailurePolicy)(0), // 0: flyteidl.core.WorkflowMetadata.OnFailurePolicy (*IfBlock)(nil), // 1: flyteidl.core.IfBlock @@ -1728,64 +1895,67 @@ var file_flyteidl_core_workflow_proto_goTypes = []interface{}{ (*WorkflowMetadataDefaults)(nil), // 15: flyteidl.core.WorkflowMetadataDefaults (*WorkflowTemplate)(nil), // 16: flyteidl.core.WorkflowTemplate (*TaskNodeOverrides)(nil), // 17: flyteidl.core.TaskNodeOverrides - nil, // 18: flyteidl.core.WorkflowMetadata.TagsEntry - (*BooleanExpression)(nil), // 19: flyteidl.core.BooleanExpression - (*Error)(nil), // 20: flyteidl.core.Error - (*Identifier)(nil), // 21: flyteidl.core.Identifier - (*LiteralType)(nil), // 22: flyteidl.core.LiteralType - (*durationpb.Duration)(nil), // 23: google.protobuf.Duration - (*RetryStrategy)(nil), // 24: flyteidl.core.RetryStrategy - (*Binding)(nil), // 25: flyteidl.core.Binding - (*QualityOfService)(nil), // 26: flyteidl.core.QualityOfService - (*TypedInterface)(nil), // 27: flyteidl.core.TypedInterface - (*Resources)(nil), // 28: flyteidl.core.Resources - (*ExtendedResources)(nil), // 29: flyteidl.core.ExtendedResources + (*LaunchPlanTemplate)(nil), // 18: flyteidl.core.LaunchPlanTemplate + nil, // 19: flyteidl.core.WorkflowMetadata.TagsEntry + (*BooleanExpression)(nil), // 20: flyteidl.core.BooleanExpression + (*Error)(nil), // 21: flyteidl.core.Error + (*Identifier)(nil), // 22: flyteidl.core.Identifier + (*LiteralType)(nil), // 23: flyteidl.core.LiteralType + (*durationpb.Duration)(nil), // 24: google.protobuf.Duration + (*RetryStrategy)(nil), // 25: flyteidl.core.RetryStrategy + (*Binding)(nil), // 26: flyteidl.core.Binding + (*QualityOfService)(nil), // 27: flyteidl.core.QualityOfService + (*TypedInterface)(nil), // 28: flyteidl.core.TypedInterface + (*Resources)(nil), // 29: flyteidl.core.Resources + (*ExtendedResources)(nil), // 30: flyteidl.core.ExtendedResources } var file_flyteidl_core_workflow_proto_depIdxs = []int32{ - 19, // 0: flyteidl.core.IfBlock.condition:type_name -> flyteidl.core.BooleanExpression + 20, // 0: flyteidl.core.IfBlock.condition:type_name -> flyteidl.core.BooleanExpression 13, // 1: flyteidl.core.IfBlock.then_node:type_name -> flyteidl.core.Node 1, // 2: flyteidl.core.IfElseBlock.case:type_name -> flyteidl.core.IfBlock 1, // 3: flyteidl.core.IfElseBlock.other:type_name -> flyteidl.core.IfBlock 13, // 4: flyteidl.core.IfElseBlock.else_node:type_name -> flyteidl.core.Node - 20, // 5: flyteidl.core.IfElseBlock.error:type_name -> flyteidl.core.Error + 21, // 5: flyteidl.core.IfElseBlock.error:type_name -> flyteidl.core.Error 2, // 6: flyteidl.core.BranchNode.if_else:type_name -> flyteidl.core.IfElseBlock - 21, // 7: flyteidl.core.TaskNode.reference_id:type_name -> flyteidl.core.Identifier + 22, // 7: flyteidl.core.TaskNode.reference_id:type_name -> flyteidl.core.Identifier 17, // 8: flyteidl.core.TaskNode.overrides:type_name -> flyteidl.core.TaskNodeOverrides - 21, // 9: flyteidl.core.WorkflowNode.launchplan_ref:type_name -> flyteidl.core.Identifier - 21, // 10: flyteidl.core.WorkflowNode.sub_workflow_ref:type_name -> flyteidl.core.Identifier - 22, // 11: flyteidl.core.SignalCondition.type:type_name -> flyteidl.core.LiteralType - 23, // 12: flyteidl.core.SleepCondition.duration:type_name -> google.protobuf.Duration + 22, // 9: flyteidl.core.WorkflowNode.launchplan_ref:type_name -> flyteidl.core.Identifier + 22, // 10: flyteidl.core.WorkflowNode.sub_workflow_ref:type_name -> flyteidl.core.Identifier + 23, // 11: flyteidl.core.SignalCondition.type:type_name -> flyteidl.core.LiteralType + 24, // 12: flyteidl.core.SleepCondition.duration:type_name -> google.protobuf.Duration 6, // 13: flyteidl.core.GateNode.approve:type_name -> flyteidl.core.ApproveCondition 7, // 14: flyteidl.core.GateNode.signal:type_name -> flyteidl.core.SignalCondition 8, // 15: flyteidl.core.GateNode.sleep:type_name -> flyteidl.core.SleepCondition 13, // 16: flyteidl.core.ArrayNode.node:type_name -> flyteidl.core.Node - 23, // 17: flyteidl.core.NodeMetadata.timeout:type_name -> google.protobuf.Duration - 24, // 18: flyteidl.core.NodeMetadata.retries:type_name -> flyteidl.core.RetryStrategy + 24, // 17: flyteidl.core.NodeMetadata.timeout:type_name -> google.protobuf.Duration + 25, // 18: flyteidl.core.NodeMetadata.retries:type_name -> flyteidl.core.RetryStrategy 11, // 19: flyteidl.core.Node.metadata:type_name -> flyteidl.core.NodeMetadata - 25, // 20: flyteidl.core.Node.inputs:type_name -> flyteidl.core.Binding + 26, // 20: flyteidl.core.Node.inputs:type_name -> flyteidl.core.Binding 12, // 21: flyteidl.core.Node.output_aliases:type_name -> flyteidl.core.Alias 4, // 22: flyteidl.core.Node.task_node:type_name -> flyteidl.core.TaskNode 5, // 23: flyteidl.core.Node.workflow_node:type_name -> flyteidl.core.WorkflowNode 3, // 24: flyteidl.core.Node.branch_node:type_name -> flyteidl.core.BranchNode 9, // 25: flyteidl.core.Node.gate_node:type_name -> flyteidl.core.GateNode 10, // 26: flyteidl.core.Node.array_node:type_name -> flyteidl.core.ArrayNode - 26, // 27: flyteidl.core.WorkflowMetadata.quality_of_service:type_name -> flyteidl.core.QualityOfService + 27, // 27: flyteidl.core.WorkflowMetadata.quality_of_service:type_name -> flyteidl.core.QualityOfService 0, // 28: flyteidl.core.WorkflowMetadata.on_failure:type_name -> flyteidl.core.WorkflowMetadata.OnFailurePolicy - 18, // 29: flyteidl.core.WorkflowMetadata.tags:type_name -> flyteidl.core.WorkflowMetadata.TagsEntry - 21, // 30: flyteidl.core.WorkflowTemplate.id:type_name -> flyteidl.core.Identifier + 19, // 29: flyteidl.core.WorkflowMetadata.tags:type_name -> flyteidl.core.WorkflowMetadata.TagsEntry + 22, // 30: flyteidl.core.WorkflowTemplate.id:type_name -> flyteidl.core.Identifier 14, // 31: flyteidl.core.WorkflowTemplate.metadata:type_name -> flyteidl.core.WorkflowMetadata - 27, // 32: flyteidl.core.WorkflowTemplate.interface:type_name -> flyteidl.core.TypedInterface + 28, // 32: flyteidl.core.WorkflowTemplate.interface:type_name -> flyteidl.core.TypedInterface 13, // 33: flyteidl.core.WorkflowTemplate.nodes:type_name -> flyteidl.core.Node - 25, // 34: flyteidl.core.WorkflowTemplate.outputs:type_name -> flyteidl.core.Binding + 26, // 34: flyteidl.core.WorkflowTemplate.outputs:type_name -> flyteidl.core.Binding 13, // 35: flyteidl.core.WorkflowTemplate.failure_node:type_name -> flyteidl.core.Node 15, // 36: flyteidl.core.WorkflowTemplate.metadata_defaults:type_name -> flyteidl.core.WorkflowMetadataDefaults - 28, // 37: flyteidl.core.TaskNodeOverrides.resources:type_name -> flyteidl.core.Resources - 29, // 38: flyteidl.core.TaskNodeOverrides.extended_resources:type_name -> flyteidl.core.ExtendedResources - 39, // [39:39] is the sub-list for method output_type - 39, // [39:39] is the sub-list for method input_type - 39, // [39:39] is the sub-list for extension type_name - 39, // [39:39] is the sub-list for extension extendee - 0, // [0:39] is the sub-list for field type_name + 29, // 37: flyteidl.core.TaskNodeOverrides.resources:type_name -> flyteidl.core.Resources + 30, // 38: flyteidl.core.TaskNodeOverrides.extended_resources:type_name -> flyteidl.core.ExtendedResources + 22, // 39: flyteidl.core.LaunchPlanTemplate.id:type_name -> flyteidl.core.Identifier + 28, // 40: flyteidl.core.LaunchPlanTemplate.interface:type_name -> flyteidl.core.TypedInterface + 41, // [41:41] is the sub-list for method output_type + 41, // [41:41] is the sub-list for method input_type + 41, // [41:41] is the sub-list for extension type_name + 41, // [41:41] is the sub-list for extension extendee + 0, // [0:41] is the sub-list for field type_name } func init() { file_flyteidl_core_workflow_proto_init() } @@ -2006,6 +2176,18 @@ func file_flyteidl_core_workflow_proto_init() { return nil } } + file_flyteidl_core_workflow_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LaunchPlanTemplate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_flyteidl_core_workflow_proto_msgTypes[1].OneofWrappers = []interface{}{ (*IfElseBlock_ElseNode)(nil), @@ -2029,6 +2211,9 @@ func file_flyteidl_core_workflow_proto_init() { } file_flyteidl_core_workflow_proto_msgTypes[10].OneofWrappers = []interface{}{ (*NodeMetadata_Interruptible)(nil), + (*NodeMetadata_Cacheable)(nil), + (*NodeMetadata_CacheVersion)(nil), + (*NodeMetadata_CacheSerializable)(nil), } file_flyteidl_core_workflow_proto_msgTypes[12].OneofWrappers = []interface{}{ (*Node_TaskNode)(nil), @@ -2043,7 +2228,7 @@ func file_flyteidl_core_workflow_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_flyteidl_core_workflow_proto_rawDesc, NumEnums: 1, - NumMessages: 18, + NumMessages: 19, NumExtensions: 0, NumServices: 0, }, diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json index 590c8ccd2a..5b7e650ee3 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json @@ -11328,6 +11328,16 @@ }, "description": "Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.\nEach expression results in a boolean result." }, + "coreCompiledLaunchPlan": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreLaunchPlanTemplate", + "title": "Completely contained LaunchPlan Template" + } + }, + "title": "Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer" + }, "coreCompiledTask": { "type": "object", "properties": { @@ -11374,6 +11384,14 @@ "$ref": "#/definitions/coreCompiledTask" }, "title": "Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id\n+required (at least 1)" + }, + "launch_plans": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreCompiledLaunchPlan" + }, + "description": "A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan\nwith a given id, i.e., every launch plan has a unique id." } }, "description": "A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow\nand its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that\nwill being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of\ncompiled subworkflows." @@ -11757,6 +11775,20 @@ } } }, + "coreLaunchPlanTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "A globally unique identifier for the launch plan." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "title": "The input and output interface for the launch plan" + } + }, + "description": "A structure that uniquely identifies a launch plan in the system." + }, "coreLiteral": { "type": "object", "properties": { @@ -11964,6 +11996,15 @@ }, "interruptible": { "type": "boolean" + }, + "cacheable": { + "type": "boolean" + }, + "cache_version": { + "type": "string" + }, + "cache_serializable": { + "type": "boolean" } }, "description": "Defines extra information about the Node." diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index 5fe0c697d8..b815ae4a82 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -1279,6 +1279,58 @@ export namespace flyteidl { public static verify(message: { [k: string]: any }): (string|null); } + /** Properties of a CompiledLaunchPlan. */ + interface ICompiledLaunchPlan { + + /** CompiledLaunchPlan template */ + template?: (flyteidl.core.ILaunchPlanTemplate|null); + } + + /** Represents a CompiledLaunchPlan. */ + class CompiledLaunchPlan implements ICompiledLaunchPlan { + + /** + * Constructs a new CompiledLaunchPlan. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICompiledLaunchPlan); + + /** CompiledLaunchPlan template. */ + public template?: (flyteidl.core.ILaunchPlanTemplate|null); + + /** + * Creates a new CompiledLaunchPlan instance using the specified properties. + * @param [properties] Properties to set + * @returns CompiledLaunchPlan instance + */ + public static create(properties?: flyteidl.core.ICompiledLaunchPlan): flyteidl.core.CompiledLaunchPlan; + + /** + * Encodes the specified CompiledLaunchPlan message. Does not implicitly {@link flyteidl.core.CompiledLaunchPlan.verify|verify} messages. + * @param message CompiledLaunchPlan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICompiledLaunchPlan, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompiledLaunchPlan message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompiledLaunchPlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledLaunchPlan; + + /** + * Verifies a CompiledLaunchPlan message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + /** Properties of a CompiledTask. */ interface ICompiledTask { @@ -1342,6 +1394,9 @@ export namespace flyteidl { /** CompiledWorkflowClosure tasks */ tasks?: (flyteidl.core.ICompiledTask[]|null); + + /** CompiledWorkflowClosure launchPlans */ + launchPlans?: (flyteidl.core.ICompiledLaunchPlan[]|null); } /** Represents a CompiledWorkflowClosure. */ @@ -1362,6 +1417,9 @@ export namespace flyteidl { /** CompiledWorkflowClosure tasks. */ public tasks: flyteidl.core.ICompiledTask[]; + /** CompiledWorkflowClosure launchPlans. */ + public launchPlans: flyteidl.core.ICompiledLaunchPlan[]; + /** * Creates a new CompiledWorkflowClosure instance using the specified properties. * @param [properties] Properties to set @@ -1395,4255 +1453,4340 @@ export namespace flyteidl { public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of an IfBlock. */ - interface IIfBlock { + /** Properties of a Variable. */ + interface IVariable { - /** IfBlock condition */ - condition?: (flyteidl.core.IBooleanExpression|null); + /** Variable type */ + type?: (flyteidl.core.ILiteralType|null); - /** IfBlock thenNode */ - thenNode?: (flyteidl.core.INode|null); + /** Variable description */ + description?: (string|null); + + /** Variable artifactPartialId */ + artifactPartialId?: (flyteidl.core.IArtifactID|null); + + /** Variable artifactTag */ + artifactTag?: (flyteidl.core.IArtifactTag|null); } - /** Represents an IfBlock. */ - class IfBlock implements IIfBlock { + /** Represents a Variable. */ + class Variable implements IVariable { /** - * Constructs a new IfBlock. + * Constructs a new Variable. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IIfBlock); + constructor(properties?: flyteidl.core.IVariable); - /** IfBlock condition. */ - public condition?: (flyteidl.core.IBooleanExpression|null); + /** Variable type. */ + public type?: (flyteidl.core.ILiteralType|null); - /** IfBlock thenNode. */ - public thenNode?: (flyteidl.core.INode|null); + /** Variable description. */ + public description: string; + + /** Variable artifactPartialId. */ + public artifactPartialId?: (flyteidl.core.IArtifactID|null); + + /** Variable artifactTag. */ + public artifactTag?: (flyteidl.core.IArtifactTag|null); /** - * Creates a new IfBlock instance using the specified properties. + * Creates a new Variable instance using the specified properties. * @param [properties] Properties to set - * @returns IfBlock instance + * @returns Variable instance */ - public static create(properties?: flyteidl.core.IIfBlock): flyteidl.core.IfBlock; + public static create(properties?: flyteidl.core.IVariable): flyteidl.core.Variable; /** - * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. - * @param message IfBlock message or plain object to encode + * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. + * @param message Variable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IIfBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IVariable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IfBlock message from the specified reader or buffer. + * Decodes a Variable message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IfBlock + * @returns Variable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfBlock; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Variable; /** - * Verifies an IfBlock message. + * Verifies a Variable message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of an IfElseBlock. */ - interface IIfElseBlock { - - /** IfElseBlock case */ - "case"?: (flyteidl.core.IIfBlock|null); - - /** IfElseBlock other */ - other?: (flyteidl.core.IIfBlock[]|null); - - /** IfElseBlock elseNode */ - elseNode?: (flyteidl.core.INode|null); + /** Properties of a VariableMap. */ + interface IVariableMap { - /** IfElseBlock error */ - error?: (flyteidl.core.IError|null); + /** VariableMap variables */ + variables?: ({ [k: string]: flyteidl.core.IVariable }|null); } - /** Represents an IfElseBlock. */ - class IfElseBlock implements IIfElseBlock { + /** Represents a VariableMap. */ + class VariableMap implements IVariableMap { /** - * Constructs a new IfElseBlock. + * Constructs a new VariableMap. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IIfElseBlock); - - /** IfElseBlock case. */ - public case?: (flyteidl.core.IIfBlock|null); - - /** IfElseBlock other. */ - public other: flyteidl.core.IIfBlock[]; - - /** IfElseBlock elseNode. */ - public elseNode?: (flyteidl.core.INode|null); - - /** IfElseBlock error. */ - public error?: (flyteidl.core.IError|null); + constructor(properties?: flyteidl.core.IVariableMap); - /** IfElseBlock default. */ - public default_?: ("elseNode"|"error"); + /** VariableMap variables. */ + public variables: { [k: string]: flyteidl.core.IVariable }; /** - * Creates a new IfElseBlock instance using the specified properties. + * Creates a new VariableMap instance using the specified properties. * @param [properties] Properties to set - * @returns IfElseBlock instance + * @returns VariableMap instance */ - public static create(properties?: flyteidl.core.IIfElseBlock): flyteidl.core.IfElseBlock; + public static create(properties?: flyteidl.core.IVariableMap): flyteidl.core.VariableMap; /** - * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. - * @param message IfElseBlock message or plain object to encode + * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. + * @param message VariableMap message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IIfElseBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IVariableMap, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IfElseBlock message from the specified reader or buffer. + * Decodes a VariableMap message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IfElseBlock + * @returns VariableMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfElseBlock; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.VariableMap; /** - * Verifies an IfElseBlock message. + * Verifies a VariableMap message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a BranchNode. */ - interface IBranchNode { + /** Properties of a TypedInterface. */ + interface ITypedInterface { - /** BranchNode ifElse */ - ifElse?: (flyteidl.core.IIfElseBlock|null); + /** TypedInterface inputs */ + inputs?: (flyteidl.core.IVariableMap|null); + + /** TypedInterface outputs */ + outputs?: (flyteidl.core.IVariableMap|null); } - /** Represents a BranchNode. */ - class BranchNode implements IBranchNode { + /** Represents a TypedInterface. */ + class TypedInterface implements ITypedInterface { /** - * Constructs a new BranchNode. + * Constructs a new TypedInterface. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IBranchNode); + constructor(properties?: flyteidl.core.ITypedInterface); - /** BranchNode ifElse. */ - public ifElse?: (flyteidl.core.IIfElseBlock|null); + /** TypedInterface inputs. */ + public inputs?: (flyteidl.core.IVariableMap|null); + + /** TypedInterface outputs. */ + public outputs?: (flyteidl.core.IVariableMap|null); /** - * Creates a new BranchNode instance using the specified properties. + * Creates a new TypedInterface instance using the specified properties. * @param [properties] Properties to set - * @returns BranchNode instance + * @returns TypedInterface instance */ - public static create(properties?: flyteidl.core.IBranchNode): flyteidl.core.BranchNode; + public static create(properties?: flyteidl.core.ITypedInterface): flyteidl.core.TypedInterface; /** - * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. - * @param message BranchNode message or plain object to encode + * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. + * @param message TypedInterface message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IBranchNode, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ITypedInterface, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BranchNode message from the specified reader or buffer. + * Decodes a TypedInterface message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BranchNode + * @returns TypedInterface * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BranchNode; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypedInterface; /** - * Verifies a BranchNode message. + * Verifies a TypedInterface message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a TaskNode. */ - interface ITaskNode { + /** Properties of a Parameter. */ + interface IParameter { - /** TaskNode referenceId */ - referenceId?: (flyteidl.core.IIdentifier|null); + /** Parameter var */ + "var"?: (flyteidl.core.IVariable|null); - /** TaskNode overrides */ - overrides?: (flyteidl.core.ITaskNodeOverrides|null); + /** Parameter default */ + "default"?: (flyteidl.core.ILiteral|null); + + /** Parameter required */ + required?: (boolean|null); + + /** Parameter artifactQuery */ + artifactQuery?: (flyteidl.core.IArtifactQuery|null); + + /** Parameter artifactId */ + artifactId?: (flyteidl.core.IArtifactID|null); } - /** Represents a TaskNode. */ - class TaskNode implements ITaskNode { + /** Represents a Parameter. */ + class Parameter implements IParameter { /** - * Constructs a new TaskNode. + * Constructs a new Parameter. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ITaskNode); + constructor(properties?: flyteidl.core.IParameter); - /** TaskNode referenceId. */ - public referenceId?: (flyteidl.core.IIdentifier|null); + /** Parameter var. */ + public var?: (flyteidl.core.IVariable|null); - /** TaskNode overrides. */ - public overrides?: (flyteidl.core.ITaskNodeOverrides|null); + /** Parameter default. */ + public default?: (flyteidl.core.ILiteral|null); - /** TaskNode reference. */ - public reference?: "referenceId"; + /** Parameter required. */ + public required: boolean; + + /** Parameter artifactQuery. */ + public artifactQuery?: (flyteidl.core.IArtifactQuery|null); + + /** Parameter artifactId. */ + public artifactId?: (flyteidl.core.IArtifactID|null); + + /** Parameter behavior. */ + public behavior?: ("default"|"required"|"artifactQuery"|"artifactId"); /** - * Creates a new TaskNode instance using the specified properties. + * Creates a new Parameter instance using the specified properties. * @param [properties] Properties to set - * @returns TaskNode instance + * @returns Parameter instance */ - public static create(properties?: flyteidl.core.ITaskNode): flyteidl.core.TaskNode; + public static create(properties?: flyteidl.core.IParameter): flyteidl.core.Parameter; /** - * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. - * @param message TaskNode message or plain object to encode + * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ITaskNode, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskNode message from the specified reader or buffer. + * Decodes a Parameter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TaskNode + * @returns Parameter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskNode; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Parameter; /** - * Verifies a TaskNode message. + * Verifies a Parameter message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a WorkflowNode. */ - interface IWorkflowNode { - - /** WorkflowNode launchplanRef */ - launchplanRef?: (flyteidl.core.IIdentifier|null); + /** Properties of a ParameterMap. */ + interface IParameterMap { - /** WorkflowNode subWorkflowRef */ - subWorkflowRef?: (flyteidl.core.IIdentifier|null); + /** ParameterMap parameters */ + parameters?: ({ [k: string]: flyteidl.core.IParameter }|null); } - /** Represents a WorkflowNode. */ - class WorkflowNode implements IWorkflowNode { + /** Represents a ParameterMap. */ + class ParameterMap implements IParameterMap { /** - * Constructs a new WorkflowNode. + * Constructs a new ParameterMap. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IWorkflowNode); - - /** WorkflowNode launchplanRef. */ - public launchplanRef?: (flyteidl.core.IIdentifier|null); - - /** WorkflowNode subWorkflowRef. */ - public subWorkflowRef?: (flyteidl.core.IIdentifier|null); + constructor(properties?: flyteidl.core.IParameterMap); - /** WorkflowNode reference. */ - public reference?: ("launchplanRef"|"subWorkflowRef"); + /** ParameterMap parameters. */ + public parameters: { [k: string]: flyteidl.core.IParameter }; /** - * Creates a new WorkflowNode instance using the specified properties. + * Creates a new ParameterMap instance using the specified properties. * @param [properties] Properties to set - * @returns WorkflowNode instance + * @returns ParameterMap instance */ - public static create(properties?: flyteidl.core.IWorkflowNode): flyteidl.core.WorkflowNode; + public static create(properties?: flyteidl.core.IParameterMap): flyteidl.core.ParameterMap; /** - * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. - * @param message WorkflowNode message or plain object to encode + * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. + * @param message ParameterMap message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IWorkflowNode, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IParameterMap, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WorkflowNode message from the specified reader or buffer. + * Decodes a ParameterMap message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WorkflowNode + * @returns ParameterMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowNode; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ParameterMap; /** - * Verifies a WorkflowNode message. + * Verifies a ParameterMap message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of an ApproveCondition. */ - interface IApproveCondition { + /** SimpleType enum. */ + enum SimpleType { + NONE = 0, + INTEGER = 1, + FLOAT = 2, + STRING = 3, + BOOLEAN = 4, + DATETIME = 5, + DURATION = 6, + BINARY = 7, + ERROR = 8, + STRUCT = 9 + } - /** ApproveCondition signalId */ - signalId?: (string|null); + /** Properties of a SchemaType. */ + interface ISchemaType { + + /** SchemaType columns */ + columns?: (flyteidl.core.SchemaType.ISchemaColumn[]|null); } - /** Represents an ApproveCondition. */ - class ApproveCondition implements IApproveCondition { + /** Represents a SchemaType. */ + class SchemaType implements ISchemaType { /** - * Constructs a new ApproveCondition. + * Constructs a new SchemaType. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IApproveCondition); + constructor(properties?: flyteidl.core.ISchemaType); - /** ApproveCondition signalId. */ - public signalId: string; + /** SchemaType columns. */ + public columns: flyteidl.core.SchemaType.ISchemaColumn[]; /** - * Creates a new ApproveCondition instance using the specified properties. + * Creates a new SchemaType instance using the specified properties. * @param [properties] Properties to set - * @returns ApproveCondition instance + * @returns SchemaType instance */ - public static create(properties?: flyteidl.core.IApproveCondition): flyteidl.core.ApproveCondition; + public static create(properties?: flyteidl.core.ISchemaType): flyteidl.core.SchemaType; /** - * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. - * @param message ApproveCondition message or plain object to encode + * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. + * @param message SchemaType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IApproveCondition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ISchemaType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApproveCondition message from the specified reader or buffer. + * Decodes a SchemaType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApproveCondition + * @returns SchemaType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ApproveCondition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType; /** - * Verifies an ApproveCondition message. + * Verifies a SchemaType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a SignalCondition. */ - interface ISignalCondition { + namespace SchemaType { - /** SignalCondition signalId */ - signalId?: (string|null); + /** Properties of a SchemaColumn. */ + interface ISchemaColumn { - /** SignalCondition type */ - type?: (flyteidl.core.ILiteralType|null); + /** SchemaColumn name */ + name?: (string|null); - /** SignalCondition outputVariableName */ - outputVariableName?: (string|null); + /** SchemaColumn type */ + type?: (flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null); + } + + /** Represents a SchemaColumn. */ + class SchemaColumn implements ISchemaColumn { + + /** + * Constructs a new SchemaColumn. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.SchemaType.ISchemaColumn); + + /** SchemaColumn name. */ + public name: string; + + /** SchemaColumn type. */ + public type: flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType; + + /** + * Creates a new SchemaColumn instance using the specified properties. + * @param [properties] Properties to set + * @returns SchemaColumn instance + */ + public static create(properties?: flyteidl.core.SchemaType.ISchemaColumn): flyteidl.core.SchemaType.SchemaColumn; + + /** + * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. + * @param message SchemaColumn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.SchemaType.ISchemaColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SchemaColumn message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchemaColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType.SchemaColumn; + + /** + * Verifies a SchemaColumn message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace SchemaColumn { + + /** SchemaColumnType enum. */ + enum SchemaColumnType { + INTEGER = 0, + FLOAT = 1, + STRING = 2, + BOOLEAN = 3, + DATETIME = 4, + DURATION = 5 + } + } } - /** Represents a SignalCondition. */ - class SignalCondition implements ISignalCondition { + /** Properties of a StructuredDatasetType. */ + interface IStructuredDatasetType { + + /** StructuredDatasetType columns */ + columns?: (flyteidl.core.StructuredDatasetType.IDatasetColumn[]|null); + + /** StructuredDatasetType format */ + format?: (string|null); + + /** StructuredDatasetType externalSchemaType */ + externalSchemaType?: (string|null); + + /** StructuredDatasetType externalSchemaBytes */ + externalSchemaBytes?: (Uint8Array|null); + } + + /** Represents a StructuredDatasetType. */ + class StructuredDatasetType implements IStructuredDatasetType { /** - * Constructs a new SignalCondition. + * Constructs a new StructuredDatasetType. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ISignalCondition); + constructor(properties?: flyteidl.core.IStructuredDatasetType); - /** SignalCondition signalId. */ - public signalId: string; + /** StructuredDatasetType columns. */ + public columns: flyteidl.core.StructuredDatasetType.IDatasetColumn[]; - /** SignalCondition type. */ - public type?: (flyteidl.core.ILiteralType|null); + /** StructuredDatasetType format. */ + public format: string; - /** SignalCondition outputVariableName. */ - public outputVariableName: string; + /** StructuredDatasetType externalSchemaType. */ + public externalSchemaType: string; + + /** StructuredDatasetType externalSchemaBytes. */ + public externalSchemaBytes: Uint8Array; /** - * Creates a new SignalCondition instance using the specified properties. + * Creates a new StructuredDatasetType instance using the specified properties. * @param [properties] Properties to set - * @returns SignalCondition instance + * @returns StructuredDatasetType instance */ - public static create(properties?: flyteidl.core.ISignalCondition): flyteidl.core.SignalCondition; + public static create(properties?: flyteidl.core.IStructuredDatasetType): flyteidl.core.StructuredDatasetType; /** - * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. - * @param message SignalCondition message or plain object to encode + * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. + * @param message StructuredDatasetType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ISignalCondition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IStructuredDatasetType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SignalCondition message from the specified reader or buffer. + * Decodes a StructuredDatasetType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SignalCondition + * @returns StructuredDatasetType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SignalCondition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType; /** - * Verifies a SignalCondition message. + * Verifies a StructuredDatasetType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a SleepCondition. */ - interface ISleepCondition { + namespace StructuredDatasetType { - /** SleepCondition duration */ - duration?: (google.protobuf.IDuration|null); + /** Properties of a DatasetColumn. */ + interface IDatasetColumn { + + /** DatasetColumn name */ + name?: (string|null); + + /** DatasetColumn literalType */ + literalType?: (flyteidl.core.ILiteralType|null); + } + + /** Represents a DatasetColumn. */ + class DatasetColumn implements IDatasetColumn { + + /** + * Constructs a new DatasetColumn. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn); + + /** DatasetColumn name. */ + public name: string; + + /** DatasetColumn literalType. */ + public literalType?: (flyteidl.core.ILiteralType|null); + + /** + * Creates a new DatasetColumn instance using the specified properties. + * @param [properties] Properties to set + * @returns DatasetColumn instance + */ + public static create(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn): flyteidl.core.StructuredDatasetType.DatasetColumn; + + /** + * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. + * @param message DatasetColumn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.StructuredDatasetType.IDatasetColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DatasetColumn message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DatasetColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType.DatasetColumn; + + /** + * Verifies a DatasetColumn message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } } - /** Represents a SleepCondition. */ - class SleepCondition implements ISleepCondition { + /** Properties of a BlobType. */ + interface IBlobType { + + /** BlobType format */ + format?: (string|null); + + /** BlobType dimensionality */ + dimensionality?: (flyteidl.core.BlobType.BlobDimensionality|null); + } + + /** Represents a BlobType. */ + class BlobType implements IBlobType { /** - * Constructs a new SleepCondition. + * Constructs a new BlobType. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ISleepCondition); + constructor(properties?: flyteidl.core.IBlobType); - /** SleepCondition duration. */ - public duration?: (google.protobuf.IDuration|null); + /** BlobType format. */ + public format: string; + + /** BlobType dimensionality. */ + public dimensionality: flyteidl.core.BlobType.BlobDimensionality; /** - * Creates a new SleepCondition instance using the specified properties. + * Creates a new BlobType instance using the specified properties. * @param [properties] Properties to set - * @returns SleepCondition instance + * @returns BlobType instance */ - public static create(properties?: flyteidl.core.ISleepCondition): flyteidl.core.SleepCondition; + public static create(properties?: flyteidl.core.IBlobType): flyteidl.core.BlobType; /** - * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. - * @param message SleepCondition message or plain object to encode + * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. + * @param message BlobType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ISleepCondition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IBlobType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SleepCondition message from the specified reader or buffer. + * Decodes a BlobType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SleepCondition + * @returns BlobType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SleepCondition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobType; /** - * Verifies a SleepCondition message. + * Verifies a BlobType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a GateNode. */ - interface IGateNode { + namespace BlobType { - /** GateNode approve */ - approve?: (flyteidl.core.IApproveCondition|null); + /** BlobDimensionality enum. */ + enum BlobDimensionality { + SINGLE = 0, + MULTIPART = 1 + } + } - /** GateNode signal */ - signal?: (flyteidl.core.ISignalCondition|null); + /** Properties of an EnumType. */ + interface IEnumType { - /** GateNode sleep */ - sleep?: (flyteidl.core.ISleepCondition|null); + /** EnumType values */ + values?: (string[]|null); } - /** Represents a GateNode. */ - class GateNode implements IGateNode { + /** Represents an EnumType. */ + class EnumType implements IEnumType { /** - * Constructs a new GateNode. + * Constructs a new EnumType. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IGateNode); - - /** GateNode approve. */ - public approve?: (flyteidl.core.IApproveCondition|null); - - /** GateNode signal. */ - public signal?: (flyteidl.core.ISignalCondition|null); - - /** GateNode sleep. */ - public sleep?: (flyteidl.core.ISleepCondition|null); + constructor(properties?: flyteidl.core.IEnumType); - /** GateNode condition. */ - public condition?: ("approve"|"signal"|"sleep"); + /** EnumType values. */ + public values: string[]; /** - * Creates a new GateNode instance using the specified properties. + * Creates a new EnumType instance using the specified properties. * @param [properties] Properties to set - * @returns GateNode instance + * @returns EnumType instance */ - public static create(properties?: flyteidl.core.IGateNode): flyteidl.core.GateNode; + public static create(properties?: flyteidl.core.IEnumType): flyteidl.core.EnumType; /** - * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. - * @param message GateNode message or plain object to encode + * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. + * @param message EnumType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IGateNode, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IEnumType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GateNode message from the specified reader or buffer. + * Decodes an EnumType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GateNode + * @returns EnumType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.GateNode; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.EnumType; /** - * Verifies a GateNode message. + * Verifies an EnumType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of an ArrayNode. */ - interface IArrayNode { - - /** ArrayNode node */ - node?: (flyteidl.core.INode|null); - - /** ArrayNode parallelism */ - parallelism?: (number|null); - - /** ArrayNode minSuccesses */ - minSuccesses?: (number|null); + /** Properties of an UnionType. */ + interface IUnionType { - /** ArrayNode minSuccessRatio */ - minSuccessRatio?: (number|null); + /** UnionType variants */ + variants?: (flyteidl.core.ILiteralType[]|null); } - /** Represents an ArrayNode. */ - class ArrayNode implements IArrayNode { + /** Represents an UnionType. */ + class UnionType implements IUnionType { /** - * Constructs a new ArrayNode. + * Constructs a new UnionType. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IArrayNode); - - /** ArrayNode node. */ - public node?: (flyteidl.core.INode|null); - - /** ArrayNode parallelism. */ - public parallelism: number; - - /** ArrayNode minSuccesses. */ - public minSuccesses: number; - - /** ArrayNode minSuccessRatio. */ - public minSuccessRatio: number; + constructor(properties?: flyteidl.core.IUnionType); - /** ArrayNode successCriteria. */ - public successCriteria?: ("minSuccesses"|"minSuccessRatio"); + /** UnionType variants. */ + public variants: flyteidl.core.ILiteralType[]; /** - * Creates a new ArrayNode instance using the specified properties. + * Creates a new UnionType instance using the specified properties. * @param [properties] Properties to set - * @returns ArrayNode instance + * @returns UnionType instance */ - public static create(properties?: flyteidl.core.IArrayNode): flyteidl.core.ArrayNode; + public static create(properties?: flyteidl.core.IUnionType): flyteidl.core.UnionType; /** - * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. - * @param message ArrayNode message or plain object to encode + * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. + * @param message UnionType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IArrayNode, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IUnionType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ArrayNode message from the specified reader or buffer. + * Decodes an UnionType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ArrayNode + * @returns UnionType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArrayNode; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.UnionType; /** - * Verifies an ArrayNode message. + * Verifies an UnionType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a NodeMetadata. */ - interface INodeMetadata { - - /** NodeMetadata name */ - name?: (string|null); - - /** NodeMetadata timeout */ - timeout?: (google.protobuf.IDuration|null); + /** Properties of a TypeStructure. */ + interface ITypeStructure { - /** NodeMetadata retries */ - retries?: (flyteidl.core.IRetryStrategy|null); + /** TypeStructure tag */ + tag?: (string|null); - /** NodeMetadata interruptible */ - interruptible?: (boolean|null); + /** TypeStructure dataclassType */ + dataclassType?: ({ [k: string]: flyteidl.core.ILiteralType }|null); } - /** Represents a NodeMetadata. */ - class NodeMetadata implements INodeMetadata { + /** Represents a TypeStructure. */ + class TypeStructure implements ITypeStructure { /** - * Constructs a new NodeMetadata. + * Constructs a new TypeStructure. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.INodeMetadata); + constructor(properties?: flyteidl.core.ITypeStructure); - /** NodeMetadata name. */ - public name: string; + /** TypeStructure tag. */ + public tag: string; - /** NodeMetadata timeout. */ - public timeout?: (google.protobuf.IDuration|null); - - /** NodeMetadata retries. */ - public retries?: (flyteidl.core.IRetryStrategy|null); - - /** NodeMetadata interruptible. */ - public interruptible: boolean; - - /** NodeMetadata interruptibleValue. */ - public interruptibleValue?: "interruptible"; + /** TypeStructure dataclassType. */ + public dataclassType: { [k: string]: flyteidl.core.ILiteralType }; /** - * Creates a new NodeMetadata instance using the specified properties. + * Creates a new TypeStructure instance using the specified properties. * @param [properties] Properties to set - * @returns NodeMetadata instance + * @returns TypeStructure instance */ - public static create(properties?: flyteidl.core.INodeMetadata): flyteidl.core.NodeMetadata; + public static create(properties?: flyteidl.core.ITypeStructure): flyteidl.core.TypeStructure; /** - * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. - * @param message NodeMetadata message or plain object to encode + * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. + * @param message TypeStructure message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.INodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ITypeStructure, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodeMetadata message from the specified reader or buffer. + * Decodes a TypeStructure message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NodeMetadata + * @returns TypeStructure * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypeStructure; /** - * Verifies a NodeMetadata message. + * Verifies a TypeStructure message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of an Alias. */ - interface IAlias { - - /** Alias var */ - "var"?: (string|null); + /** Properties of a TypeAnnotation. */ + interface ITypeAnnotation { - /** Alias alias */ - alias?: (string|null); + /** TypeAnnotation annotations */ + annotations?: (google.protobuf.IStruct|null); } - /** Represents an Alias. */ - class Alias implements IAlias { + /** Represents a TypeAnnotation. */ + class TypeAnnotation implements ITypeAnnotation { /** - * Constructs a new Alias. + * Constructs a new TypeAnnotation. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IAlias); - - /** Alias var. */ - public var: string; + constructor(properties?: flyteidl.core.ITypeAnnotation); - /** Alias alias. */ - public alias: string; + /** TypeAnnotation annotations. */ + public annotations?: (google.protobuf.IStruct|null); /** - * Creates a new Alias instance using the specified properties. + * Creates a new TypeAnnotation instance using the specified properties. * @param [properties] Properties to set - * @returns Alias instance + * @returns TypeAnnotation instance */ - public static create(properties?: flyteidl.core.IAlias): flyteidl.core.Alias; + public static create(properties?: flyteidl.core.ITypeAnnotation): flyteidl.core.TypeAnnotation; /** - * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. - * @param message Alias message or plain object to encode + * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. + * @param message TypeAnnotation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IAlias, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ITypeAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Alias message from the specified reader or buffer. + * Decodes a TypeAnnotation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Alias + * @returns TypeAnnotation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Alias; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypeAnnotation; /** - * Verifies an Alias message. + * Verifies a TypeAnnotation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a Node. */ - interface INode { + /** Properties of a LiteralType. */ + interface ILiteralType { - /** Node id */ - id?: (string|null); + /** LiteralType simple */ + simple?: (flyteidl.core.SimpleType|null); - /** Node metadata */ - metadata?: (flyteidl.core.INodeMetadata|null); + /** LiteralType schema */ + schema?: (flyteidl.core.ISchemaType|null); - /** Node inputs */ - inputs?: (flyteidl.core.IBinding[]|null); + /** LiteralType collectionType */ + collectionType?: (flyteidl.core.ILiteralType|null); - /** Node upstreamNodeIds */ - upstreamNodeIds?: (string[]|null); + /** LiteralType mapValueType */ + mapValueType?: (flyteidl.core.ILiteralType|null); - /** Node outputAliases */ - outputAliases?: (flyteidl.core.IAlias[]|null); + /** LiteralType blob */ + blob?: (flyteidl.core.IBlobType|null); - /** Node taskNode */ - taskNode?: (flyteidl.core.ITaskNode|null); + /** LiteralType enumType */ + enumType?: (flyteidl.core.IEnumType|null); - /** Node workflowNode */ - workflowNode?: (flyteidl.core.IWorkflowNode|null); + /** LiteralType structuredDatasetType */ + structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - /** Node branchNode */ - branchNode?: (flyteidl.core.IBranchNode|null); + /** LiteralType unionType */ + unionType?: (flyteidl.core.IUnionType|null); - /** Node gateNode */ - gateNode?: (flyteidl.core.IGateNode|null); + /** LiteralType metadata */ + metadata?: (google.protobuf.IStruct|null); - /** Node arrayNode */ - arrayNode?: (flyteidl.core.IArrayNode|null); + /** LiteralType annotation */ + annotation?: (flyteidl.core.ITypeAnnotation|null); + + /** LiteralType structure */ + structure?: (flyteidl.core.ITypeStructure|null); } - /** Represents a Node. */ - class Node implements INode { + /** Represents a LiteralType. */ + class LiteralType implements ILiteralType { /** - * Constructs a new Node. + * Constructs a new LiteralType. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.INode); + constructor(properties?: flyteidl.core.ILiteralType); - /** Node id. */ - public id: string; + /** LiteralType simple. */ + public simple: flyteidl.core.SimpleType; - /** Node metadata. */ - public metadata?: (flyteidl.core.INodeMetadata|null); + /** LiteralType schema. */ + public schema?: (flyteidl.core.ISchemaType|null); - /** Node inputs. */ - public inputs: flyteidl.core.IBinding[]; + /** LiteralType collectionType. */ + public collectionType?: (flyteidl.core.ILiteralType|null); - /** Node upstreamNodeIds. */ - public upstreamNodeIds: string[]; + /** LiteralType mapValueType. */ + public mapValueType?: (flyteidl.core.ILiteralType|null); - /** Node outputAliases. */ - public outputAliases: flyteidl.core.IAlias[]; + /** LiteralType blob. */ + public blob?: (flyteidl.core.IBlobType|null); - /** Node taskNode. */ - public taskNode?: (flyteidl.core.ITaskNode|null); + /** LiteralType enumType. */ + public enumType?: (flyteidl.core.IEnumType|null); - /** Node workflowNode. */ - public workflowNode?: (flyteidl.core.IWorkflowNode|null); + /** LiteralType structuredDatasetType. */ + public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - /** Node branchNode. */ - public branchNode?: (flyteidl.core.IBranchNode|null); + /** LiteralType unionType. */ + public unionType?: (flyteidl.core.IUnionType|null); - /** Node gateNode. */ - public gateNode?: (flyteidl.core.IGateNode|null); + /** LiteralType metadata. */ + public metadata?: (google.protobuf.IStruct|null); - /** Node arrayNode. */ - public arrayNode?: (flyteidl.core.IArrayNode|null); + /** LiteralType annotation. */ + public annotation?: (flyteidl.core.ITypeAnnotation|null); - /** Node target. */ - public target?: ("taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"); + /** LiteralType structure. */ + public structure?: (flyteidl.core.ITypeStructure|null); + + /** LiteralType type. */ + public type?: ("simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"); /** - * Creates a new Node instance using the specified properties. + * Creates a new LiteralType instance using the specified properties. * @param [properties] Properties to set - * @returns Node instance + * @returns LiteralType instance */ - public static create(properties?: flyteidl.core.INode): flyteidl.core.Node; + public static create(properties?: flyteidl.core.ILiteralType): flyteidl.core.LiteralType; /** - * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. - * @param message Node message or plain object to encode + * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. + * @param message LiteralType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.INode, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ILiteralType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Node message from the specified reader or buffer. + * Decodes a LiteralType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Node + * @returns LiteralType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Node; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralType; /** - * Verifies a Node message. + * Verifies a LiteralType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a WorkflowMetadata. */ - interface IWorkflowMetadata { + /** Properties of an OutputReference. */ + interface IOutputReference { - /** WorkflowMetadata qualityOfService */ - qualityOfService?: (flyteidl.core.IQualityOfService|null); + /** OutputReference nodeId */ + nodeId?: (string|null); - /** WorkflowMetadata onFailure */ - onFailure?: (flyteidl.core.WorkflowMetadata.OnFailurePolicy|null); + /** OutputReference var */ + "var"?: (string|null); - /** WorkflowMetadata tags */ - tags?: ({ [k: string]: string }|null); + /** OutputReference attrPath */ + attrPath?: (flyteidl.core.IPromiseAttribute[]|null); } - /** Represents a WorkflowMetadata. */ - class WorkflowMetadata implements IWorkflowMetadata { + /** Represents an OutputReference. */ + class OutputReference implements IOutputReference { /** - * Constructs a new WorkflowMetadata. + * Constructs a new OutputReference. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IWorkflowMetadata); + constructor(properties?: flyteidl.core.IOutputReference); - /** WorkflowMetadata qualityOfService. */ - public qualityOfService?: (flyteidl.core.IQualityOfService|null); + /** OutputReference nodeId. */ + public nodeId: string; - /** WorkflowMetadata onFailure. */ - public onFailure: flyteidl.core.WorkflowMetadata.OnFailurePolicy; + /** OutputReference var. */ + public var: string; - /** WorkflowMetadata tags. */ - public tags: { [k: string]: string }; + /** OutputReference attrPath. */ + public attrPath: flyteidl.core.IPromiseAttribute[]; /** - * Creates a new WorkflowMetadata instance using the specified properties. + * Creates a new OutputReference instance using the specified properties. * @param [properties] Properties to set - * @returns WorkflowMetadata instance + * @returns OutputReference instance */ - public static create(properties?: flyteidl.core.IWorkflowMetadata): flyteidl.core.WorkflowMetadata; + public static create(properties?: flyteidl.core.IOutputReference): flyteidl.core.OutputReference; /** - * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. - * @param message WorkflowMetadata message or plain object to encode + * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. + * @param message OutputReference message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IWorkflowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IOutputReference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WorkflowMetadata message from the specified reader or buffer. + * Decodes an OutputReference message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WorkflowMetadata + * @returns OutputReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OutputReference; /** - * Verifies a WorkflowMetadata message. + * Verifies an OutputReference message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace WorkflowMetadata { - - /** OnFailurePolicy enum. */ - enum OnFailurePolicy { - FAIL_IMMEDIATELY = 0, - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1 - } - } + /** Properties of a PromiseAttribute. */ + interface IPromiseAttribute { - /** Properties of a WorkflowMetadataDefaults. */ - interface IWorkflowMetadataDefaults { + /** PromiseAttribute stringValue */ + stringValue?: (string|null); - /** WorkflowMetadataDefaults interruptible */ - interruptible?: (boolean|null); + /** PromiseAttribute intValue */ + intValue?: (number|null); } - /** Represents a WorkflowMetadataDefaults. */ - class WorkflowMetadataDefaults implements IWorkflowMetadataDefaults { + /** Represents a PromiseAttribute. */ + class PromiseAttribute implements IPromiseAttribute { /** - * Constructs a new WorkflowMetadataDefaults. + * Constructs a new PromiseAttribute. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IWorkflowMetadataDefaults); + constructor(properties?: flyteidl.core.IPromiseAttribute); - /** WorkflowMetadataDefaults interruptible. */ - public interruptible: boolean; + /** PromiseAttribute stringValue. */ + public stringValue: string; + + /** PromiseAttribute intValue. */ + public intValue: number; + + /** PromiseAttribute value. */ + public value?: ("stringValue"|"intValue"); /** - * Creates a new WorkflowMetadataDefaults instance using the specified properties. + * Creates a new PromiseAttribute instance using the specified properties. * @param [properties] Properties to set - * @returns WorkflowMetadataDefaults instance + * @returns PromiseAttribute instance */ - public static create(properties?: flyteidl.core.IWorkflowMetadataDefaults): flyteidl.core.WorkflowMetadataDefaults; + public static create(properties?: flyteidl.core.IPromiseAttribute): flyteidl.core.PromiseAttribute; /** - * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. - * @param message WorkflowMetadataDefaults message or plain object to encode + * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages. + * @param message PromiseAttribute message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IWorkflowMetadataDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IPromiseAttribute, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. + * Decodes a PromiseAttribute message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WorkflowMetadataDefaults + * @returns PromiseAttribute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowMetadataDefaults; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.PromiseAttribute; /** - * Verifies a WorkflowMetadataDefaults message. + * Verifies a PromiseAttribute message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a WorkflowTemplate. */ - interface IWorkflowTemplate { - - /** WorkflowTemplate id */ - id?: (flyteidl.core.IIdentifier|null); - - /** WorkflowTemplate metadata */ - metadata?: (flyteidl.core.IWorkflowMetadata|null); - - /** WorkflowTemplate interface */ - "interface"?: (flyteidl.core.ITypedInterface|null); - - /** WorkflowTemplate nodes */ - nodes?: (flyteidl.core.INode[]|null); - - /** WorkflowTemplate outputs */ - outputs?: (flyteidl.core.IBinding[]|null); + /** Properties of an Error. */ + interface IError { - /** WorkflowTemplate failureNode */ - failureNode?: (flyteidl.core.INode|null); + /** Error failedNodeId */ + failedNodeId?: (string|null); - /** WorkflowTemplate metadataDefaults */ - metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); + /** Error message */ + message?: (string|null); } - /** Represents a WorkflowTemplate. */ - class WorkflowTemplate implements IWorkflowTemplate { + /** Represents an Error. */ + class Error implements IError { /** - * Constructs a new WorkflowTemplate. + * Constructs a new Error. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IWorkflowTemplate); - - /** WorkflowTemplate id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** WorkflowTemplate metadata. */ - public metadata?: (flyteidl.core.IWorkflowMetadata|null); - - /** WorkflowTemplate interface. */ - public interface?: (flyteidl.core.ITypedInterface|null); - - /** WorkflowTemplate nodes. */ - public nodes: flyteidl.core.INode[]; - - /** WorkflowTemplate outputs. */ - public outputs: flyteidl.core.IBinding[]; + constructor(properties?: flyteidl.core.IError); - /** WorkflowTemplate failureNode. */ - public failureNode?: (flyteidl.core.INode|null); + /** Error failedNodeId. */ + public failedNodeId: string; - /** WorkflowTemplate metadataDefaults. */ - public metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); + /** Error message. */ + public message: string; /** - * Creates a new WorkflowTemplate instance using the specified properties. + * Creates a new Error instance using the specified properties. * @param [properties] Properties to set - * @returns WorkflowTemplate instance + * @returns Error instance */ - public static create(properties?: flyteidl.core.IWorkflowTemplate): flyteidl.core.WorkflowTemplate; + public static create(properties?: flyteidl.core.IError): flyteidl.core.Error; /** - * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. - * @param message WorkflowTemplate message or plain object to encode + * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. + * @param message Error message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IWorkflowTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WorkflowTemplate message from the specified reader or buffer. + * Decodes an Error message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WorkflowTemplate + * @returns Error * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowTemplate; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Error; /** - * Verifies a WorkflowTemplate message. + * Verifies an Error message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a TaskNodeOverrides. */ - interface ITaskNodeOverrides { + /** Properties of a Primitive. */ + interface IPrimitive { - /** TaskNodeOverrides resources */ - resources?: (flyteidl.core.IResources|null); + /** Primitive integer */ + integer?: (Long|null); - /** TaskNodeOverrides extendedResources */ - extendedResources?: (flyteidl.core.IExtendedResources|null); + /** Primitive floatValue */ + floatValue?: (number|null); + + /** Primitive stringValue */ + stringValue?: (string|null); + + /** Primitive boolean */ + boolean?: (boolean|null); + + /** Primitive datetime */ + datetime?: (google.protobuf.ITimestamp|null); + + /** Primitive duration */ + duration?: (google.protobuf.IDuration|null); } - /** Represents a TaskNodeOverrides. */ - class TaskNodeOverrides implements ITaskNodeOverrides { + /** Represents a Primitive. */ + class Primitive implements IPrimitive { /** - * Constructs a new TaskNodeOverrides. + * Constructs a new Primitive. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ITaskNodeOverrides); + constructor(properties?: flyteidl.core.IPrimitive); - /** TaskNodeOverrides resources. */ - public resources?: (flyteidl.core.IResources|null); + /** Primitive integer. */ + public integer: Long; - /** TaskNodeOverrides extendedResources. */ - public extendedResources?: (flyteidl.core.IExtendedResources|null); + /** Primitive floatValue. */ + public floatValue: number; + + /** Primitive stringValue. */ + public stringValue: string; + + /** Primitive boolean. */ + public boolean: boolean; + + /** Primitive datetime. */ + public datetime?: (google.protobuf.ITimestamp|null); + + /** Primitive duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** Primitive value. */ + public value?: ("integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"); /** - * Creates a new TaskNodeOverrides instance using the specified properties. + * Creates a new Primitive instance using the specified properties. * @param [properties] Properties to set - * @returns TaskNodeOverrides instance + * @returns Primitive instance */ - public static create(properties?: flyteidl.core.ITaskNodeOverrides): flyteidl.core.TaskNodeOverrides; + public static create(properties?: flyteidl.core.IPrimitive): flyteidl.core.Primitive; /** - * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. - * @param message TaskNodeOverrides message or plain object to encode + * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. + * @param message Primitive message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ITaskNodeOverrides, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IPrimitive, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskNodeOverrides message from the specified reader or buffer. + * Decodes a Primitive message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TaskNodeOverrides + * @returns Primitive * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskNodeOverrides; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Primitive; /** - * Verifies a TaskNodeOverrides message. + * Verifies a Primitive message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a ComparisonExpression. */ - interface IComparisonExpression { - - /** ComparisonExpression operator */ - operator?: (flyteidl.core.ComparisonExpression.Operator|null); - - /** ComparisonExpression leftValue */ - leftValue?: (flyteidl.core.IOperand|null); - - /** ComparisonExpression rightValue */ - rightValue?: (flyteidl.core.IOperand|null); + /** Properties of a Void. */ + interface IVoid { } - /** Represents a ComparisonExpression. */ - class ComparisonExpression implements IComparisonExpression { + /** Represents a Void. */ + class Void implements IVoid { /** - * Constructs a new ComparisonExpression. + * Constructs a new Void. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IComparisonExpression); - - /** ComparisonExpression operator. */ - public operator: flyteidl.core.ComparisonExpression.Operator; - - /** ComparisonExpression leftValue. */ - public leftValue?: (flyteidl.core.IOperand|null); - - /** ComparisonExpression rightValue. */ - public rightValue?: (flyteidl.core.IOperand|null); + constructor(properties?: flyteidl.core.IVoid); /** - * Creates a new ComparisonExpression instance using the specified properties. + * Creates a new Void instance using the specified properties. * @param [properties] Properties to set - * @returns ComparisonExpression instance + * @returns Void instance */ - public static create(properties?: flyteidl.core.IComparisonExpression): flyteidl.core.ComparisonExpression; + public static create(properties?: flyteidl.core.IVoid): flyteidl.core.Void; /** - * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. - * @param message ComparisonExpression message or plain object to encode + * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. + * @param message Void message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IComparisonExpression, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IVoid, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ComparisonExpression message from the specified reader or buffer. + * Decodes a Void message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ComparisonExpression + * @returns Void * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ComparisonExpression; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Void; /** - * Verifies a ComparisonExpression message. + * Verifies a Void message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace ComparisonExpression { - - /** Operator enum. */ - enum Operator { - EQ = 0, - NEQ = 1, - GT = 2, - GTE = 3, - LT = 4, - LTE = 5 - } - } - - /** Properties of an Operand. */ - interface IOperand { - - /** Operand primitive */ - primitive?: (flyteidl.core.IPrimitive|null); + /** Properties of a Blob. */ + interface IBlob { - /** Operand var */ - "var"?: (string|null); + /** Blob metadata */ + metadata?: (flyteidl.core.IBlobMetadata|null); - /** Operand scalar */ - scalar?: (flyteidl.core.IScalar|null); + /** Blob uri */ + uri?: (string|null); } - /** Represents an Operand. */ - class Operand implements IOperand { + /** Represents a Blob. */ + class Blob implements IBlob { /** - * Constructs a new Operand. + * Constructs a new Blob. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IOperand); - - /** Operand primitive. */ - public primitive?: (flyteidl.core.IPrimitive|null); - - /** Operand var. */ - public var: string; + constructor(properties?: flyteidl.core.IBlob); - /** Operand scalar. */ - public scalar?: (flyteidl.core.IScalar|null); + /** Blob metadata. */ + public metadata?: (flyteidl.core.IBlobMetadata|null); - /** Operand val. */ - public val?: ("primitive"|"var"|"scalar"); + /** Blob uri. */ + public uri: string; /** - * Creates a new Operand instance using the specified properties. + * Creates a new Blob instance using the specified properties. * @param [properties] Properties to set - * @returns Operand instance + * @returns Blob instance */ - public static create(properties?: flyteidl.core.IOperand): flyteidl.core.Operand; + public static create(properties?: flyteidl.core.IBlob): flyteidl.core.Blob; /** - * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. - * @param message Operand message or plain object to encode + * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. + * @param message Blob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IOperand, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IBlob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Operand message from the specified reader or buffer. + * Decodes a Blob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Operand + * @returns Blob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Operand; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Blob; /** - * Verifies an Operand message. + * Verifies a Blob message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a BooleanExpression. */ - interface IBooleanExpression { - - /** BooleanExpression conjunction */ - conjunction?: (flyteidl.core.IConjunctionExpression|null); + /** Properties of a BlobMetadata. */ + interface IBlobMetadata { - /** BooleanExpression comparison */ - comparison?: (flyteidl.core.IComparisonExpression|null); + /** BlobMetadata type */ + type?: (flyteidl.core.IBlobType|null); } - /** Represents a BooleanExpression. */ - class BooleanExpression implements IBooleanExpression { + /** Represents a BlobMetadata. */ + class BlobMetadata implements IBlobMetadata { /** - * Constructs a new BooleanExpression. + * Constructs a new BlobMetadata. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IBooleanExpression); - - /** BooleanExpression conjunction. */ - public conjunction?: (flyteidl.core.IConjunctionExpression|null); - - /** BooleanExpression comparison. */ - public comparison?: (flyteidl.core.IComparisonExpression|null); + constructor(properties?: flyteidl.core.IBlobMetadata); - /** BooleanExpression expr. */ - public expr?: ("conjunction"|"comparison"); + /** BlobMetadata type. */ + public type?: (flyteidl.core.IBlobType|null); /** - * Creates a new BooleanExpression instance using the specified properties. + * Creates a new BlobMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BooleanExpression instance + * @returns BlobMetadata instance */ - public static create(properties?: flyteidl.core.IBooleanExpression): flyteidl.core.BooleanExpression; + public static create(properties?: flyteidl.core.IBlobMetadata): flyteidl.core.BlobMetadata; /** - * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. - * @param message BooleanExpression message or plain object to encode + * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. + * @param message BlobMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IBooleanExpression, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IBlobMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BooleanExpression message from the specified reader or buffer. + * Decodes a BlobMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BooleanExpression + * @returns BlobMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BooleanExpression; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobMetadata; /** - * Verifies a BooleanExpression message. + * Verifies a BlobMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a ConjunctionExpression. */ - interface IConjunctionExpression { - - /** ConjunctionExpression operator */ - operator?: (flyteidl.core.ConjunctionExpression.LogicalOperator|null); + /** Properties of a Binary. */ + interface IBinary { - /** ConjunctionExpression leftExpression */ - leftExpression?: (flyteidl.core.IBooleanExpression|null); + /** Binary value */ + value?: (Uint8Array|null); - /** ConjunctionExpression rightExpression */ - rightExpression?: (flyteidl.core.IBooleanExpression|null); + /** Binary tag */ + tag?: (string|null); } - /** Represents a ConjunctionExpression. */ - class ConjunctionExpression implements IConjunctionExpression { + /** Represents a Binary. */ + class Binary implements IBinary { /** - * Constructs a new ConjunctionExpression. + * Constructs a new Binary. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IConjunctionExpression); - - /** ConjunctionExpression operator. */ - public operator: flyteidl.core.ConjunctionExpression.LogicalOperator; + constructor(properties?: flyteidl.core.IBinary); - /** ConjunctionExpression leftExpression. */ - public leftExpression?: (flyteidl.core.IBooleanExpression|null); + /** Binary value. */ + public value: Uint8Array; - /** ConjunctionExpression rightExpression. */ - public rightExpression?: (flyteidl.core.IBooleanExpression|null); + /** Binary tag. */ + public tag: string; /** - * Creates a new ConjunctionExpression instance using the specified properties. + * Creates a new Binary instance using the specified properties. * @param [properties] Properties to set - * @returns ConjunctionExpression instance + * @returns Binary instance */ - public static create(properties?: flyteidl.core.IConjunctionExpression): flyteidl.core.ConjunctionExpression; + public static create(properties?: flyteidl.core.IBinary): flyteidl.core.Binary; /** - * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. - * @param message ConjunctionExpression message or plain object to encode + * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. + * @param message Binary message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IConjunctionExpression, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IBinary, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConjunctionExpression message from the specified reader or buffer. + * Decodes a Binary message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConjunctionExpression + * @returns Binary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConjunctionExpression; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binary; /** - * Verifies a ConjunctionExpression message. + * Verifies a Binary message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace ConjunctionExpression { - - /** LogicalOperator enum. */ - enum LogicalOperator { - AND = 0, - OR = 1 - } - } - - /** Properties of a Primitive. */ - interface IPrimitive { - - /** Primitive integer */ - integer?: (Long|null); - - /** Primitive floatValue */ - floatValue?: (number|null); - - /** Primitive stringValue */ - stringValue?: (string|null); - - /** Primitive boolean */ - boolean?: (boolean|null); + /** Properties of a Schema. */ + interface ISchema { - /** Primitive datetime */ - datetime?: (google.protobuf.ITimestamp|null); + /** Schema uri */ + uri?: (string|null); - /** Primitive duration */ - duration?: (google.protobuf.IDuration|null); + /** Schema type */ + type?: (flyteidl.core.ISchemaType|null); } - /** Represents a Primitive. */ - class Primitive implements IPrimitive { + /** Represents a Schema. */ + class Schema implements ISchema { /** - * Constructs a new Primitive. + * Constructs a new Schema. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IPrimitive); - - /** Primitive integer. */ - public integer: Long; - - /** Primitive floatValue. */ - public floatValue: number; - - /** Primitive stringValue. */ - public stringValue: string; - - /** Primitive boolean. */ - public boolean: boolean; - - /** Primitive datetime. */ - public datetime?: (google.protobuf.ITimestamp|null); + constructor(properties?: flyteidl.core.ISchema); - /** Primitive duration. */ - public duration?: (google.protobuf.IDuration|null); + /** Schema uri. */ + public uri: string; - /** Primitive value. */ - public value?: ("integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"); + /** Schema type. */ + public type?: (flyteidl.core.ISchemaType|null); /** - * Creates a new Primitive instance using the specified properties. + * Creates a new Schema instance using the specified properties. * @param [properties] Properties to set - * @returns Primitive instance + * @returns Schema instance */ - public static create(properties?: flyteidl.core.IPrimitive): flyteidl.core.Primitive; + public static create(properties?: flyteidl.core.ISchema): flyteidl.core.Schema; /** - * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. - * @param message Primitive message or plain object to encode + * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. + * @param message Schema message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IPrimitive, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ISchema, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Primitive message from the specified reader or buffer. + * Decodes a Schema message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Primitive + * @returns Schema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Primitive; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Schema; /** - * Verifies a Primitive message. + * Verifies a Schema message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a Void. */ - interface IVoid { + /** Properties of an Union. */ + interface IUnion { + + /** Union value */ + value?: (flyteidl.core.ILiteral|null); + + /** Union type */ + type?: (flyteidl.core.ILiteralType|null); } - /** Represents a Void. */ - class Void implements IVoid { + /** Represents an Union. */ + class Union implements IUnion { /** - * Constructs a new Void. + * Constructs a new Union. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IVoid); + constructor(properties?: flyteidl.core.IUnion); + + /** Union value. */ + public value?: (flyteidl.core.ILiteral|null); + + /** Union type. */ + public type?: (flyteidl.core.ILiteralType|null); /** - * Creates a new Void instance using the specified properties. + * Creates a new Union instance using the specified properties. * @param [properties] Properties to set - * @returns Void instance + * @returns Union instance */ - public static create(properties?: flyteidl.core.IVoid): flyteidl.core.Void; + public static create(properties?: flyteidl.core.IUnion): flyteidl.core.Union; /** - * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. - * @param message Void message or plain object to encode + * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. + * @param message Union message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IVoid, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IUnion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Void message from the specified reader or buffer. + * Decodes an Union message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Void + * @returns Union * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Union; /** - * Verifies a Void message. + * Verifies an Union message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a Blob. */ - interface IBlob { - - /** Blob metadata */ - metadata?: (flyteidl.core.IBlobMetadata|null); + /** Properties of a StructuredDatasetMetadata. */ + interface IStructuredDatasetMetadata { - /** Blob uri */ - uri?: (string|null); + /** StructuredDatasetMetadata structuredDatasetType */ + structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); } - /** Represents a Blob. */ - class Blob implements IBlob { + /** Represents a StructuredDatasetMetadata. */ + class StructuredDatasetMetadata implements IStructuredDatasetMetadata { /** - * Constructs a new Blob. + * Constructs a new StructuredDatasetMetadata. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IBlob); - - /** Blob metadata. */ - public metadata?: (flyteidl.core.IBlobMetadata|null); + constructor(properties?: flyteidl.core.IStructuredDatasetMetadata); - /** Blob uri. */ - public uri: string; + /** StructuredDatasetMetadata structuredDatasetType. */ + public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); /** - * Creates a new Blob instance using the specified properties. + * Creates a new StructuredDatasetMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns Blob instance + * @returns StructuredDatasetMetadata instance */ - public static create(properties?: flyteidl.core.IBlob): flyteidl.core.Blob; + public static create(properties?: flyteidl.core.IStructuredDatasetMetadata): flyteidl.core.StructuredDatasetMetadata; /** - * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. - * @param message Blob message or plain object to encode + * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. + * @param message StructuredDatasetMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IBlob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IStructuredDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Blob message from the specified reader or buffer. + * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Blob + * @returns StructuredDatasetMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Blob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetMetadata; /** - * Verifies a Blob message. + * Verifies a StructuredDatasetMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a BlobMetadata. */ - interface IBlobMetadata { + /** Properties of a StructuredDataset. */ + interface IStructuredDataset { - /** BlobMetadata type */ - type?: (flyteidl.core.IBlobType|null); + /** StructuredDataset uri */ + uri?: (string|null); + + /** StructuredDataset metadata */ + metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); } - /** Represents a BlobMetadata. */ - class BlobMetadata implements IBlobMetadata { + /** Represents a StructuredDataset. */ + class StructuredDataset implements IStructuredDataset { /** - * Constructs a new BlobMetadata. + * Constructs a new StructuredDataset. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IBlobMetadata); + constructor(properties?: flyteidl.core.IStructuredDataset); - /** BlobMetadata type. */ - public type?: (flyteidl.core.IBlobType|null); + /** StructuredDataset uri. */ + public uri: string; + + /** StructuredDataset metadata. */ + public metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); /** - * Creates a new BlobMetadata instance using the specified properties. + * Creates a new StructuredDataset instance using the specified properties. * @param [properties] Properties to set - * @returns BlobMetadata instance + * @returns StructuredDataset instance */ - public static create(properties?: flyteidl.core.IBlobMetadata): flyteidl.core.BlobMetadata; + public static create(properties?: flyteidl.core.IStructuredDataset): flyteidl.core.StructuredDataset; /** - * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. - * @param message BlobMetadata message or plain object to encode + * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. + * @param message StructuredDataset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IBlobMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IStructuredDataset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BlobMetadata message from the specified reader or buffer. + * Decodes a StructuredDataset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BlobMetadata + * @returns StructuredDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDataset; /** - * Verifies a BlobMetadata message. + * Verifies a StructuredDataset message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a Binary. */ - interface IBinary { + /** Properties of a Scalar. */ + interface IScalar { - /** Binary value */ - value?: (Uint8Array|null); + /** Scalar primitive */ + primitive?: (flyteidl.core.IPrimitive|null); - /** Binary tag */ - tag?: (string|null); + /** Scalar blob */ + blob?: (flyteidl.core.IBlob|null); + + /** Scalar binary */ + binary?: (flyteidl.core.IBinary|null); + + /** Scalar schema */ + schema?: (flyteidl.core.ISchema|null); + + /** Scalar noneType */ + noneType?: (flyteidl.core.IVoid|null); + + /** Scalar error */ + error?: (flyteidl.core.IError|null); + + /** Scalar generic */ + generic?: (google.protobuf.IStruct|null); + + /** Scalar structuredDataset */ + structuredDataset?: (flyteidl.core.IStructuredDataset|null); + + /** Scalar union */ + union?: (flyteidl.core.IUnion|null); } - /** Represents a Binary. */ - class Binary implements IBinary { + /** Represents a Scalar. */ + class Scalar implements IScalar { /** - * Constructs a new Binary. + * Constructs a new Scalar. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IBinary); + constructor(properties?: flyteidl.core.IScalar); - /** Binary value. */ - public value: Uint8Array; + /** Scalar primitive. */ + public primitive?: (flyteidl.core.IPrimitive|null); - /** Binary tag. */ - public tag: string; + /** Scalar blob. */ + public blob?: (flyteidl.core.IBlob|null); + + /** Scalar binary. */ + public binary?: (flyteidl.core.IBinary|null); + + /** Scalar schema. */ + public schema?: (flyteidl.core.ISchema|null); + + /** Scalar noneType. */ + public noneType?: (flyteidl.core.IVoid|null); + + /** Scalar error. */ + public error?: (flyteidl.core.IError|null); + + /** Scalar generic. */ + public generic?: (google.protobuf.IStruct|null); + + /** Scalar structuredDataset. */ + public structuredDataset?: (flyteidl.core.IStructuredDataset|null); + + /** Scalar union. */ + public union?: (flyteidl.core.IUnion|null); + + /** Scalar value. */ + public value?: ("primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"); /** - * Creates a new Binary instance using the specified properties. + * Creates a new Scalar instance using the specified properties. * @param [properties] Properties to set - * @returns Binary instance + * @returns Scalar instance */ - public static create(properties?: flyteidl.core.IBinary): flyteidl.core.Binary; + public static create(properties?: flyteidl.core.IScalar): flyteidl.core.Scalar; /** - * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. - * @param message Binary message or plain object to encode + * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. + * @param message Scalar message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IBinary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Binary message from the specified reader or buffer. + * Decodes a Scalar message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Binary + * @returns Scalar * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binary; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Scalar; /** - * Verifies a Binary message. + * Verifies a Scalar message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a Schema. */ - interface ISchema { + /** Properties of a Literal. */ + interface ILiteral { - /** Schema uri */ - uri?: (string|null); + /** Literal scalar */ + scalar?: (flyteidl.core.IScalar|null); - /** Schema type */ - type?: (flyteidl.core.ISchemaType|null); - } + /** Literal collection */ + collection?: (flyteidl.core.ILiteralCollection|null); - /** Represents a Schema. */ - class Schema implements ISchema { + /** Literal map */ + map?: (flyteidl.core.ILiteralMap|null); - /** - * Constructs a new Schema. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISchema); + /** Literal hash */ + hash?: (string|null); - /** Schema uri. */ - public uri: string; + /** Literal metadata */ + metadata?: ({ [k: string]: string }|null); + } - /** Schema type. */ - public type?: (flyteidl.core.ISchemaType|null); + /** Represents a Literal. */ + class Literal implements ILiteral { /** - * Creates a new Schema instance using the specified properties. + * Constructs a new Literal. * @param [properties] Properties to set - * @returns Schema instance */ - public static create(properties?: flyteidl.core.ISchema): flyteidl.core.Schema; + constructor(properties?: flyteidl.core.ILiteral); + + /** Literal scalar. */ + public scalar?: (flyteidl.core.IScalar|null); + + /** Literal collection. */ + public collection?: (flyteidl.core.ILiteralCollection|null); + + /** Literal map. */ + public map?: (flyteidl.core.ILiteralMap|null); + + /** Literal hash. */ + public hash: string; + + /** Literal metadata. */ + public metadata: { [k: string]: string }; + + /** Literal value. */ + public value?: ("scalar"|"collection"|"map"); /** - * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. - * @param message Schema message or plain object to encode + * Creates a new Literal instance using the specified properties. + * @param [properties] Properties to set + * @returns Literal instance + */ + public static create(properties?: flyteidl.core.ILiteral): flyteidl.core.Literal; + + /** + * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. + * @param message Literal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ISchema, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ILiteral, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Schema message from the specified reader or buffer. + * Decodes a Literal message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Schema + * @returns Literal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Schema; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Literal; /** - * Verifies a Schema message. + * Verifies a Literal message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of an Union. */ - interface IUnion { - - /** Union value */ - value?: (flyteidl.core.ILiteral|null); + /** Properties of a LiteralCollection. */ + interface ILiteralCollection { - /** Union type */ - type?: (flyteidl.core.ILiteralType|null); + /** LiteralCollection literals */ + literals?: (flyteidl.core.ILiteral[]|null); } - /** Represents an Union. */ - class Union implements IUnion { + /** Represents a LiteralCollection. */ + class LiteralCollection implements ILiteralCollection { /** - * Constructs a new Union. + * Constructs a new LiteralCollection. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IUnion); - - /** Union value. */ - public value?: (flyteidl.core.ILiteral|null); + constructor(properties?: flyteidl.core.ILiteralCollection); - /** Union type. */ - public type?: (flyteidl.core.ILiteralType|null); + /** LiteralCollection literals. */ + public literals: flyteidl.core.ILiteral[]; /** - * Creates a new Union instance using the specified properties. + * Creates a new LiteralCollection instance using the specified properties. * @param [properties] Properties to set - * @returns Union instance + * @returns LiteralCollection instance */ - public static create(properties?: flyteidl.core.IUnion): flyteidl.core.Union; + public static create(properties?: flyteidl.core.ILiteralCollection): flyteidl.core.LiteralCollection; /** - * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. - * @param message Union message or plain object to encode + * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. + * @param message LiteralCollection message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IUnion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ILiteralCollection, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Union message from the specified reader or buffer. + * Decodes a LiteralCollection message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Union + * @returns LiteralCollection * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Union; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralCollection; /** - * Verifies an Union message. + * Verifies a LiteralCollection message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a StructuredDatasetMetadata. */ - interface IStructuredDatasetMetadata { + /** Properties of a LiteralMap. */ + interface ILiteralMap { - /** StructuredDatasetMetadata structuredDatasetType */ - structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); + /** LiteralMap literals */ + literals?: ({ [k: string]: flyteidl.core.ILiteral }|null); } - /** Represents a StructuredDatasetMetadata. */ - class StructuredDatasetMetadata implements IStructuredDatasetMetadata { + /** Represents a LiteralMap. */ + class LiteralMap implements ILiteralMap { /** - * Constructs a new StructuredDatasetMetadata. + * Constructs a new LiteralMap. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IStructuredDatasetMetadata); + constructor(properties?: flyteidl.core.ILiteralMap); - /** StructuredDatasetMetadata structuredDatasetType. */ - public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); + /** LiteralMap literals. */ + public literals: { [k: string]: flyteidl.core.ILiteral }; /** - * Creates a new StructuredDatasetMetadata instance using the specified properties. + * Creates a new LiteralMap instance using the specified properties. * @param [properties] Properties to set - * @returns StructuredDatasetMetadata instance + * @returns LiteralMap instance */ - public static create(properties?: flyteidl.core.IStructuredDatasetMetadata): flyteidl.core.StructuredDatasetMetadata; + public static create(properties?: flyteidl.core.ILiteralMap): flyteidl.core.LiteralMap; /** - * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. - * @param message StructuredDatasetMetadata message or plain object to encode + * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. + * @param message LiteralMap message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IStructuredDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ILiteralMap, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. + * Decodes a LiteralMap message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StructuredDatasetMetadata + * @returns LiteralMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralMap; /** - * Verifies a StructuredDatasetMetadata message. + * Verifies a LiteralMap message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a StructuredDataset. */ - interface IStructuredDataset { - - /** StructuredDataset uri */ - uri?: (string|null); + /** Properties of a BindingDataCollection. */ + interface IBindingDataCollection { - /** StructuredDataset metadata */ - metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); + /** BindingDataCollection bindings */ + bindings?: (flyteidl.core.IBindingData[]|null); } - /** Represents a StructuredDataset. */ - class StructuredDataset implements IStructuredDataset { + /** Represents a BindingDataCollection. */ + class BindingDataCollection implements IBindingDataCollection { /** - * Constructs a new StructuredDataset. + * Constructs a new BindingDataCollection. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IStructuredDataset); - - /** StructuredDataset uri. */ - public uri: string; + constructor(properties?: flyteidl.core.IBindingDataCollection); - /** StructuredDataset metadata. */ - public metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); + /** BindingDataCollection bindings. */ + public bindings: flyteidl.core.IBindingData[]; /** - * Creates a new StructuredDataset instance using the specified properties. + * Creates a new BindingDataCollection instance using the specified properties. * @param [properties] Properties to set - * @returns StructuredDataset instance + * @returns BindingDataCollection instance */ - public static create(properties?: flyteidl.core.IStructuredDataset): flyteidl.core.StructuredDataset; + public static create(properties?: flyteidl.core.IBindingDataCollection): flyteidl.core.BindingDataCollection; /** - * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. - * @param message StructuredDataset message or plain object to encode + * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. + * @param message BindingDataCollection message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IStructuredDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IBindingDataCollection, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StructuredDataset message from the specified reader or buffer. + * Decodes a BindingDataCollection message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StructuredDataset + * @returns BindingDataCollection * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataCollection; /** - * Verifies a StructuredDataset message. + * Verifies a BindingDataCollection message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a Scalar. */ - interface IScalar { - - /** Scalar primitive */ - primitive?: (flyteidl.core.IPrimitive|null); - - /** Scalar blob */ - blob?: (flyteidl.core.IBlob|null); - - /** Scalar binary */ - binary?: (flyteidl.core.IBinary|null); - - /** Scalar schema */ - schema?: (flyteidl.core.ISchema|null); - - /** Scalar noneType */ - noneType?: (flyteidl.core.IVoid|null); - - /** Scalar error */ - error?: (flyteidl.core.IError|null); - - /** Scalar generic */ - generic?: (google.protobuf.IStruct|null); - - /** Scalar structuredDataset */ - structuredDataset?: (flyteidl.core.IStructuredDataset|null); + /** Properties of a BindingDataMap. */ + interface IBindingDataMap { - /** Scalar union */ - union?: (flyteidl.core.IUnion|null); + /** BindingDataMap bindings */ + bindings?: ({ [k: string]: flyteidl.core.IBindingData }|null); } - /** Represents a Scalar. */ - class Scalar implements IScalar { + /** Represents a BindingDataMap. */ + class BindingDataMap implements IBindingDataMap { /** - * Constructs a new Scalar. + * Constructs a new BindingDataMap. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IScalar); - - /** Scalar primitive. */ - public primitive?: (flyteidl.core.IPrimitive|null); - - /** Scalar blob. */ - public blob?: (flyteidl.core.IBlob|null); + constructor(properties?: flyteidl.core.IBindingDataMap); - /** Scalar binary. */ - public binary?: (flyteidl.core.IBinary|null); + /** BindingDataMap bindings. */ + public bindings: { [k: string]: flyteidl.core.IBindingData }; - /** Scalar schema. */ - public schema?: (flyteidl.core.ISchema|null); + /** + * Creates a new BindingDataMap instance using the specified properties. + * @param [properties] Properties to set + * @returns BindingDataMap instance + */ + public static create(properties?: flyteidl.core.IBindingDataMap): flyteidl.core.BindingDataMap; - /** Scalar noneType. */ - public noneType?: (flyteidl.core.IVoid|null); + /** + * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. + * @param message BindingDataMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBindingDataMap, writer?: $protobuf.Writer): $protobuf.Writer; - /** Scalar error. */ - public error?: (flyteidl.core.IError|null); + /** + * Decodes a BindingDataMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindingDataMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataMap; - /** Scalar generic. */ - public generic?: (google.protobuf.IStruct|null); + /** + * Verifies a BindingDataMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } - /** Scalar structuredDataset. */ - public structuredDataset?: (flyteidl.core.IStructuredDataset|null); + /** Properties of an UnionInfo. */ + interface IUnionInfo { - /** Scalar union. */ - public union?: (flyteidl.core.IUnion|null); + /** UnionInfo targetType */ + targetType?: (flyteidl.core.ILiteralType|null); + } - /** Scalar value. */ - public value?: ("primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"); + /** Represents an UnionInfo. */ + class UnionInfo implements IUnionInfo { /** - * Creates a new Scalar instance using the specified properties. + * Constructs a new UnionInfo. * @param [properties] Properties to set - * @returns Scalar instance */ - public static create(properties?: flyteidl.core.IScalar): flyteidl.core.Scalar; + constructor(properties?: flyteidl.core.IUnionInfo); + + /** UnionInfo targetType. */ + public targetType?: (flyteidl.core.ILiteralType|null); /** - * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. - * @param message Scalar message or plain object to encode + * Creates a new UnionInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns UnionInfo instance + */ + public static create(properties?: flyteidl.core.IUnionInfo): flyteidl.core.UnionInfo; + + /** + * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. + * @param message UnionInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IUnionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Scalar message from the specified reader or buffer. + * Decodes an UnionInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Scalar + * @returns UnionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Scalar; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.UnionInfo; /** - * Verifies a Scalar message. + * Verifies an UnionInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a Literal. */ - interface ILiteral { + /** Properties of a BindingData. */ + interface IBindingData { - /** Literal scalar */ + /** BindingData scalar */ scalar?: (flyteidl.core.IScalar|null); - /** Literal collection */ - collection?: (flyteidl.core.ILiteralCollection|null); + /** BindingData collection */ + collection?: (flyteidl.core.IBindingDataCollection|null); - /** Literal map */ - map?: (flyteidl.core.ILiteralMap|null); + /** BindingData promise */ + promise?: (flyteidl.core.IOutputReference|null); - /** Literal hash */ - hash?: (string|null); + /** BindingData map */ + map?: (flyteidl.core.IBindingDataMap|null); - /** Literal metadata */ - metadata?: ({ [k: string]: string }|null); + /** BindingData union */ + union?: (flyteidl.core.IUnionInfo|null); } - /** Represents a Literal. */ - class Literal implements ILiteral { + /** Represents a BindingData. */ + class BindingData implements IBindingData { /** - * Constructs a new Literal. + * Constructs a new BindingData. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ILiteral); + constructor(properties?: flyteidl.core.IBindingData); - /** Literal scalar. */ + /** BindingData scalar. */ public scalar?: (flyteidl.core.IScalar|null); - /** Literal collection. */ - public collection?: (flyteidl.core.ILiteralCollection|null); + /** BindingData collection. */ + public collection?: (flyteidl.core.IBindingDataCollection|null); - /** Literal map. */ - public map?: (flyteidl.core.ILiteralMap|null); + /** BindingData promise. */ + public promise?: (flyteidl.core.IOutputReference|null); - /** Literal hash. */ - public hash: string; + /** BindingData map. */ + public map?: (flyteidl.core.IBindingDataMap|null); - /** Literal metadata. */ - public metadata: { [k: string]: string }; + /** BindingData union. */ + public union?: (flyteidl.core.IUnionInfo|null); - /** Literal value. */ - public value?: ("scalar"|"collection"|"map"); + /** BindingData value. */ + public value?: ("scalar"|"collection"|"promise"|"map"); /** - * Creates a new Literal instance using the specified properties. + * Creates a new BindingData instance using the specified properties. * @param [properties] Properties to set - * @returns Literal instance + * @returns BindingData instance */ - public static create(properties?: flyteidl.core.ILiteral): flyteidl.core.Literal; + public static create(properties?: flyteidl.core.IBindingData): flyteidl.core.BindingData; /** - * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. - * @param message Literal message or plain object to encode + * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. + * @param message BindingData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ILiteral, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IBindingData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Literal message from the specified reader or buffer. + * Decodes a BindingData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Literal + * @returns BindingData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Literal; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingData; /** - * Verifies a Literal message. + * Verifies a BindingData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a LiteralCollection. */ - interface ILiteralCollection { + /** Properties of a Binding. */ + interface IBinding { - /** LiteralCollection literals */ - literals?: (flyteidl.core.ILiteral[]|null); + /** Binding var */ + "var"?: (string|null); + + /** Binding binding */ + binding?: (flyteidl.core.IBindingData|null); } - /** Represents a LiteralCollection. */ - class LiteralCollection implements ILiteralCollection { + /** Represents a Binding. */ + class Binding implements IBinding { /** - * Constructs a new LiteralCollection. + * Constructs a new Binding. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ILiteralCollection); + constructor(properties?: flyteidl.core.IBinding); - /** LiteralCollection literals. */ - public literals: flyteidl.core.ILiteral[]; + /** Binding var. */ + public var: string; + + /** Binding binding. */ + public binding?: (flyteidl.core.IBindingData|null); /** - * Creates a new LiteralCollection instance using the specified properties. + * Creates a new Binding instance using the specified properties. * @param [properties] Properties to set - * @returns LiteralCollection instance + * @returns Binding instance */ - public static create(properties?: flyteidl.core.ILiteralCollection): flyteidl.core.LiteralCollection; + public static create(properties?: flyteidl.core.IBinding): flyteidl.core.Binding; /** - * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. - * @param message LiteralCollection message or plain object to encode + * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. + * @param message Binding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ILiteralCollection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LiteralCollection message from the specified reader or buffer. + * Decodes a Binding message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LiteralCollection + * @returns Binding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralCollection; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binding; /** - * Verifies a LiteralCollection message. + * Verifies a Binding message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a LiteralMap. */ - interface ILiteralMap { + /** Properties of a KeyValuePair. */ + interface IKeyValuePair { - /** LiteralMap literals */ - literals?: ({ [k: string]: flyteidl.core.ILiteral }|null); + /** KeyValuePair key */ + key?: (string|null); + + /** KeyValuePair value */ + value?: (string|null); } - /** Represents a LiteralMap. */ - class LiteralMap implements ILiteralMap { + /** Represents a KeyValuePair. */ + class KeyValuePair implements IKeyValuePair { /** - * Constructs a new LiteralMap. + * Constructs a new KeyValuePair. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ILiteralMap); + constructor(properties?: flyteidl.core.IKeyValuePair); - /** LiteralMap literals. */ - public literals: { [k: string]: flyteidl.core.ILiteral }; + /** KeyValuePair key. */ + public key: string; + + /** KeyValuePair value. */ + public value: string; /** - * Creates a new LiteralMap instance using the specified properties. + * Creates a new KeyValuePair instance using the specified properties. * @param [properties] Properties to set - * @returns LiteralMap instance + * @returns KeyValuePair instance */ - public static create(properties?: flyteidl.core.ILiteralMap): flyteidl.core.LiteralMap; + public static create(properties?: flyteidl.core.IKeyValuePair): flyteidl.core.KeyValuePair; /** - * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. - * @param message LiteralMap message or plain object to encode + * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. + * @param message KeyValuePair message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ILiteralMap, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IKeyValuePair, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LiteralMap message from the specified reader or buffer. + * Decodes a KeyValuePair message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LiteralMap + * @returns KeyValuePair * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralMap; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.KeyValuePair; /** - * Verifies a LiteralMap message. + * Verifies a KeyValuePair message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a BindingDataCollection. */ - interface IBindingDataCollection { + /** Properties of a RetryStrategy. */ + interface IRetryStrategy { - /** BindingDataCollection bindings */ - bindings?: (flyteidl.core.IBindingData[]|null); + /** RetryStrategy retries */ + retries?: (number|null); } - /** Represents a BindingDataCollection. */ - class BindingDataCollection implements IBindingDataCollection { + /** Represents a RetryStrategy. */ + class RetryStrategy implements IRetryStrategy { /** - * Constructs a new BindingDataCollection. + * Constructs a new RetryStrategy. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IBindingDataCollection); + constructor(properties?: flyteidl.core.IRetryStrategy); - /** BindingDataCollection bindings. */ - public bindings: flyteidl.core.IBindingData[]; + /** RetryStrategy retries. */ + public retries: number; /** - * Creates a new BindingDataCollection instance using the specified properties. + * Creates a new RetryStrategy instance using the specified properties. * @param [properties] Properties to set - * @returns BindingDataCollection instance + * @returns RetryStrategy instance */ - public static create(properties?: flyteidl.core.IBindingDataCollection): flyteidl.core.BindingDataCollection; + public static create(properties?: flyteidl.core.IRetryStrategy): flyteidl.core.RetryStrategy; /** - * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. - * @param message BindingDataCollection message or plain object to encode + * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. + * @param message RetryStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IBindingDataCollection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IRetryStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BindingDataCollection message from the specified reader or buffer. + * Decodes a RetryStrategy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BindingDataCollection + * @returns RetryStrategy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataCollection; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.RetryStrategy; /** - * Verifies a BindingDataCollection message. + * Verifies a RetryStrategy message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a BindingDataMap. */ - interface IBindingDataMap { + /** Properties of an IfBlock. */ + interface IIfBlock { - /** BindingDataMap bindings */ - bindings?: ({ [k: string]: flyteidl.core.IBindingData }|null); + /** IfBlock condition */ + condition?: (flyteidl.core.IBooleanExpression|null); + + /** IfBlock thenNode */ + thenNode?: (flyteidl.core.INode|null); } - /** Represents a BindingDataMap. */ - class BindingDataMap implements IBindingDataMap { + /** Represents an IfBlock. */ + class IfBlock implements IIfBlock { /** - * Constructs a new BindingDataMap. + * Constructs a new IfBlock. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IBindingDataMap); + constructor(properties?: flyteidl.core.IIfBlock); - /** BindingDataMap bindings. */ - public bindings: { [k: string]: flyteidl.core.IBindingData }; + /** IfBlock condition. */ + public condition?: (flyteidl.core.IBooleanExpression|null); + + /** IfBlock thenNode. */ + public thenNode?: (flyteidl.core.INode|null); /** - * Creates a new BindingDataMap instance using the specified properties. + * Creates a new IfBlock instance using the specified properties. * @param [properties] Properties to set - * @returns BindingDataMap instance + * @returns IfBlock instance */ - public static create(properties?: flyteidl.core.IBindingDataMap): flyteidl.core.BindingDataMap; + public static create(properties?: flyteidl.core.IIfBlock): flyteidl.core.IfBlock; /** - * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. - * @param message BindingDataMap message or plain object to encode + * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. + * @param message IfBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IBindingDataMap, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IIfBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BindingDataMap message from the specified reader or buffer. + * Decodes an IfBlock message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BindingDataMap + * @returns IfBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataMap; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfBlock; /** - * Verifies a BindingDataMap message. + * Verifies an IfBlock message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of an UnionInfo. */ - interface IUnionInfo { + /** Properties of an IfElseBlock. */ + interface IIfElseBlock { - /** UnionInfo targetType */ - targetType?: (flyteidl.core.ILiteralType|null); + /** IfElseBlock case */ + "case"?: (flyteidl.core.IIfBlock|null); + + /** IfElseBlock other */ + other?: (flyteidl.core.IIfBlock[]|null); + + /** IfElseBlock elseNode */ + elseNode?: (flyteidl.core.INode|null); + + /** IfElseBlock error */ + error?: (flyteidl.core.IError|null); } - /** Represents an UnionInfo. */ - class UnionInfo implements IUnionInfo { + /** Represents an IfElseBlock. */ + class IfElseBlock implements IIfElseBlock { /** - * Constructs a new UnionInfo. + * Constructs a new IfElseBlock. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IUnionInfo); + constructor(properties?: flyteidl.core.IIfElseBlock); - /** UnionInfo targetType. */ - public targetType?: (flyteidl.core.ILiteralType|null); + /** IfElseBlock case. */ + public case?: (flyteidl.core.IIfBlock|null); + + /** IfElseBlock other. */ + public other: flyteidl.core.IIfBlock[]; + + /** IfElseBlock elseNode. */ + public elseNode?: (flyteidl.core.INode|null); + + /** IfElseBlock error. */ + public error?: (flyteidl.core.IError|null); + + /** IfElseBlock default. */ + public default_?: ("elseNode"|"error"); /** - * Creates a new UnionInfo instance using the specified properties. + * Creates a new IfElseBlock instance using the specified properties. * @param [properties] Properties to set - * @returns UnionInfo instance + * @returns IfElseBlock instance */ - public static create(properties?: flyteidl.core.IUnionInfo): flyteidl.core.UnionInfo; + public static create(properties?: flyteidl.core.IIfElseBlock): flyteidl.core.IfElseBlock; /** - * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. - * @param message UnionInfo message or plain object to encode + * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. + * @param message IfElseBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IUnionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IIfElseBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UnionInfo message from the specified reader or buffer. + * Decodes an IfElseBlock message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UnionInfo + * @returns IfElseBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.UnionInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfElseBlock; /** - * Verifies an UnionInfo message. + * Verifies an IfElseBlock message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a BindingData. */ - interface IBindingData { - - /** BindingData scalar */ - scalar?: (flyteidl.core.IScalar|null); - - /** BindingData collection */ - collection?: (flyteidl.core.IBindingDataCollection|null); - - /** BindingData promise */ - promise?: (flyteidl.core.IOutputReference|null); - - /** BindingData map */ - map?: (flyteidl.core.IBindingDataMap|null); + /** Properties of a BranchNode. */ + interface IBranchNode { - /** BindingData union */ - union?: (flyteidl.core.IUnionInfo|null); + /** BranchNode ifElse */ + ifElse?: (flyteidl.core.IIfElseBlock|null); } - /** Represents a BindingData. */ - class BindingData implements IBindingData { + /** Represents a BranchNode. */ + class BranchNode implements IBranchNode { /** - * Constructs a new BindingData. + * Constructs a new BranchNode. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IBindingData); - - /** BindingData scalar. */ - public scalar?: (flyteidl.core.IScalar|null); - - /** BindingData collection. */ - public collection?: (flyteidl.core.IBindingDataCollection|null); - - /** BindingData promise. */ - public promise?: (flyteidl.core.IOutputReference|null); - - /** BindingData map. */ - public map?: (flyteidl.core.IBindingDataMap|null); - - /** BindingData union. */ - public union?: (flyteidl.core.IUnionInfo|null); + constructor(properties?: flyteidl.core.IBranchNode); - /** BindingData value. */ - public value?: ("scalar"|"collection"|"promise"|"map"); + /** BranchNode ifElse. */ + public ifElse?: (flyteidl.core.IIfElseBlock|null); /** - * Creates a new BindingData instance using the specified properties. + * Creates a new BranchNode instance using the specified properties. * @param [properties] Properties to set - * @returns BindingData instance + * @returns BranchNode instance */ - public static create(properties?: flyteidl.core.IBindingData): flyteidl.core.BindingData; + public static create(properties?: flyteidl.core.IBranchNode): flyteidl.core.BranchNode; /** - * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. - * @param message BindingData message or plain object to encode + * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. + * @param message BranchNode message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IBindingData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IBranchNode, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BindingData message from the specified reader or buffer. + * Decodes a BranchNode message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BindingData + * @returns BranchNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BranchNode; /** - * Verifies a BindingData message. + * Verifies a BranchNode message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a Binding. */ - interface IBinding { + /** Properties of a TaskNode. */ + interface ITaskNode { - /** Binding var */ - "var"?: (string|null); + /** TaskNode referenceId */ + referenceId?: (flyteidl.core.IIdentifier|null); - /** Binding binding */ - binding?: (flyteidl.core.IBindingData|null); + /** TaskNode overrides */ + overrides?: (flyteidl.core.ITaskNodeOverrides|null); } - /** Represents a Binding. */ - class Binding implements IBinding { + /** Represents a TaskNode. */ + class TaskNode implements ITaskNode { /** - * Constructs a new Binding. + * Constructs a new TaskNode. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IBinding); + constructor(properties?: flyteidl.core.ITaskNode); - /** Binding var. */ - public var: string; + /** TaskNode referenceId. */ + public referenceId?: (flyteidl.core.IIdentifier|null); - /** Binding binding. */ - public binding?: (flyteidl.core.IBindingData|null); + /** TaskNode overrides. */ + public overrides?: (flyteidl.core.ITaskNodeOverrides|null); + + /** TaskNode reference. */ + public reference?: "referenceId"; /** - * Creates a new Binding instance using the specified properties. + * Creates a new TaskNode instance using the specified properties. * @param [properties] Properties to set - * @returns Binding instance + * @returns TaskNode instance */ - public static create(properties?: flyteidl.core.IBinding): flyteidl.core.Binding; + public static create(properties?: flyteidl.core.ITaskNode): flyteidl.core.TaskNode; /** - * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. - * @param message Binding message or plain object to encode + * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. + * @param message TaskNode message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ITaskNode, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Binding message from the specified reader or buffer. + * Decodes a TaskNode message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Binding + * @returns TaskNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binding; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskNode; /** - * Verifies a Binding message. + * Verifies a TaskNode message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a KeyValuePair. */ - interface IKeyValuePair { + /** Properties of a WorkflowNode. */ + interface IWorkflowNode { - /** KeyValuePair key */ - key?: (string|null); + /** WorkflowNode launchplanRef */ + launchplanRef?: (flyteidl.core.IIdentifier|null); - /** KeyValuePair value */ - value?: (string|null); + /** WorkflowNode subWorkflowRef */ + subWorkflowRef?: (flyteidl.core.IIdentifier|null); } - /** Represents a KeyValuePair. */ - class KeyValuePair implements IKeyValuePair { + /** Represents a WorkflowNode. */ + class WorkflowNode implements IWorkflowNode { /** - * Constructs a new KeyValuePair. + * Constructs a new WorkflowNode. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IKeyValuePair); - - /** KeyValuePair key. */ - public key: string; + constructor(properties?: flyteidl.core.IWorkflowNode); - /** KeyValuePair value. */ - public value: string; + /** WorkflowNode launchplanRef. */ + public launchplanRef?: (flyteidl.core.IIdentifier|null); + + /** WorkflowNode subWorkflowRef. */ + public subWorkflowRef?: (flyteidl.core.IIdentifier|null); + + /** WorkflowNode reference. */ + public reference?: ("launchplanRef"|"subWorkflowRef"); /** - * Creates a new KeyValuePair instance using the specified properties. + * Creates a new WorkflowNode instance using the specified properties. * @param [properties] Properties to set - * @returns KeyValuePair instance + * @returns WorkflowNode instance */ - public static create(properties?: flyteidl.core.IKeyValuePair): flyteidl.core.KeyValuePair; + public static create(properties?: flyteidl.core.IWorkflowNode): flyteidl.core.WorkflowNode; /** - * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. - * @param message KeyValuePair message or plain object to encode + * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. + * @param message WorkflowNode message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IKeyValuePair, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IWorkflowNode, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KeyValuePair message from the specified reader or buffer. + * Decodes a WorkflowNode message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KeyValuePair + * @returns WorkflowNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.KeyValuePair; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowNode; /** - * Verifies a KeyValuePair message. + * Verifies a WorkflowNode message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a RetryStrategy. */ - interface IRetryStrategy { + /** Properties of an ApproveCondition. */ + interface IApproveCondition { - /** RetryStrategy retries */ - retries?: (number|null); + /** ApproveCondition signalId */ + signalId?: (string|null); } - /** Represents a RetryStrategy. */ - class RetryStrategy implements IRetryStrategy { + /** Represents an ApproveCondition. */ + class ApproveCondition implements IApproveCondition { /** - * Constructs a new RetryStrategy. + * Constructs a new ApproveCondition. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IRetryStrategy); + constructor(properties?: flyteidl.core.IApproveCondition); - /** RetryStrategy retries. */ - public retries: number; + /** ApproveCondition signalId. */ + public signalId: string; /** - * Creates a new RetryStrategy instance using the specified properties. + * Creates a new ApproveCondition instance using the specified properties. * @param [properties] Properties to set - * @returns RetryStrategy instance + * @returns ApproveCondition instance */ - public static create(properties?: flyteidl.core.IRetryStrategy): flyteidl.core.RetryStrategy; + public static create(properties?: flyteidl.core.IApproveCondition): flyteidl.core.ApproveCondition; /** - * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. - * @param message RetryStrategy message or plain object to encode + * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. + * @param message ApproveCondition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IRetryStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IApproveCondition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RetryStrategy message from the specified reader or buffer. + * Decodes an ApproveCondition message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RetryStrategy + * @returns ApproveCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.RetryStrategy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ApproveCondition; /** - * Verifies a RetryStrategy message. + * Verifies an ApproveCondition message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** SimpleType enum. */ - enum SimpleType { - NONE = 0, - INTEGER = 1, - FLOAT = 2, - STRING = 3, - BOOLEAN = 4, - DATETIME = 5, - DURATION = 6, - BINARY = 7, - ERROR = 8, - STRUCT = 9 - } + /** Properties of a SignalCondition. */ + interface ISignalCondition { - /** Properties of a SchemaType. */ - interface ISchemaType { + /** SignalCondition signalId */ + signalId?: (string|null); - /** SchemaType columns */ - columns?: (flyteidl.core.SchemaType.ISchemaColumn[]|null); + /** SignalCondition type */ + type?: (flyteidl.core.ILiteralType|null); + + /** SignalCondition outputVariableName */ + outputVariableName?: (string|null); } - /** Represents a SchemaType. */ - class SchemaType implements ISchemaType { + /** Represents a SignalCondition. */ + class SignalCondition implements ISignalCondition { /** - * Constructs a new SchemaType. + * Constructs a new SignalCondition. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ISchemaType); + constructor(properties?: flyteidl.core.ISignalCondition); - /** SchemaType columns. */ - public columns: flyteidl.core.SchemaType.ISchemaColumn[]; + /** SignalCondition signalId. */ + public signalId: string; + + /** SignalCondition type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** SignalCondition outputVariableName. */ + public outputVariableName: string; /** - * Creates a new SchemaType instance using the specified properties. + * Creates a new SignalCondition instance using the specified properties. * @param [properties] Properties to set - * @returns SchemaType instance + * @returns SignalCondition instance */ - public static create(properties?: flyteidl.core.ISchemaType): flyteidl.core.SchemaType; + public static create(properties?: flyteidl.core.ISignalCondition): flyteidl.core.SignalCondition; /** - * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. - * @param message SchemaType message or plain object to encode + * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. + * @param message SignalCondition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ISchemaType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ISignalCondition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SchemaType message from the specified reader or buffer. + * Decodes a SignalCondition message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SchemaType + * @returns SignalCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SignalCondition; /** - * Verifies a SchemaType message. + * Verifies a SignalCondition message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace SchemaType { - - /** Properties of a SchemaColumn. */ - interface ISchemaColumn { - - /** SchemaColumn name */ - name?: (string|null); - - /** SchemaColumn type */ - type?: (flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null); - } - - /** Represents a SchemaColumn. */ - class SchemaColumn implements ISchemaColumn { - - /** - * Constructs a new SchemaColumn. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.SchemaType.ISchemaColumn); - - /** SchemaColumn name. */ - public name: string; - - /** SchemaColumn type. */ - public type: flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType; - - /** - * Creates a new SchemaColumn instance using the specified properties. - * @param [properties] Properties to set - * @returns SchemaColumn instance - */ - public static create(properties?: flyteidl.core.SchemaType.ISchemaColumn): flyteidl.core.SchemaType.SchemaColumn; - - /** - * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. - * @param message SchemaColumn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.SchemaType.ISchemaColumn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SchemaColumn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SchemaColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType.SchemaColumn; - - /** - * Verifies a SchemaColumn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace SchemaColumn { - - /** SchemaColumnType enum. */ - enum SchemaColumnType { - INTEGER = 0, - FLOAT = 1, - STRING = 2, - BOOLEAN = 3, - DATETIME = 4, - DURATION = 5 - } - } - } - - /** Properties of a StructuredDatasetType. */ - interface IStructuredDatasetType { - - /** StructuredDatasetType columns */ - columns?: (flyteidl.core.StructuredDatasetType.IDatasetColumn[]|null); - - /** StructuredDatasetType format */ - format?: (string|null); - - /** StructuredDatasetType externalSchemaType */ - externalSchemaType?: (string|null); + /** Properties of a SleepCondition. */ + interface ISleepCondition { - /** StructuredDatasetType externalSchemaBytes */ - externalSchemaBytes?: (Uint8Array|null); + /** SleepCondition duration */ + duration?: (google.protobuf.IDuration|null); } - /** Represents a StructuredDatasetType. */ - class StructuredDatasetType implements IStructuredDatasetType { + /** Represents a SleepCondition. */ + class SleepCondition implements ISleepCondition { /** - * Constructs a new StructuredDatasetType. + * Constructs a new SleepCondition. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IStructuredDatasetType); - - /** StructuredDatasetType columns. */ - public columns: flyteidl.core.StructuredDatasetType.IDatasetColumn[]; - - /** StructuredDatasetType format. */ - public format: string; - - /** StructuredDatasetType externalSchemaType. */ - public externalSchemaType: string; + constructor(properties?: flyteidl.core.ISleepCondition); - /** StructuredDatasetType externalSchemaBytes. */ - public externalSchemaBytes: Uint8Array; + /** SleepCondition duration. */ + public duration?: (google.protobuf.IDuration|null); /** - * Creates a new StructuredDatasetType instance using the specified properties. + * Creates a new SleepCondition instance using the specified properties. * @param [properties] Properties to set - * @returns StructuredDatasetType instance + * @returns SleepCondition instance */ - public static create(properties?: flyteidl.core.IStructuredDatasetType): flyteidl.core.StructuredDatasetType; + public static create(properties?: flyteidl.core.ISleepCondition): flyteidl.core.SleepCondition; /** - * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. - * @param message StructuredDatasetType message or plain object to encode + * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. + * @param message SleepCondition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IStructuredDatasetType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ISleepCondition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StructuredDatasetType message from the specified reader or buffer. + * Decodes a SleepCondition message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StructuredDatasetType + * @returns SleepCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SleepCondition; /** - * Verifies a StructuredDatasetType message. + * Verifies a SleepCondition message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace StructuredDatasetType { - - /** Properties of a DatasetColumn. */ - interface IDatasetColumn { - - /** DatasetColumn name */ - name?: (string|null); - - /** DatasetColumn literalType */ - literalType?: (flyteidl.core.ILiteralType|null); - } - - /** Represents a DatasetColumn. */ - class DatasetColumn implements IDatasetColumn { - - /** - * Constructs a new DatasetColumn. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn); - - /** DatasetColumn name. */ - public name: string; - - /** DatasetColumn literalType. */ - public literalType?: (flyteidl.core.ILiteralType|null); - - /** - * Creates a new DatasetColumn instance using the specified properties. - * @param [properties] Properties to set - * @returns DatasetColumn instance - */ - public static create(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn): flyteidl.core.StructuredDatasetType.DatasetColumn; - - /** - * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. - * @param message DatasetColumn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.StructuredDatasetType.IDatasetColumn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DatasetColumn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DatasetColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType.DatasetColumn; - - /** - * Verifies a DatasetColumn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - } + /** Properties of a GateNode. */ + interface IGateNode { - /** Properties of a BlobType. */ - interface IBlobType { + /** GateNode approve */ + approve?: (flyteidl.core.IApproveCondition|null); - /** BlobType format */ - format?: (string|null); + /** GateNode signal */ + signal?: (flyteidl.core.ISignalCondition|null); - /** BlobType dimensionality */ - dimensionality?: (flyteidl.core.BlobType.BlobDimensionality|null); + /** GateNode sleep */ + sleep?: (flyteidl.core.ISleepCondition|null); } - /** Represents a BlobType. */ - class BlobType implements IBlobType { + /** Represents a GateNode. */ + class GateNode implements IGateNode { /** - * Constructs a new BlobType. + * Constructs a new GateNode. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IBlobType); + constructor(properties?: flyteidl.core.IGateNode); - /** BlobType format. */ - public format: string; + /** GateNode approve. */ + public approve?: (flyteidl.core.IApproveCondition|null); - /** BlobType dimensionality. */ - public dimensionality: flyteidl.core.BlobType.BlobDimensionality; + /** GateNode signal. */ + public signal?: (flyteidl.core.ISignalCondition|null); + + /** GateNode sleep. */ + public sleep?: (flyteidl.core.ISleepCondition|null); + + /** GateNode condition. */ + public condition?: ("approve"|"signal"|"sleep"); /** - * Creates a new BlobType instance using the specified properties. + * Creates a new GateNode instance using the specified properties. * @param [properties] Properties to set - * @returns BlobType instance + * @returns GateNode instance */ - public static create(properties?: flyteidl.core.IBlobType): flyteidl.core.BlobType; + public static create(properties?: flyteidl.core.IGateNode): flyteidl.core.GateNode; /** - * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. - * @param message BlobType message or plain object to encode + * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. + * @param message GateNode message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IBlobType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IGateNode, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BlobType message from the specified reader or buffer. + * Decodes a GateNode message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BlobType + * @returns GateNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.GateNode; /** - * Verifies a BlobType message. + * Verifies a GateNode message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace BlobType { + /** Properties of an ArrayNode. */ + interface IArrayNode { - /** BlobDimensionality enum. */ - enum BlobDimensionality { - SINGLE = 0, - MULTIPART = 1 - } - } + /** ArrayNode node */ + node?: (flyteidl.core.INode|null); - /** Properties of an EnumType. */ - interface IEnumType { + /** ArrayNode parallelism */ + parallelism?: (number|null); - /** EnumType values */ - values?: (string[]|null); + /** ArrayNode minSuccesses */ + minSuccesses?: (number|null); + + /** ArrayNode minSuccessRatio */ + minSuccessRatio?: (number|null); } - /** Represents an EnumType. */ - class EnumType implements IEnumType { + /** Represents an ArrayNode. */ + class ArrayNode implements IArrayNode { /** - * Constructs a new EnumType. + * Constructs a new ArrayNode. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IEnumType); + constructor(properties?: flyteidl.core.IArrayNode); - /** EnumType values. */ - public values: string[]; + /** ArrayNode node. */ + public node?: (flyteidl.core.INode|null); + + /** ArrayNode parallelism. */ + public parallelism: number; + + /** ArrayNode minSuccesses. */ + public minSuccesses: number; + + /** ArrayNode minSuccessRatio. */ + public minSuccessRatio: number; + + /** ArrayNode successCriteria. */ + public successCriteria?: ("minSuccesses"|"minSuccessRatio"); /** - * Creates a new EnumType instance using the specified properties. + * Creates a new ArrayNode instance using the specified properties. * @param [properties] Properties to set - * @returns EnumType instance + * @returns ArrayNode instance */ - public static create(properties?: flyteidl.core.IEnumType): flyteidl.core.EnumType; + public static create(properties?: flyteidl.core.IArrayNode): flyteidl.core.ArrayNode; /** - * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. - * @param message EnumType message or plain object to encode + * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. + * @param message ArrayNode message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IEnumType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IArrayNode, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumType message from the specified reader or buffer. + * Decodes an ArrayNode message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumType + * @returns ArrayNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.EnumType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArrayNode; /** - * Verifies an EnumType message. + * Verifies an ArrayNode message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of an UnionType. */ - interface IUnionType { + /** Properties of a NodeMetadata. */ + interface INodeMetadata { - /** UnionType variants */ - variants?: (flyteidl.core.ILiteralType[]|null); + /** NodeMetadata name */ + name?: (string|null); + + /** NodeMetadata timeout */ + timeout?: (google.protobuf.IDuration|null); + + /** NodeMetadata retries */ + retries?: (flyteidl.core.IRetryStrategy|null); + + /** NodeMetadata interruptible */ + interruptible?: (boolean|null); + + /** NodeMetadata cacheable */ + cacheable?: (boolean|null); + + /** NodeMetadata cacheVersion */ + cacheVersion?: (string|null); + + /** NodeMetadata cacheSerializable */ + cacheSerializable?: (boolean|null); } - /** Represents an UnionType. */ - class UnionType implements IUnionType { + /** Represents a NodeMetadata. */ + class NodeMetadata implements INodeMetadata { /** - * Constructs a new UnionType. + * Constructs a new NodeMetadata. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IUnionType); + constructor(properties?: flyteidl.core.INodeMetadata); - /** UnionType variants. */ - public variants: flyteidl.core.ILiteralType[]; + /** NodeMetadata name. */ + public name: string; + + /** NodeMetadata timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** NodeMetadata retries. */ + public retries?: (flyteidl.core.IRetryStrategy|null); + + /** NodeMetadata interruptible. */ + public interruptible: boolean; + + /** NodeMetadata cacheable. */ + public cacheable: boolean; + + /** NodeMetadata cacheVersion. */ + public cacheVersion: string; + + /** NodeMetadata cacheSerializable. */ + public cacheSerializable: boolean; + + /** NodeMetadata interruptibleValue. */ + public interruptibleValue?: "interruptible"; + + /** NodeMetadata cacheableValue. */ + public cacheableValue?: "cacheable"; + + /** NodeMetadata cacheVersionValue. */ + public cacheVersionValue?: "cacheVersion"; + + /** NodeMetadata cacheSerializableValue. */ + public cacheSerializableValue?: "cacheSerializable"; /** - * Creates a new UnionType instance using the specified properties. + * Creates a new NodeMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UnionType instance + * @returns NodeMetadata instance */ - public static create(properties?: flyteidl.core.IUnionType): flyteidl.core.UnionType; + public static create(properties?: flyteidl.core.INodeMetadata): flyteidl.core.NodeMetadata; /** - * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. - * @param message UnionType message or plain object to encode + * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. + * @param message NodeMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IUnionType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.INodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UnionType message from the specified reader or buffer. + * Decodes a NodeMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UnionType + * @returns NodeMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.UnionType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeMetadata; /** - * Verifies an UnionType message. + * Verifies a NodeMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a TypeStructure. */ - interface ITypeStructure { + /** Properties of an Alias. */ + interface IAlias { - /** TypeStructure tag */ - tag?: (string|null); + /** Alias var */ + "var"?: (string|null); - /** TypeStructure dataclassType */ - dataclassType?: ({ [k: string]: flyteidl.core.ILiteralType }|null); + /** Alias alias */ + alias?: (string|null); } - /** Represents a TypeStructure. */ - class TypeStructure implements ITypeStructure { + /** Represents an Alias. */ + class Alias implements IAlias { /** - * Constructs a new TypeStructure. + * Constructs a new Alias. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ITypeStructure); + constructor(properties?: flyteidl.core.IAlias); - /** TypeStructure tag. */ - public tag: string; + /** Alias var. */ + public var: string; - /** TypeStructure dataclassType. */ - public dataclassType: { [k: string]: flyteidl.core.ILiteralType }; + /** Alias alias. */ + public alias: string; /** - * Creates a new TypeStructure instance using the specified properties. + * Creates a new Alias instance using the specified properties. * @param [properties] Properties to set - * @returns TypeStructure instance + * @returns Alias instance */ - public static create(properties?: flyteidl.core.ITypeStructure): flyteidl.core.TypeStructure; + public static create(properties?: flyteidl.core.IAlias): flyteidl.core.Alias; /** - * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. - * @param message TypeStructure message or plain object to encode + * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. + * @param message Alias message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ITypeStructure, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IAlias, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TypeStructure message from the specified reader or buffer. + * Decodes an Alias message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TypeStructure + * @returns Alias * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypeStructure; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Alias; /** - * Verifies a TypeStructure message. + * Verifies an Alias message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a TypeAnnotation. */ - interface ITypeAnnotation { + /** Properties of a Node. */ + interface INode { - /** TypeAnnotation annotations */ - annotations?: (google.protobuf.IStruct|null); + /** Node id */ + id?: (string|null); + + /** Node metadata */ + metadata?: (flyteidl.core.INodeMetadata|null); + + /** Node inputs */ + inputs?: (flyteidl.core.IBinding[]|null); + + /** Node upstreamNodeIds */ + upstreamNodeIds?: (string[]|null); + + /** Node outputAliases */ + outputAliases?: (flyteidl.core.IAlias[]|null); + + /** Node taskNode */ + taskNode?: (flyteidl.core.ITaskNode|null); + + /** Node workflowNode */ + workflowNode?: (flyteidl.core.IWorkflowNode|null); + + /** Node branchNode */ + branchNode?: (flyteidl.core.IBranchNode|null); + + /** Node gateNode */ + gateNode?: (flyteidl.core.IGateNode|null); + + /** Node arrayNode */ + arrayNode?: (flyteidl.core.IArrayNode|null); } - /** Represents a TypeAnnotation. */ - class TypeAnnotation implements ITypeAnnotation { + /** Represents a Node. */ + class Node implements INode { /** - * Constructs a new TypeAnnotation. + * Constructs a new Node. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ITypeAnnotation); + constructor(properties?: flyteidl.core.INode); - /** TypeAnnotation annotations. */ - public annotations?: (google.protobuf.IStruct|null); + /** Node id. */ + public id: string; + + /** Node metadata. */ + public metadata?: (flyteidl.core.INodeMetadata|null); + + /** Node inputs. */ + public inputs: flyteidl.core.IBinding[]; + + /** Node upstreamNodeIds. */ + public upstreamNodeIds: string[]; + + /** Node outputAliases. */ + public outputAliases: flyteidl.core.IAlias[]; + + /** Node taskNode. */ + public taskNode?: (flyteidl.core.ITaskNode|null); + + /** Node workflowNode. */ + public workflowNode?: (flyteidl.core.IWorkflowNode|null); + + /** Node branchNode. */ + public branchNode?: (flyteidl.core.IBranchNode|null); + + /** Node gateNode. */ + public gateNode?: (flyteidl.core.IGateNode|null); + + /** Node arrayNode. */ + public arrayNode?: (flyteidl.core.IArrayNode|null); + + /** Node target. */ + public target?: ("taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"); /** - * Creates a new TypeAnnotation instance using the specified properties. + * Creates a new Node instance using the specified properties. * @param [properties] Properties to set - * @returns TypeAnnotation instance + * @returns Node instance */ - public static create(properties?: flyteidl.core.ITypeAnnotation): flyteidl.core.TypeAnnotation; + public static create(properties?: flyteidl.core.INode): flyteidl.core.Node; /** - * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. - * @param message TypeAnnotation message or plain object to encode + * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. + * @param message Node message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ITypeAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.INode, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TypeAnnotation message from the specified reader or buffer. + * Decodes a Node message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TypeAnnotation + * @returns Node * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypeAnnotation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Node; /** - * Verifies a TypeAnnotation message. + * Verifies a Node message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a LiteralType. */ - interface ILiteralType { - - /** LiteralType simple */ - simple?: (flyteidl.core.SimpleType|null); - - /** LiteralType schema */ - schema?: (flyteidl.core.ISchemaType|null); - - /** LiteralType collectionType */ - collectionType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType mapValueType */ - mapValueType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType blob */ - blob?: (flyteidl.core.IBlobType|null); - - /** LiteralType enumType */ - enumType?: (flyteidl.core.IEnumType|null); - - /** LiteralType structuredDatasetType */ - structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - - /** LiteralType unionType */ - unionType?: (flyteidl.core.IUnionType|null); + /** Properties of a WorkflowMetadata. */ + interface IWorkflowMetadata { - /** LiteralType metadata */ - metadata?: (google.protobuf.IStruct|null); + /** WorkflowMetadata qualityOfService */ + qualityOfService?: (flyteidl.core.IQualityOfService|null); - /** LiteralType annotation */ - annotation?: (flyteidl.core.ITypeAnnotation|null); + /** WorkflowMetadata onFailure */ + onFailure?: (flyteidl.core.WorkflowMetadata.OnFailurePolicy|null); - /** LiteralType structure */ - structure?: (flyteidl.core.ITypeStructure|null); + /** WorkflowMetadata tags */ + tags?: ({ [k: string]: string }|null); } - /** Represents a LiteralType. */ - class LiteralType implements ILiteralType { + /** Represents a WorkflowMetadata. */ + class WorkflowMetadata implements IWorkflowMetadata { /** - * Constructs a new LiteralType. + * Constructs a new WorkflowMetadata. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ILiteralType); - - /** LiteralType simple. */ - public simple: flyteidl.core.SimpleType; - - /** LiteralType schema. */ - public schema?: (flyteidl.core.ISchemaType|null); - - /** LiteralType collectionType. */ - public collectionType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType mapValueType. */ - public mapValueType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType blob. */ - public blob?: (flyteidl.core.IBlobType|null); - - /** LiteralType enumType. */ - public enumType?: (flyteidl.core.IEnumType|null); - - /** LiteralType structuredDatasetType. */ - public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - - /** LiteralType unionType. */ - public unionType?: (flyteidl.core.IUnionType|null); - - /** LiteralType metadata. */ - public metadata?: (google.protobuf.IStruct|null); + constructor(properties?: flyteidl.core.IWorkflowMetadata); - /** LiteralType annotation. */ - public annotation?: (flyteidl.core.ITypeAnnotation|null); + /** WorkflowMetadata qualityOfService. */ + public qualityOfService?: (flyteidl.core.IQualityOfService|null); - /** LiteralType structure. */ - public structure?: (flyteidl.core.ITypeStructure|null); + /** WorkflowMetadata onFailure. */ + public onFailure: flyteidl.core.WorkflowMetadata.OnFailurePolicy; - /** LiteralType type. */ - public type?: ("simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"); + /** WorkflowMetadata tags. */ + public tags: { [k: string]: string }; /** - * Creates a new LiteralType instance using the specified properties. + * Creates a new WorkflowMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns LiteralType instance + * @returns WorkflowMetadata instance */ - public static create(properties?: flyteidl.core.ILiteralType): flyteidl.core.LiteralType; + public static create(properties?: flyteidl.core.IWorkflowMetadata): flyteidl.core.WorkflowMetadata; /** - * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. - * @param message LiteralType message or plain object to encode + * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. + * @param message WorkflowMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ILiteralType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IWorkflowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LiteralType message from the specified reader or buffer. + * Decodes a WorkflowMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LiteralType + * @returns WorkflowMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowMetadata; /** - * Verifies a LiteralType message. + * Verifies a WorkflowMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of an OutputReference. */ - interface IOutputReference { + namespace WorkflowMetadata { - /** OutputReference nodeId */ - nodeId?: (string|null); + /** OnFailurePolicy enum. */ + enum OnFailurePolicy { + FAIL_IMMEDIATELY = 0, + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1 + } + } - /** OutputReference var */ - "var"?: (string|null); + /** Properties of a WorkflowMetadataDefaults. */ + interface IWorkflowMetadataDefaults { - /** OutputReference attrPath */ - attrPath?: (flyteidl.core.IPromiseAttribute[]|null); + /** WorkflowMetadataDefaults interruptible */ + interruptible?: (boolean|null); } - /** Represents an OutputReference. */ - class OutputReference implements IOutputReference { + /** Represents a WorkflowMetadataDefaults. */ + class WorkflowMetadataDefaults implements IWorkflowMetadataDefaults { /** - * Constructs a new OutputReference. + * Constructs a new WorkflowMetadataDefaults. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IOutputReference); - - /** OutputReference nodeId. */ - public nodeId: string; - - /** OutputReference var. */ - public var: string; + constructor(properties?: flyteidl.core.IWorkflowMetadataDefaults); - /** OutputReference attrPath. */ - public attrPath: flyteidl.core.IPromiseAttribute[]; + /** WorkflowMetadataDefaults interruptible. */ + public interruptible: boolean; /** - * Creates a new OutputReference instance using the specified properties. + * Creates a new WorkflowMetadataDefaults instance using the specified properties. * @param [properties] Properties to set - * @returns OutputReference instance + * @returns WorkflowMetadataDefaults instance */ - public static create(properties?: flyteidl.core.IOutputReference): flyteidl.core.OutputReference; + public static create(properties?: flyteidl.core.IWorkflowMetadataDefaults): flyteidl.core.WorkflowMetadataDefaults; /** - * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. - * @param message OutputReference message or plain object to encode + * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. + * @param message WorkflowMetadataDefaults message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IOutputReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IWorkflowMetadataDefaults, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputReference message from the specified reader or buffer. + * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputReference + * @returns WorkflowMetadataDefaults * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OutputReference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowMetadataDefaults; /** - * Verifies an OutputReference message. + * Verifies a WorkflowMetadataDefaults message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a PromiseAttribute. */ - interface IPromiseAttribute { + /** Properties of a WorkflowTemplate. */ + interface IWorkflowTemplate { - /** PromiseAttribute stringValue */ - stringValue?: (string|null); + /** WorkflowTemplate id */ + id?: (flyteidl.core.IIdentifier|null); - /** PromiseAttribute intValue */ - intValue?: (number|null); + /** WorkflowTemplate metadata */ + metadata?: (flyteidl.core.IWorkflowMetadata|null); + + /** WorkflowTemplate interface */ + "interface"?: (flyteidl.core.ITypedInterface|null); + + /** WorkflowTemplate nodes */ + nodes?: (flyteidl.core.INode[]|null); + + /** WorkflowTemplate outputs */ + outputs?: (flyteidl.core.IBinding[]|null); + + /** WorkflowTemplate failureNode */ + failureNode?: (flyteidl.core.INode|null); + + /** WorkflowTemplate metadataDefaults */ + metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); } - /** Represents a PromiseAttribute. */ - class PromiseAttribute implements IPromiseAttribute { + /** Represents a WorkflowTemplate. */ + class WorkflowTemplate implements IWorkflowTemplate { /** - * Constructs a new PromiseAttribute. + * Constructs a new WorkflowTemplate. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IPromiseAttribute); + constructor(properties?: flyteidl.core.IWorkflowTemplate); - /** PromiseAttribute stringValue. */ - public stringValue: string; + /** WorkflowTemplate id. */ + public id?: (flyteidl.core.IIdentifier|null); - /** PromiseAttribute intValue. */ - public intValue: number; + /** WorkflowTemplate metadata. */ + public metadata?: (flyteidl.core.IWorkflowMetadata|null); - /** PromiseAttribute value. */ - public value?: ("stringValue"|"intValue"); + /** WorkflowTemplate interface. */ + public interface?: (flyteidl.core.ITypedInterface|null); + + /** WorkflowTemplate nodes. */ + public nodes: flyteidl.core.INode[]; + + /** WorkflowTemplate outputs. */ + public outputs: flyteidl.core.IBinding[]; + + /** WorkflowTemplate failureNode. */ + public failureNode?: (flyteidl.core.INode|null); + + /** WorkflowTemplate metadataDefaults. */ + public metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); /** - * Creates a new PromiseAttribute instance using the specified properties. + * Creates a new WorkflowTemplate instance using the specified properties. * @param [properties] Properties to set - * @returns PromiseAttribute instance + * @returns WorkflowTemplate instance */ - public static create(properties?: flyteidl.core.IPromiseAttribute): flyteidl.core.PromiseAttribute; + public static create(properties?: flyteidl.core.IWorkflowTemplate): flyteidl.core.WorkflowTemplate; /** - * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages. - * @param message PromiseAttribute message or plain object to encode + * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. + * @param message WorkflowTemplate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IPromiseAttribute, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IWorkflowTemplate, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PromiseAttribute message from the specified reader or buffer. + * Decodes a WorkflowTemplate message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PromiseAttribute + * @returns WorkflowTemplate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.PromiseAttribute; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowTemplate; /** - * Verifies a PromiseAttribute message. + * Verifies a WorkflowTemplate message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of an Error. */ - interface IError { + /** Properties of a TaskNodeOverrides. */ + interface ITaskNodeOverrides { - /** Error failedNodeId */ - failedNodeId?: (string|null); + /** TaskNodeOverrides resources */ + resources?: (flyteidl.core.IResources|null); - /** Error message */ - message?: (string|null); + /** TaskNodeOverrides extendedResources */ + extendedResources?: (flyteidl.core.IExtendedResources|null); } - /** Represents an Error. */ - class Error implements IError { + /** Represents a TaskNodeOverrides. */ + class TaskNodeOverrides implements ITaskNodeOverrides { /** - * Constructs a new Error. + * Constructs a new TaskNodeOverrides. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IError); + constructor(properties?: flyteidl.core.ITaskNodeOverrides); - /** Error failedNodeId. */ - public failedNodeId: string; + /** TaskNodeOverrides resources. */ + public resources?: (flyteidl.core.IResources|null); - /** Error message. */ - public message: string; + /** TaskNodeOverrides extendedResources. */ + public extendedResources?: (flyteidl.core.IExtendedResources|null); /** - * Creates a new Error instance using the specified properties. + * Creates a new TaskNodeOverrides instance using the specified properties. * @param [properties] Properties to set - * @returns Error instance + * @returns TaskNodeOverrides instance */ - public static create(properties?: flyteidl.core.IError): flyteidl.core.Error; + public static create(properties?: flyteidl.core.ITaskNodeOverrides): flyteidl.core.TaskNodeOverrides; /** - * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. - * @param message Error message or plain object to encode + * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. + * @param message TaskNodeOverrides message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ITaskNodeOverrides, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Error message from the specified reader or buffer. + * Decodes a TaskNodeOverrides message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Error + * @returns TaskNodeOverrides * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Error; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskNodeOverrides; /** - * Verifies an Error message. + * Verifies a TaskNodeOverrides message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a WorkflowExecution. */ - interface IWorkflowExecution { + /** Properties of a LaunchPlanTemplate. */ + interface ILaunchPlanTemplate { + + /** LaunchPlanTemplate id */ + id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanTemplate interface */ + "interface"?: (flyteidl.core.ITypedInterface|null); } - /** Represents a WorkflowExecution. */ - class WorkflowExecution implements IWorkflowExecution { + /** Represents a LaunchPlanTemplate. */ + class LaunchPlanTemplate implements ILaunchPlanTemplate { /** - * Constructs a new WorkflowExecution. + * Constructs a new LaunchPlanTemplate. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IWorkflowExecution); + constructor(properties?: flyteidl.core.ILaunchPlanTemplate); + + /** LaunchPlanTemplate id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanTemplate interface. */ + public interface?: (flyteidl.core.ITypedInterface|null); /** - * Creates a new WorkflowExecution instance using the specified properties. + * Creates a new LaunchPlanTemplate instance using the specified properties. * @param [properties] Properties to set - * @returns WorkflowExecution instance + * @returns LaunchPlanTemplate instance */ - public static create(properties?: flyteidl.core.IWorkflowExecution): flyteidl.core.WorkflowExecution; + public static create(properties?: flyteidl.core.ILaunchPlanTemplate): flyteidl.core.LaunchPlanTemplate; /** - * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. - * @param message WorkflowExecution message or plain object to encode + * Encodes the specified LaunchPlanTemplate message. Does not implicitly {@link flyteidl.core.LaunchPlanTemplate.verify|verify} messages. + * @param message LaunchPlanTemplate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IWorkflowExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ILaunchPlanTemplate, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WorkflowExecution message from the specified reader or buffer. + * Decodes a LaunchPlanTemplate message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WorkflowExecution + * @returns LaunchPlanTemplate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowExecution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LaunchPlanTemplate; /** - * Verifies a WorkflowExecution message. + * Verifies a LaunchPlanTemplate message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace WorkflowExecution { + /** Properties of a ComparisonExpression. */ + interface IComparisonExpression { - /** Phase enum. */ - enum Phase { - UNDEFINED = 0, - QUEUED = 1, - RUNNING = 2, - SUCCEEDING = 3, - SUCCEEDED = 4, - FAILING = 5, - FAILED = 6, - ABORTED = 7, - TIMED_OUT = 8, - ABORTING = 9 - } - } + /** ComparisonExpression operator */ + operator?: (flyteidl.core.ComparisonExpression.Operator|null); - /** Properties of a NodeExecution. */ - interface INodeExecution { + /** ComparisonExpression leftValue */ + leftValue?: (flyteidl.core.IOperand|null); + + /** ComparisonExpression rightValue */ + rightValue?: (flyteidl.core.IOperand|null); } - /** Represents a NodeExecution. */ - class NodeExecution implements INodeExecution { + /** Represents a ComparisonExpression. */ + class ComparisonExpression implements IComparisonExpression { /** - * Constructs a new NodeExecution. + * Constructs a new ComparisonExpression. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.INodeExecution); + constructor(properties?: flyteidl.core.IComparisonExpression); + + /** ComparisonExpression operator. */ + public operator: flyteidl.core.ComparisonExpression.Operator; + + /** ComparisonExpression leftValue. */ + public leftValue?: (flyteidl.core.IOperand|null); + + /** ComparisonExpression rightValue. */ + public rightValue?: (flyteidl.core.IOperand|null); /** - * Creates a new NodeExecution instance using the specified properties. + * Creates a new ComparisonExpression instance using the specified properties. * @param [properties] Properties to set - * @returns NodeExecution instance + * @returns ComparisonExpression instance */ - public static create(properties?: flyteidl.core.INodeExecution): flyteidl.core.NodeExecution; + public static create(properties?: flyteidl.core.IComparisonExpression): flyteidl.core.ComparisonExpression; /** - * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. - * @param message NodeExecution message or plain object to encode + * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. + * @param message ComparisonExpression message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IComparisonExpression, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodeExecution message from the specified reader or buffer. + * Decodes a ComparisonExpression message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NodeExecution + * @returns ComparisonExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeExecution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ComparisonExpression; /** - * Verifies a NodeExecution message. + * Verifies a ComparisonExpression message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace NodeExecution { + namespace ComparisonExpression { - /** Phase enum. */ - enum Phase { - UNDEFINED = 0, - QUEUED = 1, - RUNNING = 2, - SUCCEEDED = 3, - FAILING = 4, - FAILED = 5, - ABORTED = 6, - SKIPPED = 7, - TIMED_OUT = 8, - DYNAMIC_RUNNING = 9, - RECOVERED = 10 + /** Operator enum. */ + enum Operator { + EQ = 0, + NEQ = 1, + GT = 2, + GTE = 3, + LT = 4, + LTE = 5 } } - /** Properties of a TaskExecution. */ - interface ITaskExecution { + /** Properties of an Operand. */ + interface IOperand { + + /** Operand primitive */ + primitive?: (flyteidl.core.IPrimitive|null); + + /** Operand var */ + "var"?: (string|null); + + /** Operand scalar */ + scalar?: (flyteidl.core.IScalar|null); } - /** Represents a TaskExecution. */ - class TaskExecution implements ITaskExecution { + /** Represents an Operand. */ + class Operand implements IOperand { /** - * Constructs a new TaskExecution. + * Constructs a new Operand. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ITaskExecution); + constructor(properties?: flyteidl.core.IOperand); + + /** Operand primitive. */ + public primitive?: (flyteidl.core.IPrimitive|null); + + /** Operand var. */ + public var: string; + + /** Operand scalar. */ + public scalar?: (flyteidl.core.IScalar|null); + + /** Operand val. */ + public val?: ("primitive"|"var"|"scalar"); /** - * Creates a new TaskExecution instance using the specified properties. + * Creates a new Operand instance using the specified properties. * @param [properties] Properties to set - * @returns TaskExecution instance + * @returns Operand instance */ - public static create(properties?: flyteidl.core.ITaskExecution): flyteidl.core.TaskExecution; + public static create(properties?: flyteidl.core.IOperand): flyteidl.core.Operand; /** - * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. - * @param message TaskExecution message or plain object to encode + * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. + * @param message Operand message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IOperand, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskExecution message from the specified reader or buffer. + * Decodes an Operand message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TaskExecution + * @returns Operand * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskExecution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Operand; /** - * Verifies a TaskExecution message. + * Verifies an Operand message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace TaskExecution { - - /** Phase enum. */ - enum Phase { - UNDEFINED = 0, - QUEUED = 1, - RUNNING = 2, - SUCCEEDED = 3, - ABORTED = 4, - FAILED = 5, - INITIALIZING = 6, - WAITING_FOR_RESOURCES = 7 - } - } - - /** Properties of an ExecutionError. */ - interface IExecutionError { - - /** ExecutionError code */ - code?: (string|null); - - /** ExecutionError message */ - message?: (string|null); + /** Properties of a BooleanExpression. */ + interface IBooleanExpression { - /** ExecutionError errorUri */ - errorUri?: (string|null); + /** BooleanExpression conjunction */ + conjunction?: (flyteidl.core.IConjunctionExpression|null); - /** ExecutionError kind */ - kind?: (flyteidl.core.ExecutionError.ErrorKind|null); + /** BooleanExpression comparison */ + comparison?: (flyteidl.core.IComparisonExpression|null); } - /** Represents an ExecutionError. */ - class ExecutionError implements IExecutionError { + /** Represents a BooleanExpression. */ + class BooleanExpression implements IBooleanExpression { /** - * Constructs a new ExecutionError. + * Constructs a new BooleanExpression. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IExecutionError); - - /** ExecutionError code. */ - public code: string; + constructor(properties?: flyteidl.core.IBooleanExpression); - /** ExecutionError message. */ - public message: string; + /** BooleanExpression conjunction. */ + public conjunction?: (flyteidl.core.IConjunctionExpression|null); - /** ExecutionError errorUri. */ - public errorUri: string; + /** BooleanExpression comparison. */ + public comparison?: (flyteidl.core.IComparisonExpression|null); - /** ExecutionError kind. */ - public kind: flyteidl.core.ExecutionError.ErrorKind; + /** BooleanExpression expr. */ + public expr?: ("conjunction"|"comparison"); /** - * Creates a new ExecutionError instance using the specified properties. + * Creates a new BooleanExpression instance using the specified properties. * @param [properties] Properties to set - * @returns ExecutionError instance + * @returns BooleanExpression instance */ - public static create(properties?: flyteidl.core.IExecutionError): flyteidl.core.ExecutionError; + public static create(properties?: flyteidl.core.IBooleanExpression): flyteidl.core.BooleanExpression; /** - * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. - * @param message ExecutionError message or plain object to encode + * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. + * @param message BooleanExpression message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IExecutionError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IBooleanExpression, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecutionError message from the specified reader or buffer. + * Decodes a BooleanExpression message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecutionError + * @returns BooleanExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ExecutionError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BooleanExpression; /** - * Verifies an ExecutionError message. + * Verifies a BooleanExpression message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace ExecutionError { - - /** ErrorKind enum. */ - enum ErrorKind { - UNKNOWN = 0, - USER = 1, - SYSTEM = 2 - } - } - - /** Properties of a TaskLog. */ - interface ITaskLog { - - /** TaskLog uri */ - uri?: (string|null); + /** Properties of a ConjunctionExpression. */ + interface IConjunctionExpression { - /** TaskLog name */ - name?: (string|null); + /** ConjunctionExpression operator */ + operator?: (flyteidl.core.ConjunctionExpression.LogicalOperator|null); - /** TaskLog messageFormat */ - messageFormat?: (flyteidl.core.TaskLog.MessageFormat|null); + /** ConjunctionExpression leftExpression */ + leftExpression?: (flyteidl.core.IBooleanExpression|null); - /** TaskLog ttl */ - ttl?: (google.protobuf.IDuration|null); + /** ConjunctionExpression rightExpression */ + rightExpression?: (flyteidl.core.IBooleanExpression|null); } - /** Represents a TaskLog. */ - class TaskLog implements ITaskLog { + /** Represents a ConjunctionExpression. */ + class ConjunctionExpression implements IConjunctionExpression { /** - * Constructs a new TaskLog. + * Constructs a new ConjunctionExpression. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ITaskLog); - - /** TaskLog uri. */ - public uri: string; + constructor(properties?: flyteidl.core.IConjunctionExpression); - /** TaskLog name. */ - public name: string; + /** ConjunctionExpression operator. */ + public operator: flyteidl.core.ConjunctionExpression.LogicalOperator; - /** TaskLog messageFormat. */ - public messageFormat: flyteidl.core.TaskLog.MessageFormat; + /** ConjunctionExpression leftExpression. */ + public leftExpression?: (flyteidl.core.IBooleanExpression|null); - /** TaskLog ttl. */ - public ttl?: (google.protobuf.IDuration|null); + /** ConjunctionExpression rightExpression. */ + public rightExpression?: (flyteidl.core.IBooleanExpression|null); /** - * Creates a new TaskLog instance using the specified properties. + * Creates a new ConjunctionExpression instance using the specified properties. * @param [properties] Properties to set - * @returns TaskLog instance + * @returns ConjunctionExpression instance */ - public static create(properties?: flyteidl.core.ITaskLog): flyteidl.core.TaskLog; + public static create(properties?: flyteidl.core.IConjunctionExpression): flyteidl.core.ConjunctionExpression; /** - * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. - * @param message TaskLog message or plain object to encode + * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. + * @param message ConjunctionExpression message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ITaskLog, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IConjunctionExpression, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskLog message from the specified reader or buffer. + * Decodes a ConjunctionExpression message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TaskLog + * @returns ConjunctionExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskLog; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConjunctionExpression; /** - * Verifies a TaskLog message. + * Verifies a ConjunctionExpression message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace TaskLog { + namespace ConjunctionExpression { - /** MessageFormat enum. */ - enum MessageFormat { - UNKNOWN = 0, - CSV = 1, - JSON = 2 + /** LogicalOperator enum. */ + enum LogicalOperator { + AND = 0, + OR = 1 } } - /** Properties of a QualityOfServiceSpec. */ - interface IQualityOfServiceSpec { - - /** QualityOfServiceSpec queueingBudget */ - queueingBudget?: (google.protobuf.IDuration|null); + /** Properties of a WorkflowExecution. */ + interface IWorkflowExecution { } - /** Represents a QualityOfServiceSpec. */ - class QualityOfServiceSpec implements IQualityOfServiceSpec { + /** Represents a WorkflowExecution. */ + class WorkflowExecution implements IWorkflowExecution { /** - * Constructs a new QualityOfServiceSpec. + * Constructs a new WorkflowExecution. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IQualityOfServiceSpec); - - /** QualityOfServiceSpec queueingBudget. */ - public queueingBudget?: (google.protobuf.IDuration|null); + constructor(properties?: flyteidl.core.IWorkflowExecution); /** - * Creates a new QualityOfServiceSpec instance using the specified properties. + * Creates a new WorkflowExecution instance using the specified properties. * @param [properties] Properties to set - * @returns QualityOfServiceSpec instance + * @returns WorkflowExecution instance */ - public static create(properties?: flyteidl.core.IQualityOfServiceSpec): flyteidl.core.QualityOfServiceSpec; + public static create(properties?: flyteidl.core.IWorkflowExecution): flyteidl.core.WorkflowExecution; /** - * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. - * @param message QualityOfServiceSpec message or plain object to encode + * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. + * @param message WorkflowExecution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IQualityOfServiceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IWorkflowExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QualityOfServiceSpec message from the specified reader or buffer. + * Decodes a WorkflowExecution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QualityOfServiceSpec + * @returns WorkflowExecution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.QualityOfServiceSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowExecution; /** - * Verifies a QualityOfServiceSpec message. + * Verifies a WorkflowExecution message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a QualityOfService. */ - interface IQualityOfService { + namespace WorkflowExecution { - /** QualityOfService tier */ - tier?: (flyteidl.core.QualityOfService.Tier|null); + /** Phase enum. */ + enum Phase { + UNDEFINED = 0, + QUEUED = 1, + RUNNING = 2, + SUCCEEDING = 3, + SUCCEEDED = 4, + FAILING = 5, + FAILED = 6, + ABORTED = 7, + TIMED_OUT = 8, + ABORTING = 9 + } + } - /** QualityOfService spec */ - spec?: (flyteidl.core.IQualityOfServiceSpec|null); + /** Properties of a NodeExecution. */ + interface INodeExecution { } - /** Represents a QualityOfService. */ - class QualityOfService implements IQualityOfService { + /** Represents a NodeExecution. */ + class NodeExecution implements INodeExecution { /** - * Constructs a new QualityOfService. + * Constructs a new NodeExecution. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IQualityOfService); - - /** QualityOfService tier. */ - public tier: flyteidl.core.QualityOfService.Tier; - - /** QualityOfService spec. */ - public spec?: (flyteidl.core.IQualityOfServiceSpec|null); - - /** QualityOfService designation. */ - public designation?: ("tier"|"spec"); + constructor(properties?: flyteidl.core.INodeExecution); /** - * Creates a new QualityOfService instance using the specified properties. + * Creates a new NodeExecution instance using the specified properties. * @param [properties] Properties to set - * @returns QualityOfService instance + * @returns NodeExecution instance */ - public static create(properties?: flyteidl.core.IQualityOfService): flyteidl.core.QualityOfService; + public static create(properties?: flyteidl.core.INodeExecution): flyteidl.core.NodeExecution; /** - * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. - * @param message QualityOfService message or plain object to encode + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. + * @param message NodeExecution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IQualityOfService, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QualityOfService message from the specified reader or buffer. + * Decodes a NodeExecution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QualityOfService + * @returns NodeExecution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.QualityOfService; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeExecution; /** - * Verifies a QualityOfService message. + * Verifies a NodeExecution message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - namespace QualityOfService { + namespace NodeExecution { - /** Tier enum. */ - enum Tier { + /** Phase enum. */ + enum Phase { UNDEFINED = 0, - HIGH = 1, - MEDIUM = 2, - LOW = 3 + QUEUED = 1, + RUNNING = 2, + SUCCEEDED = 3, + FAILING = 4, + FAILED = 5, + ABORTED = 6, + SKIPPED = 7, + TIMED_OUT = 8, + DYNAMIC_RUNNING = 9, + RECOVERED = 10 } } - /** Properties of a Variable. */ - interface IVariable { - - /** Variable type */ - type?: (flyteidl.core.ILiteralType|null); - - /** Variable description */ - description?: (string|null); - - /** Variable artifactPartialId */ - artifactPartialId?: (flyteidl.core.IArtifactID|null); - - /** Variable artifactTag */ - artifactTag?: (flyteidl.core.IArtifactTag|null); + /** Properties of a TaskExecution. */ + interface ITaskExecution { } - /** Represents a Variable. */ - class Variable implements IVariable { + /** Represents a TaskExecution. */ + class TaskExecution implements ITaskExecution { /** - * Constructs a new Variable. + * Constructs a new TaskExecution. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IVariable); - - /** Variable type. */ - public type?: (flyteidl.core.ILiteralType|null); - - /** Variable description. */ - public description: string; - - /** Variable artifactPartialId. */ - public artifactPartialId?: (flyteidl.core.IArtifactID|null); - - /** Variable artifactTag. */ - public artifactTag?: (flyteidl.core.IArtifactTag|null); + constructor(properties?: flyteidl.core.ITaskExecution); /** - * Creates a new Variable instance using the specified properties. + * Creates a new TaskExecution instance using the specified properties. * @param [properties] Properties to set - * @returns Variable instance + * @returns TaskExecution instance */ - public static create(properties?: flyteidl.core.IVariable): flyteidl.core.Variable; + public static create(properties?: flyteidl.core.ITaskExecution): flyteidl.core.TaskExecution; /** - * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. - * @param message Variable message or plain object to encode + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. + * @param message TaskExecution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IVariable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Variable message from the specified reader or buffer. + * Decodes a TaskExecution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Variable + * @returns TaskExecution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Variable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskExecution; /** - * Verifies a Variable message. + * Verifies a TaskExecution message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a VariableMap. */ - interface IVariableMap { + namespace TaskExecution { - /** VariableMap variables */ - variables?: ({ [k: string]: flyteidl.core.IVariable }|null); + /** Phase enum. */ + enum Phase { + UNDEFINED = 0, + QUEUED = 1, + RUNNING = 2, + SUCCEEDED = 3, + ABORTED = 4, + FAILED = 5, + INITIALIZING = 6, + WAITING_FOR_RESOURCES = 7 + } } - /** Represents a VariableMap. */ - class VariableMap implements IVariableMap { + /** Properties of an ExecutionError. */ + interface IExecutionError { + + /** ExecutionError code */ + code?: (string|null); + + /** ExecutionError message */ + message?: (string|null); + + /** ExecutionError errorUri */ + errorUri?: (string|null); + + /** ExecutionError kind */ + kind?: (flyteidl.core.ExecutionError.ErrorKind|null); + } + + /** Represents an ExecutionError. */ + class ExecutionError implements IExecutionError { /** - * Constructs a new VariableMap. + * Constructs a new ExecutionError. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IVariableMap); + constructor(properties?: flyteidl.core.IExecutionError); - /** VariableMap variables. */ - public variables: { [k: string]: flyteidl.core.IVariable }; + /** ExecutionError code. */ + public code: string; + + /** ExecutionError message. */ + public message: string; + + /** ExecutionError errorUri. */ + public errorUri: string; + + /** ExecutionError kind. */ + public kind: flyteidl.core.ExecutionError.ErrorKind; /** - * Creates a new VariableMap instance using the specified properties. + * Creates a new ExecutionError instance using the specified properties. * @param [properties] Properties to set - * @returns VariableMap instance + * @returns ExecutionError instance */ - public static create(properties?: flyteidl.core.IVariableMap): flyteidl.core.VariableMap; + public static create(properties?: flyteidl.core.IExecutionError): flyteidl.core.ExecutionError; /** - * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. - * @param message VariableMap message or plain object to encode + * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. + * @param message ExecutionError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IVariableMap, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IExecutionError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VariableMap message from the specified reader or buffer. + * Decodes an ExecutionError message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VariableMap + * @returns ExecutionError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.VariableMap; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ExecutionError; /** - * Verifies a VariableMap message. + * Verifies an ExecutionError message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a TypedInterface. */ - interface ITypedInterface { + namespace ExecutionError { - /** TypedInterface inputs */ - inputs?: (flyteidl.core.IVariableMap|null); + /** ErrorKind enum. */ + enum ErrorKind { + UNKNOWN = 0, + USER = 1, + SYSTEM = 2 + } + } - /** TypedInterface outputs */ - outputs?: (flyteidl.core.IVariableMap|null); + /** Properties of a TaskLog. */ + interface ITaskLog { + + /** TaskLog uri */ + uri?: (string|null); + + /** TaskLog name */ + name?: (string|null); + + /** TaskLog messageFormat */ + messageFormat?: (flyteidl.core.TaskLog.MessageFormat|null); + + /** TaskLog ttl */ + ttl?: (google.protobuf.IDuration|null); } - /** Represents a TypedInterface. */ - class TypedInterface implements ITypedInterface { + /** Represents a TaskLog. */ + class TaskLog implements ITaskLog { /** - * Constructs a new TypedInterface. + * Constructs a new TaskLog. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.ITypedInterface); + constructor(properties?: flyteidl.core.ITaskLog); - /** TypedInterface inputs. */ - public inputs?: (flyteidl.core.IVariableMap|null); + /** TaskLog uri. */ + public uri: string; - /** TypedInterface outputs. */ - public outputs?: (flyteidl.core.IVariableMap|null); + /** TaskLog name. */ + public name: string; + + /** TaskLog messageFormat. */ + public messageFormat: flyteidl.core.TaskLog.MessageFormat; + + /** TaskLog ttl. */ + public ttl?: (google.protobuf.IDuration|null); /** - * Creates a new TypedInterface instance using the specified properties. + * Creates a new TaskLog instance using the specified properties. * @param [properties] Properties to set - * @returns TypedInterface instance + * @returns TaskLog instance */ - public static create(properties?: flyteidl.core.ITypedInterface): flyteidl.core.TypedInterface; + public static create(properties?: flyteidl.core.ITaskLog): flyteidl.core.TaskLog; /** - * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. - * @param message TypedInterface message or plain object to encode + * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. + * @param message TaskLog message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.ITypedInterface, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.ITaskLog, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TypedInterface message from the specified reader or buffer. + * Decodes a TaskLog message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TypedInterface + * @returns TaskLog * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypedInterface; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskLog; /** - * Verifies a TypedInterface message. + * Verifies a TaskLog message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a Parameter. */ - interface IParameter { - - /** Parameter var */ - "var"?: (flyteidl.core.IVariable|null); - - /** Parameter default */ - "default"?: (flyteidl.core.ILiteral|null); + namespace TaskLog { - /** Parameter required */ - required?: (boolean|null); + /** MessageFormat enum. */ + enum MessageFormat { + UNKNOWN = 0, + CSV = 1, + JSON = 2 + } + } - /** Parameter artifactQuery */ - artifactQuery?: (flyteidl.core.IArtifactQuery|null); + /** Properties of a QualityOfServiceSpec. */ + interface IQualityOfServiceSpec { - /** Parameter artifactId */ - artifactId?: (flyteidl.core.IArtifactID|null); + /** QualityOfServiceSpec queueingBudget */ + queueingBudget?: (google.protobuf.IDuration|null); } - /** Represents a Parameter. */ - class Parameter implements IParameter { + /** Represents a QualityOfServiceSpec. */ + class QualityOfServiceSpec implements IQualityOfServiceSpec { /** - * Constructs a new Parameter. + * Constructs a new QualityOfServiceSpec. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IParameter); - - /** Parameter var. */ - public var?: (flyteidl.core.IVariable|null); - - /** Parameter default. */ - public default?: (flyteidl.core.ILiteral|null); - - /** Parameter required. */ - public required: boolean; - - /** Parameter artifactQuery. */ - public artifactQuery?: (flyteidl.core.IArtifactQuery|null); - - /** Parameter artifactId. */ - public artifactId?: (flyteidl.core.IArtifactID|null); + constructor(properties?: flyteidl.core.IQualityOfServiceSpec); - /** Parameter behavior. */ - public behavior?: ("default"|"required"|"artifactQuery"|"artifactId"); + /** QualityOfServiceSpec queueingBudget. */ + public queueingBudget?: (google.protobuf.IDuration|null); /** - * Creates a new Parameter instance using the specified properties. + * Creates a new QualityOfServiceSpec instance using the specified properties. * @param [properties] Properties to set - * @returns Parameter instance + * @returns QualityOfServiceSpec instance */ - public static create(properties?: flyteidl.core.IParameter): flyteidl.core.Parameter; + public static create(properties?: flyteidl.core.IQualityOfServiceSpec): flyteidl.core.QualityOfServiceSpec; /** - * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode + * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. + * @param message QualityOfServiceSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IQualityOfServiceSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Parameter message from the specified reader or buffer. + * Decodes a QualityOfServiceSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Parameter + * @returns QualityOfServiceSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Parameter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.QualityOfServiceSpec; /** - * Verifies a Parameter message. + * Verifies a QualityOfServiceSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a ParameterMap. */ - interface IParameterMap { + /** Properties of a QualityOfService. */ + interface IQualityOfService { - /** ParameterMap parameters */ - parameters?: ({ [k: string]: flyteidl.core.IParameter }|null); + /** QualityOfService tier */ + tier?: (flyteidl.core.QualityOfService.Tier|null); + + /** QualityOfService spec */ + spec?: (flyteidl.core.IQualityOfServiceSpec|null); } - /** Represents a ParameterMap. */ - class ParameterMap implements IParameterMap { + /** Represents a QualityOfService. */ + class QualityOfService implements IQualityOfService { /** - * Constructs a new ParameterMap. + * Constructs a new QualityOfService. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.core.IParameterMap); + constructor(properties?: flyteidl.core.IQualityOfService); - /** ParameterMap parameters. */ - public parameters: { [k: string]: flyteidl.core.IParameter }; + /** QualityOfService tier. */ + public tier: flyteidl.core.QualityOfService.Tier; + + /** QualityOfService spec. */ + public spec?: (flyteidl.core.IQualityOfServiceSpec|null); + + /** QualityOfService designation. */ + public designation?: ("tier"|"spec"); /** - * Creates a new ParameterMap instance using the specified properties. + * Creates a new QualityOfService instance using the specified properties. * @param [properties] Properties to set - * @returns ParameterMap instance + * @returns QualityOfService instance */ - public static create(properties?: flyteidl.core.IParameterMap): flyteidl.core.ParameterMap; + public static create(properties?: flyteidl.core.IQualityOfService): flyteidl.core.QualityOfService; /** - * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. - * @param message ParameterMap message or plain object to encode + * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. + * @param message QualityOfService message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.core.IParameterMap, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.core.IQualityOfService, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ParameterMap message from the specified reader or buffer. + * Decodes a QualityOfService message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ParameterMap + * @returns QualityOfService * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ParameterMap; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.QualityOfService; /** - * Verifies a ParameterMap message. + * Verifies a QualityOfService message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } + namespace QualityOfService { + + /** Tier enum. */ + enum Tier { + UNDEFINED = 0, + HIGH = 1, + MEDIUM = 2, + LOW = 3 + } + } + /** Properties of a Resources. */ interface IResources { @@ -23398,64 +23541,6 @@ export namespace google { public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a Duration. */ - interface IDuration { - - /** Duration seconds */ - seconds?: (Long|null); - - /** Duration nanos */ - nanos?: (number|null); - } - - /** Represents a Duration. */ - class Duration implements IDuration { - - /** - * Constructs a new Duration. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDuration); - - /** Duration seconds. */ - public seconds: Long; - - /** Duration nanos. */ - public nanos: number; - - /** - * Creates a new Duration instance using the specified properties. - * @param [properties] Properties to set - * @returns Duration instance - */ - public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; - - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Duration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; - - /** - * Verifies a Duration message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - /** Properties of a Struct. */ interface IStruct { @@ -23650,6 +23735,64 @@ export namespace google { public static verify(message: { [k: string]: any }): (string|null); } + /** Properties of a Duration. */ + interface IDuration { + + /** Duration seconds */ + seconds?: (Long|null); + + /** Duration nanos */ + nanos?: (number|null); + } + + /** Represents a Duration. */ + class Duration implements IDuration { + + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: Long; + + /** Duration nanos. */ + public nanos: number; + + /** + * Creates a new Duration instance using the specified properties. + * @param [properties] Properties to set + * @returns Duration instance + */ + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; + + /** + * Verifies a Duration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + /** Properties of a DoubleValue. */ interface IDoubleValue { diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index 7a5c668347..9af0d61e14 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -3036,6 +3036,118 @@ return CompiledWorkflow; })(); + core.CompiledLaunchPlan = (function() { + + /** + * Properties of a CompiledLaunchPlan. + * @memberof flyteidl.core + * @interface ICompiledLaunchPlan + * @property {flyteidl.core.ILaunchPlanTemplate|null} [template] CompiledLaunchPlan template + */ + + /** + * Constructs a new CompiledLaunchPlan. + * @memberof flyteidl.core + * @classdesc Represents a CompiledLaunchPlan. + * @implements ICompiledLaunchPlan + * @constructor + * @param {flyteidl.core.ICompiledLaunchPlan=} [properties] Properties to set + */ + function CompiledLaunchPlan(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompiledLaunchPlan template. + * @member {flyteidl.core.ILaunchPlanTemplate|null|undefined} template + * @memberof flyteidl.core.CompiledLaunchPlan + * @instance + */ + CompiledLaunchPlan.prototype.template = null; + + /** + * Creates a new CompiledLaunchPlan instance using the specified properties. + * @function create + * @memberof flyteidl.core.CompiledLaunchPlan + * @static + * @param {flyteidl.core.ICompiledLaunchPlan=} [properties] Properties to set + * @returns {flyteidl.core.CompiledLaunchPlan} CompiledLaunchPlan instance + */ + CompiledLaunchPlan.create = function create(properties) { + return new CompiledLaunchPlan(properties); + }; + + /** + * Encodes the specified CompiledLaunchPlan message. Does not implicitly {@link flyteidl.core.CompiledLaunchPlan.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CompiledLaunchPlan + * @static + * @param {flyteidl.core.ICompiledLaunchPlan} message CompiledLaunchPlan message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompiledLaunchPlan.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.LaunchPlanTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CompiledLaunchPlan message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CompiledLaunchPlan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CompiledLaunchPlan} CompiledLaunchPlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompiledLaunchPlan.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledLaunchPlan(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.LaunchPlanTemplate.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CompiledLaunchPlan message. + * @function verify + * @memberof flyteidl.core.CompiledLaunchPlan + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompiledLaunchPlan.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.LaunchPlanTemplate.verify(message.template); + if (error) + return "template." + error; + } + return null; + }; + + return CompiledLaunchPlan; + })(); + core.CompiledTask = (function() { /** @@ -3157,6 +3269,7 @@ * @property {flyteidl.core.ICompiledWorkflow|null} [primary] CompiledWorkflowClosure primary * @property {Array.|null} [subWorkflows] CompiledWorkflowClosure subWorkflows * @property {Array.|null} [tasks] CompiledWorkflowClosure tasks + * @property {Array.|null} [launchPlans] CompiledWorkflowClosure launchPlans */ /** @@ -3170,6 +3283,7 @@ function CompiledWorkflowClosure(properties) { this.subWorkflows = []; this.tasks = []; + this.launchPlans = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3200,6 +3314,14 @@ */ CompiledWorkflowClosure.prototype.tasks = $util.emptyArray; + /** + * CompiledWorkflowClosure launchPlans. + * @member {Array.} launchPlans + * @memberof flyteidl.core.CompiledWorkflowClosure + * @instance + */ + CompiledWorkflowClosure.prototype.launchPlans = $util.emptyArray; + /** * Creates a new CompiledWorkflowClosure instance using the specified properties. * @function create @@ -3232,6 +3354,9 @@ if (message.tasks != null && message.tasks.length) for (var i = 0; i < message.tasks.length; ++i) $root.flyteidl.core.CompiledTask.encode(message.tasks[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.launchPlans != null && message.launchPlans.length) + for (var i = 0; i < message.launchPlans.length; ++i) + $root.flyteidl.core.CompiledLaunchPlan.encode(message.launchPlans[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -3266,6 +3391,11 @@ message.tasks = []; message.tasks.push($root.flyteidl.core.CompiledTask.decode(reader, reader.uint32())); break; + case 4: + if (!(message.launchPlans && message.launchPlans.length)) + message.launchPlans = []; + message.launchPlans.push($root.flyteidl.core.CompiledLaunchPlan.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -3308,31 +3438,42 @@ return "tasks." + error; } } + if (message.launchPlans != null && message.hasOwnProperty("launchPlans")) { + if (!Array.isArray(message.launchPlans)) + return "launchPlans: array expected"; + for (var i = 0; i < message.launchPlans.length; ++i) { + var error = $root.flyteidl.core.CompiledLaunchPlan.verify(message.launchPlans[i]); + if (error) + return "launchPlans." + error; + } + } return null; }; return CompiledWorkflowClosure; })(); - core.IfBlock = (function() { + core.Variable = (function() { /** - * Properties of an IfBlock. + * Properties of a Variable. * @memberof flyteidl.core - * @interface IIfBlock - * @property {flyteidl.core.IBooleanExpression|null} [condition] IfBlock condition - * @property {flyteidl.core.INode|null} [thenNode] IfBlock thenNode + * @interface IVariable + * @property {flyteidl.core.ILiteralType|null} [type] Variable type + * @property {string|null} [description] Variable description + * @property {flyteidl.core.IArtifactID|null} [artifactPartialId] Variable artifactPartialId + * @property {flyteidl.core.IArtifactTag|null} [artifactTag] Variable artifactTag */ /** - * Constructs a new IfBlock. + * Constructs a new Variable. * @memberof flyteidl.core - * @classdesc Represents an IfBlock. - * @implements IIfBlock + * @classdesc Represents a Variable. + * @implements IVariable * @constructor - * @param {flyteidl.core.IIfBlock=} [properties] Properties to set + * @param {flyteidl.core.IVariable=} [properties] Properties to set */ - function IfBlock(properties) { + function Variable(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3340,75 +3481,101 @@ } /** - * IfBlock condition. - * @member {flyteidl.core.IBooleanExpression|null|undefined} condition - * @memberof flyteidl.core.IfBlock + * Variable type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.core.Variable * @instance */ - IfBlock.prototype.condition = null; + Variable.prototype.type = null; /** - * IfBlock thenNode. - * @member {flyteidl.core.INode|null|undefined} thenNode - * @memberof flyteidl.core.IfBlock + * Variable description. + * @member {string} description + * @memberof flyteidl.core.Variable * @instance */ - IfBlock.prototype.thenNode = null; + Variable.prototype.description = ""; /** - * Creates a new IfBlock instance using the specified properties. + * Variable artifactPartialId. + * @member {flyteidl.core.IArtifactID|null|undefined} artifactPartialId + * @memberof flyteidl.core.Variable + * @instance + */ + Variable.prototype.artifactPartialId = null; + + /** + * Variable artifactTag. + * @member {flyteidl.core.IArtifactTag|null|undefined} artifactTag + * @memberof flyteidl.core.Variable + * @instance + */ + Variable.prototype.artifactTag = null; + + /** + * Creates a new Variable instance using the specified properties. * @function create - * @memberof flyteidl.core.IfBlock + * @memberof flyteidl.core.Variable * @static - * @param {flyteidl.core.IIfBlock=} [properties] Properties to set - * @returns {flyteidl.core.IfBlock} IfBlock instance + * @param {flyteidl.core.IVariable=} [properties] Properties to set + * @returns {flyteidl.core.Variable} Variable instance */ - IfBlock.create = function create(properties) { - return new IfBlock(properties); + Variable.create = function create(properties) { + return new Variable(properties); }; /** - * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. + * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. * @function encode - * @memberof flyteidl.core.IfBlock + * @memberof flyteidl.core.Variable * @static - * @param {flyteidl.core.IIfBlock} message IfBlock message or plain object to encode + * @param {flyteidl.core.IVariable} message Variable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IfBlock.encode = function encode(message, writer) { + Variable.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.condition != null && message.hasOwnProperty("condition")) - $root.flyteidl.core.BooleanExpression.encode(message.condition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.thenNode != null && message.hasOwnProperty("thenNode")) - $root.flyteidl.core.Node.encode(message.thenNode, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.artifactPartialId != null && message.hasOwnProperty("artifactPartialId")) + $root.flyteidl.core.ArtifactID.encode(message.artifactPartialId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) + $root.flyteidl.core.ArtifactTag.encode(message.artifactTag, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Decodes an IfBlock message from the specified reader or buffer. + * Decodes a Variable message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.IfBlock + * @memberof flyteidl.core.Variable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.IfBlock} IfBlock + * @returns {flyteidl.core.Variable} Variable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IfBlock.decode = function decode(reader, length) { + Variable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfBlock(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Variable(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.condition = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); break; case 2: - message.thenNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + message.description = reader.string(); + break; + case 3: + message.artifactPartialId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); + break; + case 4: + message.artifactTag = $root.flyteidl.core.ArtifactTag.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3419,54 +3586,59 @@ }; /** - * Verifies an IfBlock message. + * Verifies a Variable message. * @function verify - * @memberof flyteidl.core.IfBlock + * @memberof flyteidl.core.Variable * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IfBlock.verify = function verify(message) { + Variable.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.condition != null && message.hasOwnProperty("condition")) { - var error = $root.flyteidl.core.BooleanExpression.verify(message.condition); + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); if (error) - return "condition." + error; + return "type." + error; } - if (message.thenNode != null && message.hasOwnProperty("thenNode")) { - var error = $root.flyteidl.core.Node.verify(message.thenNode); + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.artifactPartialId != null && message.hasOwnProperty("artifactPartialId")) { + var error = $root.flyteidl.core.ArtifactID.verify(message.artifactPartialId); if (error) - return "thenNode." + error; + return "artifactPartialId." + error; + } + if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { + var error = $root.flyteidl.core.ArtifactTag.verify(message.artifactTag); + if (error) + return "artifactTag." + error; } return null; }; - return IfBlock; + return Variable; })(); - core.IfElseBlock = (function() { + core.VariableMap = (function() { /** - * Properties of an IfElseBlock. + * Properties of a VariableMap. * @memberof flyteidl.core - * @interface IIfElseBlock - * @property {flyteidl.core.IIfBlock|null} ["case"] IfElseBlock case - * @property {Array.|null} [other] IfElseBlock other - * @property {flyteidl.core.INode|null} [elseNode] IfElseBlock elseNode - * @property {flyteidl.core.IError|null} [error] IfElseBlock error + * @interface IVariableMap + * @property {Object.|null} [variables] VariableMap variables */ /** - * Constructs a new IfElseBlock. + * Constructs a new VariableMap. * @memberof flyteidl.core - * @classdesc Represents an IfElseBlock. - * @implements IIfElseBlock + * @classdesc Represents a VariableMap. + * @implements IVariableMap * @constructor - * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set + * @param {flyteidl.core.IVariableMap=} [properties] Properties to set */ - function IfElseBlock(properties) { - this.other = []; + function VariableMap(properties) { + this.variables = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3474,118 +3646,70 @@ } /** - * IfElseBlock case. - * @member {flyteidl.core.IIfBlock|null|undefined} case - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype["case"] = null; - - /** - * IfElseBlock other. - * @member {Array.} other - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype.other = $util.emptyArray; - - /** - * IfElseBlock elseNode. - * @member {flyteidl.core.INode|null|undefined} elseNode - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype.elseNode = null; - - /** - * IfElseBlock error. - * @member {flyteidl.core.IError|null|undefined} error - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype.error = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * IfElseBlock default. - * @member {"elseNode"|"error"|undefined} default_ - * @memberof flyteidl.core.IfElseBlock + * VariableMap variables. + * @member {Object.} variables + * @memberof flyteidl.core.VariableMap * @instance */ - Object.defineProperty(IfElseBlock.prototype, "default", { - get: $util.oneOfGetter($oneOfFields = ["elseNode", "error"]), - set: $util.oneOfSetter($oneOfFields) - }); + VariableMap.prototype.variables = $util.emptyObject; /** - * Creates a new IfElseBlock instance using the specified properties. + * Creates a new VariableMap instance using the specified properties. * @function create - * @memberof flyteidl.core.IfElseBlock + * @memberof flyteidl.core.VariableMap * @static - * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set - * @returns {flyteidl.core.IfElseBlock} IfElseBlock instance + * @param {flyteidl.core.IVariableMap=} [properties] Properties to set + * @returns {flyteidl.core.VariableMap} VariableMap instance */ - IfElseBlock.create = function create(properties) { - return new IfElseBlock(properties); + VariableMap.create = function create(properties) { + return new VariableMap(properties); }; /** - * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. + * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. * @function encode - * @memberof flyteidl.core.IfElseBlock + * @memberof flyteidl.core.VariableMap * @static - * @param {flyteidl.core.IIfElseBlock} message IfElseBlock message or plain object to encode + * @param {flyteidl.core.IVariableMap} message VariableMap message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IfElseBlock.encode = function encode(message, writer) { + VariableMap.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message["case"] != null && message.hasOwnProperty("case")) - $root.flyteidl.core.IfBlock.encode(message["case"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.other != null && message.other.length) - for (var i = 0; i < message.other.length; ++i) - $root.flyteidl.core.IfBlock.encode(message.other[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.elseNode != null && message.hasOwnProperty("elseNode")) - $root.flyteidl.core.Node.encode(message.elseNode, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.variables != null && message.hasOwnProperty("variables")) + for (var keys = Object.keys(message.variables), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Variable.encode(message.variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Decodes an IfElseBlock message from the specified reader or buffer. + * Decodes a VariableMap message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.IfElseBlock + * @memberof flyteidl.core.VariableMap * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.IfElseBlock} IfElseBlock + * @returns {flyteidl.core.VariableMap} VariableMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IfElseBlock.decode = function decode(reader, length) { + VariableMap.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfElseBlock(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.VariableMap(), key; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message["case"] = $root.flyteidl.core.IfBlock.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.other && message.other.length)) - message.other = []; - message.other.push($root.flyteidl.core.IfBlock.decode(reader, reader.uint32())); - break; - case 3: - message.elseNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); - break; - case 4: - message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); + reader.skip().pos++; + if (message.variables === $util.emptyObject) + message.variables = {}; + key = reader.string(); + reader.pos++; + message.variables[key] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3596,73 +3720,51 @@ }; /** - * Verifies an IfElseBlock message. + * Verifies a VariableMap message. * @function verify - * @memberof flyteidl.core.IfElseBlock + * @memberof flyteidl.core.VariableMap * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IfElseBlock.verify = function verify(message) { + VariableMap.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message["case"] != null && message.hasOwnProperty("case")) { - var error = $root.flyteidl.core.IfBlock.verify(message["case"]); - if (error) - return "case." + error; - } - if (message.other != null && message.hasOwnProperty("other")) { - if (!Array.isArray(message.other)) - return "other: array expected"; - for (var i = 0; i < message.other.length; ++i) { - var error = $root.flyteidl.core.IfBlock.verify(message.other[i]); - if (error) - return "other." + error; - } - } - if (message.elseNode != null && message.hasOwnProperty("elseNode")) { - properties["default"] = 1; - { - var error = $root.flyteidl.core.Node.verify(message.elseNode); - if (error) - return "elseNode." + error; - } - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties["default"] === 1) - return "default: multiple values"; - properties["default"] = 1; - { - var error = $root.flyteidl.core.Error.verify(message.error); + if (message.variables != null && message.hasOwnProperty("variables")) { + if (!$util.isObject(message.variables)) + return "variables: object expected"; + var key = Object.keys(message.variables); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.Variable.verify(message.variables[key[i]]); if (error) - return "error." + error; + return "variables." + error; } } return null; }; - return IfElseBlock; + return VariableMap; })(); - core.BranchNode = (function() { + core.TypedInterface = (function() { /** - * Properties of a BranchNode. + * Properties of a TypedInterface. * @memberof flyteidl.core - * @interface IBranchNode - * @property {flyteidl.core.IIfElseBlock|null} [ifElse] BranchNode ifElse + * @interface ITypedInterface + * @property {flyteidl.core.IVariableMap|null} [inputs] TypedInterface inputs + * @property {flyteidl.core.IVariableMap|null} [outputs] TypedInterface outputs */ /** - * Constructs a new BranchNode. + * Constructs a new TypedInterface. * @memberof flyteidl.core - * @classdesc Represents a BranchNode. - * @implements IBranchNode + * @classdesc Represents a TypedInterface. + * @implements ITypedInterface * @constructor - * @param {flyteidl.core.IBranchNode=} [properties] Properties to set + * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set */ - function BranchNode(properties) { + function TypedInterface(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3670,62 +3772,75 @@ } /** - * BranchNode ifElse. - * @member {flyteidl.core.IIfElseBlock|null|undefined} ifElse - * @memberof flyteidl.core.BranchNode + * TypedInterface inputs. + * @member {flyteidl.core.IVariableMap|null|undefined} inputs + * @memberof flyteidl.core.TypedInterface * @instance */ - BranchNode.prototype.ifElse = null; + TypedInterface.prototype.inputs = null; /** - * Creates a new BranchNode instance using the specified properties. + * TypedInterface outputs. + * @member {flyteidl.core.IVariableMap|null|undefined} outputs + * @memberof flyteidl.core.TypedInterface + * @instance + */ + TypedInterface.prototype.outputs = null; + + /** + * Creates a new TypedInterface instance using the specified properties. * @function create - * @memberof flyteidl.core.BranchNode + * @memberof flyteidl.core.TypedInterface * @static - * @param {flyteidl.core.IBranchNode=} [properties] Properties to set - * @returns {flyteidl.core.BranchNode} BranchNode instance + * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set + * @returns {flyteidl.core.TypedInterface} TypedInterface instance */ - BranchNode.create = function create(properties) { - return new BranchNode(properties); + TypedInterface.create = function create(properties) { + return new TypedInterface(properties); }; /** - * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. + * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. * @function encode - * @memberof flyteidl.core.BranchNode + * @memberof flyteidl.core.TypedInterface * @static - * @param {flyteidl.core.IBranchNode} message BranchNode message or plain object to encode + * @param {flyteidl.core.ITypedInterface} message TypedInterface message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BranchNode.encode = function encode(message, writer) { + TypedInterface.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ifElse != null && message.hasOwnProperty("ifElse")) - $root.flyteidl.core.IfElseBlock.encode(message.ifElse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.VariableMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.core.VariableMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a BranchNode message from the specified reader or buffer. + * Decodes a TypedInterface message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.BranchNode + * @memberof flyteidl.core.TypedInterface * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BranchNode} BranchNode + * @returns {flyteidl.core.TypedInterface} TypedInterface * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BranchNode.decode = function decode(reader, length) { + TypedInterface.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BranchNode(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypedInterface(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.ifElse = $root.flyteidl.core.IfElseBlock.decode(reader, reader.uint32()); + message.inputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + break; + case 2: + message.outputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3736,46 +3851,54 @@ }; /** - * Verifies a BranchNode message. + * Verifies a TypedInterface message. * @function verify - * @memberof flyteidl.core.BranchNode + * @memberof flyteidl.core.TypedInterface * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BranchNode.verify = function verify(message) { + TypedInterface.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.ifElse != null && message.hasOwnProperty("ifElse")) { - var error = $root.flyteidl.core.IfElseBlock.verify(message.ifElse); + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.VariableMap.verify(message.inputs); if (error) - return "ifElse." + error; + return "inputs." + error; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.core.VariableMap.verify(message.outputs); + if (error) + return "outputs." + error; } return null; }; - return BranchNode; + return TypedInterface; })(); - core.TaskNode = (function() { + core.Parameter = (function() { /** - * Properties of a TaskNode. + * Properties of a Parameter. * @memberof flyteidl.core - * @interface ITaskNode - * @property {flyteidl.core.IIdentifier|null} [referenceId] TaskNode referenceId - * @property {flyteidl.core.ITaskNodeOverrides|null} [overrides] TaskNode overrides - */ - - /** - * Constructs a new TaskNode. + * @interface IParameter + * @property {flyteidl.core.IVariable|null} ["var"] Parameter var + * @property {flyteidl.core.ILiteral|null} ["default"] Parameter default + * @property {boolean|null} [required] Parameter required + * @property {flyteidl.core.IArtifactQuery|null} [artifactQuery] Parameter artifactQuery + * @property {flyteidl.core.IArtifactID|null} [artifactId] Parameter artifactId + */ + + /** + * Constructs a new Parameter. * @memberof flyteidl.core - * @classdesc Represents a TaskNode. - * @implements ITaskNode + * @classdesc Represents a Parameter. + * @implements IParameter * @constructor - * @param {flyteidl.core.ITaskNode=} [properties] Properties to set + * @param {flyteidl.core.IParameter=} [properties] Properties to set */ - function TaskNode(properties) { + function Parameter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3783,89 +3906,128 @@ } /** - * TaskNode referenceId. - * @member {flyteidl.core.IIdentifier|null|undefined} referenceId - * @memberof flyteidl.core.TaskNode + * Parameter var. + * @member {flyteidl.core.IVariable|null|undefined} var + * @memberof flyteidl.core.Parameter * @instance */ - TaskNode.prototype.referenceId = null; + Parameter.prototype["var"] = null; /** - * TaskNode overrides. - * @member {flyteidl.core.ITaskNodeOverrides|null|undefined} overrides - * @memberof flyteidl.core.TaskNode + * Parameter default. + * @member {flyteidl.core.ILiteral|null|undefined} default + * @memberof flyteidl.core.Parameter * @instance */ - TaskNode.prototype.overrides = null; + Parameter.prototype["default"] = null; + + /** + * Parameter required. + * @member {boolean} required + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype.required = false; + + /** + * Parameter artifactQuery. + * @member {flyteidl.core.IArtifactQuery|null|undefined} artifactQuery + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype.artifactQuery = null; + + /** + * Parameter artifactId. + * @member {flyteidl.core.IArtifactID|null|undefined} artifactId + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype.artifactId = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * TaskNode reference. - * @member {"referenceId"|undefined} reference - * @memberof flyteidl.core.TaskNode + * Parameter behavior. + * @member {"default"|"required"|"artifactQuery"|"artifactId"|undefined} behavior + * @memberof flyteidl.core.Parameter * @instance */ - Object.defineProperty(TaskNode.prototype, "reference", { - get: $util.oneOfGetter($oneOfFields = ["referenceId"]), + Object.defineProperty(Parameter.prototype, "behavior", { + get: $util.oneOfGetter($oneOfFields = ["default", "required", "artifactQuery", "artifactId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new TaskNode instance using the specified properties. + * Creates a new Parameter instance using the specified properties. * @function create - * @memberof flyteidl.core.TaskNode + * @memberof flyteidl.core.Parameter * @static - * @param {flyteidl.core.ITaskNode=} [properties] Properties to set - * @returns {flyteidl.core.TaskNode} TaskNode instance + * @param {flyteidl.core.IParameter=} [properties] Properties to set + * @returns {flyteidl.core.Parameter} Parameter instance */ - TaskNode.create = function create(properties) { - return new TaskNode(properties); + Parameter.create = function create(properties) { + return new Parameter(properties); }; /** - * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. + * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. * @function encode - * @memberof flyteidl.core.TaskNode + * @memberof flyteidl.core.Parameter * @static - * @param {flyteidl.core.ITaskNode} message TaskNode message or plain object to encode + * @param {flyteidl.core.IParameter} message Parameter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskNode.encode = function encode(message, writer) { + Parameter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.referenceId != null && message.hasOwnProperty("referenceId")) - $root.flyteidl.core.Identifier.encode(message.referenceId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.overrides != null && message.hasOwnProperty("overrides")) - $root.flyteidl.core.TaskNodeOverrides.encode(message.overrides, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message["var"] != null && message.hasOwnProperty("var")) + $root.flyteidl.core.Variable.encode(message["var"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message["default"] != null && message.hasOwnProperty("default")) + $root.flyteidl.core.Literal.encode(message["default"], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.required != null && message.hasOwnProperty("required")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.required); + if (message.artifactQuery != null && message.hasOwnProperty("artifactQuery")) + $root.flyteidl.core.ArtifactQuery.encode(message.artifactQuery, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + $root.flyteidl.core.ArtifactID.encode(message.artifactId, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Decodes a TaskNode message from the specified reader or buffer. + * Decodes a Parameter message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.TaskNode + * @memberof flyteidl.core.Parameter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskNode} TaskNode + * @returns {flyteidl.core.Parameter} Parameter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskNode.decode = function decode(reader, length) { + Parameter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNode(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Parameter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.referenceId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + message["var"] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); break; case 2: - message.overrides = $root.flyteidl.core.TaskNodeOverrides.decode(reader, reader.uint32()); + message["default"] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + case 3: + message.required = reader.bool(); + break; + case 4: + message.artifactQuery = $root.flyteidl.core.ArtifactQuery.decode(reader, reader.uint32()); + break; + case 5: + message.artifactId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3876,55 +4038,82 @@ }; /** - * Verifies a TaskNode message. + * Verifies a Parameter message. * @function verify - * @memberof flyteidl.core.TaskNode + * @memberof flyteidl.core.Parameter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TaskNode.verify = function verify(message) { + Parameter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.referenceId != null && message.hasOwnProperty("referenceId")) { - properties.reference = 1; + if (message["var"] != null && message.hasOwnProperty("var")) { + var error = $root.flyteidl.core.Variable.verify(message["var"]); + if (error) + return "var." + error; + } + if (message["default"] != null && message.hasOwnProperty("default")) { + properties.behavior = 1; { - var error = $root.flyteidl.core.Identifier.verify(message.referenceId); + var error = $root.flyteidl.core.Literal.verify(message["default"]); if (error) - return "referenceId." + error; + return "default." + error; } } - if (message.overrides != null && message.hasOwnProperty("overrides")) { - var error = $root.flyteidl.core.TaskNodeOverrides.verify(message.overrides); - if (error) - return "overrides." + error; + if (message.required != null && message.hasOwnProperty("required")) { + if (properties.behavior === 1) + return "behavior: multiple values"; + properties.behavior = 1; + if (typeof message.required !== "boolean") + return "required: boolean expected"; + } + if (message.artifactQuery != null && message.hasOwnProperty("artifactQuery")) { + if (properties.behavior === 1) + return "behavior: multiple values"; + properties.behavior = 1; + { + var error = $root.flyteidl.core.ArtifactQuery.verify(message.artifactQuery); + if (error) + return "artifactQuery." + error; + } + } + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + if (properties.behavior === 1) + return "behavior: multiple values"; + properties.behavior = 1; + { + var error = $root.flyteidl.core.ArtifactID.verify(message.artifactId); + if (error) + return "artifactId." + error; + } } return null; }; - return TaskNode; + return Parameter; })(); - core.WorkflowNode = (function() { + core.ParameterMap = (function() { /** - * Properties of a WorkflowNode. + * Properties of a ParameterMap. * @memberof flyteidl.core - * @interface IWorkflowNode - * @property {flyteidl.core.IIdentifier|null} [launchplanRef] WorkflowNode launchplanRef - * @property {flyteidl.core.IIdentifier|null} [subWorkflowRef] WorkflowNode subWorkflowRef + * @interface IParameterMap + * @property {Object.|null} [parameters] ParameterMap parameters */ /** - * Constructs a new WorkflowNode. + * Constructs a new ParameterMap. * @memberof flyteidl.core - * @classdesc Represents a WorkflowNode. - * @implements IWorkflowNode + * @classdesc Represents a ParameterMap. + * @implements IParameterMap * @constructor - * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set + * @param {flyteidl.core.IParameterMap=} [properties] Properties to set */ - function WorkflowNode(properties) { + function ParameterMap(properties) { + this.parameters = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3932,89 +4121,70 @@ } /** - * WorkflowNode launchplanRef. - * @member {flyteidl.core.IIdentifier|null|undefined} launchplanRef - * @memberof flyteidl.core.WorkflowNode - * @instance - */ - WorkflowNode.prototype.launchplanRef = null; - - /** - * WorkflowNode subWorkflowRef. - * @member {flyteidl.core.IIdentifier|null|undefined} subWorkflowRef - * @memberof flyteidl.core.WorkflowNode - * @instance - */ - WorkflowNode.prototype.subWorkflowRef = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * WorkflowNode reference. - * @member {"launchplanRef"|"subWorkflowRef"|undefined} reference - * @memberof flyteidl.core.WorkflowNode + * ParameterMap parameters. + * @member {Object.} parameters + * @memberof flyteidl.core.ParameterMap * @instance */ - Object.defineProperty(WorkflowNode.prototype, "reference", { - get: $util.oneOfGetter($oneOfFields = ["launchplanRef", "subWorkflowRef"]), - set: $util.oneOfSetter($oneOfFields) - }); + ParameterMap.prototype.parameters = $util.emptyObject; /** - * Creates a new WorkflowNode instance using the specified properties. + * Creates a new ParameterMap instance using the specified properties. * @function create - * @memberof flyteidl.core.WorkflowNode + * @memberof flyteidl.core.ParameterMap * @static - * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowNode} WorkflowNode instance + * @param {flyteidl.core.IParameterMap=} [properties] Properties to set + * @returns {flyteidl.core.ParameterMap} ParameterMap instance */ - WorkflowNode.create = function create(properties) { - return new WorkflowNode(properties); + ParameterMap.create = function create(properties) { + return new ParameterMap(properties); }; /** - * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. + * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. * @function encode - * @memberof flyteidl.core.WorkflowNode + * @memberof flyteidl.core.ParameterMap * @static - * @param {flyteidl.core.IWorkflowNode} message WorkflowNode message or plain object to encode + * @param {flyteidl.core.IParameterMap} message ParameterMap message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowNode.encode = function encode(message, writer) { + ParameterMap.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) - $root.flyteidl.core.Identifier.encode(message.launchplanRef, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) - $root.flyteidl.core.Identifier.encode(message.subWorkflowRef, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parameters != null && message.hasOwnProperty("parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Parameter.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Decodes a WorkflowNode message from the specified reader or buffer. + * Decodes a ParameterMap message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.WorkflowNode + * @memberof flyteidl.core.ParameterMap * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowNode} WorkflowNode + * @returns {flyteidl.core.ParameterMap} ParameterMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WorkflowNode.decode = function decode(reader, length) { + ParameterMap.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowNode(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ParameterMap(), key; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.launchplanRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.subWorkflowRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + reader.skip().pos++; + if (message.parameters === $util.emptyObject) + message.parameters = {}; + key = reader.string(); + reader.pos++; + message.parameters[key] = $root.flyteidl.core.Parameter.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -4025,59 +4195,81 @@ }; /** - * Verifies a WorkflowNode message. + * Verifies a ParameterMap message. * @function verify - * @memberof flyteidl.core.WorkflowNode + * @memberof flyteidl.core.ParameterMap * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WorkflowNode.verify = function verify(message) { + ParameterMap.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) { - properties.reference = 1; - { - var error = $root.flyteidl.core.Identifier.verify(message.launchplanRef); - if (error) - return "launchplanRef." + error; - } - } - if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) { - if (properties.reference === 1) - return "reference: multiple values"; - properties.reference = 1; - { - var error = $root.flyteidl.core.Identifier.verify(message.subWorkflowRef); + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.Parameter.verify(message.parameters[key[i]]); if (error) - return "subWorkflowRef." + error; + return "parameters." + error; } } return null; }; - return WorkflowNode; + return ParameterMap; })(); - core.ApproveCondition = (function() { + /** + * SimpleType enum. + * @name flyteidl.core.SimpleType + * @enum {string} + * @property {number} NONE=0 NONE value + * @property {number} INTEGER=1 INTEGER value + * @property {number} FLOAT=2 FLOAT value + * @property {number} STRING=3 STRING value + * @property {number} BOOLEAN=4 BOOLEAN value + * @property {number} DATETIME=5 DATETIME value + * @property {number} DURATION=6 DURATION value + * @property {number} BINARY=7 BINARY value + * @property {number} ERROR=8 ERROR value + * @property {number} STRUCT=9 STRUCT value + */ + core.SimpleType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "INTEGER"] = 1; + values[valuesById[2] = "FLOAT"] = 2; + values[valuesById[3] = "STRING"] = 3; + values[valuesById[4] = "BOOLEAN"] = 4; + values[valuesById[5] = "DATETIME"] = 5; + values[valuesById[6] = "DURATION"] = 6; + values[valuesById[7] = "BINARY"] = 7; + values[valuesById[8] = "ERROR"] = 8; + values[valuesById[9] = "STRUCT"] = 9; + return values; + })(); + + core.SchemaType = (function() { /** - * Properties of an ApproveCondition. + * Properties of a SchemaType. * @memberof flyteidl.core - * @interface IApproveCondition - * @property {string|null} [signalId] ApproveCondition signalId + * @interface ISchemaType + * @property {Array.|null} [columns] SchemaType columns */ /** - * Constructs a new ApproveCondition. + * Constructs a new SchemaType. * @memberof flyteidl.core - * @classdesc Represents an ApproveCondition. - * @implements IApproveCondition + * @classdesc Represents a SchemaType. + * @implements ISchemaType * @constructor - * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set + * @param {flyteidl.core.ISchemaType=} [properties] Properties to set */ - function ApproveCondition(properties) { + function SchemaType(properties) { + this.columns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4085,62 +4277,65 @@ } /** - * ApproveCondition signalId. - * @member {string} signalId - * @memberof flyteidl.core.ApproveCondition + * SchemaType columns. + * @member {Array.} columns + * @memberof flyteidl.core.SchemaType * @instance */ - ApproveCondition.prototype.signalId = ""; + SchemaType.prototype.columns = $util.emptyArray; /** - * Creates a new ApproveCondition instance using the specified properties. + * Creates a new SchemaType instance using the specified properties. * @function create - * @memberof flyteidl.core.ApproveCondition + * @memberof flyteidl.core.SchemaType * @static - * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set - * @returns {flyteidl.core.ApproveCondition} ApproveCondition instance + * @param {flyteidl.core.ISchemaType=} [properties] Properties to set + * @returns {flyteidl.core.SchemaType} SchemaType instance */ - ApproveCondition.create = function create(properties) { - return new ApproveCondition(properties); + SchemaType.create = function create(properties) { + return new SchemaType(properties); }; /** - * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. + * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. * @function encode - * @memberof flyteidl.core.ApproveCondition + * @memberof flyteidl.core.SchemaType * @static - * @param {flyteidl.core.IApproveCondition} message ApproveCondition message or plain object to encode + * @param {flyteidl.core.ISchemaType} message SchemaType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveCondition.encode = function encode(message, writer) { + SchemaType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signalId != null && message.hasOwnProperty("signalId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.flyteidl.core.SchemaType.SchemaColumn.encode(message.columns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Decodes an ApproveCondition message from the specified reader or buffer. + * Decodes a SchemaType message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.ApproveCondition + * @memberof flyteidl.core.SchemaType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ApproveCondition} ApproveCondition + * @returns {flyteidl.core.SchemaType} SchemaType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveCondition.decode = function decode(reader, length) { + SchemaType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ApproveCondition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.signalId = reader.string(); + case 3: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.flyteidl.core.SchemaType.SchemaColumn.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -4151,134 +4346,316 @@ }; /** - * Verifies an ApproveCondition message. + * Verifies a SchemaType message. * @function verify - * @memberof flyteidl.core.ApproveCondition + * @memberof flyteidl.core.SchemaType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveCondition.verify = function verify(message) { + SchemaType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signalId != null && message.hasOwnProperty("signalId")) - if (!$util.isString(message.signalId)) - return "signalId: string expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.flyteidl.core.SchemaType.SchemaColumn.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } return null; }; - return ApproveCondition; - })(); + SchemaType.SchemaColumn = (function() { - core.SignalCondition = (function() { + /** + * Properties of a SchemaColumn. + * @memberof flyteidl.core.SchemaType + * @interface ISchemaColumn + * @property {string|null} [name] SchemaColumn name + * @property {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null} [type] SchemaColumn type + */ - /** - * Properties of a SignalCondition. - * @memberof flyteidl.core - * @interface ISignalCondition - * @property {string|null} [signalId] SignalCondition signalId - * @property {flyteidl.core.ILiteralType|null} [type] SignalCondition type - * @property {string|null} [outputVariableName] SignalCondition outputVariableName - */ + /** + * Constructs a new SchemaColumn. + * @memberof flyteidl.core.SchemaType + * @classdesc Represents a SchemaColumn. + * @implements ISchemaColumn + * @constructor + * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set + */ + function SchemaColumn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new SignalCondition. - * @memberof flyteidl.core - * @classdesc Represents a SignalCondition. - * @implements ISignalCondition - * @constructor - * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set - */ - function SignalCondition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * SchemaColumn name. + * @member {string} name + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @instance + */ + SchemaColumn.prototype.name = ""; - /** - * SignalCondition signalId. - * @member {string} signalId - * @memberof flyteidl.core.SignalCondition - * @instance - */ - SignalCondition.prototype.signalId = ""; + /** + * SchemaColumn type. + * @member {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} type + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @instance + */ + SchemaColumn.prototype.type = 0; - /** - * SignalCondition type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.core.SignalCondition - * @instance - */ - SignalCondition.prototype.type = null; + /** + * Creates a new SchemaColumn instance using the specified properties. + * @function create + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set + * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn instance + */ + SchemaColumn.create = function create(properties) { + return new SchemaColumn(properties); + }; - /** - * SignalCondition outputVariableName. - * @member {string} outputVariableName - * @memberof flyteidl.core.SignalCondition + /** + * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {flyteidl.core.SchemaType.ISchemaColumn} message SchemaColumn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchemaColumn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + return writer; + }; + + /** + * Decodes a SchemaColumn message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchemaColumn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType.SchemaColumn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SchemaColumn message. + * @function verify + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchemaColumn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + return null; + }; + + /** + * SchemaColumnType enum. + * @name flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType + * @enum {string} + * @property {number} INTEGER=0 INTEGER value + * @property {number} FLOAT=1 FLOAT value + * @property {number} STRING=2 STRING value + * @property {number} BOOLEAN=3 BOOLEAN value + * @property {number} DATETIME=4 DATETIME value + * @property {number} DURATION=5 DURATION value + */ + SchemaColumn.SchemaColumnType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INTEGER"] = 0; + values[valuesById[1] = "FLOAT"] = 1; + values[valuesById[2] = "STRING"] = 2; + values[valuesById[3] = "BOOLEAN"] = 3; + values[valuesById[4] = "DATETIME"] = 4; + values[valuesById[5] = "DURATION"] = 5; + return values; + })(); + + return SchemaColumn; + })(); + + return SchemaType; + })(); + + core.StructuredDatasetType = (function() { + + /** + * Properties of a StructuredDatasetType. + * @memberof flyteidl.core + * @interface IStructuredDatasetType + * @property {Array.|null} [columns] StructuredDatasetType columns + * @property {string|null} [format] StructuredDatasetType format + * @property {string|null} [externalSchemaType] StructuredDatasetType externalSchemaType + * @property {Uint8Array|null} [externalSchemaBytes] StructuredDatasetType externalSchemaBytes + */ + + /** + * Constructs a new StructuredDatasetType. + * @memberof flyteidl.core + * @classdesc Represents a StructuredDatasetType. + * @implements IStructuredDatasetType + * @constructor + * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set + */ + function StructuredDatasetType(properties) { + this.columns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StructuredDatasetType columns. + * @member {Array.} columns + * @memberof flyteidl.core.StructuredDatasetType * @instance */ - SignalCondition.prototype.outputVariableName = ""; + StructuredDatasetType.prototype.columns = $util.emptyArray; /** - * Creates a new SignalCondition instance using the specified properties. + * StructuredDatasetType format. + * @member {string} format + * @memberof flyteidl.core.StructuredDatasetType + * @instance + */ + StructuredDatasetType.prototype.format = ""; + + /** + * StructuredDatasetType externalSchemaType. + * @member {string} externalSchemaType + * @memberof flyteidl.core.StructuredDatasetType + * @instance + */ + StructuredDatasetType.prototype.externalSchemaType = ""; + + /** + * StructuredDatasetType externalSchemaBytes. + * @member {Uint8Array} externalSchemaBytes + * @memberof flyteidl.core.StructuredDatasetType + * @instance + */ + StructuredDatasetType.prototype.externalSchemaBytes = $util.newBuffer([]); + + /** + * Creates a new StructuredDatasetType instance using the specified properties. * @function create - * @memberof flyteidl.core.SignalCondition + * @memberof flyteidl.core.StructuredDatasetType * @static - * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set - * @returns {flyteidl.core.SignalCondition} SignalCondition instance + * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType instance */ - SignalCondition.create = function create(properties) { - return new SignalCondition(properties); + StructuredDatasetType.create = function create(properties) { + return new StructuredDatasetType(properties); }; /** - * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. + * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. * @function encode - * @memberof flyteidl.core.SignalCondition + * @memberof flyteidl.core.StructuredDatasetType * @static - * @param {flyteidl.core.ISignalCondition} message SignalCondition message or plain object to encode + * @param {flyteidl.core.IStructuredDatasetType} message StructuredDatasetType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignalCondition.encode = function encode(message, writer) { + StructuredDatasetType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signalId != null && message.hasOwnProperty("signalId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputVariableName); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.flyteidl.core.StructuredDatasetType.DatasetColumn.encode(message.columns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.format != null && message.hasOwnProperty("format")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.format); + if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalSchemaType); + if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.externalSchemaBytes); return writer; }; /** - * Decodes a SignalCondition message from the specified reader or buffer. + * Decodes a StructuredDatasetType message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.SignalCondition + * @memberof flyteidl.core.StructuredDatasetType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SignalCondition} SignalCondition + * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignalCondition.decode = function decode(reader, length) { + StructuredDatasetType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SignalCondition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.signalId = reader.string(); + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.flyteidl.core.StructuredDatasetType.DatasetColumn.decode(reader, reader.uint32())); break; case 2: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + message.format = reader.string(); break; case 3: - message.outputVariableName = reader.string(); + message.externalSchemaType = reader.string(); + break; + case 4: + message.externalSchemaBytes = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -4289,51 +4666,188 @@ }; /** - * Verifies a SignalCondition message. + * Verifies a StructuredDatasetType message. * @function verify - * @memberof flyteidl.core.SignalCondition + * @memberof flyteidl.core.StructuredDatasetType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SignalCondition.verify = function verify(message) { + StructuredDatasetType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signalId != null && message.hasOwnProperty("signalId")) - if (!$util.isString(message.signalId)) - return "signalId: string expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.flyteidl.core.StructuredDatasetType.DatasetColumn.verify(message.columns[i]); + if (error) + return "columns." + error; + } } - if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) - if (!$util.isString(message.outputVariableName)) - return "outputVariableName: string expected"; + if (message.format != null && message.hasOwnProperty("format")) + if (!$util.isString(message.format)) + return "format: string expected"; + if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) + if (!$util.isString(message.externalSchemaType)) + return "externalSchemaType: string expected"; + if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) + if (!(message.externalSchemaBytes && typeof message.externalSchemaBytes.length === "number" || $util.isString(message.externalSchemaBytes))) + return "externalSchemaBytes: buffer expected"; return null; }; - return SignalCondition; + StructuredDatasetType.DatasetColumn = (function() { + + /** + * Properties of a DatasetColumn. + * @memberof flyteidl.core.StructuredDatasetType + * @interface IDatasetColumn + * @property {string|null} [name] DatasetColumn name + * @property {flyteidl.core.ILiteralType|null} [literalType] DatasetColumn literalType + */ + + /** + * Constructs a new DatasetColumn. + * @memberof flyteidl.core.StructuredDatasetType + * @classdesc Represents a DatasetColumn. + * @implements IDatasetColumn + * @constructor + * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set + */ + function DatasetColumn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DatasetColumn name. + * @member {string} name + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @instance + */ + DatasetColumn.prototype.name = ""; + + /** + * DatasetColumn literalType. + * @member {flyteidl.core.ILiteralType|null|undefined} literalType + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @instance + */ + DatasetColumn.prototype.literalType = null; + + /** + * Creates a new DatasetColumn instance using the specified properties. + * @function create + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn instance + */ + DatasetColumn.create = function create(properties) { + return new DatasetColumn(properties); + }; + + /** + * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn} message DatasetColumn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DatasetColumn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.literalType != null && message.hasOwnProperty("literalType")) + $root.flyteidl.core.LiteralType.encode(message.literalType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DatasetColumn message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DatasetColumn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType.DatasetColumn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.literalType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DatasetColumn message. + * @function verify + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DatasetColumn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.literalType != null && message.hasOwnProperty("literalType")) { + var error = $root.flyteidl.core.LiteralType.verify(message.literalType); + if (error) + return "literalType." + error; + } + return null; + }; + + return DatasetColumn; + })(); + + return StructuredDatasetType; })(); - core.SleepCondition = (function() { + core.BlobType = (function() { /** - * Properties of a SleepCondition. + * Properties of a BlobType. * @memberof flyteidl.core - * @interface ISleepCondition - * @property {google.protobuf.IDuration|null} [duration] SleepCondition duration + * @interface IBlobType + * @property {string|null} [format] BlobType format + * @property {flyteidl.core.BlobType.BlobDimensionality|null} [dimensionality] BlobType dimensionality */ /** - * Constructs a new SleepCondition. + * Constructs a new BlobType. * @memberof flyteidl.core - * @classdesc Represents a SleepCondition. - * @implements ISleepCondition + * @classdesc Represents a BlobType. + * @implements IBlobType * @constructor - * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set + * @param {flyteidl.core.IBlobType=} [properties] Properties to set */ - function SleepCondition(properties) { + function BlobType(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4341,62 +4855,75 @@ } /** - * SleepCondition duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.core.SleepCondition + * BlobType format. + * @member {string} format + * @memberof flyteidl.core.BlobType * @instance */ - SleepCondition.prototype.duration = null; + BlobType.prototype.format = ""; /** - * Creates a new SleepCondition instance using the specified properties. + * BlobType dimensionality. + * @member {flyteidl.core.BlobType.BlobDimensionality} dimensionality + * @memberof flyteidl.core.BlobType + * @instance + */ + BlobType.prototype.dimensionality = 0; + + /** + * Creates a new BlobType instance using the specified properties. * @function create - * @memberof flyteidl.core.SleepCondition + * @memberof flyteidl.core.BlobType * @static - * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set - * @returns {flyteidl.core.SleepCondition} SleepCondition instance + * @param {flyteidl.core.IBlobType=} [properties] Properties to set + * @returns {flyteidl.core.BlobType} BlobType instance */ - SleepCondition.create = function create(properties) { - return new SleepCondition(properties); + BlobType.create = function create(properties) { + return new BlobType(properties); }; /** - * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. + * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. * @function encode - * @memberof flyteidl.core.SleepCondition + * @memberof flyteidl.core.BlobType * @static - * @param {flyteidl.core.ISleepCondition} message SleepCondition message or plain object to encode + * @param {flyteidl.core.IBlobType} message BlobType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SleepCondition.encode = function encode(message, writer) { + BlobType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.format != null && message.hasOwnProperty("format")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.format); + if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dimensionality); return writer; }; /** - * Decodes a SleepCondition message from the specified reader or buffer. + * Decodes a BlobType message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.SleepCondition + * @memberof flyteidl.core.BlobType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SleepCondition} SleepCondition + * @returns {flyteidl.core.BlobType} BlobType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SleepCondition.decode = function decode(reader, length) { + BlobType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SleepCondition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.format = reader.string(); + break; + case 2: + message.dimensionality = reader.int32(); break; default: reader.skipType(tag & 7); @@ -4407,47 +4934,66 @@ }; /** - * Verifies a SleepCondition message. + * Verifies a BlobType message. * @function verify - * @memberof flyteidl.core.SleepCondition + * @memberof flyteidl.core.BlobType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SleepCondition.verify = function verify(message) { + BlobType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } + if (message.format != null && message.hasOwnProperty("format")) + if (!$util.isString(message.format)) + return "format: string expected"; + if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) + switch (message.dimensionality) { + default: + return "dimensionality: enum value expected"; + case 0: + case 1: + break; + } return null; }; - return SleepCondition; + /** + * BlobDimensionality enum. + * @name flyteidl.core.BlobType.BlobDimensionality + * @enum {string} + * @property {number} SINGLE=0 SINGLE value + * @property {number} MULTIPART=1 MULTIPART value + */ + BlobType.BlobDimensionality = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SINGLE"] = 0; + values[valuesById[1] = "MULTIPART"] = 1; + return values; + })(); + + return BlobType; })(); - core.GateNode = (function() { + core.EnumType = (function() { /** - * Properties of a GateNode. + * Properties of an EnumType. * @memberof flyteidl.core - * @interface IGateNode - * @property {flyteidl.core.IApproveCondition|null} [approve] GateNode approve - * @property {flyteidl.core.ISignalCondition|null} [signal] GateNode signal - * @property {flyteidl.core.ISleepCondition|null} [sleep] GateNode sleep + * @interface IEnumType + * @property {Array.|null} [values] EnumType values */ /** - * Constructs a new GateNode. + * Constructs a new EnumType. * @memberof flyteidl.core - * @classdesc Represents a GateNode. - * @implements IGateNode + * @classdesc Represents an EnumType. + * @implements IEnumType * @constructor - * @param {flyteidl.core.IGateNode=} [properties] Properties to set + * @param {flyteidl.core.IEnumType=} [properties] Properties to set */ - function GateNode(properties) { + function EnumType(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4455,102 +5001,65 @@ } /** - * GateNode approve. - * @member {flyteidl.core.IApproveCondition|null|undefined} approve - * @memberof flyteidl.core.GateNode - * @instance - */ - GateNode.prototype.approve = null; - - /** - * GateNode signal. - * @member {flyteidl.core.ISignalCondition|null|undefined} signal - * @memberof flyteidl.core.GateNode - * @instance - */ - GateNode.prototype.signal = null; - - /** - * GateNode sleep. - * @member {flyteidl.core.ISleepCondition|null|undefined} sleep - * @memberof flyteidl.core.GateNode - * @instance - */ - GateNode.prototype.sleep = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GateNode condition. - * @member {"approve"|"signal"|"sleep"|undefined} condition - * @memberof flyteidl.core.GateNode + * EnumType values. + * @member {Array.} values + * @memberof flyteidl.core.EnumType * @instance */ - Object.defineProperty(GateNode.prototype, "condition", { - get: $util.oneOfGetter($oneOfFields = ["approve", "signal", "sleep"]), - set: $util.oneOfSetter($oneOfFields) - }); + EnumType.prototype.values = $util.emptyArray; /** - * Creates a new GateNode instance using the specified properties. + * Creates a new EnumType instance using the specified properties. * @function create - * @memberof flyteidl.core.GateNode + * @memberof flyteidl.core.EnumType * @static - * @param {flyteidl.core.IGateNode=} [properties] Properties to set - * @returns {flyteidl.core.GateNode} GateNode instance + * @param {flyteidl.core.IEnumType=} [properties] Properties to set + * @returns {flyteidl.core.EnumType} EnumType instance */ - GateNode.create = function create(properties) { - return new GateNode(properties); + EnumType.create = function create(properties) { + return new EnumType(properties); }; /** - * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. + * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. * @function encode - * @memberof flyteidl.core.GateNode + * @memberof flyteidl.core.EnumType * @static - * @param {flyteidl.core.IGateNode} message GateNode message or plain object to encode + * @param {flyteidl.core.IEnumType} message EnumType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GateNode.encode = function encode(message, writer) { + EnumType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.approve != null && message.hasOwnProperty("approve")) - $root.flyteidl.core.ApproveCondition.encode(message.approve, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.signal != null && message.hasOwnProperty("signal")) - $root.flyteidl.core.SignalCondition.encode(message.signal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sleep != null && message.hasOwnProperty("sleep")) - $root.flyteidl.core.SleepCondition.encode(message.sleep, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); return writer; }; /** - * Decodes a GateNode message from the specified reader or buffer. + * Decodes an EnumType message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.GateNode + * @memberof flyteidl.core.EnumType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.GateNode} GateNode + * @returns {flyteidl.core.EnumType} EnumType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GateNode.decode = function decode(reader, length) { + EnumType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.GateNode(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.EnumType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.approve = $root.flyteidl.core.ApproveCondition.decode(reader, reader.uint32()); - break; - case 2: - message.signal = $root.flyteidl.core.SignalCondition.decode(reader, reader.uint32()); - break; - case 3: - message.sleep = $root.flyteidl.core.SleepCondition.decode(reader, reader.uint32()); + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -4561,72 +5070,48 @@ }; /** - * Verifies a GateNode message. + * Verifies an EnumType message. * @function verify - * @memberof flyteidl.core.GateNode + * @memberof flyteidl.core.EnumType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GateNode.verify = function verify(message) { + EnumType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.approve != null && message.hasOwnProperty("approve")) { - properties.condition = 1; - { - var error = $root.flyteidl.core.ApproveCondition.verify(message.approve); - if (error) - return "approve." + error; - } - } - if (message.signal != null && message.hasOwnProperty("signal")) { - if (properties.condition === 1) - return "condition: multiple values"; - properties.condition = 1; - { - var error = $root.flyteidl.core.SignalCondition.verify(message.signal); - if (error) - return "signal." + error; - } - } - if (message.sleep != null && message.hasOwnProperty("sleep")) { - if (properties.condition === 1) - return "condition: multiple values"; - properties.condition = 1; - { - var error = $root.flyteidl.core.SleepCondition.verify(message.sleep); - if (error) - return "sleep." + error; - } + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; } return null; }; - return GateNode; + return EnumType; })(); - core.ArrayNode = (function() { + core.UnionType = (function() { /** - * Properties of an ArrayNode. + * Properties of an UnionType. * @memberof flyteidl.core - * @interface IArrayNode - * @property {flyteidl.core.INode|null} [node] ArrayNode node - * @property {number|null} [parallelism] ArrayNode parallelism - * @property {number|null} [minSuccesses] ArrayNode minSuccesses - * @property {number|null} [minSuccessRatio] ArrayNode minSuccessRatio + * @interface IUnionType + * @property {Array.|null} [variants] UnionType variants */ /** - * Constructs a new ArrayNode. + * Constructs a new UnionType. * @memberof flyteidl.core - * @classdesc Represents an ArrayNode. - * @implements IArrayNode + * @classdesc Represents an UnionType. + * @implements IUnionType * @constructor - * @param {flyteidl.core.IArrayNode=} [properties] Properties to set + * @param {flyteidl.core.IUnionType=} [properties] Properties to set */ - function ArrayNode(properties) { + function UnionType(properties) { + this.variants = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4634,115 +5119,65 @@ } /** - * ArrayNode node. - * @member {flyteidl.core.INode|null|undefined} node - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.node = null; - - /** - * ArrayNode parallelism. - * @member {number} parallelism - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.parallelism = 0; - - /** - * ArrayNode minSuccesses. - * @member {number} minSuccesses - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.minSuccesses = 0; - - /** - * ArrayNode minSuccessRatio. - * @member {number} minSuccessRatio - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.minSuccessRatio = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ArrayNode successCriteria. - * @member {"minSuccesses"|"minSuccessRatio"|undefined} successCriteria - * @memberof flyteidl.core.ArrayNode + * UnionType variants. + * @member {Array.} variants + * @memberof flyteidl.core.UnionType * @instance */ - Object.defineProperty(ArrayNode.prototype, "successCriteria", { - get: $util.oneOfGetter($oneOfFields = ["minSuccesses", "minSuccessRatio"]), - set: $util.oneOfSetter($oneOfFields) - }); + UnionType.prototype.variants = $util.emptyArray; /** - * Creates a new ArrayNode instance using the specified properties. + * Creates a new UnionType instance using the specified properties. * @function create - * @memberof flyteidl.core.ArrayNode + * @memberof flyteidl.core.UnionType * @static - * @param {flyteidl.core.IArrayNode=} [properties] Properties to set - * @returns {flyteidl.core.ArrayNode} ArrayNode instance + * @param {flyteidl.core.IUnionType=} [properties] Properties to set + * @returns {flyteidl.core.UnionType} UnionType instance */ - ArrayNode.create = function create(properties) { - return new ArrayNode(properties); + UnionType.create = function create(properties) { + return new UnionType(properties); }; /** - * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. + * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. * @function encode - * @memberof flyteidl.core.ArrayNode + * @memberof flyteidl.core.UnionType * @static - * @param {flyteidl.core.IArrayNode} message ArrayNode message or plain object to encode + * @param {flyteidl.core.IUnionType} message UnionType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArrayNode.encode = function encode(message, writer) { + UnionType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.node != null && message.hasOwnProperty("node")) - $root.flyteidl.core.Node.encode(message.node, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parallelism != null && message.hasOwnProperty("parallelism")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.parallelism); - if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.minSuccesses); - if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.minSuccessRatio); + if (message.variants != null && message.variants.length) + for (var i = 0; i < message.variants.length; ++i) + $root.flyteidl.core.LiteralType.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes an ArrayNode message from the specified reader or buffer. + * Decodes an UnionType message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.ArrayNode + * @memberof flyteidl.core.UnionType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArrayNode} ArrayNode + * @returns {flyteidl.core.UnionType} UnionType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArrayNode.decode = function decode(reader, length) { + UnionType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArrayNode(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.node = $root.flyteidl.core.Node.decode(reader, reader.uint32()); - break; - case 2: - message.parallelism = reader.uint32(); - break; - case 3: - message.minSuccesses = reader.uint32(); - break; - case 4: - message.minSuccessRatio = reader.float(); + if (!(message.variants && message.variants.length)) + message.variants = []; + message.variants.push($root.flyteidl.core.LiteralType.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -4753,64 +5188,51 @@ }; /** - * Verifies an ArrayNode message. + * Verifies an UnionType message. * @function verify - * @memberof flyteidl.core.ArrayNode + * @memberof flyteidl.core.UnionType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ArrayNode.verify = function verify(message) { + UnionType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.node != null && message.hasOwnProperty("node")) { - var error = $root.flyteidl.core.Node.verify(message.node); - if (error) - return "node." + error; - } - if (message.parallelism != null && message.hasOwnProperty("parallelism")) - if (!$util.isInteger(message.parallelism)) - return "parallelism: integer expected"; - if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) { - properties.successCriteria = 1; - if (!$util.isInteger(message.minSuccesses)) - return "minSuccesses: integer expected"; - } - if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) { - if (properties.successCriteria === 1) - return "successCriteria: multiple values"; - properties.successCriteria = 1; - if (typeof message.minSuccessRatio !== "number") - return "minSuccessRatio: number expected"; + if (message.variants != null && message.hasOwnProperty("variants")) { + if (!Array.isArray(message.variants)) + return "variants: array expected"; + for (var i = 0; i < message.variants.length; ++i) { + var error = $root.flyteidl.core.LiteralType.verify(message.variants[i]); + if (error) + return "variants." + error; + } } return null; }; - return ArrayNode; + return UnionType; })(); - core.NodeMetadata = (function() { + core.TypeStructure = (function() { /** - * Properties of a NodeMetadata. + * Properties of a TypeStructure. * @memberof flyteidl.core - * @interface INodeMetadata - * @property {string|null} [name] NodeMetadata name - * @property {google.protobuf.IDuration|null} [timeout] NodeMetadata timeout - * @property {flyteidl.core.IRetryStrategy|null} [retries] NodeMetadata retries - * @property {boolean|null} [interruptible] NodeMetadata interruptible + * @interface ITypeStructure + * @property {string|null} [tag] TypeStructure tag + * @property {Object.|null} [dataclassType] TypeStructure dataclassType */ /** - * Constructs a new NodeMetadata. + * Constructs a new TypeStructure. * @memberof flyteidl.core - * @classdesc Represents a NodeMetadata. - * @implements INodeMetadata + * @classdesc Represents a TypeStructure. + * @implements ITypeStructure * @constructor - * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set + * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set */ - function NodeMetadata(properties) { + function TypeStructure(properties) { + this.dataclassType = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4818,115 +5240,83 @@ } /** - * NodeMetadata name. - * @member {string} name - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.name = ""; - - /** - * NodeMetadata timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.timeout = null; - - /** - * NodeMetadata retries. - * @member {flyteidl.core.IRetryStrategy|null|undefined} retries - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.retries = null; - - /** - * NodeMetadata interruptible. - * @member {boolean} interruptible - * @memberof flyteidl.core.NodeMetadata + * TypeStructure tag. + * @member {string} tag + * @memberof flyteidl.core.TypeStructure * @instance */ - NodeMetadata.prototype.interruptible = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + TypeStructure.prototype.tag = ""; /** - * NodeMetadata interruptibleValue. - * @member {"interruptible"|undefined} interruptibleValue - * @memberof flyteidl.core.NodeMetadata + * TypeStructure dataclassType. + * @member {Object.} dataclassType + * @memberof flyteidl.core.TypeStructure * @instance */ - Object.defineProperty(NodeMetadata.prototype, "interruptibleValue", { - get: $util.oneOfGetter($oneOfFields = ["interruptible"]), - set: $util.oneOfSetter($oneOfFields) - }); + TypeStructure.prototype.dataclassType = $util.emptyObject; /** - * Creates a new NodeMetadata instance using the specified properties. + * Creates a new TypeStructure instance using the specified properties. * @function create - * @memberof flyteidl.core.NodeMetadata + * @memberof flyteidl.core.TypeStructure * @static - * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set - * @returns {flyteidl.core.NodeMetadata} NodeMetadata instance + * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set + * @returns {flyteidl.core.TypeStructure} TypeStructure instance */ - NodeMetadata.create = function create(properties) { - return new NodeMetadata(properties); + TypeStructure.create = function create(properties) { + return new TypeStructure(properties); }; /** - * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. + * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. * @function encode - * @memberof flyteidl.core.NodeMetadata + * @memberof flyteidl.core.TypeStructure * @static - * @param {flyteidl.core.INodeMetadata} message NodeMetadata message or plain object to encode + * @param {flyteidl.core.ITypeStructure} message TypeStructure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeMetadata.encode = function encode(message, writer) { + TypeStructure.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.timeout != null && message.hasOwnProperty("timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.retries != null && message.hasOwnProperty("retries")) - $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.interruptible); + if (message.tag != null && message.hasOwnProperty("tag")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); + if (message.dataclassType != null && message.hasOwnProperty("dataclassType")) + for (var keys = Object.keys(message.dataclassType), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.LiteralType.encode(message.dataclassType[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Decodes a NodeMetadata message from the specified reader or buffer. + * Decodes a TypeStructure message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.NodeMetadata + * @memberof flyteidl.core.TypeStructure * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.NodeMetadata} NodeMetadata + * @returns {flyteidl.core.TypeStructure} TypeStructure * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeMetadata.decode = function decode(reader, length) { + TypeStructure.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeStructure(), key; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 4: - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 5: - message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); + message.tag = reader.string(); break; - case 6: - message.interruptible = reader.bool(); + case 2: + reader.skip().pos++; + if (message.dataclassType === $util.emptyObject) + message.dataclassType = {}; + key = reader.string(); + reader.pos++; + message.dataclassType[key] = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -4937,60 +5327,53 @@ }; /** - * Verifies a NodeMetadata message. + * Verifies a TypeStructure message. * @function verify - * @memberof flyteidl.core.NodeMetadata + * @memberof flyteidl.core.TypeStructure * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeMetadata.verify = function verify(message) { + TypeStructure.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } - if (message.retries != null && message.hasOwnProperty("retries")) { - var error = $root.flyteidl.core.RetryStrategy.verify(message.retries); - if (error) - return "retries." + error; - } - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - properties.interruptibleValue = 1; - if (typeof message.interruptible !== "boolean") - return "interruptible: boolean expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; + if (message.dataclassType != null && message.hasOwnProperty("dataclassType")) { + if (!$util.isObject(message.dataclassType)) + return "dataclassType: object expected"; + var key = Object.keys(message.dataclassType); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.LiteralType.verify(message.dataclassType[key[i]]); + if (error) + return "dataclassType." + error; + } } return null; }; - return NodeMetadata; + return TypeStructure; })(); - core.Alias = (function() { + core.TypeAnnotation = (function() { /** - * Properties of an Alias. + * Properties of a TypeAnnotation. * @memberof flyteidl.core - * @interface IAlias - * @property {string|null} ["var"] Alias var - * @property {string|null} [alias] Alias alias + * @interface ITypeAnnotation + * @property {google.protobuf.IStruct|null} [annotations] TypeAnnotation annotations */ /** - * Constructs a new Alias. + * Constructs a new TypeAnnotation. * @memberof flyteidl.core - * @classdesc Represents an Alias. - * @implements IAlias + * @classdesc Represents a TypeAnnotation. + * @implements ITypeAnnotation * @constructor - * @param {flyteidl.core.IAlias=} [properties] Properties to set + * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set */ - function Alias(properties) { + function TypeAnnotation(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4998,75 +5381,62 @@ } /** - * Alias var. - * @member {string} var - * @memberof flyteidl.core.Alias - * @instance - */ - Alias.prototype["var"] = ""; - - /** - * Alias alias. - * @member {string} alias - * @memberof flyteidl.core.Alias + * TypeAnnotation annotations. + * @member {google.protobuf.IStruct|null|undefined} annotations + * @memberof flyteidl.core.TypeAnnotation * @instance */ - Alias.prototype.alias = ""; + TypeAnnotation.prototype.annotations = null; /** - * Creates a new Alias instance using the specified properties. + * Creates a new TypeAnnotation instance using the specified properties. * @function create - * @memberof flyteidl.core.Alias + * @memberof flyteidl.core.TypeAnnotation * @static - * @param {flyteidl.core.IAlias=} [properties] Properties to set - * @returns {flyteidl.core.Alias} Alias instance + * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set + * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation instance */ - Alias.create = function create(properties) { - return new Alias(properties); + TypeAnnotation.create = function create(properties) { + return new TypeAnnotation(properties); }; /** - * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. + * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Alias + * @memberof flyteidl.core.TypeAnnotation * @static - * @param {flyteidl.core.IAlias} message Alias message or plain object to encode + * @param {flyteidl.core.ITypeAnnotation} message TypeAnnotation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Alias.encode = function encode(message, writer) { + TypeAnnotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); - if (message.alias != null && message.hasOwnProperty("alias")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.alias); + if (message.annotations != null && message.hasOwnProperty("annotations")) + $root.google.protobuf.Struct.encode(message.annotations, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes an Alias message from the specified reader or buffer. + * Decodes a TypeAnnotation message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Alias + * @memberof flyteidl.core.TypeAnnotation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Alias} Alias + * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Alias.decode = function decode(reader, length) { + TypeAnnotation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Alias(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeAnnotation(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message["var"] = reader.string(); - break; - case 2: - message.alias = reader.string(); + message.annotations = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -5077,58 +5447,55 @@ }; /** - * Verifies an Alias message. + * Verifies a TypeAnnotation message. * @function verify - * @memberof flyteidl.core.Alias + * @memberof flyteidl.core.TypeAnnotation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Alias.verify = function verify(message) { + TypeAnnotation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message["var"] != null && message.hasOwnProperty("var")) - if (!$util.isString(message["var"])) - return "var: string expected"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; + if (message.annotations != null && message.hasOwnProperty("annotations")) { + var error = $root.google.protobuf.Struct.verify(message.annotations); + if (error) + return "annotations." + error; + } return null; }; - return Alias; + return TypeAnnotation; })(); - core.Node = (function() { + core.LiteralType = (function() { /** - * Properties of a Node. + * Properties of a LiteralType. * @memberof flyteidl.core - * @interface INode - * @property {string|null} [id] Node id - * @property {flyteidl.core.INodeMetadata|null} [metadata] Node metadata - * @property {Array.|null} [inputs] Node inputs - * @property {Array.|null} [upstreamNodeIds] Node upstreamNodeIds - * @property {Array.|null} [outputAliases] Node outputAliases - * @property {flyteidl.core.ITaskNode|null} [taskNode] Node taskNode - * @property {flyteidl.core.IWorkflowNode|null} [workflowNode] Node workflowNode - * @property {flyteidl.core.IBranchNode|null} [branchNode] Node branchNode - * @property {flyteidl.core.IGateNode|null} [gateNode] Node gateNode - * @property {flyteidl.core.IArrayNode|null} [arrayNode] Node arrayNode + * @interface ILiteralType + * @property {flyteidl.core.SimpleType|null} [simple] LiteralType simple + * @property {flyteidl.core.ISchemaType|null} [schema] LiteralType schema + * @property {flyteidl.core.ILiteralType|null} [collectionType] LiteralType collectionType + * @property {flyteidl.core.ILiteralType|null} [mapValueType] LiteralType mapValueType + * @property {flyteidl.core.IBlobType|null} [blob] LiteralType blob + * @property {flyteidl.core.IEnumType|null} [enumType] LiteralType enumType + * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] LiteralType structuredDatasetType + * @property {flyteidl.core.IUnionType|null} [unionType] LiteralType unionType + * @property {google.protobuf.IStruct|null} [metadata] LiteralType metadata + * @property {flyteidl.core.ITypeAnnotation|null} [annotation] LiteralType annotation + * @property {flyteidl.core.ITypeStructure|null} [structure] LiteralType structure */ /** - * Constructs a new Node. + * Constructs a new LiteralType. * @memberof flyteidl.core - * @classdesc Represents a Node. - * @implements INode + * @classdesc Represents a LiteralType. + * @implements ILiteralType * @constructor - * @param {flyteidl.core.INode=} [properties] Properties to set + * @param {flyteidl.core.ILiteralType=} [properties] Properties to set */ - function Node(properties) { - this.inputs = []; - this.upstreamNodeIds = []; - this.outputAliases = []; + function LiteralType(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5136,202 +5503,449 @@ } /** - * Node id. - * @member {string} id - * @memberof flyteidl.core.Node + * LiteralType simple. + * @member {flyteidl.core.SimpleType} simple + * @memberof flyteidl.core.LiteralType * @instance */ - Node.prototype.id = ""; + LiteralType.prototype.simple = 0; /** - * Node metadata. - * @member {flyteidl.core.INodeMetadata|null|undefined} metadata - * @memberof flyteidl.core.Node + * LiteralType schema. + * @member {flyteidl.core.ISchemaType|null|undefined} schema + * @memberof flyteidl.core.LiteralType * @instance */ - Node.prototype.metadata = null; + LiteralType.prototype.schema = null; /** - * Node inputs. - * @member {Array.} inputs - * @memberof flyteidl.core.Node + * LiteralType collectionType. + * @member {flyteidl.core.ILiteralType|null|undefined} collectionType + * @memberof flyteidl.core.LiteralType * @instance */ - Node.prototype.inputs = $util.emptyArray; + LiteralType.prototype.collectionType = null; /** - * Node upstreamNodeIds. - * @member {Array.} upstreamNodeIds - * @memberof flyteidl.core.Node + * LiteralType mapValueType. + * @member {flyteidl.core.ILiteralType|null|undefined} mapValueType + * @memberof flyteidl.core.LiteralType * @instance */ - Node.prototype.upstreamNodeIds = $util.emptyArray; + LiteralType.prototype.mapValueType = null; + + /** + * LiteralType blob. + * @member {flyteidl.core.IBlobType|null|undefined} blob + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.blob = null; + + /** + * LiteralType enumType. + * @member {flyteidl.core.IEnumType|null|undefined} enumType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.enumType = null; + + /** + * LiteralType structuredDatasetType. + * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.structuredDatasetType = null; + + /** + * LiteralType unionType. + * @member {flyteidl.core.IUnionType|null|undefined} unionType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.unionType = null; + + /** + * LiteralType metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.metadata = null; + + /** + * LiteralType annotation. + * @member {flyteidl.core.ITypeAnnotation|null|undefined} annotation + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.annotation = null; + + /** + * LiteralType structure. + * @member {flyteidl.core.ITypeStructure|null|undefined} structure + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.structure = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * LiteralType type. + * @member {"simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"|undefined} type + * @memberof flyteidl.core.LiteralType + * @instance + */ + Object.defineProperty(LiteralType.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["simple", "schema", "collectionType", "mapValueType", "blob", "enumType", "structuredDatasetType", "unionType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LiteralType instance using the specified properties. + * @function create + * @memberof flyteidl.core.LiteralType + * @static + * @param {flyteidl.core.ILiteralType=} [properties] Properties to set + * @returns {flyteidl.core.LiteralType} LiteralType instance + */ + LiteralType.create = function create(properties) { + return new LiteralType(properties); + }; + + /** + * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LiteralType + * @static + * @param {flyteidl.core.ILiteralType} message LiteralType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.simple != null && message.hasOwnProperty("simple")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.simple); + if (message.schema != null && message.hasOwnProperty("schema")) + $root.flyteidl.core.SchemaType.encode(message.schema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.collectionType != null && message.hasOwnProperty("collectionType")) + $root.flyteidl.core.LiteralType.encode(message.collectionType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) + $root.flyteidl.core.LiteralType.encode(message.mapValueType, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.blob != null && message.hasOwnProperty("blob")) + $root.flyteidl.core.BlobType.encode(message.blob, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.enumType != null && message.hasOwnProperty("enumType")) + $root.flyteidl.core.EnumType.encode(message.enumType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) + $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.annotation != null && message.hasOwnProperty("annotation")) + $root.flyteidl.core.TypeAnnotation.encode(message.annotation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.unionType != null && message.hasOwnProperty("unionType")) + $root.flyteidl.core.UnionType.encode(message.unionType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.structure != null && message.hasOwnProperty("structure")) + $root.flyteidl.core.TypeStructure.encode(message.structure, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LiteralType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LiteralType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LiteralType} LiteralType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.simple = reader.int32(); + break; + case 2: + message.schema = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); + break; + case 3: + message.collectionType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 4: + message.mapValueType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 5: + message.blob = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); + break; + case 7: + message.enumType = $root.flyteidl.core.EnumType.decode(reader, reader.uint32()); + break; + case 8: + message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); + break; + case 10: + message.unionType = $root.flyteidl.core.UnionType.decode(reader, reader.uint32()); + break; + case 6: + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 9: + message.annotation = $root.flyteidl.core.TypeAnnotation.decode(reader, reader.uint32()); + break; + case 11: + message.structure = $root.flyteidl.core.TypeStructure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralType message. + * @function verify + * @memberof flyteidl.core.LiteralType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.simple != null && message.hasOwnProperty("simple")) { + properties.type = 1; + switch (message.simple) { + default: + return "simple: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + } + if (message.schema != null && message.hasOwnProperty("schema")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.SchemaType.verify(message.schema); + if (error) + return "schema." + error; + } + } + if (message.collectionType != null && message.hasOwnProperty("collectionType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.LiteralType.verify(message.collectionType); + if (error) + return "collectionType." + error; + } + } + if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.LiteralType.verify(message.mapValueType); + if (error) + return "mapValueType." + error; + } + } + if (message.blob != null && message.hasOwnProperty("blob")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.BlobType.verify(message.blob); + if (error) + return "blob." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.EnumType.verify(message.enumType); + if (error) + return "enumType." + error; + } + } + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); + if (error) + return "structuredDatasetType." + error; + } + } + if (message.unionType != null && message.hasOwnProperty("unionType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.UnionType.verify(message.unionType); + if (error) + return "unionType." + error; + } + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.annotation != null && message.hasOwnProperty("annotation")) { + var error = $root.flyteidl.core.TypeAnnotation.verify(message.annotation); + if (error) + return "annotation." + error; + } + if (message.structure != null && message.hasOwnProperty("structure")) { + var error = $root.flyteidl.core.TypeStructure.verify(message.structure); + if (error) + return "structure." + error; + } + return null; + }; - /** - * Node outputAliases. - * @member {Array.} outputAliases - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.outputAliases = $util.emptyArray; + return LiteralType; + })(); - /** - * Node taskNode. - * @member {flyteidl.core.ITaskNode|null|undefined} taskNode - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.taskNode = null; + core.OutputReference = (function() { /** - * Node workflowNode. - * @member {flyteidl.core.IWorkflowNode|null|undefined} workflowNode - * @memberof flyteidl.core.Node - * @instance + * Properties of an OutputReference. + * @memberof flyteidl.core + * @interface IOutputReference + * @property {string|null} [nodeId] OutputReference nodeId + * @property {string|null} ["var"] OutputReference var + * @property {Array.|null} [attrPath] OutputReference attrPath */ - Node.prototype.workflowNode = null; /** - * Node branchNode. - * @member {flyteidl.core.IBranchNode|null|undefined} branchNode - * @memberof flyteidl.core.Node - * @instance + * Constructs a new OutputReference. + * @memberof flyteidl.core + * @classdesc Represents an OutputReference. + * @implements IOutputReference + * @constructor + * @param {flyteidl.core.IOutputReference=} [properties] Properties to set */ - Node.prototype.branchNode = null; + function OutputReference(properties) { + this.attrPath = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Node gateNode. - * @member {flyteidl.core.IGateNode|null|undefined} gateNode - * @memberof flyteidl.core.Node + * OutputReference nodeId. + * @member {string} nodeId + * @memberof flyteidl.core.OutputReference * @instance */ - Node.prototype.gateNode = null; + OutputReference.prototype.nodeId = ""; /** - * Node arrayNode. - * @member {flyteidl.core.IArrayNode|null|undefined} arrayNode - * @memberof flyteidl.core.Node + * OutputReference var. + * @member {string} var + * @memberof flyteidl.core.OutputReference * @instance */ - Node.prototype.arrayNode = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + OutputReference.prototype["var"] = ""; /** - * Node target. - * @member {"taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"|undefined} target - * @memberof flyteidl.core.Node + * OutputReference attrPath. + * @member {Array.} attrPath + * @memberof flyteidl.core.OutputReference * @instance */ - Object.defineProperty(Node.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["taskNode", "workflowNode", "branchNode", "gateNode", "arrayNode"]), - set: $util.oneOfSetter($oneOfFields) - }); + OutputReference.prototype.attrPath = $util.emptyArray; /** - * Creates a new Node instance using the specified properties. + * Creates a new OutputReference instance using the specified properties. * @function create - * @memberof flyteidl.core.Node + * @memberof flyteidl.core.OutputReference * @static - * @param {flyteidl.core.INode=} [properties] Properties to set - * @returns {flyteidl.core.Node} Node instance + * @param {flyteidl.core.IOutputReference=} [properties] Properties to set + * @returns {flyteidl.core.OutputReference} OutputReference instance */ - Node.create = function create(properties) { - return new Node(properties); + OutputReference.create = function create(properties) { + return new OutputReference(properties); }; /** - * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. + * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Node + * @memberof flyteidl.core.OutputReference * @static - * @param {flyteidl.core.INode} message Node message or plain object to encode + * @param {flyteidl.core.IOutputReference} message OutputReference message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Node.encode = function encode(message, writer) { + OutputReference.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.NodeMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.inputs != null && message.inputs.length) - for (var i = 0; i < message.inputs.length; ++i) - $root.flyteidl.core.Binding.encode(message.inputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.upstreamNodeIds != null && message.upstreamNodeIds.length) - for (var i = 0; i < message.upstreamNodeIds.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.upstreamNodeIds[i]); - if (message.outputAliases != null && message.outputAliases.length) - for (var i = 0; i < message.outputAliases.length; ++i) - $root.flyteidl.core.Alias.encode(message.outputAliases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.taskNode != null && message.hasOwnProperty("taskNode")) - $root.flyteidl.core.TaskNode.encode(message.taskNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) - $root.flyteidl.core.WorkflowNode.encode(message.workflowNode, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.branchNode != null && message.hasOwnProperty("branchNode")) - $root.flyteidl.core.BranchNode.encode(message.branchNode, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.gateNode != null && message.hasOwnProperty("gateNode")) - $root.flyteidl.core.GateNode.encode(message.gateNode, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) - $root.flyteidl.core.ArrayNode.encode(message.arrayNode, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); + if (message.attrPath != null && message.attrPath.length) + for (var i = 0; i < message.attrPath.length; ++i) + $root.flyteidl.core.PromiseAttribute.encode(message.attrPath[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Decodes a Node message from the specified reader or buffer. + * Decodes an OutputReference message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Node + * @memberof flyteidl.core.OutputReference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Node} Node + * @returns {flyteidl.core.OutputReference} OutputReference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Node.decode = function decode(reader, length) { + OutputReference.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Node(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OutputReference(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.nodeId = reader.string(); break; case 2: - message.metadata = $root.flyteidl.core.NodeMetadata.decode(reader, reader.uint32()); + message["var"] = reader.string(); break; case 3: - if (!(message.inputs && message.inputs.length)) - message.inputs = []; - message.inputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.upstreamNodeIds && message.upstreamNodeIds.length)) - message.upstreamNodeIds = []; - message.upstreamNodeIds.push(reader.string()); - break; - case 5: - if (!(message.outputAliases && message.outputAliases.length)) - message.outputAliases = []; - message.outputAliases.push($root.flyteidl.core.Alias.decode(reader, reader.uint32())); - break; - case 6: - message.taskNode = $root.flyteidl.core.TaskNode.decode(reader, reader.uint32()); - break; - case 7: - message.workflowNode = $root.flyteidl.core.WorkflowNode.decode(reader, reader.uint32()); - break; - case 8: - message.branchNode = $root.flyteidl.core.BranchNode.decode(reader, reader.uint32()); - break; - case 9: - message.gateNode = $root.flyteidl.core.GateNode.decode(reader, reader.uint32()); - break; - case 10: - message.arrayNode = $root.flyteidl.core.ArrayNode.decode(reader, reader.uint32()); + if (!(message.attrPath && message.attrPath.length)) + message.attrPath = []; + message.attrPath.push($root.flyteidl.core.PromiseAttribute.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -5342,125 +5956,56 @@ }; /** - * Verifies a Node message. + * Verifies an OutputReference message. * @function verify - * @memberof flyteidl.core.Node + * @memberof flyteidl.core.OutputReference * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Node.verify = function verify(message) { + OutputReference.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.NodeMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (!Array.isArray(message.inputs)) - return "inputs: array expected"; - for (var i = 0; i < message.inputs.length; ++i) { - var error = $root.flyteidl.core.Binding.verify(message.inputs[i]); - if (error) - return "inputs." + error; - } - } - if (message.upstreamNodeIds != null && message.hasOwnProperty("upstreamNodeIds")) { - if (!Array.isArray(message.upstreamNodeIds)) - return "upstreamNodeIds: array expected"; - for (var i = 0; i < message.upstreamNodeIds.length; ++i) - if (!$util.isString(message.upstreamNodeIds[i])) - return "upstreamNodeIds: string[] expected"; - } - if (message.outputAliases != null && message.hasOwnProperty("outputAliases")) { - if (!Array.isArray(message.outputAliases)) - return "outputAliases: array expected"; - for (var i = 0; i < message.outputAliases.length; ++i) { - var error = $root.flyteidl.core.Alias.verify(message.outputAliases[i]); - if (error) - return "outputAliases." + error; - } - } - if (message.taskNode != null && message.hasOwnProperty("taskNode")) { - properties.target = 1; - { - var error = $root.flyteidl.core.TaskNode.verify(message.taskNode); - if (error) - return "taskNode." + error; - } - } - if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.WorkflowNode.verify(message.workflowNode); - if (error) - return "workflowNode." + error; - } - } - if (message.branchNode != null && message.hasOwnProperty("branchNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.BranchNode.verify(message.branchNode); - if (error) - return "branchNode." + error; - } - } - if (message.gateNode != null && message.hasOwnProperty("gateNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.GateNode.verify(message.gateNode); - if (error) - return "gateNode." + error; - } - } - if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.ArrayNode.verify(message.arrayNode); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (!$util.isString(message.nodeId)) + return "nodeId: string expected"; + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + if (message.attrPath != null && message.hasOwnProperty("attrPath")) { + if (!Array.isArray(message.attrPath)) + return "attrPath: array expected"; + for (var i = 0; i < message.attrPath.length; ++i) { + var error = $root.flyteidl.core.PromiseAttribute.verify(message.attrPath[i]); if (error) - return "arrayNode." + error; + return "attrPath." + error; } } return null; }; - return Node; + return OutputReference; })(); - core.WorkflowMetadata = (function() { + core.PromiseAttribute = (function() { /** - * Properties of a WorkflowMetadata. + * Properties of a PromiseAttribute. * @memberof flyteidl.core - * @interface IWorkflowMetadata - * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] WorkflowMetadata qualityOfService - * @property {flyteidl.core.WorkflowMetadata.OnFailurePolicy|null} [onFailure] WorkflowMetadata onFailure - * @property {Object.|null} [tags] WorkflowMetadata tags + * @interface IPromiseAttribute + * @property {string|null} [stringValue] PromiseAttribute stringValue + * @property {number|null} [intValue] PromiseAttribute intValue */ /** - * Constructs a new WorkflowMetadata. + * Constructs a new PromiseAttribute. * @memberof flyteidl.core - * @classdesc Represents a WorkflowMetadata. - * @implements IWorkflowMetadata + * @classdesc Represents a PromiseAttribute. + * @implements IPromiseAttribute * @constructor - * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set + * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set */ - function WorkflowMetadata(properties) { - this.tags = {}; + function PromiseAttribute(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5468,94 +6013,89 @@ } /** - * WorkflowMetadata qualityOfService. - * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService - * @memberof flyteidl.core.WorkflowMetadata + * PromiseAttribute stringValue. + * @member {string} stringValue + * @memberof flyteidl.core.PromiseAttribute * @instance */ - WorkflowMetadata.prototype.qualityOfService = null; + PromiseAttribute.prototype.stringValue = ""; /** - * WorkflowMetadata onFailure. - * @member {flyteidl.core.WorkflowMetadata.OnFailurePolicy} onFailure - * @memberof flyteidl.core.WorkflowMetadata + * PromiseAttribute intValue. + * @member {number} intValue + * @memberof flyteidl.core.PromiseAttribute * @instance */ - WorkflowMetadata.prototype.onFailure = 0; + PromiseAttribute.prototype.intValue = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * WorkflowMetadata tags. - * @member {Object.} tags - * @memberof flyteidl.core.WorkflowMetadata + * PromiseAttribute value. + * @member {"stringValue"|"intValue"|undefined} value + * @memberof flyteidl.core.PromiseAttribute * @instance */ - WorkflowMetadata.prototype.tags = $util.emptyObject; + Object.defineProperty(PromiseAttribute.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["stringValue", "intValue"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new WorkflowMetadata instance using the specified properties. + * Creates a new PromiseAttribute instance using the specified properties. * @function create - * @memberof flyteidl.core.WorkflowMetadata + * @memberof flyteidl.core.PromiseAttribute * @static - * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata instance + * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set + * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute instance */ - WorkflowMetadata.create = function create(properties) { - return new WorkflowMetadata(properties); + PromiseAttribute.create = function create(properties) { + return new PromiseAttribute(properties); }; /** - * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. + * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages. * @function encode - * @memberof flyteidl.core.WorkflowMetadata + * @memberof flyteidl.core.PromiseAttribute * @static - * @param {flyteidl.core.IWorkflowMetadata} message WorkflowMetadata message or plain object to encode + * @param {flyteidl.core.IPromiseAttribute} message PromiseAttribute message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowMetadata.encode = function encode(message, writer) { + PromiseAttribute.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) - $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.onFailure != null && message.hasOwnProperty("onFailure")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.onFailure); - if (message.tags != null && message.hasOwnProperty("tags")) - for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.stringValue); + if (message.intValue != null && message.hasOwnProperty("intValue")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.intValue); return writer; }; /** - * Decodes a WorkflowMetadata message from the specified reader or buffer. + * Decodes a PromiseAttribute message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.WorkflowMetadata + * @memberof flyteidl.core.PromiseAttribute * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata + * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WorkflowMetadata.decode = function decode(reader, length) { + PromiseAttribute.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadata(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.PromiseAttribute(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); + message.stringValue = reader.string(); break; case 2: - message.onFailure = reader.int32(); - break; - case 3: - reader.skip().pos++; - if (message.tags === $util.emptyObject) - message.tags = {}; - key = reader.string(); - reader.pos++; - message.tags[key] = reader.string(); + message.intValue = reader.int32(); break; default: reader.skipType(tag & 7); @@ -5566,75 +6106,54 @@ }; /** - * Verifies a WorkflowMetadata message. + * Verifies a PromiseAttribute message. * @function verify - * @memberof flyteidl.core.WorkflowMetadata + * @memberof flyteidl.core.PromiseAttribute * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WorkflowMetadata.verify = function verify(message) { + PromiseAttribute.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { - var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); - if (error) - return "qualityOfService." + error; + var properties = {}; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; } - if (message.onFailure != null && message.hasOwnProperty("onFailure")) - switch (message.onFailure) { - default: - return "onFailure: enum value expected"; - case 0: - case 1: - break; - } - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!$util.isObject(message.tags)) - return "tags: object expected"; - var key = Object.keys(message.tags); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.tags[key[i]])) - return "tags: string{k:string} expected"; + if (message.intValue != null && message.hasOwnProperty("intValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isInteger(message.intValue)) + return "intValue: integer expected"; } return null; }; - /** - * OnFailurePolicy enum. - * @name flyteidl.core.WorkflowMetadata.OnFailurePolicy - * @enum {string} - * @property {number} FAIL_IMMEDIATELY=0 FAIL_IMMEDIATELY value - * @property {number} FAIL_AFTER_EXECUTABLE_NODES_COMPLETE=1 FAIL_AFTER_EXECUTABLE_NODES_COMPLETE value - */ - WorkflowMetadata.OnFailurePolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FAIL_IMMEDIATELY"] = 0; - values[valuesById[1] = "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE"] = 1; - return values; - })(); - - return WorkflowMetadata; + return PromiseAttribute; })(); - core.WorkflowMetadataDefaults = (function() { + core.Error = (function() { /** - * Properties of a WorkflowMetadataDefaults. + * Properties of an Error. * @memberof flyteidl.core - * @interface IWorkflowMetadataDefaults - * @property {boolean|null} [interruptible] WorkflowMetadataDefaults interruptible + * @interface IError + * @property {string|null} [failedNodeId] Error failedNodeId + * @property {string|null} [message] Error message */ /** - * Constructs a new WorkflowMetadataDefaults. + * Constructs a new Error. * @memberof flyteidl.core - * @classdesc Represents a WorkflowMetadataDefaults. - * @implements IWorkflowMetadataDefaults + * @classdesc Represents an Error. + * @implements IError * @constructor - * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set + * @param {flyteidl.core.IError=} [properties] Properties to set */ - function WorkflowMetadataDefaults(properties) { + function Error(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5642,62 +6161,75 @@ } /** - * WorkflowMetadataDefaults interruptible. - * @member {boolean} interruptible - * @memberof flyteidl.core.WorkflowMetadataDefaults + * Error failedNodeId. + * @member {string} failedNodeId + * @memberof flyteidl.core.Error * @instance */ - WorkflowMetadataDefaults.prototype.interruptible = false; + Error.prototype.failedNodeId = ""; /** - * Creates a new WorkflowMetadataDefaults instance using the specified properties. + * Error message. + * @member {string} message + * @memberof flyteidl.core.Error + * @instance + */ + Error.prototype.message = ""; + + /** + * Creates a new Error instance using the specified properties. * @function create - * @memberof flyteidl.core.WorkflowMetadataDefaults + * @memberof flyteidl.core.Error * @static - * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults instance + * @param {flyteidl.core.IError=} [properties] Properties to set + * @returns {flyteidl.core.Error} Error instance */ - WorkflowMetadataDefaults.create = function create(properties) { - return new WorkflowMetadataDefaults(properties); + Error.create = function create(properties) { + return new Error(properties); }; /** - * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. + * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. * @function encode - * @memberof flyteidl.core.WorkflowMetadataDefaults + * @memberof flyteidl.core.Error * @static - * @param {flyteidl.core.IWorkflowMetadataDefaults} message WorkflowMetadataDefaults message or plain object to encode + * @param {flyteidl.core.IError} message Error message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowMetadataDefaults.encode = function encode(message, writer) { + Error.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.interruptible); + if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.failedNodeId); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; /** - * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. + * Decodes an Error message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.WorkflowMetadataDefaults + * @memberof flyteidl.core.Error * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults + * @returns {flyteidl.core.Error} Error * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WorkflowMetadataDefaults.decode = function decode(reader, length) { + Error.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadataDefaults(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Error(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.interruptible = reader.bool(); + message.failedNodeId = reader.string(); + break; + case 2: + message.message = reader.string(); break; default: reader.skipType(tag & 7); @@ -5708,51 +6240,51 @@ }; /** - * Verifies a WorkflowMetadataDefaults message. + * Verifies an Error message. * @function verify - * @memberof flyteidl.core.WorkflowMetadataDefaults + * @memberof flyteidl.core.Error * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WorkflowMetadataDefaults.verify = function verify(message) { + Error.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - if (typeof message.interruptible !== "boolean") - return "interruptible: boolean expected"; + if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) + if (!$util.isString(message.failedNodeId)) + return "failedNodeId: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; - return WorkflowMetadataDefaults; + return Error; })(); - core.WorkflowTemplate = (function() { + core.Primitive = (function() { /** - * Properties of a WorkflowTemplate. + * Properties of a Primitive. * @memberof flyteidl.core - * @interface IWorkflowTemplate - * @property {flyteidl.core.IIdentifier|null} [id] WorkflowTemplate id - * @property {flyteidl.core.IWorkflowMetadata|null} [metadata] WorkflowTemplate metadata - * @property {flyteidl.core.ITypedInterface|null} ["interface"] WorkflowTemplate interface - * @property {Array.|null} [nodes] WorkflowTemplate nodes - * @property {Array.|null} [outputs] WorkflowTemplate outputs - * @property {flyteidl.core.INode|null} [failureNode] WorkflowTemplate failureNode - * @property {flyteidl.core.IWorkflowMetadataDefaults|null} [metadataDefaults] WorkflowTemplate metadataDefaults + * @interface IPrimitive + * @property {Long|null} [integer] Primitive integer + * @property {number|null} [floatValue] Primitive floatValue + * @property {string|null} [stringValue] Primitive stringValue + * @property {boolean|null} [boolean] Primitive boolean + * @property {google.protobuf.ITimestamp|null} [datetime] Primitive datetime + * @property {google.protobuf.IDuration|null} [duration] Primitive duration */ /** - * Constructs a new WorkflowTemplate. + * Constructs a new Primitive. * @memberof flyteidl.core - * @classdesc Represents a WorkflowTemplate. - * @implements IWorkflowTemplate + * @classdesc Represents a Primitive. + * @implements IPrimitive * @constructor - * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set + * @param {flyteidl.core.IPrimitive=} [properties] Properties to set */ - function WorkflowTemplate(properties) { - this.nodes = []; - this.outputs = []; + function Primitive(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5760,146 +6292,141 @@ } /** - * WorkflowTemplate id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.core.WorkflowTemplate + * Primitive integer. + * @member {Long} integer + * @memberof flyteidl.core.Primitive * @instance */ - WorkflowTemplate.prototype.id = null; + Primitive.prototype.integer = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * WorkflowTemplate metadata. - * @member {flyteidl.core.IWorkflowMetadata|null|undefined} metadata - * @memberof flyteidl.core.WorkflowTemplate + * Primitive floatValue. + * @member {number} floatValue + * @memberof flyteidl.core.Primitive * @instance */ - WorkflowTemplate.prototype.metadata = null; + Primitive.prototype.floatValue = 0; /** - * WorkflowTemplate interface. - * @member {flyteidl.core.ITypedInterface|null|undefined} interface - * @memberof flyteidl.core.WorkflowTemplate + * Primitive stringValue. + * @member {string} stringValue + * @memberof flyteidl.core.Primitive * @instance */ - WorkflowTemplate.prototype["interface"] = null; + Primitive.prototype.stringValue = ""; /** - * WorkflowTemplate nodes. - * @member {Array.} nodes - * @memberof flyteidl.core.WorkflowTemplate + * Primitive boolean. + * @member {boolean} boolean + * @memberof flyteidl.core.Primitive * @instance */ - WorkflowTemplate.prototype.nodes = $util.emptyArray; + Primitive.prototype.boolean = false; /** - * WorkflowTemplate outputs. - * @member {Array.} outputs - * @memberof flyteidl.core.WorkflowTemplate + * Primitive datetime. + * @member {google.protobuf.ITimestamp|null|undefined} datetime + * @memberof flyteidl.core.Primitive * @instance */ - WorkflowTemplate.prototype.outputs = $util.emptyArray; + Primitive.prototype.datetime = null; /** - * WorkflowTemplate failureNode. - * @member {flyteidl.core.INode|null|undefined} failureNode - * @memberof flyteidl.core.WorkflowTemplate + * Primitive duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.core.Primitive * @instance */ - WorkflowTemplate.prototype.failureNode = null; + Primitive.prototype.duration = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * WorkflowTemplate metadataDefaults. - * @member {flyteidl.core.IWorkflowMetadataDefaults|null|undefined} metadataDefaults - * @memberof flyteidl.core.WorkflowTemplate + * Primitive value. + * @member {"integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"|undefined} value + * @memberof flyteidl.core.Primitive * @instance */ - WorkflowTemplate.prototype.metadataDefaults = null; + Object.defineProperty(Primitive.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["integer", "floatValue", "stringValue", "boolean", "datetime", "duration"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new WorkflowTemplate instance using the specified properties. + * Creates a new Primitive instance using the specified properties. * @function create - * @memberof flyteidl.core.WorkflowTemplate + * @memberof flyteidl.core.Primitive * @static - * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate instance + * @param {flyteidl.core.IPrimitive=} [properties] Properties to set + * @returns {flyteidl.core.Primitive} Primitive instance */ - WorkflowTemplate.create = function create(properties) { - return new WorkflowTemplate(properties); + Primitive.create = function create(properties) { + return new Primitive(properties); }; /** - * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. + * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. * @function encode - * @memberof flyteidl.core.WorkflowTemplate + * @memberof flyteidl.core.Primitive * @static - * @param {flyteidl.core.IWorkflowTemplate} message WorkflowTemplate message or plain object to encode + * @param {flyteidl.core.IPrimitive} message Primitive message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowTemplate.encode = function encode(message, writer) { + Primitive.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.WorkflowMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message["interface"] != null && message.hasOwnProperty("interface")) - $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.nodes != null && message.nodes.length) - for (var i = 0; i < message.nodes.length; ++i) - $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.outputs != null && message.outputs.length) - for (var i = 0; i < message.outputs.length; ++i) - $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.failureNode != null && message.hasOwnProperty("failureNode")) - $root.flyteidl.core.Node.encode(message.failureNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) - $root.flyteidl.core.WorkflowMetadataDefaults.encode(message.metadataDefaults, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.integer != null && message.hasOwnProperty("integer")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.integer); + if (message.floatValue != null && message.hasOwnProperty("floatValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.floatValue); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.boolean != null && message.hasOwnProperty("boolean")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolean); + if (message.datetime != null && message.hasOwnProperty("datetime")) + $root.google.protobuf.Timestamp.encode(message.datetime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Decodes a WorkflowTemplate message from the specified reader or buffer. + * Decodes a Primitive message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.WorkflowTemplate + * @memberof flyteidl.core.Primitive * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate + * @returns {flyteidl.core.Primitive} Primitive * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WorkflowTemplate.decode = function decode(reader, length) { + Primitive.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowTemplate(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Primitive(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + message.integer = reader.int64(); break; case 2: - message.metadata = $root.flyteidl.core.WorkflowMetadata.decode(reader, reader.uint32()); + message.floatValue = reader.double(); break; case 3: - message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + message.stringValue = reader.string(); break; case 4: - if (!(message.nodes && message.nodes.length)) - message.nodes = []; - message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); + message.boolean = reader.bool(); break; case 5: - if (!(message.outputs && message.outputs.length)) - message.outputs = []; - message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); + message.datetime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 6: - message.failureNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); - break; - case 7: - message.metadataDefaults = $root.flyteidl.core.WorkflowMetadataDefaults.decode(reader, reader.uint32()); + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -5910,84 +6437,86 @@ }; /** - * Verifies a WorkflowTemplate message. + * Verifies a Primitive message. * @function verify - * @memberof flyteidl.core.WorkflowTemplate + * @memberof flyteidl.core.Primitive * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WorkflowTemplate.verify = function verify(message) { + Primitive.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; + var properties = {}; + if (message.integer != null && message.hasOwnProperty("integer")) { + properties.value = 1; + if (!$util.isInteger(message.integer) && !(message.integer && $util.isInteger(message.integer.low) && $util.isInteger(message.integer.high))) + return "integer: integer|Long expected"; } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.WorkflowMetadata.verify(message.metadata); - if (error) - return "metadata." + error; + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.floatValue !== "number") + return "floatValue: number expected"; } - if (message["interface"] != null && message.hasOwnProperty("interface")) { - var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); - if (error) - return "interface." + error; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; } - if (message.nodes != null && message.hasOwnProperty("nodes")) { - if (!Array.isArray(message.nodes)) - return "nodes: array expected"; - for (var i = 0; i < message.nodes.length; ++i) { - var error = $root.flyteidl.core.Node.verify(message.nodes[i]); + if (message.boolean != null && message.hasOwnProperty("boolean")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.boolean !== "boolean") + return "boolean: boolean expected"; + } + if (message.datetime != null && message.hasOwnProperty("datetime")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.protobuf.Timestamp.verify(message.datetime); if (error) - return "nodes." + error; + return "datetime." + error; } } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!Array.isArray(message.outputs)) - return "outputs: array expected"; - for (var i = 0; i < message.outputs.length; ++i) { - var error = $root.flyteidl.core.Binding.verify(message.outputs[i]); + if (message.duration != null && message.hasOwnProperty("duration")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.protobuf.Duration.verify(message.duration); if (error) - return "outputs." + error; + return "duration." + error; } } - if (message.failureNode != null && message.hasOwnProperty("failureNode")) { - var error = $root.flyteidl.core.Node.verify(message.failureNode); - if (error) - return "failureNode." + error; - } - if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) { - var error = $root.flyteidl.core.WorkflowMetadataDefaults.verify(message.metadataDefaults); - if (error) - return "metadataDefaults." + error; - } return null; }; - return WorkflowTemplate; + return Primitive; })(); - core.TaskNodeOverrides = (function() { + core.Void = (function() { /** - * Properties of a TaskNodeOverrides. + * Properties of a Void. * @memberof flyteidl.core - * @interface ITaskNodeOverrides - * @property {flyteidl.core.IResources|null} [resources] TaskNodeOverrides resources - * @property {flyteidl.core.IExtendedResources|null} [extendedResources] TaskNodeOverrides extendedResources + * @interface IVoid */ /** - * Constructs a new TaskNodeOverrides. + * Constructs a new Void. * @memberof flyteidl.core - * @classdesc Represents a TaskNodeOverrides. - * @implements ITaskNodeOverrides + * @classdesc Represents a Void. + * @implements IVoid * @constructor - * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set + * @param {flyteidl.core.IVoid=} [properties] Properties to set */ - function TaskNodeOverrides(properties) { + function Void(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5995,76 +6524,50 @@ } /** - * TaskNodeOverrides resources. - * @member {flyteidl.core.IResources|null|undefined} resources - * @memberof flyteidl.core.TaskNodeOverrides - * @instance - */ - TaskNodeOverrides.prototype.resources = null; - - /** - * TaskNodeOverrides extendedResources. - * @member {flyteidl.core.IExtendedResources|null|undefined} extendedResources - * @memberof flyteidl.core.TaskNodeOverrides - * @instance - */ - TaskNodeOverrides.prototype.extendedResources = null; - - /** - * Creates a new TaskNodeOverrides instance using the specified properties. + * Creates a new Void instance using the specified properties. * @function create - * @memberof flyteidl.core.TaskNodeOverrides + * @memberof flyteidl.core.Void * @static - * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set - * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides instance + * @param {flyteidl.core.IVoid=} [properties] Properties to set + * @returns {flyteidl.core.Void} Void instance */ - TaskNodeOverrides.create = function create(properties) { - return new TaskNodeOverrides(properties); + Void.create = function create(properties) { + return new Void(properties); }; /** - * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. + * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. * @function encode - * @memberof flyteidl.core.TaskNodeOverrides + * @memberof flyteidl.core.Void * @static - * @param {flyteidl.core.ITaskNodeOverrides} message TaskNodeOverrides message or plain object to encode + * @param {flyteidl.core.IVoid} message Void message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskNodeOverrides.encode = function encode(message, writer) { + Void.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resources != null && message.hasOwnProperty("resources")) - $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) - $root.flyteidl.core.ExtendedResources.encode(message.extendedResources, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a TaskNodeOverrides message from the specified reader or buffer. + * Decodes a Void message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.TaskNodeOverrides + * @memberof flyteidl.core.Void * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides + * @returns {flyteidl.core.Void} Void * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskNodeOverrides.decode = function decode(reader, length) { + Void.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNodeOverrides(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Void(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32()); - break; - case 2: - message.extendedResources = $root.flyteidl.core.ExtendedResources.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -6074,52 +6577,41 @@ }; /** - * Verifies a TaskNodeOverrides message. + * Verifies a Void message. * @function verify - * @memberof flyteidl.core.TaskNodeOverrides + * @memberof flyteidl.core.Void * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TaskNodeOverrides.verify = function verify(message) { + Void.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.resources != null && message.hasOwnProperty("resources")) { - var error = $root.flyteidl.core.Resources.verify(message.resources); - if (error) - return "resources." + error; - } - if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) { - var error = $root.flyteidl.core.ExtendedResources.verify(message.extendedResources); - if (error) - return "extendedResources." + error; - } return null; }; - return TaskNodeOverrides; + return Void; })(); - core.ComparisonExpression = (function() { + core.Blob = (function() { /** - * Properties of a ComparisonExpression. + * Properties of a Blob. * @memberof flyteidl.core - * @interface IComparisonExpression - * @property {flyteidl.core.ComparisonExpression.Operator|null} [operator] ComparisonExpression operator - * @property {flyteidl.core.IOperand|null} [leftValue] ComparisonExpression leftValue - * @property {flyteidl.core.IOperand|null} [rightValue] ComparisonExpression rightValue + * @interface IBlob + * @property {flyteidl.core.IBlobMetadata|null} [metadata] Blob metadata + * @property {string|null} [uri] Blob uri */ /** - * Constructs a new ComparisonExpression. + * Constructs a new Blob. * @memberof flyteidl.core - * @classdesc Represents a ComparisonExpression. - * @implements IComparisonExpression + * @classdesc Represents a Blob. + * @implements IBlob * @constructor - * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set + * @param {flyteidl.core.IBlob=} [properties] Properties to set */ - function ComparisonExpression(properties) { + function Blob(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6127,88 +6619,75 @@ } /** - * ComparisonExpression operator. - * @member {flyteidl.core.ComparisonExpression.Operator} operator - * @memberof flyteidl.core.ComparisonExpression - * @instance - */ - ComparisonExpression.prototype.operator = 0; - - /** - * ComparisonExpression leftValue. - * @member {flyteidl.core.IOperand|null|undefined} leftValue - * @memberof flyteidl.core.ComparisonExpression + * Blob metadata. + * @member {flyteidl.core.IBlobMetadata|null|undefined} metadata + * @memberof flyteidl.core.Blob * @instance */ - ComparisonExpression.prototype.leftValue = null; + Blob.prototype.metadata = null; /** - * ComparisonExpression rightValue. - * @member {flyteidl.core.IOperand|null|undefined} rightValue - * @memberof flyteidl.core.ComparisonExpression + * Blob uri. + * @member {string} uri + * @memberof flyteidl.core.Blob * @instance */ - ComparisonExpression.prototype.rightValue = null; + Blob.prototype.uri = ""; /** - * Creates a new ComparisonExpression instance using the specified properties. + * Creates a new Blob instance using the specified properties. * @function create - * @memberof flyteidl.core.ComparisonExpression + * @memberof flyteidl.core.Blob * @static - * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set - * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression instance + * @param {flyteidl.core.IBlob=} [properties] Properties to set + * @returns {flyteidl.core.Blob} Blob instance */ - ComparisonExpression.create = function create(properties) { - return new ComparisonExpression(properties); + Blob.create = function create(properties) { + return new Blob(properties); }; /** - * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. + * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. * @function encode - * @memberof flyteidl.core.ComparisonExpression + * @memberof flyteidl.core.Blob * @static - * @param {flyteidl.core.IComparisonExpression} message ComparisonExpression message or plain object to encode + * @param {flyteidl.core.IBlob} message Blob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComparisonExpression.encode = function encode(message, writer) { + Blob.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.operator != null && message.hasOwnProperty("operator")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); - if (message.leftValue != null && message.hasOwnProperty("leftValue")) - $root.flyteidl.core.Operand.encode(message.leftValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.rightValue != null && message.hasOwnProperty("rightValue")) - $root.flyteidl.core.Operand.encode(message.rightValue, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.BlobMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri); return writer; }; /** - * Decodes a ComparisonExpression message from the specified reader or buffer. + * Decodes a Blob message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.ComparisonExpression + * @memberof flyteidl.core.Blob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression + * @returns {flyteidl.core.Blob} Blob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComparisonExpression.decode = function decode(reader, length) { + Blob.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ComparisonExpression(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Blob(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.operator = reader.int32(); - break; - case 2: - message.leftValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); + message.metadata = $root.flyteidl.core.BlobMetadata.decode(reader, reader.uint32()); break; case 3: - message.rightValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); + message.uri = reader.string(); break; default: reader.skipType(tag & 7); @@ -6219,86 +6698,48 @@ }; /** - * Verifies a ComparisonExpression message. + * Verifies a Blob message. * @function verify - * @memberof flyteidl.core.ComparisonExpression + * @memberof flyteidl.core.Blob * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComparisonExpression.verify = function verify(message) { + Blob.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.operator != null && message.hasOwnProperty("operator")) - switch (message.operator) { - default: - return "operator: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.leftValue != null && message.hasOwnProperty("leftValue")) { - var error = $root.flyteidl.core.Operand.verify(message.leftValue); - if (error) - return "leftValue." + error; - } - if (message.rightValue != null && message.hasOwnProperty("rightValue")) { - var error = $root.flyteidl.core.Operand.verify(message.rightValue); + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.BlobMetadata.verify(message.metadata); if (error) - return "rightValue." + error; + return "metadata." + error; } + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; return null; }; - /** - * Operator enum. - * @name flyteidl.core.ComparisonExpression.Operator - * @enum {string} - * @property {number} EQ=0 EQ value - * @property {number} NEQ=1 NEQ value - * @property {number} GT=2 GT value - * @property {number} GTE=3 GTE value - * @property {number} LT=4 LT value - * @property {number} LTE=5 LTE value - */ - ComparisonExpression.Operator = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EQ"] = 0; - values[valuesById[1] = "NEQ"] = 1; - values[valuesById[2] = "GT"] = 2; - values[valuesById[3] = "GTE"] = 3; - values[valuesById[4] = "LT"] = 4; - values[valuesById[5] = "LTE"] = 5; - return values; - })(); - - return ComparisonExpression; + return Blob; })(); - core.Operand = (function() { + core.BlobMetadata = (function() { /** - * Properties of an Operand. + * Properties of a BlobMetadata. * @memberof flyteidl.core - * @interface IOperand - * @property {flyteidl.core.IPrimitive|null} [primitive] Operand primitive - * @property {string|null} ["var"] Operand var - * @property {flyteidl.core.IScalar|null} [scalar] Operand scalar + * @interface IBlobMetadata + * @property {flyteidl.core.IBlobType|null} [type] BlobMetadata type */ /** - * Constructs a new Operand. + * Constructs a new BlobMetadata. * @memberof flyteidl.core - * @classdesc Represents an Operand. - * @implements IOperand + * @classdesc Represents a BlobMetadata. + * @implements IBlobMetadata * @constructor - * @param {flyteidl.core.IOperand=} [properties] Properties to set + * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set */ - function Operand(properties) { + function BlobMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6306,102 +6747,62 @@ } /** - * Operand primitive. - * @member {flyteidl.core.IPrimitive|null|undefined} primitive - * @memberof flyteidl.core.Operand - * @instance - */ - Operand.prototype.primitive = null; - - /** - * Operand var. - * @member {string} var - * @memberof flyteidl.core.Operand - * @instance - */ - Operand.prototype["var"] = ""; - - /** - * Operand scalar. - * @member {flyteidl.core.IScalar|null|undefined} scalar - * @memberof flyteidl.core.Operand - * @instance - */ - Operand.prototype.scalar = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Operand val. - * @member {"primitive"|"var"|"scalar"|undefined} val - * @memberof flyteidl.core.Operand + * BlobMetadata type. + * @member {flyteidl.core.IBlobType|null|undefined} type + * @memberof flyteidl.core.BlobMetadata * @instance */ - Object.defineProperty(Operand.prototype, "val", { - get: $util.oneOfGetter($oneOfFields = ["primitive", "var", "scalar"]), - set: $util.oneOfSetter($oneOfFields) - }); + BlobMetadata.prototype.type = null; /** - * Creates a new Operand instance using the specified properties. + * Creates a new BlobMetadata instance using the specified properties. * @function create - * @memberof flyteidl.core.Operand + * @memberof flyteidl.core.BlobMetadata * @static - * @param {flyteidl.core.IOperand=} [properties] Properties to set - * @returns {flyteidl.core.Operand} Operand instance + * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set + * @returns {flyteidl.core.BlobMetadata} BlobMetadata instance */ - Operand.create = function create(properties) { - return new Operand(properties); + BlobMetadata.create = function create(properties) { + return new BlobMetadata(properties); }; /** - * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. + * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Operand + * @memberof flyteidl.core.BlobMetadata * @static - * @param {flyteidl.core.IOperand} message Operand message or plain object to encode + * @param {flyteidl.core.IBlobMetadata} message BlobMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Operand.encode = function encode(message, writer) { + BlobMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.primitive != null && message.hasOwnProperty("primitive")) - $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); - if (message.scalar != null && message.hasOwnProperty("scalar")) - $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.BlobType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes an Operand message from the specified reader or buffer. + * Decodes a BlobMetadata message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Operand + * @memberof flyteidl.core.BlobMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Operand} Operand + * @returns {flyteidl.core.BlobMetadata} BlobMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Operand.decode = function decode(reader, length) { + BlobMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Operand(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); - break; - case 2: - message["var"] = reader.string(); - break; - case 3: - message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); + message.type = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6412,67 +6813,46 @@ }; /** - * Verifies an Operand message. + * Verifies a BlobMetadata message. * @function verify - * @memberof flyteidl.core.Operand + * @memberof flyteidl.core.BlobMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Operand.verify = function verify(message) { + BlobMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.primitive != null && message.hasOwnProperty("primitive")) { - properties.val = 1; - { - var error = $root.flyteidl.core.Primitive.verify(message.primitive); - if (error) - return "primitive." + error; - } - } - if (message["var"] != null && message.hasOwnProperty("var")) { - if (properties.val === 1) - return "val: multiple values"; - properties.val = 1; - if (!$util.isString(message["var"])) - return "var: string expected"; - } - if (message.scalar != null && message.hasOwnProperty("scalar")) { - if (properties.val === 1) - return "val: multiple values"; - properties.val = 1; - { - var error = $root.flyteidl.core.Scalar.verify(message.scalar); - if (error) - return "scalar." + error; - } + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.BlobType.verify(message.type); + if (error) + return "type." + error; } return null; }; - return Operand; + return BlobMetadata; })(); - core.BooleanExpression = (function() { + core.Binary = (function() { /** - * Properties of a BooleanExpression. + * Properties of a Binary. * @memberof flyteidl.core - * @interface IBooleanExpression - * @property {flyteidl.core.IConjunctionExpression|null} [conjunction] BooleanExpression conjunction - * @property {flyteidl.core.IComparisonExpression|null} [comparison] BooleanExpression comparison + * @interface IBinary + * @property {Uint8Array|null} [value] Binary value + * @property {string|null} [tag] Binary tag */ /** - * Constructs a new BooleanExpression. + * Constructs a new Binary. * @memberof flyteidl.core - * @classdesc Represents a BooleanExpression. - * @implements IBooleanExpression + * @classdesc Represents a Binary. + * @implements IBinary * @constructor - * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set + * @param {flyteidl.core.IBinary=} [properties] Properties to set */ - function BooleanExpression(properties) { + function Binary(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6480,89 +6860,75 @@ } /** - * BooleanExpression conjunction. - * @member {flyteidl.core.IConjunctionExpression|null|undefined} conjunction - * @memberof flyteidl.core.BooleanExpression - * @instance - */ - BooleanExpression.prototype.conjunction = null; - - /** - * BooleanExpression comparison. - * @member {flyteidl.core.IComparisonExpression|null|undefined} comparison - * @memberof flyteidl.core.BooleanExpression + * Binary value. + * @member {Uint8Array} value + * @memberof flyteidl.core.Binary * @instance */ - BooleanExpression.prototype.comparison = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Binary.prototype.value = $util.newBuffer([]); /** - * BooleanExpression expr. - * @member {"conjunction"|"comparison"|undefined} expr - * @memberof flyteidl.core.BooleanExpression + * Binary tag. + * @member {string} tag + * @memberof flyteidl.core.Binary * @instance */ - Object.defineProperty(BooleanExpression.prototype, "expr", { - get: $util.oneOfGetter($oneOfFields = ["conjunction", "comparison"]), - set: $util.oneOfSetter($oneOfFields) - }); + Binary.prototype.tag = ""; /** - * Creates a new BooleanExpression instance using the specified properties. + * Creates a new Binary instance using the specified properties. * @function create - * @memberof flyteidl.core.BooleanExpression + * @memberof flyteidl.core.Binary * @static - * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set - * @returns {flyteidl.core.BooleanExpression} BooleanExpression instance + * @param {flyteidl.core.IBinary=} [properties] Properties to set + * @returns {flyteidl.core.Binary} Binary instance */ - BooleanExpression.create = function create(properties) { - return new BooleanExpression(properties); + Binary.create = function create(properties) { + return new Binary(properties); }; /** - * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. + * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. * @function encode - * @memberof flyteidl.core.BooleanExpression + * @memberof flyteidl.core.Binary * @static - * @param {flyteidl.core.IBooleanExpression} message BooleanExpression message or plain object to encode + * @param {flyteidl.core.IBinary} message Binary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BooleanExpression.encode = function encode(message, writer) { + Binary.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.conjunction != null && message.hasOwnProperty("conjunction")) - $root.flyteidl.core.ConjunctionExpression.encode(message.conjunction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.comparison != null && message.hasOwnProperty("comparison")) - $root.flyteidl.core.ComparisonExpression.encode(message.comparison, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); + if (message.tag != null && message.hasOwnProperty("tag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tag); return writer; }; /** - * Decodes a BooleanExpression message from the specified reader or buffer. + * Decodes a Binary message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.BooleanExpression + * @memberof flyteidl.core.Binary * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BooleanExpression} BooleanExpression + * @returns {flyteidl.core.Binary} Binary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BooleanExpression.decode = function decode(reader, length) { + Binary.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BooleanExpression(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binary(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.conjunction = $root.flyteidl.core.ConjunctionExpression.decode(reader, reader.uint32()); + message.value = reader.bytes(); break; case 2: - message.comparison = $root.flyteidl.core.ComparisonExpression.decode(reader, reader.uint32()); + message.tag = reader.string(); break; default: reader.skipType(tag & 7); @@ -6573,61 +6939,47 @@ }; /** - * Verifies a BooleanExpression message. + * Verifies a Binary message. * @function verify - * @memberof flyteidl.core.BooleanExpression + * @memberof flyteidl.core.Binary * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BooleanExpression.verify = function verify(message) { + Binary.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.conjunction != null && message.hasOwnProperty("conjunction")) { - properties.expr = 1; - { - var error = $root.flyteidl.core.ConjunctionExpression.verify(message.conjunction); - if (error) - return "conjunction." + error; - } - } - if (message.comparison != null && message.hasOwnProperty("comparison")) { - if (properties.expr === 1) - return "expr: multiple values"; - properties.expr = 1; - { - var error = $root.flyteidl.core.ComparisonExpression.verify(message.comparison); - if (error) - return "comparison." + error; - } - } + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; return null; }; - return BooleanExpression; + return Binary; })(); - core.ConjunctionExpression = (function() { + core.Schema = (function() { /** - * Properties of a ConjunctionExpression. + * Properties of a Schema. * @memberof flyteidl.core - * @interface IConjunctionExpression - * @property {flyteidl.core.ConjunctionExpression.LogicalOperator|null} [operator] ConjunctionExpression operator - * @property {flyteidl.core.IBooleanExpression|null} [leftExpression] ConjunctionExpression leftExpression - * @property {flyteidl.core.IBooleanExpression|null} [rightExpression] ConjunctionExpression rightExpression + * @interface ISchema + * @property {string|null} [uri] Schema uri + * @property {flyteidl.core.ISchemaType|null} [type] Schema type */ /** - * Constructs a new ConjunctionExpression. + * Constructs a new Schema. * @memberof flyteidl.core - * @classdesc Represents a ConjunctionExpression. - * @implements IConjunctionExpression + * @classdesc Represents a Schema. + * @implements ISchema * @constructor - * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set + * @param {flyteidl.core.ISchema=} [properties] Properties to set */ - function ConjunctionExpression(properties) { + function Schema(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6635,88 +6987,75 @@ } /** - * ConjunctionExpression operator. - * @member {flyteidl.core.ConjunctionExpression.LogicalOperator} operator - * @memberof flyteidl.core.ConjunctionExpression - * @instance - */ - ConjunctionExpression.prototype.operator = 0; - - /** - * ConjunctionExpression leftExpression. - * @member {flyteidl.core.IBooleanExpression|null|undefined} leftExpression - * @memberof flyteidl.core.ConjunctionExpression + * Schema uri. + * @member {string} uri + * @memberof flyteidl.core.Schema * @instance */ - ConjunctionExpression.prototype.leftExpression = null; + Schema.prototype.uri = ""; /** - * ConjunctionExpression rightExpression. - * @member {flyteidl.core.IBooleanExpression|null|undefined} rightExpression - * @memberof flyteidl.core.ConjunctionExpression + * Schema type. + * @member {flyteidl.core.ISchemaType|null|undefined} type + * @memberof flyteidl.core.Schema * @instance */ - ConjunctionExpression.prototype.rightExpression = null; + Schema.prototype.type = null; /** - * Creates a new ConjunctionExpression instance using the specified properties. + * Creates a new Schema instance using the specified properties. * @function create - * @memberof flyteidl.core.ConjunctionExpression + * @memberof flyteidl.core.Schema * @static - * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set - * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression instance + * @param {flyteidl.core.ISchema=} [properties] Properties to set + * @returns {flyteidl.core.Schema} Schema instance */ - ConjunctionExpression.create = function create(properties) { - return new ConjunctionExpression(properties); + Schema.create = function create(properties) { + return new Schema(properties); }; /** - * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. + * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. * @function encode - * @memberof flyteidl.core.ConjunctionExpression + * @memberof flyteidl.core.Schema * @static - * @param {flyteidl.core.IConjunctionExpression} message ConjunctionExpression message or plain object to encode + * @param {flyteidl.core.ISchema} message Schema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConjunctionExpression.encode = function encode(message, writer) { + Schema.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.operator != null && message.hasOwnProperty("operator")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); - if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) - $root.flyteidl.core.BooleanExpression.encode(message.leftExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) - $root.flyteidl.core.BooleanExpression.encode(message.rightExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.SchemaType.encode(message.type, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Decodes a ConjunctionExpression message from the specified reader or buffer. + * Decodes a Schema message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.ConjunctionExpression + * @memberof flyteidl.core.Schema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression + * @returns {flyteidl.core.Schema} Schema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConjunctionExpression.decode = function decode(reader, length) { + Schema.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConjunctionExpression(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Schema(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.operator = reader.int32(); - break; - case 2: - message.leftExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + message.uri = reader.string(); break; case 3: - message.rightExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + message.type = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6727,77 +7066,49 @@ }; /** - * Verifies a ConjunctionExpression message. + * Verifies a Schema message. * @function verify - * @memberof flyteidl.core.ConjunctionExpression + * @memberof flyteidl.core.Schema * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConjunctionExpression.verify = function verify(message) { + Schema.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.operator != null && message.hasOwnProperty("operator")) - switch (message.operator) { - default: - return "operator: enum value expected"; - case 0: - case 1: - break; - } - if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) { - var error = $root.flyteidl.core.BooleanExpression.verify(message.leftExpression); - if (error) - return "leftExpression." + error; - } - if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) { - var error = $root.flyteidl.core.BooleanExpression.verify(message.rightExpression); + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.SchemaType.verify(message.type); if (error) - return "rightExpression." + error; + return "type." + error; } return null; }; - /** - * LogicalOperator enum. - * @name flyteidl.core.ConjunctionExpression.LogicalOperator - * @enum {string} - * @property {number} AND=0 AND value - * @property {number} OR=1 OR value - */ - ConjunctionExpression.LogicalOperator = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AND"] = 0; - values[valuesById[1] = "OR"] = 1; - return values; - })(); - - return ConjunctionExpression; + return Schema; })(); - core.Primitive = (function() { + core.Union = (function() { /** - * Properties of a Primitive. + * Properties of an Union. * @memberof flyteidl.core - * @interface IPrimitive - * @property {Long|null} [integer] Primitive integer - * @property {number|null} [floatValue] Primitive floatValue - * @property {string|null} [stringValue] Primitive stringValue - * @property {boolean|null} [boolean] Primitive boolean - * @property {google.protobuf.ITimestamp|null} [datetime] Primitive datetime - * @property {google.protobuf.IDuration|null} [duration] Primitive duration + * @interface IUnion + * @property {flyteidl.core.ILiteral|null} [value] Union value + * @property {flyteidl.core.ILiteralType|null} [type] Union type */ /** - * Constructs a new Primitive. + * Constructs a new Union. * @memberof flyteidl.core - * @classdesc Represents a Primitive. - * @implements IPrimitive + * @classdesc Represents an Union. + * @implements IUnion * @constructor - * @param {flyteidl.core.IPrimitive=} [properties] Properties to set + * @param {flyteidl.core.IUnion=} [properties] Properties to set */ - function Primitive(properties) { + function Union(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6805,141 +7116,75 @@ } /** - * Primitive integer. - * @member {Long} integer - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.integer = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Primitive floatValue. - * @member {number} floatValue - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.floatValue = 0; - - /** - * Primitive stringValue. - * @member {string} stringValue - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.stringValue = ""; - - /** - * Primitive boolean. - * @member {boolean} boolean - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.boolean = false; - - /** - * Primitive datetime. - * @member {google.protobuf.ITimestamp|null|undefined} datetime - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.datetime = null; - - /** - * Primitive duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.core.Primitive + * Union value. + * @member {flyteidl.core.ILiteral|null|undefined} value + * @memberof flyteidl.core.Union * @instance */ - Primitive.prototype.duration = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Union.prototype.value = null; /** - * Primitive value. - * @member {"integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"|undefined} value - * @memberof flyteidl.core.Primitive + * Union type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.core.Union * @instance */ - Object.defineProperty(Primitive.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["integer", "floatValue", "stringValue", "boolean", "datetime", "duration"]), - set: $util.oneOfSetter($oneOfFields) - }); + Union.prototype.type = null; /** - * Creates a new Primitive instance using the specified properties. + * Creates a new Union instance using the specified properties. * @function create - * @memberof flyteidl.core.Primitive + * @memberof flyteidl.core.Union * @static - * @param {flyteidl.core.IPrimitive=} [properties] Properties to set - * @returns {flyteidl.core.Primitive} Primitive instance + * @param {flyteidl.core.IUnion=} [properties] Properties to set + * @returns {flyteidl.core.Union} Union instance */ - Primitive.create = function create(properties) { - return new Primitive(properties); + Union.create = function create(properties) { + return new Union(properties); }; /** - * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. + * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Primitive + * @memberof flyteidl.core.Union * @static - * @param {flyteidl.core.IPrimitive} message Primitive message or plain object to encode + * @param {flyteidl.core.IUnion} message Union message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Primitive.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.integer != null && message.hasOwnProperty("integer")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.integer); - if (message.floatValue != null && message.hasOwnProperty("floatValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.floatValue); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); - if (message.boolean != null && message.hasOwnProperty("boolean")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolean); - if (message.datetime != null && message.hasOwnProperty("datetime")) - $root.google.protobuf.Timestamp.encode(message.datetime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + Union.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a Primitive message from the specified reader or buffer. + * Decodes an Union message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Primitive + * @memberof flyteidl.core.Union * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Primitive} Primitive + * @returns {flyteidl.core.Union} Union * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Primitive.decode = function decode(reader, length) { + Union.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Primitive(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Union(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.integer = reader.int64(); + message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); break; case 2: - message.floatValue = reader.double(); - break; - case 3: - message.stringValue = reader.string(); - break; - case 4: - message.boolean = reader.bool(); - break; - case 5: - message.datetime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6950,86 +7195,50 @@ }; /** - * Verifies a Primitive message. + * Verifies an Union message. * @function verify - * @memberof flyteidl.core.Primitive + * @memberof flyteidl.core.Union * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Primitive.verify = function verify(message) { + Union.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.integer != null && message.hasOwnProperty("integer")) { - properties.value = 1; - if (!$util.isInteger(message.integer) && !(message.integer && $util.isInteger(message.integer.low) && $util.isInteger(message.integer.high))) - return "integer: integer|Long expected"; - } - if (message.floatValue != null && message.hasOwnProperty("floatValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.floatValue !== "number") - return "floatValue: number expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.boolean != null && message.hasOwnProperty("boolean")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.boolean !== "boolean") - return "boolean: boolean expected"; - } - if (message.datetime != null && message.hasOwnProperty("datetime")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.protobuf.Timestamp.verify(message.datetime); - if (error) - return "datetime." + error; - } + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.flyteidl.core.Literal.verify(message.value); + if (error) + return "value." + error; } - if (message.duration != null && message.hasOwnProperty("duration")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; } return null; }; - return Primitive; + return Union; })(); - core.Void = (function() { + core.StructuredDatasetMetadata = (function() { /** - * Properties of a Void. + * Properties of a StructuredDatasetMetadata. * @memberof flyteidl.core - * @interface IVoid + * @interface IStructuredDatasetMetadata + * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] StructuredDatasetMetadata structuredDatasetType */ /** - * Constructs a new Void. + * Constructs a new StructuredDatasetMetadata. * @memberof flyteidl.core - * @classdesc Represents a Void. - * @implements IVoid + * @classdesc Represents a StructuredDatasetMetadata. + * @implements IStructuredDatasetMetadata * @constructor - * @param {flyteidl.core.IVoid=} [properties] Properties to set + * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set */ - function Void(properties) { + function StructuredDatasetMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7037,50 +7246,63 @@ } /** - * Creates a new Void instance using the specified properties. + * StructuredDatasetMetadata structuredDatasetType. + * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType + * @memberof flyteidl.core.StructuredDatasetMetadata + * @instance + */ + StructuredDatasetMetadata.prototype.structuredDatasetType = null; + + /** + * Creates a new StructuredDatasetMetadata instance using the specified properties. * @function create - * @memberof flyteidl.core.Void + * @memberof flyteidl.core.StructuredDatasetMetadata * @static - * @param {flyteidl.core.IVoid=} [properties] Properties to set - * @returns {flyteidl.core.Void} Void instance + * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata instance */ - Void.create = function create(properties) { - return new Void(properties); + StructuredDatasetMetadata.create = function create(properties) { + return new StructuredDatasetMetadata(properties); }; /** - * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. + * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Void + * @memberof flyteidl.core.StructuredDatasetMetadata * @static - * @param {flyteidl.core.IVoid} message Void message or plain object to encode + * @param {flyteidl.core.IStructuredDatasetMetadata} message StructuredDatasetMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Void.encode = function encode(message, writer) { + StructuredDatasetMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) + $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a Void message from the specified reader or buffer. + * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Void + * @memberof flyteidl.core.StructuredDatasetMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Void} Void + * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Void.decode = function decode(reader, length) { + StructuredDatasetMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Void(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -7090,41 +7312,46 @@ }; /** - * Verifies a Void message. + * Verifies a StructuredDatasetMetadata message. * @function verify - * @memberof flyteidl.core.Void + * @memberof flyteidl.core.StructuredDatasetMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Void.verify = function verify(message) { + StructuredDatasetMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { + var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); + if (error) + return "structuredDatasetType." + error; + } return null; }; - return Void; + return StructuredDatasetMetadata; })(); - core.Blob = (function() { + core.StructuredDataset = (function() { /** - * Properties of a Blob. + * Properties of a StructuredDataset. * @memberof flyteidl.core - * @interface IBlob - * @property {flyteidl.core.IBlobMetadata|null} [metadata] Blob metadata - * @property {string|null} [uri] Blob uri + * @interface IStructuredDataset + * @property {string|null} [uri] StructuredDataset uri + * @property {flyteidl.core.IStructuredDatasetMetadata|null} [metadata] StructuredDataset metadata */ /** - * Constructs a new Blob. + * Constructs a new StructuredDataset. * @memberof flyteidl.core - * @classdesc Represents a Blob. - * @implements IBlob + * @classdesc Represents a StructuredDataset. + * @implements IStructuredDataset * @constructor - * @param {flyteidl.core.IBlob=} [properties] Properties to set + * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set */ - function Blob(properties) { + function StructuredDataset(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7132,76 +7359,76 @@ } /** - * Blob metadata. - * @member {flyteidl.core.IBlobMetadata|null|undefined} metadata - * @memberof flyteidl.core.Blob + * StructuredDataset uri. + * @member {string} uri + * @memberof flyteidl.core.StructuredDataset * @instance */ - Blob.prototype.metadata = null; + StructuredDataset.prototype.uri = ""; /** - * Blob uri. - * @member {string} uri - * @memberof flyteidl.core.Blob + * StructuredDataset metadata. + * @member {flyteidl.core.IStructuredDatasetMetadata|null|undefined} metadata + * @memberof flyteidl.core.StructuredDataset * @instance */ - Blob.prototype.uri = ""; + StructuredDataset.prototype.metadata = null; /** - * Creates a new Blob instance using the specified properties. + * Creates a new StructuredDataset instance using the specified properties. * @function create - * @memberof flyteidl.core.Blob + * @memberof flyteidl.core.StructuredDataset * @static - * @param {flyteidl.core.IBlob=} [properties] Properties to set - * @returns {flyteidl.core.Blob} Blob instance + * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDataset} StructuredDataset instance */ - Blob.create = function create(properties) { - return new Blob(properties); + StructuredDataset.create = function create(properties) { + return new StructuredDataset(properties); }; /** - * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. + * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Blob + * @memberof flyteidl.core.StructuredDataset * @static - * @param {flyteidl.core.IBlob} message Blob message or plain object to encode + * @param {flyteidl.core.IStructuredDataset} message StructuredDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Blob.encode = function encode(message, writer) { + StructuredDataset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.BlobMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.StructuredDatasetMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a Blob message from the specified reader or buffer. + * Decodes a StructuredDataset message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Blob + * @memberof flyteidl.core.StructuredDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Blob} Blob + * @returns {flyteidl.core.StructuredDataset} StructuredDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Blob.decode = function decode(reader, length) { + StructuredDataset.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Blob(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDataset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.metadata = $root.flyteidl.core.BlobMetadata.decode(reader, reader.uint32()); - break; - case 3: message.uri = reader.string(); break; + case 2: + message.metadata = $root.flyteidl.core.StructuredDatasetMetadata.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -7211,48 +7438,56 @@ }; /** - * Verifies a Blob message. + * Verifies a StructuredDataset message. * @function verify - * @memberof flyteidl.core.Blob + * @memberof flyteidl.core.StructuredDataset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Blob.verify = function verify(message) { + StructuredDataset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.BlobMetadata.verify(message.metadata); + var error = $root.flyteidl.core.StructuredDatasetMetadata.verify(message.metadata); if (error) return "metadata." + error; } - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; return null; }; - return Blob; + return StructuredDataset; })(); - core.BlobMetadata = (function() { + core.Scalar = (function() { /** - * Properties of a BlobMetadata. + * Properties of a Scalar. * @memberof flyteidl.core - * @interface IBlobMetadata - * @property {flyteidl.core.IBlobType|null} [type] BlobMetadata type + * @interface IScalar + * @property {flyteidl.core.IPrimitive|null} [primitive] Scalar primitive + * @property {flyteidl.core.IBlob|null} [blob] Scalar blob + * @property {flyteidl.core.IBinary|null} [binary] Scalar binary + * @property {flyteidl.core.ISchema|null} [schema] Scalar schema + * @property {flyteidl.core.IVoid|null} [noneType] Scalar noneType + * @property {flyteidl.core.IError|null} [error] Scalar error + * @property {google.protobuf.IStruct|null} [generic] Scalar generic + * @property {flyteidl.core.IStructuredDataset|null} [structuredDataset] Scalar structuredDataset + * @property {flyteidl.core.IUnion|null} [union] Scalar union */ /** - * Constructs a new BlobMetadata. + * Constructs a new Scalar. * @memberof flyteidl.core - * @classdesc Represents a BlobMetadata. - * @implements IBlobMetadata + * @classdesc Represents a Scalar. + * @implements IScalar * @constructor - * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set + * @param {flyteidl.core.IScalar=} [properties] Properties to set */ - function BlobMetadata(properties) { + function Scalar(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7260,112 +7495,318 @@ } /** - * BlobMetadata type. - * @member {flyteidl.core.IBlobType|null|undefined} type - * @memberof flyteidl.core.BlobMetadata + * Scalar primitive. + * @member {flyteidl.core.IPrimitive|null|undefined} primitive + * @memberof flyteidl.core.Scalar * @instance */ - BlobMetadata.prototype.type = null; + Scalar.prototype.primitive = null; /** - * Creates a new BlobMetadata instance using the specified properties. + * Scalar blob. + * @member {flyteidl.core.IBlob|null|undefined} blob + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.blob = null; + + /** + * Scalar binary. + * @member {flyteidl.core.IBinary|null|undefined} binary + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.binary = null; + + /** + * Scalar schema. + * @member {flyteidl.core.ISchema|null|undefined} schema + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.schema = null; + + /** + * Scalar noneType. + * @member {flyteidl.core.IVoid|null|undefined} noneType + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.noneType = null; + + /** + * Scalar error. + * @member {flyteidl.core.IError|null|undefined} error + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.error = null; + + /** + * Scalar generic. + * @member {google.protobuf.IStruct|null|undefined} generic + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.generic = null; + + /** + * Scalar structuredDataset. + * @member {flyteidl.core.IStructuredDataset|null|undefined} structuredDataset + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.structuredDataset = null; + + /** + * Scalar union. + * @member {flyteidl.core.IUnion|null|undefined} union + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.union = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Scalar value. + * @member {"primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"|undefined} value + * @memberof flyteidl.core.Scalar + * @instance + */ + Object.defineProperty(Scalar.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["primitive", "blob", "binary", "schema", "noneType", "error", "generic", "structuredDataset", "union"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Scalar instance using the specified properties. * @function create - * @memberof flyteidl.core.BlobMetadata + * @memberof flyteidl.core.Scalar * @static - * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set - * @returns {flyteidl.core.BlobMetadata} BlobMetadata instance + * @param {flyteidl.core.IScalar=} [properties] Properties to set + * @returns {flyteidl.core.Scalar} Scalar instance */ - BlobMetadata.create = function create(properties) { - return new BlobMetadata(properties); + Scalar.create = function create(properties) { + return new Scalar(properties); }; /** - * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. + * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. * @function encode - * @memberof flyteidl.core.BlobMetadata + * @memberof flyteidl.core.Scalar * @static - * @param {flyteidl.core.IBlobMetadata} message BlobMetadata message or plain object to encode + * @param {flyteidl.core.IScalar} message Scalar message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BlobMetadata.encode = function encode(message, writer) { + Scalar.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.BlobType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.primitive != null && message.hasOwnProperty("primitive")) + $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.blob != null && message.hasOwnProperty("blob")) + $root.flyteidl.core.Blob.encode(message.blob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.binary != null && message.hasOwnProperty("binary")) + $root.flyteidl.core.Binary.encode(message.binary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.schema != null && message.hasOwnProperty("schema")) + $root.flyteidl.core.Schema.encode(message.schema, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.noneType != null && message.hasOwnProperty("noneType")) + $root.flyteidl.core.Void.encode(message.noneType, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.generic != null && message.hasOwnProperty("generic")) + $root.google.protobuf.Struct.encode(message.generic, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) + $root.flyteidl.core.StructuredDataset.encode(message.structuredDataset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.union != null && message.hasOwnProperty("union")) + $root.flyteidl.core.Union.encode(message.union, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; /** - * Decodes a BlobMetadata message from the specified reader or buffer. + * Decodes a Scalar message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.BlobMetadata + * @memberof flyteidl.core.Scalar * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BlobMetadata} BlobMetadata + * @returns {flyteidl.core.Scalar} Scalar * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BlobMetadata.decode = function decode(reader, length) { + Scalar.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Scalar(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); + message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); + break; + case 2: + message.blob = $root.flyteidl.core.Blob.decode(reader, reader.uint32()); + break; + case 3: + message.binary = $root.flyteidl.core.Binary.decode(reader, reader.uint32()); + break; + case 4: + message.schema = $root.flyteidl.core.Schema.decode(reader, reader.uint32()); + break; + case 5: + message.noneType = $root.flyteidl.core.Void.decode(reader, reader.uint32()); + break; + case 6: + message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); + break; + case 7: + message.generic = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 8: + message.structuredDataset = $root.flyteidl.core.StructuredDataset.decode(reader, reader.uint32()); + break; + case 9: + message.union = $root.flyteidl.core.Union.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); break; } } - return message; - }; - - /** - * Verifies a BlobMetadata message. - * @function verify - * @memberof flyteidl.core.BlobMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BlobMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.BlobType.verify(message.type); - if (error) - return "type." + error; + return message; + }; + + /** + * Verifies a Scalar message. + * @function verify + * @memberof flyteidl.core.Scalar + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Scalar.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.primitive != null && message.hasOwnProperty("primitive")) { + properties.value = 1; + { + var error = $root.flyteidl.core.Primitive.verify(message.primitive); + if (error) + return "primitive." + error; + } + } + if (message.blob != null && message.hasOwnProperty("blob")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Blob.verify(message.blob); + if (error) + return "blob." + error; + } + } + if (message.binary != null && message.hasOwnProperty("binary")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Binary.verify(message.binary); + if (error) + return "binary." + error; + } + } + if (message.schema != null && message.hasOwnProperty("schema")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Schema.verify(message.schema); + if (error) + return "schema." + error; + } + } + if (message.noneType != null && message.hasOwnProperty("noneType")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Void.verify(message.noneType); + if (error) + return "noneType." + error; + } + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Error.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.generic != null && message.hasOwnProperty("generic")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.protobuf.Struct.verify(message.generic); + if (error) + return "generic." + error; + } + } + if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.StructuredDataset.verify(message.structuredDataset); + if (error) + return "structuredDataset." + error; + } + } + if (message.union != null && message.hasOwnProperty("union")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Union.verify(message.union); + if (error) + return "union." + error; + } } return null; }; - return BlobMetadata; + return Scalar; })(); - core.Binary = (function() { + core.Literal = (function() { /** - * Properties of a Binary. + * Properties of a Literal. * @memberof flyteidl.core - * @interface IBinary - * @property {Uint8Array|null} [value] Binary value - * @property {string|null} [tag] Binary tag + * @interface ILiteral + * @property {flyteidl.core.IScalar|null} [scalar] Literal scalar + * @property {flyteidl.core.ILiteralCollection|null} [collection] Literal collection + * @property {flyteidl.core.ILiteralMap|null} [map] Literal map + * @property {string|null} [hash] Literal hash + * @property {Object.|null} [metadata] Literal metadata */ /** - * Constructs a new Binary. + * Constructs a new Literal. * @memberof flyteidl.core - * @classdesc Represents a Binary. - * @implements IBinary + * @classdesc Represents a Literal. + * @implements ILiteral * @constructor - * @param {flyteidl.core.IBinary=} [properties] Properties to set + * @param {flyteidl.core.ILiteral=} [properties] Properties to set */ - function Binary(properties) { + function Literal(properties) { + this.metadata = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7373,75 +7814,134 @@ } /** - * Binary value. - * @member {Uint8Array} value - * @memberof flyteidl.core.Binary + * Literal scalar. + * @member {flyteidl.core.IScalar|null|undefined} scalar + * @memberof flyteidl.core.Literal * @instance */ - Binary.prototype.value = $util.newBuffer([]); + Literal.prototype.scalar = null; /** - * Binary tag. - * @member {string} tag - * @memberof flyteidl.core.Binary + * Literal collection. + * @member {flyteidl.core.ILiteralCollection|null|undefined} collection + * @memberof flyteidl.core.Literal * @instance */ - Binary.prototype.tag = ""; + Literal.prototype.collection = null; /** - * Creates a new Binary instance using the specified properties. + * Literal map. + * @member {flyteidl.core.ILiteralMap|null|undefined} map + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.map = null; + + /** + * Literal hash. + * @member {string} hash + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.hash = ""; + + /** + * Literal metadata. + * @member {Object.} metadata + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.metadata = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Literal value. + * @member {"scalar"|"collection"|"map"|undefined} value + * @memberof flyteidl.core.Literal + * @instance + */ + Object.defineProperty(Literal.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "map"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Literal instance using the specified properties. * @function create - * @memberof flyteidl.core.Binary + * @memberof flyteidl.core.Literal * @static - * @param {flyteidl.core.IBinary=} [properties] Properties to set - * @returns {flyteidl.core.Binary} Binary instance + * @param {flyteidl.core.ILiteral=} [properties] Properties to set + * @returns {flyteidl.core.Literal} Literal instance */ - Binary.create = function create(properties) { - return new Binary(properties); + Literal.create = function create(properties) { + return new Literal(properties); }; /** - * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. + * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Binary + * @memberof flyteidl.core.Literal * @static - * @param {flyteidl.core.IBinary} message Binary message or plain object to encode + * @param {flyteidl.core.ILiteral} message Literal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Binary.encode = function encode(message, writer) { + Literal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); - if (message.tag != null && message.hasOwnProperty("tag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tag); + if (message.scalar != null && message.hasOwnProperty("scalar")) + $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.collection != null && message.hasOwnProperty("collection")) + $root.flyteidl.core.LiteralCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.map != null && message.hasOwnProperty("map")) + $root.flyteidl.core.LiteralMap.encode(message.map, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.hash != null && message.hasOwnProperty("hash")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.hash); + if (message.metadata != null && message.hasOwnProperty("metadata")) + for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim(); return writer; }; /** - * Decodes a Binary message from the specified reader or buffer. + * Decodes a Literal message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Binary + * @memberof flyteidl.core.Literal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Binary} Binary + * @returns {flyteidl.core.Literal} Literal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Binary.decode = function decode(reader, length) { + Literal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binary(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Literal(), key; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.value = reader.bytes(); + message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); break; case 2: - message.tag = reader.string(); + message.collection = $root.flyteidl.core.LiteralCollection.decode(reader, reader.uint32()); + break; + case 3: + message.map = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.hash = reader.string(); + break; + case 5: + reader.skip().pos++; + if (message.metadata === $util.emptyObject) + message.metadata = {}; + key = reader.string(); + reader.pos++; + message.metadata[key] = reader.string(); break; default: reader.skipType(tag & 7); @@ -7452,47 +7952,81 @@ }; /** - * Verifies a Binary message. + * Verifies a Literal message. * @function verify - * @memberof flyteidl.core.Binary + * @memberof flyteidl.core.Literal * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Binary.verify = function verify(message) { + Literal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; + var properties = {}; + if (message.scalar != null && message.hasOwnProperty("scalar")) { + properties.value = 1; + { + var error = $root.flyteidl.core.Scalar.verify(message.scalar); + if (error) + return "scalar." + error; + } + } + if (message.collection != null && message.hasOwnProperty("collection")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.LiteralCollection.verify(message.collection); + if (error) + return "collection." + error; + } + } + if (message.map != null && message.hasOwnProperty("map")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.map); + if (error) + return "map." + error; + } + } + if (message.hash != null && message.hasOwnProperty("hash")) + if (!$util.isString(message.hash)) + return "hash: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + if (!$util.isObject(message.metadata)) + return "metadata: object expected"; + var key = Object.keys(message.metadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.metadata[key[i]])) + return "metadata: string{k:string} expected"; + } return null; }; - return Binary; + return Literal; })(); - core.Schema = (function() { + core.LiteralCollection = (function() { /** - * Properties of a Schema. + * Properties of a LiteralCollection. * @memberof flyteidl.core - * @interface ISchema - * @property {string|null} [uri] Schema uri - * @property {flyteidl.core.ISchemaType|null} [type] Schema type + * @interface ILiteralCollection + * @property {Array.|null} [literals] LiteralCollection literals */ /** - * Constructs a new Schema. + * Constructs a new LiteralCollection. * @memberof flyteidl.core - * @classdesc Represents a Schema. - * @implements ISchema + * @classdesc Represents a LiteralCollection. + * @implements ILiteralCollection * @constructor - * @param {flyteidl.core.ISchema=} [properties] Properties to set + * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set */ - function Schema(properties) { + function LiteralCollection(properties) { + this.literals = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7500,75 +8034,65 @@ } /** - * Schema uri. - * @member {string} uri - * @memberof flyteidl.core.Schema - * @instance - */ - Schema.prototype.uri = ""; - - /** - * Schema type. - * @member {flyteidl.core.ISchemaType|null|undefined} type - * @memberof flyteidl.core.Schema + * LiteralCollection literals. + * @member {Array.} literals + * @memberof flyteidl.core.LiteralCollection * @instance */ - Schema.prototype.type = null; + LiteralCollection.prototype.literals = $util.emptyArray; /** - * Creates a new Schema instance using the specified properties. + * Creates a new LiteralCollection instance using the specified properties. * @function create - * @memberof flyteidl.core.Schema + * @memberof flyteidl.core.LiteralCollection * @static - * @param {flyteidl.core.ISchema=} [properties] Properties to set - * @returns {flyteidl.core.Schema} Schema instance + * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set + * @returns {flyteidl.core.LiteralCollection} LiteralCollection instance */ - Schema.create = function create(properties) { - return new Schema(properties); + LiteralCollection.create = function create(properties) { + return new LiteralCollection(properties); }; /** - * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. + * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Schema + * @memberof flyteidl.core.LiteralCollection * @static - * @param {flyteidl.core.ISchema} message Schema message or plain object to encode + * @param {flyteidl.core.ILiteralCollection} message LiteralCollection message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Schema.encode = function encode(message, writer) { + LiteralCollection.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.SchemaType.encode(message.type, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.literals != null && message.literals.length) + for (var i = 0; i < message.literals.length; ++i) + $root.flyteidl.core.Literal.encode(message.literals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a Schema message from the specified reader or buffer. + * Decodes a LiteralCollection message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Schema + * @memberof flyteidl.core.LiteralCollection * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Schema} Schema + * @returns {flyteidl.core.LiteralCollection} LiteralCollection * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Schema.decode = function decode(reader, length) { + LiteralCollection.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Schema(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralCollection(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.uri = reader.string(); - break; - case 3: - message.type = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); + if (!(message.literals && message.literals.length)) + message.literals = []; + message.literals.push($root.flyteidl.core.Literal.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -7579,49 +8103,50 @@ }; /** - * Verifies a Schema message. + * Verifies a LiteralCollection message. * @function verify - * @memberof flyteidl.core.Schema + * @memberof flyteidl.core.LiteralCollection * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Schema.verify = function verify(message) { + LiteralCollection.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.SchemaType.verify(message.type); - if (error) - return "type." + error; + if (message.literals != null && message.hasOwnProperty("literals")) { + if (!Array.isArray(message.literals)) + return "literals: array expected"; + for (var i = 0; i < message.literals.length; ++i) { + var error = $root.flyteidl.core.Literal.verify(message.literals[i]); + if (error) + return "literals." + error; + } } return null; }; - return Schema; + return LiteralCollection; })(); - core.Union = (function() { + core.LiteralMap = (function() { /** - * Properties of an Union. + * Properties of a LiteralMap. * @memberof flyteidl.core - * @interface IUnion - * @property {flyteidl.core.ILiteral|null} [value] Union value - * @property {flyteidl.core.ILiteralType|null} [type] Union type + * @interface ILiteralMap + * @property {Object.|null} [literals] LiteralMap literals */ /** - * Constructs a new Union. + * Constructs a new LiteralMap. * @memberof flyteidl.core - * @classdesc Represents an Union. - * @implements IUnion + * @classdesc Represents a LiteralMap. + * @implements ILiteralMap * @constructor - * @param {flyteidl.core.IUnion=} [properties] Properties to set + * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set */ - function Union(properties) { + function LiteralMap(properties) { + this.literals = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7629,75 +8154,70 @@ } /** - * Union value. - * @member {flyteidl.core.ILiteral|null|undefined} value - * @memberof flyteidl.core.Union - * @instance - */ - Union.prototype.value = null; - - /** - * Union type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.core.Union + * LiteralMap literals. + * @member {Object.} literals + * @memberof flyteidl.core.LiteralMap * @instance */ - Union.prototype.type = null; + LiteralMap.prototype.literals = $util.emptyObject; /** - * Creates a new Union instance using the specified properties. + * Creates a new LiteralMap instance using the specified properties. * @function create - * @memberof flyteidl.core.Union + * @memberof flyteidl.core.LiteralMap * @static - * @param {flyteidl.core.IUnion=} [properties] Properties to set - * @returns {flyteidl.core.Union} Union instance + * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set + * @returns {flyteidl.core.LiteralMap} LiteralMap instance */ - Union.create = function create(properties) { - return new Union(properties); + LiteralMap.create = function create(properties) { + return new LiteralMap(properties); }; /** - * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. + * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Union + * @memberof flyteidl.core.LiteralMap * @static - * @param {flyteidl.core.IUnion} message Union message or plain object to encode + * @param {flyteidl.core.ILiteralMap} message LiteralMap message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Union.encode = function encode(message, writer) { + LiteralMap.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.literals != null && message.hasOwnProperty("literals")) + for (var keys = Object.keys(message.literals), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Literal.encode(message.literals[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Decodes an Union message from the specified reader or buffer. + * Decodes a LiteralMap message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Union + * @memberof flyteidl.core.LiteralMap * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Union} Union + * @returns {flyteidl.core.LiteralMap} LiteralMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Union.decode = function decode(reader, length) { + LiteralMap.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Union(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralMap(), key; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - case 2: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + reader.skip().pos++; + if (message.literals === $util.emptyObject) + message.literals = {}; + key = reader.string(); + reader.pos++; + message.literals[key] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -7708,50 +8228,51 @@ }; /** - * Verifies an Union message. + * Verifies a LiteralMap message. * @function verify - * @memberof flyteidl.core.Union + * @memberof flyteidl.core.LiteralMap * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Union.verify = function verify(message) { + LiteralMap.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.flyteidl.core.Literal.verify(message.value); - if (error) - return "value." + error; - } - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; + if (message.literals != null && message.hasOwnProperty("literals")) { + if (!$util.isObject(message.literals)) + return "literals: object expected"; + var key = Object.keys(message.literals); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.Literal.verify(message.literals[key[i]]); + if (error) + return "literals." + error; + } } return null; }; - return Union; + return LiteralMap; })(); - core.StructuredDatasetMetadata = (function() { + core.BindingDataCollection = (function() { /** - * Properties of a StructuredDatasetMetadata. + * Properties of a BindingDataCollection. * @memberof flyteidl.core - * @interface IStructuredDatasetMetadata - * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] StructuredDatasetMetadata structuredDatasetType + * @interface IBindingDataCollection + * @property {Array.|null} [bindings] BindingDataCollection bindings */ /** - * Constructs a new StructuredDatasetMetadata. + * Constructs a new BindingDataCollection. * @memberof flyteidl.core - * @classdesc Represents a StructuredDatasetMetadata. - * @implements IStructuredDatasetMetadata + * @classdesc Represents a BindingDataCollection. + * @implements IBindingDataCollection * @constructor - * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set + * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set */ - function StructuredDatasetMetadata(properties) { + function BindingDataCollection(properties) { + this.bindings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7759,62 +8280,65 @@ } /** - * StructuredDatasetMetadata structuredDatasetType. - * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType - * @memberof flyteidl.core.StructuredDatasetMetadata + * BindingDataCollection bindings. + * @member {Array.} bindings + * @memberof flyteidl.core.BindingDataCollection * @instance */ - StructuredDatasetMetadata.prototype.structuredDatasetType = null; + BindingDataCollection.prototype.bindings = $util.emptyArray; /** - * Creates a new StructuredDatasetMetadata instance using the specified properties. + * Creates a new BindingDataCollection instance using the specified properties. * @function create - * @memberof flyteidl.core.StructuredDatasetMetadata + * @memberof flyteidl.core.BindingDataCollection * @static - * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata instance + * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set + * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection instance */ - StructuredDatasetMetadata.create = function create(properties) { - return new StructuredDatasetMetadata(properties); + BindingDataCollection.create = function create(properties) { + return new BindingDataCollection(properties); }; /** - * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. + * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. * @function encode - * @memberof flyteidl.core.StructuredDatasetMetadata + * @memberof flyteidl.core.BindingDataCollection * @static - * @param {flyteidl.core.IStructuredDatasetMetadata} message StructuredDatasetMetadata message or plain object to encode + * @param {flyteidl.core.IBindingDataCollection} message BindingDataCollection message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StructuredDatasetMetadata.encode = function encode(message, writer) { + BindingDataCollection.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) - $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.bindings != null && message.bindings.length) + for (var i = 0; i < message.bindings.length; ++i) + $root.flyteidl.core.BindingData.encode(message.bindings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. + * Decodes a BindingDataCollection message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.StructuredDatasetMetadata + * @memberof flyteidl.core.BindingDataCollection * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata + * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StructuredDatasetMetadata.decode = function decode(reader, length) { + BindingDataCollection.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataCollection(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); + if (!(message.bindings && message.bindings.length)) + message.bindings = []; + message.bindings.push($root.flyteidl.core.BindingData.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -7825,46 +8349,50 @@ }; /** - * Verifies a StructuredDatasetMetadata message. + * Verifies a BindingDataCollection message. * @function verify - * @memberof flyteidl.core.StructuredDatasetMetadata + * @memberof flyteidl.core.BindingDataCollection * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StructuredDatasetMetadata.verify = function verify(message) { + BindingDataCollection.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { - var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); - if (error) - return "structuredDatasetType." + error; + if (message.bindings != null && message.hasOwnProperty("bindings")) { + if (!Array.isArray(message.bindings)) + return "bindings: array expected"; + for (var i = 0; i < message.bindings.length; ++i) { + var error = $root.flyteidl.core.BindingData.verify(message.bindings[i]); + if (error) + return "bindings." + error; + } } return null; }; - return StructuredDatasetMetadata; + return BindingDataCollection; })(); - core.StructuredDataset = (function() { + core.BindingDataMap = (function() { /** - * Properties of a StructuredDataset. + * Properties of a BindingDataMap. * @memberof flyteidl.core - * @interface IStructuredDataset - * @property {string|null} [uri] StructuredDataset uri - * @property {flyteidl.core.IStructuredDatasetMetadata|null} [metadata] StructuredDataset metadata + * @interface IBindingDataMap + * @property {Object.|null} [bindings] BindingDataMap bindings */ /** - * Constructs a new StructuredDataset. + * Constructs a new BindingDataMap. * @memberof flyteidl.core - * @classdesc Represents a StructuredDataset. - * @implements IStructuredDataset + * @classdesc Represents a BindingDataMap. + * @implements IBindingDataMap * @constructor - * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set + * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set */ - function StructuredDataset(properties) { + function BindingDataMap(properties) { + this.bindings = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7872,75 +8400,70 @@ } /** - * StructuredDataset uri. - * @member {string} uri - * @memberof flyteidl.core.StructuredDataset - * @instance - */ - StructuredDataset.prototype.uri = ""; - - /** - * StructuredDataset metadata. - * @member {flyteidl.core.IStructuredDatasetMetadata|null|undefined} metadata - * @memberof flyteidl.core.StructuredDataset + * BindingDataMap bindings. + * @member {Object.} bindings + * @memberof flyteidl.core.BindingDataMap * @instance */ - StructuredDataset.prototype.metadata = null; + BindingDataMap.prototype.bindings = $util.emptyObject; /** - * Creates a new StructuredDataset instance using the specified properties. + * Creates a new BindingDataMap instance using the specified properties. * @function create - * @memberof flyteidl.core.StructuredDataset + * @memberof flyteidl.core.BindingDataMap * @static - * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDataset} StructuredDataset instance + * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set + * @returns {flyteidl.core.BindingDataMap} BindingDataMap instance */ - StructuredDataset.create = function create(properties) { - return new StructuredDataset(properties); + BindingDataMap.create = function create(properties) { + return new BindingDataMap(properties); }; /** - * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. + * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. * @function encode - * @memberof flyteidl.core.StructuredDataset + * @memberof flyteidl.core.BindingDataMap * @static - * @param {flyteidl.core.IStructuredDataset} message StructuredDataset message or plain object to encode + * @param {flyteidl.core.IBindingDataMap} message BindingDataMap message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StructuredDataset.encode = function encode(message, writer) { + BindingDataMap.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.StructuredDatasetMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.bindings != null && message.hasOwnProperty("bindings")) + for (var keys = Object.keys(message.bindings), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.BindingData.encode(message.bindings[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Decodes a StructuredDataset message from the specified reader or buffer. + * Decodes a BindingDataMap message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.StructuredDataset + * @memberof flyteidl.core.BindingDataMap * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDataset} StructuredDataset + * @returns {flyteidl.core.BindingDataMap} BindingDataMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StructuredDataset.decode = function decode(reader, length) { + BindingDataMap.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDataset(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataMap(), key; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.uri = reader.string(); - break; - case 2: - message.metadata = $root.flyteidl.core.StructuredDatasetMetadata.decode(reader, reader.uint32()); + reader.skip().pos++; + if (message.bindings === $util.emptyObject) + message.bindings = {}; + key = reader.string(); + reader.pos++; + message.bindings[key] = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -7951,56 +8474,50 @@ }; /** - * Verifies a StructuredDataset message. + * Verifies a BindingDataMap message. * @function verify - * @memberof flyteidl.core.StructuredDataset + * @memberof flyteidl.core.BindingDataMap * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StructuredDataset.verify = function verify(message) { + BindingDataMap.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.StructuredDatasetMetadata.verify(message.metadata); - if (error) - return "metadata." + error; + if (message.bindings != null && message.hasOwnProperty("bindings")) { + if (!$util.isObject(message.bindings)) + return "bindings: object expected"; + var key = Object.keys(message.bindings); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.BindingData.verify(message.bindings[key[i]]); + if (error) + return "bindings." + error; + } } return null; }; - return StructuredDataset; + return BindingDataMap; })(); - core.Scalar = (function() { + core.UnionInfo = (function() { /** - * Properties of a Scalar. + * Properties of an UnionInfo. * @memberof flyteidl.core - * @interface IScalar - * @property {flyteidl.core.IPrimitive|null} [primitive] Scalar primitive - * @property {flyteidl.core.IBlob|null} [blob] Scalar blob - * @property {flyteidl.core.IBinary|null} [binary] Scalar binary - * @property {flyteidl.core.ISchema|null} [schema] Scalar schema - * @property {flyteidl.core.IVoid|null} [noneType] Scalar noneType - * @property {flyteidl.core.IError|null} [error] Scalar error - * @property {google.protobuf.IStruct|null} [generic] Scalar generic - * @property {flyteidl.core.IStructuredDataset|null} [structuredDataset] Scalar structuredDataset - * @property {flyteidl.core.IUnion|null} [union] Scalar union + * @interface IUnionInfo + * @property {flyteidl.core.ILiteralType|null} [targetType] UnionInfo targetType */ /** - * Constructs a new Scalar. + * Constructs a new UnionInfo. * @memberof flyteidl.core - * @classdesc Represents a Scalar. - * @implements IScalar + * @classdesc Represents an UnionInfo. + * @implements IUnionInfo * @constructor - * @param {flyteidl.core.IScalar=} [properties] Properties to set + * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set */ - function Scalar(properties) { + function UnionInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8008,180 +8525,62 @@ } /** - * Scalar primitive. - * @member {flyteidl.core.IPrimitive|null|undefined} primitive - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.primitive = null; - - /** - * Scalar blob. - * @member {flyteidl.core.IBlob|null|undefined} blob - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.blob = null; - - /** - * Scalar binary. - * @member {flyteidl.core.IBinary|null|undefined} binary - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.binary = null; - - /** - * Scalar schema. - * @member {flyteidl.core.ISchema|null|undefined} schema - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.schema = null; - - /** - * Scalar noneType. - * @member {flyteidl.core.IVoid|null|undefined} noneType - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.noneType = null; - - /** - * Scalar error. - * @member {flyteidl.core.IError|null|undefined} error - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.error = null; - - /** - * Scalar generic. - * @member {google.protobuf.IStruct|null|undefined} generic - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.generic = null; - - /** - * Scalar structuredDataset. - * @member {flyteidl.core.IStructuredDataset|null|undefined} structuredDataset - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.structuredDataset = null; - - /** - * Scalar union. - * @member {flyteidl.core.IUnion|null|undefined} union - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.union = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Scalar value. - * @member {"primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"|undefined} value - * @memberof flyteidl.core.Scalar + * UnionInfo targetType. + * @member {flyteidl.core.ILiteralType|null|undefined} targetType + * @memberof flyteidl.core.UnionInfo * @instance */ - Object.defineProperty(Scalar.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["primitive", "blob", "binary", "schema", "noneType", "error", "generic", "structuredDataset", "union"]), - set: $util.oneOfSetter($oneOfFields) - }); + UnionInfo.prototype.targetType = null; /** - * Creates a new Scalar instance using the specified properties. + * Creates a new UnionInfo instance using the specified properties. * @function create - * @memberof flyteidl.core.Scalar + * @memberof flyteidl.core.UnionInfo * @static - * @param {flyteidl.core.IScalar=} [properties] Properties to set - * @returns {flyteidl.core.Scalar} Scalar instance + * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set + * @returns {flyteidl.core.UnionInfo} UnionInfo instance */ - Scalar.create = function create(properties) { - return new Scalar(properties); + UnionInfo.create = function create(properties) { + return new UnionInfo(properties); }; /** - * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. + * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Scalar + * @memberof flyteidl.core.UnionInfo * @static - * @param {flyteidl.core.IScalar} message Scalar message or plain object to encode + * @param {flyteidl.core.IUnionInfo} message UnionInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Scalar.encode = function encode(message, writer) { + UnionInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.primitive != null && message.hasOwnProperty("primitive")) - $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.blob != null && message.hasOwnProperty("blob")) - $root.flyteidl.core.Blob.encode(message.blob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.binary != null && message.hasOwnProperty("binary")) - $root.flyteidl.core.Binary.encode(message.binary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.schema != null && message.hasOwnProperty("schema")) - $root.flyteidl.core.Schema.encode(message.schema, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.noneType != null && message.hasOwnProperty("noneType")) - $root.flyteidl.core.Void.encode(message.noneType, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.generic != null && message.hasOwnProperty("generic")) - $root.google.protobuf.Struct.encode(message.generic, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) - $root.flyteidl.core.StructuredDataset.encode(message.structuredDataset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.union != null && message.hasOwnProperty("union")) - $root.flyteidl.core.Union.encode(message.union, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.targetType != null && message.hasOwnProperty("targetType")) + $root.flyteidl.core.LiteralType.encode(message.targetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a Scalar message from the specified reader or buffer. + * Decodes an UnionInfo message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Scalar + * @memberof flyteidl.core.UnionInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Scalar} Scalar + * @returns {flyteidl.core.UnionInfo} UnionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Scalar.decode = function decode(reader, length) { + UnionInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Scalar(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); - break; - case 2: - message.blob = $root.flyteidl.core.Blob.decode(reader, reader.uint32()); - break; - case 3: - message.binary = $root.flyteidl.core.Binary.decode(reader, reader.uint32()); - break; - case 4: - message.schema = $root.flyteidl.core.Schema.decode(reader, reader.uint32()); - break; - case 5: - message.noneType = $root.flyteidl.core.Void.decode(reader, reader.uint32()); - break; - case 6: - message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); - break; - case 7: - message.generic = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 8: - message.structuredDataset = $root.flyteidl.core.StructuredDataset.decode(reader, reader.uint32()); - break; - case 9: - message.union = $root.flyteidl.core.Union.decode(reader, reader.uint32()); + message.targetType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -8192,134 +8591,49 @@ }; /** - * Verifies a Scalar message. + * Verifies an UnionInfo message. * @function verify - * @memberof flyteidl.core.Scalar + * @memberof flyteidl.core.UnionInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Scalar.verify = function verify(message) { + UnionInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.primitive != null && message.hasOwnProperty("primitive")) { - properties.value = 1; - { - var error = $root.flyteidl.core.Primitive.verify(message.primitive); - if (error) - return "primitive." + error; - } - } - if (message.blob != null && message.hasOwnProperty("blob")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Blob.verify(message.blob); - if (error) - return "blob." + error; - } - } - if (message.binary != null && message.hasOwnProperty("binary")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Binary.verify(message.binary); - if (error) - return "binary." + error; - } - } - if (message.schema != null && message.hasOwnProperty("schema")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Schema.verify(message.schema); - if (error) - return "schema." + error; - } - } - if (message.noneType != null && message.hasOwnProperty("noneType")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Void.verify(message.noneType); - if (error) - return "noneType." + error; - } - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Error.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.generic != null && message.hasOwnProperty("generic")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.protobuf.Struct.verify(message.generic); - if (error) - return "generic." + error; - } - } - if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.StructuredDataset.verify(message.structuredDataset); - if (error) - return "structuredDataset." + error; - } - } - if (message.union != null && message.hasOwnProperty("union")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Union.verify(message.union); - if (error) - return "union." + error; - } + if (message.targetType != null && message.hasOwnProperty("targetType")) { + var error = $root.flyteidl.core.LiteralType.verify(message.targetType); + if (error) + return "targetType." + error; } return null; }; - return Scalar; + return UnionInfo; })(); - core.Literal = (function() { + core.BindingData = (function() { /** - * Properties of a Literal. + * Properties of a BindingData. * @memberof flyteidl.core - * @interface ILiteral - * @property {flyteidl.core.IScalar|null} [scalar] Literal scalar - * @property {flyteidl.core.ILiteralCollection|null} [collection] Literal collection - * @property {flyteidl.core.ILiteralMap|null} [map] Literal map - * @property {string|null} [hash] Literal hash - * @property {Object.|null} [metadata] Literal metadata + * @interface IBindingData + * @property {flyteidl.core.IScalar|null} [scalar] BindingData scalar + * @property {flyteidl.core.IBindingDataCollection|null} [collection] BindingData collection + * @property {flyteidl.core.IOutputReference|null} [promise] BindingData promise + * @property {flyteidl.core.IBindingDataMap|null} [map] BindingData map + * @property {flyteidl.core.IUnionInfo|null} [union] BindingData union */ /** - * Constructs a new Literal. + * Constructs a new BindingData. * @memberof flyteidl.core - * @classdesc Represents a Literal. - * @implements ILiteral + * @classdesc Represents a BindingData. + * @implements IBindingData * @constructor - * @param {flyteidl.core.ILiteral=} [properties] Properties to set + * @param {flyteidl.core.IBindingData=} [properties] Properties to set */ - function Literal(properties) { - this.metadata = {}; + function BindingData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8327,112 +8641,111 @@ } /** - * Literal scalar. + * BindingData scalar. * @member {flyteidl.core.IScalar|null|undefined} scalar - * @memberof flyteidl.core.Literal + * @memberof flyteidl.core.BindingData * @instance */ - Literal.prototype.scalar = null; + BindingData.prototype.scalar = null; /** - * Literal collection. - * @member {flyteidl.core.ILiteralCollection|null|undefined} collection - * @memberof flyteidl.core.Literal + * BindingData collection. + * @member {flyteidl.core.IBindingDataCollection|null|undefined} collection + * @memberof flyteidl.core.BindingData * @instance */ - Literal.prototype.collection = null; + BindingData.prototype.collection = null; /** - * Literal map. - * @member {flyteidl.core.ILiteralMap|null|undefined} map - * @memberof flyteidl.core.Literal + * BindingData promise. + * @member {flyteidl.core.IOutputReference|null|undefined} promise + * @memberof flyteidl.core.BindingData * @instance */ - Literal.prototype.map = null; + BindingData.prototype.promise = null; /** - * Literal hash. - * @member {string} hash - * @memberof flyteidl.core.Literal + * BindingData map. + * @member {flyteidl.core.IBindingDataMap|null|undefined} map + * @memberof flyteidl.core.BindingData * @instance */ - Literal.prototype.hash = ""; + BindingData.prototype.map = null; /** - * Literal metadata. - * @member {Object.} metadata - * @memberof flyteidl.core.Literal + * BindingData union. + * @member {flyteidl.core.IUnionInfo|null|undefined} union + * @memberof flyteidl.core.BindingData * @instance */ - Literal.prototype.metadata = $util.emptyObject; + BindingData.prototype.union = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * Literal value. - * @member {"scalar"|"collection"|"map"|undefined} value - * @memberof flyteidl.core.Literal + * BindingData value. + * @member {"scalar"|"collection"|"promise"|"map"|undefined} value + * @memberof flyteidl.core.BindingData * @instance */ - Object.defineProperty(Literal.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "map"]), + Object.defineProperty(BindingData.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "promise", "map"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new Literal instance using the specified properties. + * Creates a new BindingData instance using the specified properties. * @function create - * @memberof flyteidl.core.Literal + * @memberof flyteidl.core.BindingData * @static - * @param {flyteidl.core.ILiteral=} [properties] Properties to set - * @returns {flyteidl.core.Literal} Literal instance + * @param {flyteidl.core.IBindingData=} [properties] Properties to set + * @returns {flyteidl.core.BindingData} BindingData instance */ - Literal.create = function create(properties) { - return new Literal(properties); + BindingData.create = function create(properties) { + return new BindingData(properties); }; /** - * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. + * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Literal + * @memberof flyteidl.core.BindingData * @static - * @param {flyteidl.core.ILiteral} message Literal message or plain object to encode + * @param {flyteidl.core.IBindingData} message BindingData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Literal.encode = function encode(message, writer) { + BindingData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.scalar != null && message.hasOwnProperty("scalar")) $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.collection != null && message.hasOwnProperty("collection")) - $root.flyteidl.core.LiteralCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.flyteidl.core.BindingDataCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.promise != null && message.hasOwnProperty("promise")) + $root.flyteidl.core.OutputReference.encode(message.promise, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.map != null && message.hasOwnProperty("map")) - $root.flyteidl.core.LiteralMap.encode(message.map, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.hash != null && message.hasOwnProperty("hash")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.hash); - if (message.metadata != null && message.hasOwnProperty("metadata")) - for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim(); + $root.flyteidl.core.BindingDataMap.encode(message.map, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.union != null && message.hasOwnProperty("union")) + $root.flyteidl.core.UnionInfo.encode(message.union, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Decodes a Literal message from the specified reader or buffer. + * Decodes a BindingData message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Literal + * @memberof flyteidl.core.BindingData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Literal} Literal + * @returns {flyteidl.core.BindingData} BindingData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Literal.decode = function decode(reader, length) { + BindingData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Literal(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8440,21 +8753,16 @@ message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); break; case 2: - message.collection = $root.flyteidl.core.LiteralCollection.decode(reader, reader.uint32()); + message.collection = $root.flyteidl.core.BindingDataCollection.decode(reader, reader.uint32()); break; case 3: - message.map = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + message.promise = $root.flyteidl.core.OutputReference.decode(reader, reader.uint32()); break; case 4: - message.hash = reader.string(); + message.map = $root.flyteidl.core.BindingDataMap.decode(reader, reader.uint32()); break; case 5: - reader.skip().pos++; - if (message.metadata === $util.emptyObject) - message.metadata = {}; - key = reader.string(); - reader.pos++; - message.metadata[key] = reader.string(); + message.union = $root.flyteidl.core.UnionInfo.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -8465,14 +8773,14 @@ }; /** - * Verifies a Literal message. + * Verifies a BindingData message. * @function verify - * @memberof flyteidl.core.Literal + * @memberof flyteidl.core.BindingData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Literal.verify = function verify(message) { + BindingData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -8489,57 +8797,61 @@ return "value: multiple values"; properties.value = 1; { - var error = $root.flyteidl.core.LiteralCollection.verify(message.collection); + var error = $root.flyteidl.core.BindingDataCollection.verify(message.collection); if (error) return "collection." + error; } } + if (message.promise != null && message.hasOwnProperty("promise")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.OutputReference.verify(message.promise); + if (error) + return "promise." + error; + } + } if (message.map != null && message.hasOwnProperty("map")) { if (properties.value === 1) return "value: multiple values"; properties.value = 1; { - var error = $root.flyteidl.core.LiteralMap.verify(message.map); + var error = $root.flyteidl.core.BindingDataMap.verify(message.map); if (error) return "map." + error; } } - if (message.hash != null && message.hasOwnProperty("hash")) - if (!$util.isString(message.hash)) - return "hash: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - if (!$util.isObject(message.metadata)) - return "metadata: object expected"; - var key = Object.keys(message.metadata); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.metadata[key[i]])) - return "metadata: string{k:string} expected"; + if (message.union != null && message.hasOwnProperty("union")) { + var error = $root.flyteidl.core.UnionInfo.verify(message.union); + if (error) + return "union." + error; } return null; }; - return Literal; + return BindingData; })(); - core.LiteralCollection = (function() { + core.Binding = (function() { /** - * Properties of a LiteralCollection. + * Properties of a Binding. * @memberof flyteidl.core - * @interface ILiteralCollection - * @property {Array.|null} [literals] LiteralCollection literals + * @interface IBinding + * @property {string|null} ["var"] Binding var + * @property {flyteidl.core.IBindingData|null} [binding] Binding binding */ /** - * Constructs a new LiteralCollection. + * Constructs a new Binding. * @memberof flyteidl.core - * @classdesc Represents a LiteralCollection. - * @implements ILiteralCollection + * @classdesc Represents a Binding. + * @implements IBinding * @constructor - * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set + * @param {flyteidl.core.IBinding=} [properties] Properties to set */ - function LiteralCollection(properties) { - this.literals = []; + function Binding(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8547,190 +8859,75 @@ } /** - * LiteralCollection literals. - * @member {Array.} literals - * @memberof flyteidl.core.LiteralCollection + * Binding var. + * @member {string} var + * @memberof flyteidl.core.Binding * @instance */ - LiteralCollection.prototype.literals = $util.emptyArray; - - /** - * Creates a new LiteralCollection instance using the specified properties. - * @function create - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set - * @returns {flyteidl.core.LiteralCollection} LiteralCollection instance - */ - LiteralCollection.create = function create(properties) { - return new LiteralCollection(properties); - }; - - /** - * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {flyteidl.core.ILiteralCollection} message LiteralCollection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LiteralCollection.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.literals != null && message.literals.length) - for (var i = 0; i < message.literals.length; ++i) - $root.flyteidl.core.Literal.encode(message.literals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LiteralCollection message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LiteralCollection} LiteralCollection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LiteralCollection.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralCollection(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.literals && message.literals.length)) - message.literals = []; - message.literals.push($root.flyteidl.core.Literal.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LiteralCollection message. - * @function verify - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LiteralCollection.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.literals != null && message.hasOwnProperty("literals")) { - if (!Array.isArray(message.literals)) - return "literals: array expected"; - for (var i = 0; i < message.literals.length; ++i) { - var error = $root.flyteidl.core.Literal.verify(message.literals[i]); - if (error) - return "literals." + error; - } - } - return null; - }; - - return LiteralCollection; - })(); - - core.LiteralMap = (function() { - - /** - * Properties of a LiteralMap. - * @memberof flyteidl.core - * @interface ILiteralMap - * @property {Object.|null} [literals] LiteralMap literals - */ - - /** - * Constructs a new LiteralMap. - * @memberof flyteidl.core - * @classdesc Represents a LiteralMap. - * @implements ILiteralMap - * @constructor - * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set - */ - function LiteralMap(properties) { - this.literals = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Binding.prototype["var"] = ""; /** - * LiteralMap literals. - * @member {Object.} literals - * @memberof flyteidl.core.LiteralMap + * Binding binding. + * @member {flyteidl.core.IBindingData|null|undefined} binding + * @memberof flyteidl.core.Binding * @instance */ - LiteralMap.prototype.literals = $util.emptyObject; + Binding.prototype.binding = null; /** - * Creates a new LiteralMap instance using the specified properties. + * Creates a new Binding instance using the specified properties. * @function create - * @memberof flyteidl.core.LiteralMap + * @memberof flyteidl.core.Binding * @static - * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set - * @returns {flyteidl.core.LiteralMap} LiteralMap instance + * @param {flyteidl.core.IBinding=} [properties] Properties to set + * @returns {flyteidl.core.Binding} Binding instance */ - LiteralMap.create = function create(properties) { - return new LiteralMap(properties); + Binding.create = function create(properties) { + return new Binding(properties); }; /** - * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. + * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. * @function encode - * @memberof flyteidl.core.LiteralMap + * @memberof flyteidl.core.Binding * @static - * @param {flyteidl.core.ILiteralMap} message LiteralMap message or plain object to encode + * @param {flyteidl.core.IBinding} message Binding message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LiteralMap.encode = function encode(message, writer) { + Binding.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.literals != null && message.hasOwnProperty("literals")) - for (var keys = Object.keys(message.literals), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.Literal.encode(message.literals[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); + if (message.binding != null && message.hasOwnProperty("binding")) + $root.flyteidl.core.BindingData.encode(message.binding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a LiteralMap message from the specified reader or buffer. + * Decodes a Binding message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.LiteralMap + * @memberof flyteidl.core.Binding * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LiteralMap} LiteralMap + * @returns {flyteidl.core.Binding} Binding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LiteralMap.decode = function decode(reader, length) { + Binding.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralMap(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binding(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - reader.skip().pos++; - if (message.literals === $util.emptyObject) - message.literals = {}; - key = reader.string(); - reader.pos++; - message.literals[key] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + message["var"] = reader.string(); + break; + case 2: + message.binding = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -8741,51 +8938,49 @@ }; /** - * Verifies a LiteralMap message. + * Verifies a Binding message. * @function verify - * @memberof flyteidl.core.LiteralMap + * @memberof flyteidl.core.Binding * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LiteralMap.verify = function verify(message) { + Binding.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.literals != null && message.hasOwnProperty("literals")) { - if (!$util.isObject(message.literals)) - return "literals: object expected"; - var key = Object.keys(message.literals); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.Literal.verify(message.literals[key[i]]); - if (error) - return "literals." + error; - } + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + if (message.binding != null && message.hasOwnProperty("binding")) { + var error = $root.flyteidl.core.BindingData.verify(message.binding); + if (error) + return "binding." + error; } return null; }; - return LiteralMap; + return Binding; })(); - core.BindingDataCollection = (function() { + core.KeyValuePair = (function() { /** - * Properties of a BindingDataCollection. + * Properties of a KeyValuePair. * @memberof flyteidl.core - * @interface IBindingDataCollection - * @property {Array.|null} [bindings] BindingDataCollection bindings + * @interface IKeyValuePair + * @property {string|null} [key] KeyValuePair key + * @property {string|null} [value] KeyValuePair value */ /** - * Constructs a new BindingDataCollection. + * Constructs a new KeyValuePair. * @memberof flyteidl.core - * @classdesc Represents a BindingDataCollection. - * @implements IBindingDataCollection + * @classdesc Represents a KeyValuePair. + * @implements IKeyValuePair * @constructor - * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set + * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set */ - function BindingDataCollection(properties) { - this.bindings = []; + function KeyValuePair(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8793,65 +8988,75 @@ } /** - * BindingDataCollection bindings. - * @member {Array.} bindings - * @memberof flyteidl.core.BindingDataCollection + * KeyValuePair key. + * @member {string} key + * @memberof flyteidl.core.KeyValuePair * @instance */ - BindingDataCollection.prototype.bindings = $util.emptyArray; + KeyValuePair.prototype.key = ""; /** - * Creates a new BindingDataCollection instance using the specified properties. + * KeyValuePair value. + * @member {string} value + * @memberof flyteidl.core.KeyValuePair + * @instance + */ + KeyValuePair.prototype.value = ""; + + /** + * Creates a new KeyValuePair instance using the specified properties. * @function create - * @memberof flyteidl.core.BindingDataCollection + * @memberof flyteidl.core.KeyValuePair * @static - * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set - * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection instance + * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set + * @returns {flyteidl.core.KeyValuePair} KeyValuePair instance */ - BindingDataCollection.create = function create(properties) { - return new BindingDataCollection(properties); + KeyValuePair.create = function create(properties) { + return new KeyValuePair(properties); }; /** - * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. + * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. * @function encode - * @memberof flyteidl.core.BindingDataCollection + * @memberof flyteidl.core.KeyValuePair * @static - * @param {flyteidl.core.IBindingDataCollection} message BindingDataCollection message or plain object to encode + * @param {flyteidl.core.IKeyValuePair} message KeyValuePair message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BindingDataCollection.encode = function encode(message, writer) { + KeyValuePair.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bindings != null && message.bindings.length) - for (var i = 0; i < message.bindings.length; ++i) - $root.flyteidl.core.BindingData.encode(message.bindings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.key != null && message.hasOwnProperty("key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); return writer; }; /** - * Decodes a BindingDataCollection message from the specified reader or buffer. + * Decodes a KeyValuePair message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.BindingDataCollection + * @memberof flyteidl.core.KeyValuePair * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection + * @returns {flyteidl.core.KeyValuePair} KeyValuePair * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BindingDataCollection.decode = function decode(reader, length) { + KeyValuePair.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataCollection(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.KeyValuePair(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.bindings && message.bindings.length)) - message.bindings = []; - message.bindings.push($root.flyteidl.core.BindingData.decode(reader, reader.uint32())); + message.key = reader.string(); + break; + case 2: + message.value = reader.string(); break; default: reader.skipType(tag & 7); @@ -8862,50 +9067,46 @@ }; /** - * Verifies a BindingDataCollection message. + * Verifies a KeyValuePair message. * @function verify - * @memberof flyteidl.core.BindingDataCollection + * @memberof flyteidl.core.KeyValuePair * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BindingDataCollection.verify = function verify(message) { + KeyValuePair.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.bindings != null && message.hasOwnProperty("bindings")) { - if (!Array.isArray(message.bindings)) - return "bindings: array expected"; - for (var i = 0; i < message.bindings.length; ++i) { - var error = $root.flyteidl.core.BindingData.verify(message.bindings[i]); - if (error) - return "bindings." + error; - } - } + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; return null; }; - return BindingDataCollection; + return KeyValuePair; })(); - core.BindingDataMap = (function() { + core.RetryStrategy = (function() { /** - * Properties of a BindingDataMap. + * Properties of a RetryStrategy. * @memberof flyteidl.core - * @interface IBindingDataMap - * @property {Object.|null} [bindings] BindingDataMap bindings + * @interface IRetryStrategy + * @property {number|null} [retries] RetryStrategy retries */ /** - * Constructs a new BindingDataMap. + * Constructs a new RetryStrategy. * @memberof flyteidl.core - * @classdesc Represents a BindingDataMap. - * @implements IBindingDataMap + * @classdesc Represents a RetryStrategy. + * @implements IRetryStrategy * @constructor - * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set + * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set */ - function BindingDataMap(properties) { - this.bindings = {}; + function RetryStrategy(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8913,70 +9114,62 @@ } /** - * BindingDataMap bindings. - * @member {Object.} bindings - * @memberof flyteidl.core.BindingDataMap + * RetryStrategy retries. + * @member {number} retries + * @memberof flyteidl.core.RetryStrategy * @instance */ - BindingDataMap.prototype.bindings = $util.emptyObject; + RetryStrategy.prototype.retries = 0; /** - * Creates a new BindingDataMap instance using the specified properties. + * Creates a new RetryStrategy instance using the specified properties. * @function create - * @memberof flyteidl.core.BindingDataMap + * @memberof flyteidl.core.RetryStrategy * @static - * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set - * @returns {flyteidl.core.BindingDataMap} BindingDataMap instance + * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set + * @returns {flyteidl.core.RetryStrategy} RetryStrategy instance */ - BindingDataMap.create = function create(properties) { - return new BindingDataMap(properties); + RetryStrategy.create = function create(properties) { + return new RetryStrategy(properties); }; /** - * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. + * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. * @function encode - * @memberof flyteidl.core.BindingDataMap + * @memberof flyteidl.core.RetryStrategy * @static - * @param {flyteidl.core.IBindingDataMap} message BindingDataMap message or plain object to encode + * @param {flyteidl.core.IRetryStrategy} message RetryStrategy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BindingDataMap.encode = function encode(message, writer) { + RetryStrategy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bindings != null && message.hasOwnProperty("bindings")) - for (var keys = Object.keys(message.bindings), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.BindingData.encode(message.bindings[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.retries != null && message.hasOwnProperty("retries")) + writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.retries); return writer; }; /** - * Decodes a BindingDataMap message from the specified reader or buffer. + * Decodes a RetryStrategy message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.BindingDataMap + * @memberof flyteidl.core.RetryStrategy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BindingDataMap} BindingDataMap + * @returns {flyteidl.core.RetryStrategy} RetryStrategy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BindingDataMap.decode = function decode(reader, length) { + RetryStrategy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataMap(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RetryStrategy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.bindings === $util.emptyObject) - message.bindings = {}; - key = reader.string(); - reader.pos++; - message.bindings[key] = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); + case 5: + message.retries = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -8987,50 +9180,44 @@ }; /** - * Verifies a BindingDataMap message. + * Verifies a RetryStrategy message. * @function verify - * @memberof flyteidl.core.BindingDataMap + * @memberof flyteidl.core.RetryStrategy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BindingDataMap.verify = function verify(message) { + RetryStrategy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.bindings != null && message.hasOwnProperty("bindings")) { - if (!$util.isObject(message.bindings)) - return "bindings: object expected"; - var key = Object.keys(message.bindings); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.BindingData.verify(message.bindings[key[i]]); - if (error) - return "bindings." + error; - } - } + if (message.retries != null && message.hasOwnProperty("retries")) + if (!$util.isInteger(message.retries)) + return "retries: integer expected"; return null; }; - return BindingDataMap; + return RetryStrategy; })(); - core.UnionInfo = (function() { + core.IfBlock = (function() { /** - * Properties of an UnionInfo. + * Properties of an IfBlock. * @memberof flyteidl.core - * @interface IUnionInfo - * @property {flyteidl.core.ILiteralType|null} [targetType] UnionInfo targetType + * @interface IIfBlock + * @property {flyteidl.core.IBooleanExpression|null} [condition] IfBlock condition + * @property {flyteidl.core.INode|null} [thenNode] IfBlock thenNode */ /** - * Constructs a new UnionInfo. + * Constructs a new IfBlock. * @memberof flyteidl.core - * @classdesc Represents an UnionInfo. - * @implements IUnionInfo + * @classdesc Represents an IfBlock. + * @implements IIfBlock * @constructor - * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set + * @param {flyteidl.core.IIfBlock=} [properties] Properties to set */ - function UnionInfo(properties) { + function IfBlock(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9038,62 +9225,75 @@ } /** - * UnionInfo targetType. - * @member {flyteidl.core.ILiteralType|null|undefined} targetType - * @memberof flyteidl.core.UnionInfo + * IfBlock condition. + * @member {flyteidl.core.IBooleanExpression|null|undefined} condition + * @memberof flyteidl.core.IfBlock * @instance */ - UnionInfo.prototype.targetType = null; + IfBlock.prototype.condition = null; /** - * Creates a new UnionInfo instance using the specified properties. + * IfBlock thenNode. + * @member {flyteidl.core.INode|null|undefined} thenNode + * @memberof flyteidl.core.IfBlock + * @instance + */ + IfBlock.prototype.thenNode = null; + + /** + * Creates a new IfBlock instance using the specified properties. * @function create - * @memberof flyteidl.core.UnionInfo + * @memberof flyteidl.core.IfBlock * @static - * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set - * @returns {flyteidl.core.UnionInfo} UnionInfo instance + * @param {flyteidl.core.IIfBlock=} [properties] Properties to set + * @returns {flyteidl.core.IfBlock} IfBlock instance */ - UnionInfo.create = function create(properties) { - return new UnionInfo(properties); + IfBlock.create = function create(properties) { + return new IfBlock(properties); }; /** - * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. + * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. * @function encode - * @memberof flyteidl.core.UnionInfo + * @memberof flyteidl.core.IfBlock * @static - * @param {flyteidl.core.IUnionInfo} message UnionInfo message or plain object to encode + * @param {flyteidl.core.IIfBlock} message IfBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UnionInfo.encode = function encode(message, writer) { + IfBlock.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.targetType != null && message.hasOwnProperty("targetType")) - $root.flyteidl.core.LiteralType.encode(message.targetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.condition != null && message.hasOwnProperty("condition")) + $root.flyteidl.core.BooleanExpression.encode(message.condition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.thenNode != null && message.hasOwnProperty("thenNode")) + $root.flyteidl.core.Node.encode(message.thenNode, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes an UnionInfo message from the specified reader or buffer. + * Decodes an IfBlock message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.UnionInfo + * @memberof flyteidl.core.IfBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.UnionInfo} UnionInfo + * @returns {flyteidl.core.IfBlock} IfBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UnionInfo.decode = function decode(reader, length) { + IfBlock.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfBlock(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.targetType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + message.condition = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + break; + case 2: + message.thenNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9104,49 +9304,54 @@ }; /** - * Verifies an UnionInfo message. + * Verifies an IfBlock message. * @function verify - * @memberof flyteidl.core.UnionInfo + * @memberof flyteidl.core.IfBlock * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UnionInfo.verify = function verify(message) { + IfBlock.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.targetType != null && message.hasOwnProperty("targetType")) { - var error = $root.flyteidl.core.LiteralType.verify(message.targetType); + if (message.condition != null && message.hasOwnProperty("condition")) { + var error = $root.flyteidl.core.BooleanExpression.verify(message.condition); if (error) - return "targetType." + error; + return "condition." + error; + } + if (message.thenNode != null && message.hasOwnProperty("thenNode")) { + var error = $root.flyteidl.core.Node.verify(message.thenNode); + if (error) + return "thenNode." + error; } return null; }; - return UnionInfo; + return IfBlock; })(); - core.BindingData = (function() { + core.IfElseBlock = (function() { /** - * Properties of a BindingData. + * Properties of an IfElseBlock. * @memberof flyteidl.core - * @interface IBindingData - * @property {flyteidl.core.IScalar|null} [scalar] BindingData scalar - * @property {flyteidl.core.IBindingDataCollection|null} [collection] BindingData collection - * @property {flyteidl.core.IOutputReference|null} [promise] BindingData promise - * @property {flyteidl.core.IBindingDataMap|null} [map] BindingData map - * @property {flyteidl.core.IUnionInfo|null} [union] BindingData union + * @interface IIfElseBlock + * @property {flyteidl.core.IIfBlock|null} ["case"] IfElseBlock case + * @property {Array.|null} [other] IfElseBlock other + * @property {flyteidl.core.INode|null} [elseNode] IfElseBlock elseNode + * @property {flyteidl.core.IError|null} [error] IfElseBlock error */ /** - * Constructs a new BindingData. + * Constructs a new IfElseBlock. * @memberof flyteidl.core - * @classdesc Represents a BindingData. - * @implements IBindingData + * @classdesc Represents an IfElseBlock. + * @implements IIfElseBlock * @constructor - * @param {flyteidl.core.IBindingData=} [properties] Properties to set + * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set */ - function BindingData(properties) { + function IfElseBlock(properties) { + this.other = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9154,128 +9359,118 @@ } /** - * BindingData scalar. - * @member {flyteidl.core.IScalar|null|undefined} scalar - * @memberof flyteidl.core.BindingData - * @instance - */ - BindingData.prototype.scalar = null; - - /** - * BindingData collection. - * @member {flyteidl.core.IBindingDataCollection|null|undefined} collection - * @memberof flyteidl.core.BindingData + * IfElseBlock case. + * @member {flyteidl.core.IIfBlock|null|undefined} case + * @memberof flyteidl.core.IfElseBlock * @instance */ - BindingData.prototype.collection = null; + IfElseBlock.prototype["case"] = null; /** - * BindingData promise. - * @member {flyteidl.core.IOutputReference|null|undefined} promise - * @memberof flyteidl.core.BindingData + * IfElseBlock other. + * @member {Array.} other + * @memberof flyteidl.core.IfElseBlock * @instance */ - BindingData.prototype.promise = null; + IfElseBlock.prototype.other = $util.emptyArray; /** - * BindingData map. - * @member {flyteidl.core.IBindingDataMap|null|undefined} map - * @memberof flyteidl.core.BindingData + * IfElseBlock elseNode. + * @member {flyteidl.core.INode|null|undefined} elseNode + * @memberof flyteidl.core.IfElseBlock * @instance */ - BindingData.prototype.map = null; + IfElseBlock.prototype.elseNode = null; /** - * BindingData union. - * @member {flyteidl.core.IUnionInfo|null|undefined} union - * @memberof flyteidl.core.BindingData + * IfElseBlock error. + * @member {flyteidl.core.IError|null|undefined} error + * @memberof flyteidl.core.IfElseBlock * @instance */ - BindingData.prototype.union = null; + IfElseBlock.prototype.error = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * BindingData value. - * @member {"scalar"|"collection"|"promise"|"map"|undefined} value - * @memberof flyteidl.core.BindingData + * IfElseBlock default. + * @member {"elseNode"|"error"|undefined} default_ + * @memberof flyteidl.core.IfElseBlock * @instance */ - Object.defineProperty(BindingData.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "promise", "map"]), + Object.defineProperty(IfElseBlock.prototype, "default", { + get: $util.oneOfGetter($oneOfFields = ["elseNode", "error"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new BindingData instance using the specified properties. + * Creates a new IfElseBlock instance using the specified properties. * @function create - * @memberof flyteidl.core.BindingData + * @memberof flyteidl.core.IfElseBlock * @static - * @param {flyteidl.core.IBindingData=} [properties] Properties to set - * @returns {flyteidl.core.BindingData} BindingData instance + * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set + * @returns {flyteidl.core.IfElseBlock} IfElseBlock instance */ - BindingData.create = function create(properties) { - return new BindingData(properties); + IfElseBlock.create = function create(properties) { + return new IfElseBlock(properties); }; /** - * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. + * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. * @function encode - * @memberof flyteidl.core.BindingData + * @memberof flyteidl.core.IfElseBlock * @static - * @param {flyteidl.core.IBindingData} message BindingData message or plain object to encode + * @param {flyteidl.core.IIfElseBlock} message IfElseBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BindingData.encode = function encode(message, writer) { + IfElseBlock.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.scalar != null && message.hasOwnProperty("scalar")) - $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.collection != null && message.hasOwnProperty("collection")) - $root.flyteidl.core.BindingDataCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.promise != null && message.hasOwnProperty("promise")) - $root.flyteidl.core.OutputReference.encode(message.promise, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.map != null && message.hasOwnProperty("map")) - $root.flyteidl.core.BindingDataMap.encode(message.map, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.union != null && message.hasOwnProperty("union")) - $root.flyteidl.core.UnionInfo.encode(message.union, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message["case"] != null && message.hasOwnProperty("case")) + $root.flyteidl.core.IfBlock.encode(message["case"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.other != null && message.other.length) + for (var i = 0; i < message.other.length; ++i) + $root.flyteidl.core.IfBlock.encode(message.other[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.elseNode != null && message.hasOwnProperty("elseNode")) + $root.flyteidl.core.Node.encode(message.elseNode, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Decodes a BindingData message from the specified reader or buffer. + * Decodes an IfElseBlock message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.BindingData + * @memberof flyteidl.core.IfElseBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BindingData} BindingData + * @returns {flyteidl.core.IfElseBlock} IfElseBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BindingData.decode = function decode(reader, length) { + IfElseBlock.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfElseBlock(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); + message["case"] = $root.flyteidl.core.IfBlock.decode(reader, reader.uint32()); break; case 2: - message.collection = $root.flyteidl.core.BindingDataCollection.decode(reader, reader.uint32()); + if (!(message.other && message.other.length)) + message.other = []; + message.other.push($root.flyteidl.core.IfBlock.decode(reader, reader.uint32())); break; case 3: - message.promise = $root.flyteidl.core.OutputReference.decode(reader, reader.uint32()); + message.elseNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); break; case 4: - message.map = $root.flyteidl.core.BindingDataMap.decode(reader, reader.uint32()); - break; - case 5: - message.union = $root.flyteidl.core.UnionInfo.decode(reader, reader.uint32()); + message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9286,85 +9481,186 @@ }; /** - * Verifies a BindingData message. + * Verifies an IfElseBlock message. * @function verify - * @memberof flyteidl.core.BindingData + * @memberof flyteidl.core.IfElseBlock * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BindingData.verify = function verify(message) { + IfElseBlock.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.scalar != null && message.hasOwnProperty("scalar")) { - properties.value = 1; - { - var error = $root.flyteidl.core.Scalar.verify(message.scalar); + if (message["case"] != null && message.hasOwnProperty("case")) { + var error = $root.flyteidl.core.IfBlock.verify(message["case"]); + if (error) + return "case." + error; + } + if (message.other != null && message.hasOwnProperty("other")) { + if (!Array.isArray(message.other)) + return "other: array expected"; + for (var i = 0; i < message.other.length; ++i) { + var error = $root.flyteidl.core.IfBlock.verify(message.other[i]); if (error) - return "scalar." + error; + return "other." + error; } } - if (message.collection != null && message.hasOwnProperty("collection")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; + if (message.elseNode != null && message.hasOwnProperty("elseNode")) { + properties["default"] = 1; { - var error = $root.flyteidl.core.BindingDataCollection.verify(message.collection); + var error = $root.flyteidl.core.Node.verify(message.elseNode); if (error) - return "collection." + error; + return "elseNode." + error; } } - if (message.promise != null && message.hasOwnProperty("promise")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; + if (message.error != null && message.hasOwnProperty("error")) { + if (properties["default"] === 1) + return "default: multiple values"; + properties["default"] = 1; { - var error = $root.flyteidl.core.OutputReference.verify(message.promise); + var error = $root.flyteidl.core.Error.verify(message.error); if (error) - return "promise." + error; + return "error." + error; } } - if (message.map != null && message.hasOwnProperty("map")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.BindingDataMap.verify(message.map); - if (error) - return "map." + error; + return null; + }; + + return IfElseBlock; + })(); + + core.BranchNode = (function() { + + /** + * Properties of a BranchNode. + * @memberof flyteidl.core + * @interface IBranchNode + * @property {flyteidl.core.IIfElseBlock|null} [ifElse] BranchNode ifElse + */ + + /** + * Constructs a new BranchNode. + * @memberof flyteidl.core + * @classdesc Represents a BranchNode. + * @implements IBranchNode + * @constructor + * @param {flyteidl.core.IBranchNode=} [properties] Properties to set + */ + function BranchNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BranchNode ifElse. + * @member {flyteidl.core.IIfElseBlock|null|undefined} ifElse + * @memberof flyteidl.core.BranchNode + * @instance + */ + BranchNode.prototype.ifElse = null; + + /** + * Creates a new BranchNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.BranchNode + * @static + * @param {flyteidl.core.IBranchNode=} [properties] Properties to set + * @returns {flyteidl.core.BranchNode} BranchNode instance + */ + BranchNode.create = function create(properties) { + return new BranchNode(properties); + }; + + /** + * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BranchNode + * @static + * @param {flyteidl.core.IBranchNode} message BranchNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BranchNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ifElse != null && message.hasOwnProperty("ifElse")) + $root.flyteidl.core.IfElseBlock.encode(message.ifElse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BranchNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BranchNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BranchNode} BranchNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BranchNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BranchNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ifElse = $root.flyteidl.core.IfElseBlock.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } } - if (message.union != null && message.hasOwnProperty("union")) { - var error = $root.flyteidl.core.UnionInfo.verify(message.union); + return message; + }; + + /** + * Verifies a BranchNode message. + * @function verify + * @memberof flyteidl.core.BranchNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BranchNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ifElse != null && message.hasOwnProperty("ifElse")) { + var error = $root.flyteidl.core.IfElseBlock.verify(message.ifElse); if (error) - return "union." + error; + return "ifElse." + error; } return null; }; - return BindingData; + return BranchNode; })(); - core.Binding = (function() { + core.TaskNode = (function() { /** - * Properties of a Binding. + * Properties of a TaskNode. * @memberof flyteidl.core - * @interface IBinding - * @property {string|null} ["var"] Binding var - * @property {flyteidl.core.IBindingData|null} [binding] Binding binding + * @interface ITaskNode + * @property {flyteidl.core.IIdentifier|null} [referenceId] TaskNode referenceId + * @property {flyteidl.core.ITaskNodeOverrides|null} [overrides] TaskNode overrides */ /** - * Constructs a new Binding. + * Constructs a new TaskNode. * @memberof flyteidl.core - * @classdesc Represents a Binding. - * @implements IBinding + * @classdesc Represents a TaskNode. + * @implements ITaskNode * @constructor - * @param {flyteidl.core.IBinding=} [properties] Properties to set + * @param {flyteidl.core.ITaskNode=} [properties] Properties to set */ - function Binding(properties) { + function TaskNode(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9372,75 +9668,89 @@ } /** - * Binding var. - * @member {string} var - * @memberof flyteidl.core.Binding + * TaskNode referenceId. + * @member {flyteidl.core.IIdentifier|null|undefined} referenceId + * @memberof flyteidl.core.TaskNode * @instance */ - Binding.prototype["var"] = ""; + TaskNode.prototype.referenceId = null; /** - * Binding binding. - * @member {flyteidl.core.IBindingData|null|undefined} binding - * @memberof flyteidl.core.Binding + * TaskNode overrides. + * @member {flyteidl.core.ITaskNodeOverrides|null|undefined} overrides + * @memberof flyteidl.core.TaskNode * @instance */ - Binding.prototype.binding = null; + TaskNode.prototype.overrides = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new Binding instance using the specified properties. + * TaskNode reference. + * @member {"referenceId"|undefined} reference + * @memberof flyteidl.core.TaskNode + * @instance + */ + Object.defineProperty(TaskNode.prototype, "reference", { + get: $util.oneOfGetter($oneOfFields = ["referenceId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskNode instance using the specified properties. * @function create - * @memberof flyteidl.core.Binding + * @memberof flyteidl.core.TaskNode * @static - * @param {flyteidl.core.IBinding=} [properties] Properties to set - * @returns {flyteidl.core.Binding} Binding instance + * @param {flyteidl.core.ITaskNode=} [properties] Properties to set + * @returns {flyteidl.core.TaskNode} TaskNode instance */ - Binding.create = function create(properties) { - return new Binding(properties); + TaskNode.create = function create(properties) { + return new TaskNode(properties); }; /** - * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. + * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Binding + * @memberof flyteidl.core.TaskNode * @static - * @param {flyteidl.core.IBinding} message Binding message or plain object to encode + * @param {flyteidl.core.ITaskNode} message TaskNode message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Binding.encode = function encode(message, writer) { + TaskNode.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); - if (message.binding != null && message.hasOwnProperty("binding")) - $root.flyteidl.core.BindingData.encode(message.binding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.referenceId != null && message.hasOwnProperty("referenceId")) + $root.flyteidl.core.Identifier.encode(message.referenceId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.overrides != null && message.hasOwnProperty("overrides")) + $root.flyteidl.core.TaskNodeOverrides.encode(message.overrides, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a Binding message from the specified reader or buffer. + * Decodes a TaskNode message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Binding + * @memberof flyteidl.core.TaskNode * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Binding} Binding + * @returns {flyteidl.core.TaskNode} TaskNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Binding.decode = function decode(reader, length) { + TaskNode.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binding(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNode(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message["var"] = reader.string(); + message.referenceId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); break; case 2: - message.binding = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); + message.overrides = $root.flyteidl.core.TaskNodeOverrides.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9451,49 +9761,55 @@ }; /** - * Verifies a Binding message. + * Verifies a TaskNode message. * @function verify - * @memberof flyteidl.core.Binding + * @memberof flyteidl.core.TaskNode * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Binding.verify = function verify(message) { + TaskNode.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message["var"] != null && message.hasOwnProperty("var")) - if (!$util.isString(message["var"])) - return "var: string expected"; - if (message.binding != null && message.hasOwnProperty("binding")) { - var error = $root.flyteidl.core.BindingData.verify(message.binding); + var properties = {}; + if (message.referenceId != null && message.hasOwnProperty("referenceId")) { + properties.reference = 1; + { + var error = $root.flyteidl.core.Identifier.verify(message.referenceId); + if (error) + return "referenceId." + error; + } + } + if (message.overrides != null && message.hasOwnProperty("overrides")) { + var error = $root.flyteidl.core.TaskNodeOverrides.verify(message.overrides); if (error) - return "binding." + error; + return "overrides." + error; } return null; }; - return Binding; + return TaskNode; })(); - core.KeyValuePair = (function() { + core.WorkflowNode = (function() { /** - * Properties of a KeyValuePair. + * Properties of a WorkflowNode. * @memberof flyteidl.core - * @interface IKeyValuePair - * @property {string|null} [key] KeyValuePair key - * @property {string|null} [value] KeyValuePair value + * @interface IWorkflowNode + * @property {flyteidl.core.IIdentifier|null} [launchplanRef] WorkflowNode launchplanRef + * @property {flyteidl.core.IIdentifier|null} [subWorkflowRef] WorkflowNode subWorkflowRef */ /** - * Constructs a new KeyValuePair. + * Constructs a new WorkflowNode. * @memberof flyteidl.core - * @classdesc Represents a KeyValuePair. - * @implements IKeyValuePair + * @classdesc Represents a WorkflowNode. + * @implements IWorkflowNode * @constructor - * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set + * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set */ - function KeyValuePair(properties) { + function WorkflowNode(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9501,75 +9817,89 @@ } /** - * KeyValuePair key. - * @member {string} key - * @memberof flyteidl.core.KeyValuePair + * WorkflowNode launchplanRef. + * @member {flyteidl.core.IIdentifier|null|undefined} launchplanRef + * @memberof flyteidl.core.WorkflowNode * @instance */ - KeyValuePair.prototype.key = ""; + WorkflowNode.prototype.launchplanRef = null; /** - * KeyValuePair value. - * @member {string} value - * @memberof flyteidl.core.KeyValuePair + * WorkflowNode subWorkflowRef. + * @member {flyteidl.core.IIdentifier|null|undefined} subWorkflowRef + * @memberof flyteidl.core.WorkflowNode * @instance */ - KeyValuePair.prototype.value = ""; + WorkflowNode.prototype.subWorkflowRef = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new KeyValuePair instance using the specified properties. + * WorkflowNode reference. + * @member {"launchplanRef"|"subWorkflowRef"|undefined} reference + * @memberof flyteidl.core.WorkflowNode + * @instance + */ + Object.defineProperty(WorkflowNode.prototype, "reference", { + get: $util.oneOfGetter($oneOfFields = ["launchplanRef", "subWorkflowRef"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WorkflowNode instance using the specified properties. * @function create - * @memberof flyteidl.core.KeyValuePair + * @memberof flyteidl.core.WorkflowNode * @static - * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set - * @returns {flyteidl.core.KeyValuePair} KeyValuePair instance + * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowNode} WorkflowNode instance */ - KeyValuePair.create = function create(properties) { - return new KeyValuePair(properties); + WorkflowNode.create = function create(properties) { + return new WorkflowNode(properties); }; /** - * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. + * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. * @function encode - * @memberof flyteidl.core.KeyValuePair + * @memberof flyteidl.core.WorkflowNode * @static - * @param {flyteidl.core.IKeyValuePair} message KeyValuePair message or plain object to encode + * @param {flyteidl.core.IWorkflowNode} message WorkflowNode message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeyValuePair.encode = function encode(message, writer) { + WorkflowNode.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && message.hasOwnProperty("key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) + $root.flyteidl.core.Identifier.encode(message.launchplanRef, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) + $root.flyteidl.core.Identifier.encode(message.subWorkflowRef, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a KeyValuePair message from the specified reader or buffer. + * Decodes a WorkflowNode message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.KeyValuePair + * @memberof flyteidl.core.WorkflowNode * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.KeyValuePair} KeyValuePair + * @returns {flyteidl.core.WorkflowNode} WorkflowNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeyValuePair.decode = function decode(reader, length) { + WorkflowNode.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.KeyValuePair(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowNode(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.key = reader.string(); + message.launchplanRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); break; case 2: - message.value = reader.string(); + message.subWorkflowRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9580,46 +9910,59 @@ }; /** - * Verifies a KeyValuePair message. + * Verifies a WorkflowNode message. * @function verify - * @memberof flyteidl.core.KeyValuePair + * @memberof flyteidl.core.WorkflowNode * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeyValuePair.verify = function verify(message) { + WorkflowNode.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + var properties = {}; + if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) { + properties.reference = 1; + { + var error = $root.flyteidl.core.Identifier.verify(message.launchplanRef); + if (error) + return "launchplanRef." + error; + } + } + if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) { + if (properties.reference === 1) + return "reference: multiple values"; + properties.reference = 1; + { + var error = $root.flyteidl.core.Identifier.verify(message.subWorkflowRef); + if (error) + return "subWorkflowRef." + error; + } + } return null; }; - return KeyValuePair; + return WorkflowNode; })(); - core.RetryStrategy = (function() { + core.ApproveCondition = (function() { /** - * Properties of a RetryStrategy. + * Properties of an ApproveCondition. * @memberof flyteidl.core - * @interface IRetryStrategy - * @property {number|null} [retries] RetryStrategy retries + * @interface IApproveCondition + * @property {string|null} [signalId] ApproveCondition signalId */ /** - * Constructs a new RetryStrategy. + * Constructs a new ApproveCondition. * @memberof flyteidl.core - * @classdesc Represents a RetryStrategy. - * @implements IRetryStrategy + * @classdesc Represents an ApproveCondition. + * @implements IApproveCondition * @constructor - * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set + * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set */ - function RetryStrategy(properties) { + function ApproveCondition(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9627,62 +9970,62 @@ } /** - * RetryStrategy retries. - * @member {number} retries - * @memberof flyteidl.core.RetryStrategy + * ApproveCondition signalId. + * @member {string} signalId + * @memberof flyteidl.core.ApproveCondition * @instance */ - RetryStrategy.prototype.retries = 0; + ApproveCondition.prototype.signalId = ""; /** - * Creates a new RetryStrategy instance using the specified properties. + * Creates a new ApproveCondition instance using the specified properties. * @function create - * @memberof flyteidl.core.RetryStrategy + * @memberof flyteidl.core.ApproveCondition * @static - * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set - * @returns {flyteidl.core.RetryStrategy} RetryStrategy instance + * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set + * @returns {flyteidl.core.ApproveCondition} ApproveCondition instance */ - RetryStrategy.create = function create(properties) { - return new RetryStrategy(properties); + ApproveCondition.create = function create(properties) { + return new ApproveCondition(properties); }; /** - * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. + * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. * @function encode - * @memberof flyteidl.core.RetryStrategy + * @memberof flyteidl.core.ApproveCondition * @static - * @param {flyteidl.core.IRetryStrategy} message RetryStrategy message or plain object to encode + * @param {flyteidl.core.IApproveCondition} message ApproveCondition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RetryStrategy.encode = function encode(message, writer) { + ApproveCondition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.retries != null && message.hasOwnProperty("retries")) - writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.retries); + if (message.signalId != null && message.hasOwnProperty("signalId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); return writer; }; /** - * Decodes a RetryStrategy message from the specified reader or buffer. + * Decodes an ApproveCondition message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.RetryStrategy + * @memberof flyteidl.core.ApproveCondition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.RetryStrategy} RetryStrategy + * @returns {flyteidl.core.ApproveCondition} ApproveCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RetryStrategy.decode = function decode(reader, length) { + ApproveCondition.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RetryStrategy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ApproveCondition(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 5: - message.retries = reader.uint32(); + case 1: + message.signalId = reader.string(); break; default: reader.skipType(tag & 7); @@ -9693,74 +10036,45 @@ }; /** - * Verifies a RetryStrategy message. + * Verifies an ApproveCondition message. * @function verify - * @memberof flyteidl.core.RetryStrategy + * @memberof flyteidl.core.ApproveCondition * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RetryStrategy.verify = function verify(message) { + ApproveCondition.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.retries != null && message.hasOwnProperty("retries")) - if (!$util.isInteger(message.retries)) - return "retries: integer expected"; + if (message.signalId != null && message.hasOwnProperty("signalId")) + if (!$util.isString(message.signalId)) + return "signalId: string expected"; return null; }; - return RetryStrategy; - })(); - - /** - * SimpleType enum. - * @name flyteidl.core.SimpleType - * @enum {string} - * @property {number} NONE=0 NONE value - * @property {number} INTEGER=1 INTEGER value - * @property {number} FLOAT=2 FLOAT value - * @property {number} STRING=3 STRING value - * @property {number} BOOLEAN=4 BOOLEAN value - * @property {number} DATETIME=5 DATETIME value - * @property {number} DURATION=6 DURATION value - * @property {number} BINARY=7 BINARY value - * @property {number} ERROR=8 ERROR value - * @property {number} STRUCT=9 STRUCT value - */ - core.SimpleType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[1] = "INTEGER"] = 1; - values[valuesById[2] = "FLOAT"] = 2; - values[valuesById[3] = "STRING"] = 3; - values[valuesById[4] = "BOOLEAN"] = 4; - values[valuesById[5] = "DATETIME"] = 5; - values[valuesById[6] = "DURATION"] = 6; - values[valuesById[7] = "BINARY"] = 7; - values[valuesById[8] = "ERROR"] = 8; - values[valuesById[9] = "STRUCT"] = 9; - return values; + return ApproveCondition; })(); - core.SchemaType = (function() { + core.SignalCondition = (function() { /** - * Properties of a SchemaType. + * Properties of a SignalCondition. * @memberof flyteidl.core - * @interface ISchemaType - * @property {Array.|null} [columns] SchemaType columns + * @interface ISignalCondition + * @property {string|null} [signalId] SignalCondition signalId + * @property {flyteidl.core.ILiteralType|null} [type] SignalCondition type + * @property {string|null} [outputVariableName] SignalCondition outputVariableName */ /** - * Constructs a new SchemaType. + * Constructs a new SignalCondition. * @memberof flyteidl.core - * @classdesc Represents a SchemaType. - * @implements ISchemaType + * @classdesc Represents a SignalCondition. + * @implements ISignalCondition * @constructor - * @param {flyteidl.core.ISchemaType=} [properties] Properties to set + * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set */ - function SchemaType(properties) { - this.columns = []; + function SignalCondition(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9768,280 +10082,143 @@ } /** - * SchemaType columns. - * @member {Array.} columns - * @memberof flyteidl.core.SchemaType + * SignalCondition signalId. + * @member {string} signalId + * @memberof flyteidl.core.SignalCondition * @instance */ - SchemaType.prototype.columns = $util.emptyArray; + SignalCondition.prototype.signalId = ""; /** - * Creates a new SchemaType instance using the specified properties. + * SignalCondition type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.core.SignalCondition + * @instance + */ + SignalCondition.prototype.type = null; + + /** + * SignalCondition outputVariableName. + * @member {string} outputVariableName + * @memberof flyteidl.core.SignalCondition + * @instance + */ + SignalCondition.prototype.outputVariableName = ""; + + /** + * Creates a new SignalCondition instance using the specified properties. * @function create - * @memberof flyteidl.core.SchemaType + * @memberof flyteidl.core.SignalCondition * @static - * @param {flyteidl.core.ISchemaType=} [properties] Properties to set - * @returns {flyteidl.core.SchemaType} SchemaType instance + * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set + * @returns {flyteidl.core.SignalCondition} SignalCondition instance */ - SchemaType.create = function create(properties) { - return new SchemaType(properties); + SignalCondition.create = function create(properties) { + return new SignalCondition(properties); }; /** - * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. + * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. * @function encode - * @memberof flyteidl.core.SchemaType + * @memberof flyteidl.core.SignalCondition * @static - * @param {flyteidl.core.ISchemaType} message SchemaType message or plain object to encode + * @param {flyteidl.core.ISignalCondition} message SignalCondition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchemaType.encode = function encode(message, writer) { + SignalCondition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.flyteidl.core.SchemaType.SchemaColumn.encode(message.columns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.signalId != null && message.hasOwnProperty("signalId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputVariableName); return writer; }; /** - * Decodes a SchemaType message from the specified reader or buffer. + * Decodes a SignalCondition message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.SchemaType + * @memberof flyteidl.core.SignalCondition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SchemaType} SchemaType + * @returns {flyteidl.core.SignalCondition} SignalCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SchemaType.decode = function decode(reader, length) { + SignalCondition.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SignalCondition(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.signalId = reader.string(); + break; + case 2: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; case 3: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.flyteidl.core.SchemaType.SchemaColumn.decode(reader, reader.uint32())); + message.outputVariableName = reader.string(); break; default: reader.skipType(tag & 7); break; - } - } - return message; - }; - - /** - * Verifies a SchemaType message. - * @function verify - * @memberof flyteidl.core.SchemaType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SchemaType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.flyteidl.core.SchemaType.SchemaColumn.verify(message.columns[i]); - if (error) - return "columns." + error; - } - } - return null; - }; - - SchemaType.SchemaColumn = (function() { - - /** - * Properties of a SchemaColumn. - * @memberof flyteidl.core.SchemaType - * @interface ISchemaColumn - * @property {string|null} [name] SchemaColumn name - * @property {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null} [type] SchemaColumn type - */ - - /** - * Constructs a new SchemaColumn. - * @memberof flyteidl.core.SchemaType - * @classdesc Represents a SchemaColumn. - * @implements ISchemaColumn - * @constructor - * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set - */ - function SchemaColumn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SchemaColumn name. - * @member {string} name - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @instance - */ - SchemaColumn.prototype.name = ""; - - /** - * SchemaColumn type. - * @member {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} type - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @instance - */ - SchemaColumn.prototype.type = 0; - - /** - * Creates a new SchemaColumn instance using the specified properties. - * @function create - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set - * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn instance - */ - SchemaColumn.create = function create(properties) { - return new SchemaColumn(properties); - }; - - /** - * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {flyteidl.core.SchemaType.ISchemaColumn} message SchemaColumn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SchemaColumn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - return writer; - }; - - /** - * Decodes a SchemaColumn message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SchemaColumn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType.SchemaColumn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.type = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SchemaColumn message. - * @function verify - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SchemaColumn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - - /** - * SchemaColumnType enum. - * @name flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType - * @enum {string} - * @property {number} INTEGER=0 INTEGER value - * @property {number} FLOAT=1 FLOAT value - * @property {number} STRING=2 STRING value - * @property {number} BOOLEAN=3 BOOLEAN value - * @property {number} DATETIME=4 DATETIME value - * @property {number} DURATION=5 DURATION value - */ - SchemaColumn.SchemaColumnType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INTEGER"] = 0; - values[valuesById[1] = "FLOAT"] = 1; - values[valuesById[2] = "STRING"] = 2; - values[valuesById[3] = "BOOLEAN"] = 3; - values[valuesById[4] = "DATETIME"] = 4; - values[valuesById[5] = "DURATION"] = 5; - return values; - })(); + } + } + return message; + }; - return SchemaColumn; - })(); + /** + * Verifies a SignalCondition message. + * @function verify + * @memberof flyteidl.core.SignalCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signalId != null && message.hasOwnProperty("signalId")) + if (!$util.isString(message.signalId)) + return "signalId: string expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) + if (!$util.isString(message.outputVariableName)) + return "outputVariableName: string expected"; + return null; + }; - return SchemaType; + return SignalCondition; })(); - core.StructuredDatasetType = (function() { + core.SleepCondition = (function() { /** - * Properties of a StructuredDatasetType. + * Properties of a SleepCondition. * @memberof flyteidl.core - * @interface IStructuredDatasetType - * @property {Array.|null} [columns] StructuredDatasetType columns - * @property {string|null} [format] StructuredDatasetType format - * @property {string|null} [externalSchemaType] StructuredDatasetType externalSchemaType - * @property {Uint8Array|null} [externalSchemaBytes] StructuredDatasetType externalSchemaBytes + * @interface ISleepCondition + * @property {google.protobuf.IDuration|null} [duration] SleepCondition duration */ /** - * Constructs a new StructuredDatasetType. + * Constructs a new SleepCondition. * @memberof flyteidl.core - * @classdesc Represents a StructuredDatasetType. - * @implements IStructuredDatasetType + * @classdesc Represents a SleepCondition. + * @implements ISleepCondition * @constructor - * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set + * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set */ - function StructuredDatasetType(properties) { - this.columns = []; + function SleepCondition(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10049,104 +10226,62 @@ } /** - * StructuredDatasetType columns. - * @member {Array.} columns - * @memberof flyteidl.core.StructuredDatasetType - * @instance - */ - StructuredDatasetType.prototype.columns = $util.emptyArray; - - /** - * StructuredDatasetType format. - * @member {string} format - * @memberof flyteidl.core.StructuredDatasetType - * @instance - */ - StructuredDatasetType.prototype.format = ""; - - /** - * StructuredDatasetType externalSchemaType. - * @member {string} externalSchemaType - * @memberof flyteidl.core.StructuredDatasetType - * @instance - */ - StructuredDatasetType.prototype.externalSchemaType = ""; - - /** - * StructuredDatasetType externalSchemaBytes. - * @member {Uint8Array} externalSchemaBytes - * @memberof flyteidl.core.StructuredDatasetType + * SleepCondition duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.core.SleepCondition * @instance */ - StructuredDatasetType.prototype.externalSchemaBytes = $util.newBuffer([]); + SleepCondition.prototype.duration = null; /** - * Creates a new StructuredDatasetType instance using the specified properties. + * Creates a new SleepCondition instance using the specified properties. * @function create - * @memberof flyteidl.core.StructuredDatasetType + * @memberof flyteidl.core.SleepCondition * @static - * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType instance + * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set + * @returns {flyteidl.core.SleepCondition} SleepCondition instance */ - StructuredDatasetType.create = function create(properties) { - return new StructuredDatasetType(properties); + SleepCondition.create = function create(properties) { + return new SleepCondition(properties); }; /** - * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. + * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. * @function encode - * @memberof flyteidl.core.StructuredDatasetType + * @memberof flyteidl.core.SleepCondition * @static - * @param {flyteidl.core.IStructuredDatasetType} message StructuredDatasetType message or plain object to encode + * @param {flyteidl.core.ISleepCondition} message SleepCondition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StructuredDatasetType.encode = function encode(message, writer) { + SleepCondition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.flyteidl.core.StructuredDatasetType.DatasetColumn.encode(message.columns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.format != null && message.hasOwnProperty("format")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.format); - if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalSchemaType); - if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.externalSchemaBytes); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a StructuredDatasetType message from the specified reader or buffer. + * Decodes a SleepCondition message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.StructuredDatasetType + * @memberof flyteidl.core.SleepCondition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType + * @returns {flyteidl.core.SleepCondition} SleepCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StructuredDatasetType.decode = function decode(reader, length) { + SleepCondition.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SleepCondition(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.flyteidl.core.StructuredDatasetType.DatasetColumn.decode(reader, reader.uint32())); - break; - case 2: - message.format = reader.string(); - break; - case 3: - message.externalSchemaType = reader.string(); - break; - case 4: - message.externalSchemaBytes = reader.bytes(); + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -10157,188 +10292,47 @@ }; /** - * Verifies a StructuredDatasetType message. + * Verifies a SleepCondition message. * @function verify - * @memberof flyteidl.core.StructuredDatasetType + * @memberof flyteidl.core.SleepCondition * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StructuredDatasetType.verify = function verify(message) { + SleepCondition.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.flyteidl.core.StructuredDatasetType.DatasetColumn.verify(message.columns[i]); - if (error) - return "columns." + error; - } + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; } - if (message.format != null && message.hasOwnProperty("format")) - if (!$util.isString(message.format)) - return "format: string expected"; - if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) - if (!$util.isString(message.externalSchemaType)) - return "externalSchemaType: string expected"; - if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) - if (!(message.externalSchemaBytes && typeof message.externalSchemaBytes.length === "number" || $util.isString(message.externalSchemaBytes))) - return "externalSchemaBytes: buffer expected"; return null; }; - StructuredDatasetType.DatasetColumn = (function() { - - /** - * Properties of a DatasetColumn. - * @memberof flyteidl.core.StructuredDatasetType - * @interface IDatasetColumn - * @property {string|null} [name] DatasetColumn name - * @property {flyteidl.core.ILiteralType|null} [literalType] DatasetColumn literalType - */ - - /** - * Constructs a new DatasetColumn. - * @memberof flyteidl.core.StructuredDatasetType - * @classdesc Represents a DatasetColumn. - * @implements IDatasetColumn - * @constructor - * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set - */ - function DatasetColumn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DatasetColumn name. - * @member {string} name - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @instance - */ - DatasetColumn.prototype.name = ""; - - /** - * DatasetColumn literalType. - * @member {flyteidl.core.ILiteralType|null|undefined} literalType - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @instance - */ - DatasetColumn.prototype.literalType = null; - - /** - * Creates a new DatasetColumn instance using the specified properties. - * @function create - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn instance - */ - DatasetColumn.create = function create(properties) { - return new DatasetColumn(properties); - }; - - /** - * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn} message DatasetColumn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DatasetColumn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.literalType != null && message.hasOwnProperty("literalType")) - $root.flyteidl.core.LiteralType.encode(message.literalType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a DatasetColumn message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DatasetColumn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType.DatasetColumn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.literalType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DatasetColumn message. - * @function verify - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DatasetColumn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.literalType != null && message.hasOwnProperty("literalType")) { - var error = $root.flyteidl.core.LiteralType.verify(message.literalType); - if (error) - return "literalType." + error; - } - return null; - }; - - return DatasetColumn; - })(); - - return StructuredDatasetType; + return SleepCondition; })(); - core.BlobType = (function() { + core.GateNode = (function() { /** - * Properties of a BlobType. + * Properties of a GateNode. * @memberof flyteidl.core - * @interface IBlobType - * @property {string|null} [format] BlobType format - * @property {flyteidl.core.BlobType.BlobDimensionality|null} [dimensionality] BlobType dimensionality + * @interface IGateNode + * @property {flyteidl.core.IApproveCondition|null} [approve] GateNode approve + * @property {flyteidl.core.ISignalCondition|null} [signal] GateNode signal + * @property {flyteidl.core.ISleepCondition|null} [sleep] GateNode sleep */ /** - * Constructs a new BlobType. + * Constructs a new GateNode. * @memberof flyteidl.core - * @classdesc Represents a BlobType. - * @implements IBlobType + * @classdesc Represents a GateNode. + * @implements IGateNode * @constructor - * @param {flyteidl.core.IBlobType=} [properties] Properties to set + * @param {flyteidl.core.IGateNode=} [properties] Properties to set */ - function BlobType(properties) { + function GateNode(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10346,75 +10340,102 @@ } /** - * BlobType format. - * @member {string} format - * @memberof flyteidl.core.BlobType + * GateNode approve. + * @member {flyteidl.core.IApproveCondition|null|undefined} approve + * @memberof flyteidl.core.GateNode * @instance */ - BlobType.prototype.format = ""; + GateNode.prototype.approve = null; /** - * BlobType dimensionality. - * @member {flyteidl.core.BlobType.BlobDimensionality} dimensionality - * @memberof flyteidl.core.BlobType + * GateNode signal. + * @member {flyteidl.core.ISignalCondition|null|undefined} signal + * @memberof flyteidl.core.GateNode * @instance */ - BlobType.prototype.dimensionality = 0; + GateNode.prototype.signal = null; /** - * Creates a new BlobType instance using the specified properties. + * GateNode sleep. + * @member {flyteidl.core.ISleepCondition|null|undefined} sleep + * @memberof flyteidl.core.GateNode + * @instance + */ + GateNode.prototype.sleep = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GateNode condition. + * @member {"approve"|"signal"|"sleep"|undefined} condition + * @memberof flyteidl.core.GateNode + * @instance + */ + Object.defineProperty(GateNode.prototype, "condition", { + get: $util.oneOfGetter($oneOfFields = ["approve", "signal", "sleep"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GateNode instance using the specified properties. * @function create - * @memberof flyteidl.core.BlobType + * @memberof flyteidl.core.GateNode * @static - * @param {flyteidl.core.IBlobType=} [properties] Properties to set - * @returns {flyteidl.core.BlobType} BlobType instance + * @param {flyteidl.core.IGateNode=} [properties] Properties to set + * @returns {flyteidl.core.GateNode} GateNode instance */ - BlobType.create = function create(properties) { - return new BlobType(properties); + GateNode.create = function create(properties) { + return new GateNode(properties); }; /** - * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. + * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. * @function encode - * @memberof flyteidl.core.BlobType + * @memberof flyteidl.core.GateNode * @static - * @param {flyteidl.core.IBlobType} message BlobType message or plain object to encode + * @param {flyteidl.core.IGateNode} message GateNode message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BlobType.encode = function encode(message, writer) { + GateNode.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.format != null && message.hasOwnProperty("format")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.format); - if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dimensionality); + if (message.approve != null && message.hasOwnProperty("approve")) + $root.flyteidl.core.ApproveCondition.encode(message.approve, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.signal != null && message.hasOwnProperty("signal")) + $root.flyteidl.core.SignalCondition.encode(message.signal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sleep != null && message.hasOwnProperty("sleep")) + $root.flyteidl.core.SleepCondition.encode(message.sleep, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Decodes a BlobType message from the specified reader or buffer. + * Decodes a GateNode message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.BlobType + * @memberof flyteidl.core.GateNode * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BlobType} BlobType + * @returns {flyteidl.core.GateNode} GateNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BlobType.decode = function decode(reader, length) { + GateNode.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.GateNode(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.format = reader.string(); + message.approve = $root.flyteidl.core.ApproveCondition.decode(reader, reader.uint32()); break; case 2: - message.dimensionality = reader.int32(); + message.signal = $root.flyteidl.core.SignalCondition.decode(reader, reader.uint32()); + break; + case 3: + message.sleep = $root.flyteidl.core.SleepCondition.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -10425,66 +10446,72 @@ }; /** - * Verifies a BlobType message. + * Verifies a GateNode message. * @function verify - * @memberof flyteidl.core.BlobType + * @memberof flyteidl.core.GateNode * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BlobType.verify = function verify(message) { + GateNode.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.format != null && message.hasOwnProperty("format")) - if (!$util.isString(message.format)) - return "format: string expected"; - if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) - switch (message.dimensionality) { - default: - return "dimensionality: enum value expected"; - case 0: - case 1: - break; + var properties = {}; + if (message.approve != null && message.hasOwnProperty("approve")) { + properties.condition = 1; + { + var error = $root.flyteidl.core.ApproveCondition.verify(message.approve); + if (error) + return "approve." + error; + } + } + if (message.signal != null && message.hasOwnProperty("signal")) { + if (properties.condition === 1) + return "condition: multiple values"; + properties.condition = 1; + { + var error = $root.flyteidl.core.SignalCondition.verify(message.signal); + if (error) + return "signal." + error; + } + } + if (message.sleep != null && message.hasOwnProperty("sleep")) { + if (properties.condition === 1) + return "condition: multiple values"; + properties.condition = 1; + { + var error = $root.flyteidl.core.SleepCondition.verify(message.sleep); + if (error) + return "sleep." + error; } + } return null; }; - /** - * BlobDimensionality enum. - * @name flyteidl.core.BlobType.BlobDimensionality - * @enum {string} - * @property {number} SINGLE=0 SINGLE value - * @property {number} MULTIPART=1 MULTIPART value - */ - BlobType.BlobDimensionality = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SINGLE"] = 0; - values[valuesById[1] = "MULTIPART"] = 1; - return values; - })(); - - return BlobType; + return GateNode; })(); - core.EnumType = (function() { + core.ArrayNode = (function() { /** - * Properties of an EnumType. + * Properties of an ArrayNode. * @memberof flyteidl.core - * @interface IEnumType - * @property {Array.|null} [values] EnumType values + * @interface IArrayNode + * @property {flyteidl.core.INode|null} [node] ArrayNode node + * @property {number|null} [parallelism] ArrayNode parallelism + * @property {number|null} [minSuccesses] ArrayNode minSuccesses + * @property {number|null} [minSuccessRatio] ArrayNode minSuccessRatio */ /** - * Constructs a new EnumType. + * Constructs a new ArrayNode. * @memberof flyteidl.core - * @classdesc Represents an EnumType. - * @implements IEnumType + * @classdesc Represents an ArrayNode. + * @implements IArrayNode * @constructor - * @param {flyteidl.core.IEnumType=} [properties] Properties to set + * @param {flyteidl.core.IArrayNode=} [properties] Properties to set */ - function EnumType(properties) { - this.values = []; + function ArrayNode(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10492,65 +10519,115 @@ } /** - * EnumType values. - * @member {Array.} values - * @memberof flyteidl.core.EnumType + * ArrayNode node. + * @member {flyteidl.core.INode|null|undefined} node + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.node = null; + + /** + * ArrayNode parallelism. + * @member {number} parallelism + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.parallelism = 0; + + /** + * ArrayNode minSuccesses. + * @member {number} minSuccesses + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.minSuccesses = 0; + + /** + * ArrayNode minSuccessRatio. + * @member {number} minSuccessRatio + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.minSuccessRatio = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ArrayNode successCriteria. + * @member {"minSuccesses"|"minSuccessRatio"|undefined} successCriteria + * @memberof flyteidl.core.ArrayNode * @instance */ - EnumType.prototype.values = $util.emptyArray; + Object.defineProperty(ArrayNode.prototype, "successCriteria", { + get: $util.oneOfGetter($oneOfFields = ["minSuccesses", "minSuccessRatio"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new EnumType instance using the specified properties. + * Creates a new ArrayNode instance using the specified properties. * @function create - * @memberof flyteidl.core.EnumType + * @memberof flyteidl.core.ArrayNode * @static - * @param {flyteidl.core.IEnumType=} [properties] Properties to set - * @returns {flyteidl.core.EnumType} EnumType instance + * @param {flyteidl.core.IArrayNode=} [properties] Properties to set + * @returns {flyteidl.core.ArrayNode} ArrayNode instance */ - EnumType.create = function create(properties) { - return new EnumType(properties); + ArrayNode.create = function create(properties) { + return new ArrayNode(properties); }; /** - * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. + * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. * @function encode - * @memberof flyteidl.core.EnumType + * @memberof flyteidl.core.ArrayNode * @static - * @param {flyteidl.core.IEnumType} message EnumType message or plain object to encode + * @param {flyteidl.core.IArrayNode} message ArrayNode message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumType.encode = function encode(message, writer) { + ArrayNode.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + if (message.node != null && message.hasOwnProperty("node")) + $root.flyteidl.core.Node.encode(message.node, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parallelism != null && message.hasOwnProperty("parallelism")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.parallelism); + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.minSuccesses); + if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.minSuccessRatio); return writer; }; /** - * Decodes an EnumType message from the specified reader or buffer. + * Decodes an ArrayNode message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.EnumType + * @memberof flyteidl.core.ArrayNode * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.EnumType} EnumType + * @returns {flyteidl.core.ArrayNode} ArrayNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumType.decode = function decode(reader, length) { + ArrayNode.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.EnumType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArrayNode(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); + message.node = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + case 2: + message.parallelism = reader.uint32(); + break; + case 3: + message.minSuccesses = reader.uint32(); + break; + case 4: + message.minSuccessRatio = reader.float(); break; default: reader.skipType(tag & 7); @@ -10561,48 +10638,67 @@ }; /** - * Verifies an EnumType message. + * Verifies an ArrayNode message. * @function verify - * @memberof flyteidl.core.EnumType + * @memberof flyteidl.core.ArrayNode * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumType.verify = function verify(message) { + ArrayNode.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; + var properties = {}; + if (message.node != null && message.hasOwnProperty("node")) { + var error = $root.flyteidl.core.Node.verify(message.node); + if (error) + return "node." + error; + } + if (message.parallelism != null && message.hasOwnProperty("parallelism")) + if (!$util.isInteger(message.parallelism)) + return "parallelism: integer expected"; + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) { + properties.successCriteria = 1; + if (!$util.isInteger(message.minSuccesses)) + return "minSuccesses: integer expected"; + } + if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) { + if (properties.successCriteria === 1) + return "successCriteria: multiple values"; + properties.successCriteria = 1; + if (typeof message.minSuccessRatio !== "number") + return "minSuccessRatio: number expected"; } return null; }; - return EnumType; + return ArrayNode; })(); - core.UnionType = (function() { + core.NodeMetadata = (function() { /** - * Properties of an UnionType. + * Properties of a NodeMetadata. * @memberof flyteidl.core - * @interface IUnionType - * @property {Array.|null} [variants] UnionType variants + * @interface INodeMetadata + * @property {string|null} [name] NodeMetadata name + * @property {google.protobuf.IDuration|null} [timeout] NodeMetadata timeout + * @property {flyteidl.core.IRetryStrategy|null} [retries] NodeMetadata retries + * @property {boolean|null} [interruptible] NodeMetadata interruptible + * @property {boolean|null} [cacheable] NodeMetadata cacheable + * @property {string|null} [cacheVersion] NodeMetadata cacheVersion + * @property {boolean|null} [cacheSerializable] NodeMetadata cacheSerializable */ /** - * Constructs a new UnionType. + * Constructs a new NodeMetadata. * @memberof flyteidl.core - * @classdesc Represents an UnionType. - * @implements IUnionType + * @classdesc Represents a NodeMetadata. + * @implements INodeMetadata * @constructor - * @param {flyteidl.core.IUnionType=} [properties] Properties to set + * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set */ - function UnionType(properties) { - this.variants = []; + function NodeMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10610,204 +10706,187 @@ } /** - * UnionType variants. - * @member {Array.} variants - * @memberof flyteidl.core.UnionType + * NodeMetadata name. + * @member {string} name + * @memberof flyteidl.core.NodeMetadata * @instance */ - UnionType.prototype.variants = $util.emptyArray; + NodeMetadata.prototype.name = ""; /** - * Creates a new UnionType instance using the specified properties. - * @function create - * @memberof flyteidl.core.UnionType - * @static - * @param {flyteidl.core.IUnionType=} [properties] Properties to set - * @returns {flyteidl.core.UnionType} UnionType instance + * NodeMetadata timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof flyteidl.core.NodeMetadata + * @instance */ - UnionType.create = function create(properties) { - return new UnionType(properties); - }; + NodeMetadata.prototype.timeout = null; /** - * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.UnionType - * @static - * @param {flyteidl.core.IUnionType} message UnionType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * NodeMetadata retries. + * @member {flyteidl.core.IRetryStrategy|null|undefined} retries + * @memberof flyteidl.core.NodeMetadata + * @instance */ - UnionType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.variants != null && message.variants.length) - for (var i = 0; i < message.variants.length; ++i) - $root.flyteidl.core.LiteralType.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + NodeMetadata.prototype.retries = null; /** - * Decodes an UnionType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.UnionType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.UnionType} UnionType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * NodeMetadata interruptible. + * @member {boolean} interruptible + * @memberof flyteidl.core.NodeMetadata + * @instance */ - UnionType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.variants && message.variants.length)) - message.variants = []; - message.variants.push($root.flyteidl.core.LiteralType.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + NodeMetadata.prototype.interruptible = false; /** - * Verifies an UnionType message. - * @function verify - * @memberof flyteidl.core.UnionType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * NodeMetadata cacheable. + * @member {boolean} cacheable + * @memberof flyteidl.core.NodeMetadata + * @instance */ - UnionType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.variants != null && message.hasOwnProperty("variants")) { - if (!Array.isArray(message.variants)) - return "variants: array expected"; - for (var i = 0; i < message.variants.length; ++i) { - var error = $root.flyteidl.core.LiteralType.verify(message.variants[i]); - if (error) - return "variants." + error; - } - } - return null; - }; + NodeMetadata.prototype.cacheable = false; - return UnionType; - })(); + /** + * NodeMetadata cacheVersion. + * @member {string} cacheVersion + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.cacheVersion = ""; - core.TypeStructure = (function() { + /** + * NodeMetadata cacheSerializable. + * @member {boolean} cacheSerializable + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.cacheSerializable = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Properties of a TypeStructure. - * @memberof flyteidl.core - * @interface ITypeStructure - * @property {string|null} [tag] TypeStructure tag - * @property {Object.|null} [dataclassType] TypeStructure dataclassType + * NodeMetadata interruptibleValue. + * @member {"interruptible"|undefined} interruptibleValue + * @memberof flyteidl.core.NodeMetadata + * @instance */ + Object.defineProperty(NodeMetadata.prototype, "interruptibleValue", { + get: $util.oneOfGetter($oneOfFields = ["interruptible"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Constructs a new TypeStructure. - * @memberof flyteidl.core - * @classdesc Represents a TypeStructure. - * @implements ITypeStructure - * @constructor - * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set + * NodeMetadata cacheableValue. + * @member {"cacheable"|undefined} cacheableValue + * @memberof flyteidl.core.NodeMetadata + * @instance */ - function TypeStructure(properties) { - this.dataclassType = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(NodeMetadata.prototype, "cacheableValue", { + get: $util.oneOfGetter($oneOfFields = ["cacheable"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * TypeStructure tag. - * @member {string} tag - * @memberof flyteidl.core.TypeStructure + * NodeMetadata cacheVersionValue. + * @member {"cacheVersion"|undefined} cacheVersionValue + * @memberof flyteidl.core.NodeMetadata * @instance */ - TypeStructure.prototype.tag = ""; + Object.defineProperty(NodeMetadata.prototype, "cacheVersionValue", { + get: $util.oneOfGetter($oneOfFields = ["cacheVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * TypeStructure dataclassType. - * @member {Object.} dataclassType - * @memberof flyteidl.core.TypeStructure + * NodeMetadata cacheSerializableValue. + * @member {"cacheSerializable"|undefined} cacheSerializableValue + * @memberof flyteidl.core.NodeMetadata * @instance */ - TypeStructure.prototype.dataclassType = $util.emptyObject; + Object.defineProperty(NodeMetadata.prototype, "cacheSerializableValue", { + get: $util.oneOfGetter($oneOfFields = ["cacheSerializable"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new TypeStructure instance using the specified properties. + * Creates a new NodeMetadata instance using the specified properties. * @function create - * @memberof flyteidl.core.TypeStructure + * @memberof flyteidl.core.NodeMetadata * @static - * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set - * @returns {flyteidl.core.TypeStructure} TypeStructure instance + * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set + * @returns {flyteidl.core.NodeMetadata} NodeMetadata instance */ - TypeStructure.create = function create(properties) { - return new TypeStructure(properties); + NodeMetadata.create = function create(properties) { + return new NodeMetadata(properties); }; /** - * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. + * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. * @function encode - * @memberof flyteidl.core.TypeStructure + * @memberof flyteidl.core.NodeMetadata * @static - * @param {flyteidl.core.ITypeStructure} message TypeStructure message or plain object to encode + * @param {flyteidl.core.INodeMetadata} message NodeMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TypeStructure.encode = function encode(message, writer) { + NodeMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tag != null && message.hasOwnProperty("tag")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); - if (message.dataclassType != null && message.hasOwnProperty("dataclassType")) - for (var keys = Object.keys(message.dataclassType), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.LiteralType.encode(message.dataclassType[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.timeout != null && message.hasOwnProperty("timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.retries != null && message.hasOwnProperty("retries")) + $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.interruptible); + if (message.cacheable != null && message.hasOwnProperty("cacheable")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.cacheable); + if (message.cacheVersion != null && message.hasOwnProperty("cacheVersion")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.cacheVersion); + if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.cacheSerializable); return writer; }; /** - * Decodes a TypeStructure message from the specified reader or buffer. + * Decodes a NodeMetadata message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.TypeStructure + * @memberof flyteidl.core.NodeMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TypeStructure} TypeStructure + * @returns {flyteidl.core.NodeMetadata} NodeMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TypeStructure.decode = function decode(reader, length) { + NodeMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeStructure(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tag = reader.string(); + message.name = reader.string(); break; - case 2: - reader.skip().pos++; - if (message.dataclassType === $util.emptyObject) - message.dataclassType = {}; - key = reader.string(); - reader.pos++; - message.dataclassType[key] = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + case 4: + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); + break; + case 6: + message.interruptible = reader.bool(); + break; + case 7: + message.cacheable = reader.bool(); + break; + case 8: + message.cacheVersion = reader.string(); + break; + case 9: + message.cacheSerializable = reader.bool(); break; default: reader.skipType(tag & 7); @@ -10818,53 +10897,75 @@ }; /** - * Verifies a TypeStructure message. + * Verifies a NodeMetadata message. * @function verify - * @memberof flyteidl.core.TypeStructure + * @memberof flyteidl.core.NodeMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TypeStructure.verify = function verify(message) { + NodeMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - if (message.dataclassType != null && message.hasOwnProperty("dataclassType")) { - if (!$util.isObject(message.dataclassType)) - return "dataclassType: object expected"; - var key = Object.keys(message.dataclassType); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.LiteralType.verify(message.dataclassType[key[i]]); - if (error) - return "dataclassType." + error; - } + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; + } + if (message.retries != null && message.hasOwnProperty("retries")) { + var error = $root.flyteidl.core.RetryStrategy.verify(message.retries); + if (error) + return "retries." + error; + } + if (message.interruptible != null && message.hasOwnProperty("interruptible")) { + properties.interruptibleValue = 1; + if (typeof message.interruptible !== "boolean") + return "interruptible: boolean expected"; + } + if (message.cacheable != null && message.hasOwnProperty("cacheable")) { + properties.cacheableValue = 1; + if (typeof message.cacheable !== "boolean") + return "cacheable: boolean expected"; + } + if (message.cacheVersion != null && message.hasOwnProperty("cacheVersion")) { + properties.cacheVersionValue = 1; + if (!$util.isString(message.cacheVersion)) + return "cacheVersion: string expected"; + } + if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) { + properties.cacheSerializableValue = 1; + if (typeof message.cacheSerializable !== "boolean") + return "cacheSerializable: boolean expected"; } return null; }; - return TypeStructure; + return NodeMetadata; })(); - core.TypeAnnotation = (function() { + core.Alias = (function() { /** - * Properties of a TypeAnnotation. + * Properties of an Alias. * @memberof flyteidl.core - * @interface ITypeAnnotation - * @property {google.protobuf.IStruct|null} [annotations] TypeAnnotation annotations + * @interface IAlias + * @property {string|null} ["var"] Alias var + * @property {string|null} [alias] Alias alias */ /** - * Constructs a new TypeAnnotation. + * Constructs a new Alias. * @memberof flyteidl.core - * @classdesc Represents a TypeAnnotation. - * @implements ITypeAnnotation + * @classdesc Represents an Alias. + * @implements IAlias * @constructor - * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set + * @param {flyteidl.core.IAlias=} [properties] Properties to set */ - function TypeAnnotation(properties) { + function Alias(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10872,62 +10973,75 @@ } /** - * TypeAnnotation annotations. - * @member {google.protobuf.IStruct|null|undefined} annotations - * @memberof flyteidl.core.TypeAnnotation + * Alias var. + * @member {string} var + * @memberof flyteidl.core.Alias * @instance */ - TypeAnnotation.prototype.annotations = null; + Alias.prototype["var"] = ""; /** - * Creates a new TypeAnnotation instance using the specified properties. + * Alias alias. + * @member {string} alias + * @memberof flyteidl.core.Alias + * @instance + */ + Alias.prototype.alias = ""; + + /** + * Creates a new Alias instance using the specified properties. * @function create - * @memberof flyteidl.core.TypeAnnotation + * @memberof flyteidl.core.Alias * @static - * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set - * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation instance + * @param {flyteidl.core.IAlias=} [properties] Properties to set + * @returns {flyteidl.core.Alias} Alias instance */ - TypeAnnotation.create = function create(properties) { - return new TypeAnnotation(properties); + Alias.create = function create(properties) { + return new Alias(properties); }; /** - * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. + * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. * @function encode - * @memberof flyteidl.core.TypeAnnotation + * @memberof flyteidl.core.Alias * @static - * @param {flyteidl.core.ITypeAnnotation} message TypeAnnotation message or plain object to encode + * @param {flyteidl.core.IAlias} message Alias message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TypeAnnotation.encode = function encode(message, writer) { + Alias.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - $root.google.protobuf.Struct.encode(message.annotations, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); + if (message.alias != null && message.hasOwnProperty("alias")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.alias); return writer; }; /** - * Decodes a TypeAnnotation message from the specified reader or buffer. + * Decodes an Alias message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.TypeAnnotation + * @memberof flyteidl.core.Alias * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation + * @returns {flyteidl.core.Alias} Alias * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TypeAnnotation.decode = function decode(reader, length) { + Alias.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeAnnotation(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Alias(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.annotations = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message["var"] = reader.string(); + break; + case 2: + message.alias = reader.string(); break; default: reader.skipType(tag & 7); @@ -10938,55 +11052,58 @@ }; /** - * Verifies a TypeAnnotation message. + * Verifies an Alias message. * @function verify - * @memberof flyteidl.core.TypeAnnotation + * @memberof flyteidl.core.Alias * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TypeAnnotation.verify = function verify(message) { + Alias.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.annotations != null && message.hasOwnProperty("annotations")) { - var error = $root.google.protobuf.Struct.verify(message.annotations); - if (error) - return "annotations." + error; - } + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + if (message.alias != null && message.hasOwnProperty("alias")) + if (!$util.isString(message.alias)) + return "alias: string expected"; return null; }; - return TypeAnnotation; + return Alias; })(); - core.LiteralType = (function() { - - /** - * Properties of a LiteralType. - * @memberof flyteidl.core - * @interface ILiteralType - * @property {flyteidl.core.SimpleType|null} [simple] LiteralType simple - * @property {flyteidl.core.ISchemaType|null} [schema] LiteralType schema - * @property {flyteidl.core.ILiteralType|null} [collectionType] LiteralType collectionType - * @property {flyteidl.core.ILiteralType|null} [mapValueType] LiteralType mapValueType - * @property {flyteidl.core.IBlobType|null} [blob] LiteralType blob - * @property {flyteidl.core.IEnumType|null} [enumType] LiteralType enumType - * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] LiteralType structuredDatasetType - * @property {flyteidl.core.IUnionType|null} [unionType] LiteralType unionType - * @property {google.protobuf.IStruct|null} [metadata] LiteralType metadata - * @property {flyteidl.core.ITypeAnnotation|null} [annotation] LiteralType annotation - * @property {flyteidl.core.ITypeStructure|null} [structure] LiteralType structure + core.Node = (function() { + + /** + * Properties of a Node. + * @memberof flyteidl.core + * @interface INode + * @property {string|null} [id] Node id + * @property {flyteidl.core.INodeMetadata|null} [metadata] Node metadata + * @property {Array.|null} [inputs] Node inputs + * @property {Array.|null} [upstreamNodeIds] Node upstreamNodeIds + * @property {Array.|null} [outputAliases] Node outputAliases + * @property {flyteidl.core.ITaskNode|null} [taskNode] Node taskNode + * @property {flyteidl.core.IWorkflowNode|null} [workflowNode] Node workflowNode + * @property {flyteidl.core.IBranchNode|null} [branchNode] Node branchNode + * @property {flyteidl.core.IGateNode|null} [gateNode] Node gateNode + * @property {flyteidl.core.IArrayNode|null} [arrayNode] Node arrayNode */ /** - * Constructs a new LiteralType. + * Constructs a new Node. * @memberof flyteidl.core - * @classdesc Represents a LiteralType. - * @implements ILiteralType + * @classdesc Represents a Node. + * @implements INode * @constructor - * @param {flyteidl.core.ILiteralType=} [properties] Properties to set + * @param {flyteidl.core.INode=} [properties] Properties to set */ - function LiteralType(properties) { + function Node(properties) { + this.inputs = []; + this.upstreamNodeIds = []; + this.outputAliases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10994,206 +11111,202 @@ } /** - * LiteralType simple. - * @member {flyteidl.core.SimpleType} simple - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.simple = 0; - - /** - * LiteralType schema. - * @member {flyteidl.core.ISchemaType|null|undefined} schema - * @memberof flyteidl.core.LiteralType + * Node id. + * @member {string} id + * @memberof flyteidl.core.Node * @instance */ - LiteralType.prototype.schema = null; + Node.prototype.id = ""; /** - * LiteralType collectionType. - * @member {flyteidl.core.ILiteralType|null|undefined} collectionType - * @memberof flyteidl.core.LiteralType + * Node metadata. + * @member {flyteidl.core.INodeMetadata|null|undefined} metadata + * @memberof flyteidl.core.Node * @instance */ - LiteralType.prototype.collectionType = null; + Node.prototype.metadata = null; /** - * LiteralType mapValueType. - * @member {flyteidl.core.ILiteralType|null|undefined} mapValueType - * @memberof flyteidl.core.LiteralType + * Node inputs. + * @member {Array.} inputs + * @memberof flyteidl.core.Node * @instance */ - LiteralType.prototype.mapValueType = null; + Node.prototype.inputs = $util.emptyArray; /** - * LiteralType blob. - * @member {flyteidl.core.IBlobType|null|undefined} blob - * @memberof flyteidl.core.LiteralType + * Node upstreamNodeIds. + * @member {Array.} upstreamNodeIds + * @memberof flyteidl.core.Node * @instance */ - LiteralType.prototype.blob = null; + Node.prototype.upstreamNodeIds = $util.emptyArray; /** - * LiteralType enumType. - * @member {flyteidl.core.IEnumType|null|undefined} enumType - * @memberof flyteidl.core.LiteralType + * Node outputAliases. + * @member {Array.} outputAliases + * @memberof flyteidl.core.Node * @instance */ - LiteralType.prototype.enumType = null; + Node.prototype.outputAliases = $util.emptyArray; /** - * LiteralType structuredDatasetType. - * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType - * @memberof flyteidl.core.LiteralType + * Node taskNode. + * @member {flyteidl.core.ITaskNode|null|undefined} taskNode + * @memberof flyteidl.core.Node * @instance */ - LiteralType.prototype.structuredDatasetType = null; + Node.prototype.taskNode = null; /** - * LiteralType unionType. - * @member {flyteidl.core.IUnionType|null|undefined} unionType - * @memberof flyteidl.core.LiteralType + * Node workflowNode. + * @member {flyteidl.core.IWorkflowNode|null|undefined} workflowNode + * @memberof flyteidl.core.Node * @instance */ - LiteralType.prototype.unionType = null; + Node.prototype.workflowNode = null; /** - * LiteralType metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof flyteidl.core.LiteralType + * Node branchNode. + * @member {flyteidl.core.IBranchNode|null|undefined} branchNode + * @memberof flyteidl.core.Node * @instance */ - LiteralType.prototype.metadata = null; + Node.prototype.branchNode = null; /** - * LiteralType annotation. - * @member {flyteidl.core.ITypeAnnotation|null|undefined} annotation - * @memberof flyteidl.core.LiteralType + * Node gateNode. + * @member {flyteidl.core.IGateNode|null|undefined} gateNode + * @memberof flyteidl.core.Node * @instance */ - LiteralType.prototype.annotation = null; + Node.prototype.gateNode = null; /** - * LiteralType structure. - * @member {flyteidl.core.ITypeStructure|null|undefined} structure - * @memberof flyteidl.core.LiteralType + * Node arrayNode. + * @member {flyteidl.core.IArrayNode|null|undefined} arrayNode + * @memberof flyteidl.core.Node * @instance */ - LiteralType.prototype.structure = null; + Node.prototype.arrayNode = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * LiteralType type. - * @member {"simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"|undefined} type - * @memberof flyteidl.core.LiteralType + * Node target. + * @member {"taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"|undefined} target + * @memberof flyteidl.core.Node * @instance */ - Object.defineProperty(LiteralType.prototype, "type", { - get: $util.oneOfGetter($oneOfFields = ["simple", "schema", "collectionType", "mapValueType", "blob", "enumType", "structuredDatasetType", "unionType"]), + Object.defineProperty(Node.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["taskNode", "workflowNode", "branchNode", "gateNode", "arrayNode"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new LiteralType instance using the specified properties. + * Creates a new Node instance using the specified properties. * @function create - * @memberof flyteidl.core.LiteralType + * @memberof flyteidl.core.Node * @static - * @param {flyteidl.core.ILiteralType=} [properties] Properties to set - * @returns {flyteidl.core.LiteralType} LiteralType instance + * @param {flyteidl.core.INode=} [properties] Properties to set + * @returns {flyteidl.core.Node} Node instance */ - LiteralType.create = function create(properties) { - return new LiteralType(properties); + Node.create = function create(properties) { + return new Node(properties); }; /** - * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. + * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. * @function encode - * @memberof flyteidl.core.LiteralType + * @memberof flyteidl.core.Node * @static - * @param {flyteidl.core.ILiteralType} message LiteralType message or plain object to encode + * @param {flyteidl.core.INode} message Node message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LiteralType.encode = function encode(message, writer) { + Node.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.simple != null && message.hasOwnProperty("simple")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.simple); - if (message.schema != null && message.hasOwnProperty("schema")) - $root.flyteidl.core.SchemaType.encode(message.schema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.collectionType != null && message.hasOwnProperty("collectionType")) - $root.flyteidl.core.LiteralType.encode(message.collectionType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) - $root.flyteidl.core.LiteralType.encode(message.mapValueType, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.blob != null && message.hasOwnProperty("blob")) - $root.flyteidl.core.BlobType.encode(message.blob, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.id != null && message.hasOwnProperty("id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.enumType != null && message.hasOwnProperty("enumType")) - $root.flyteidl.core.EnumType.encode(message.enumType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) - $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.annotation != null && message.hasOwnProperty("annotation")) - $root.flyteidl.core.TypeAnnotation.encode(message.annotation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.unionType != null && message.hasOwnProperty("unionType")) - $root.flyteidl.core.UnionType.encode(message.unionType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.structure != null && message.hasOwnProperty("structure")) - $root.flyteidl.core.TypeStructure.encode(message.structure, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + $root.flyteidl.core.NodeMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inputs != null && message.inputs.length) + for (var i = 0; i < message.inputs.length; ++i) + $root.flyteidl.core.Binding.encode(message.inputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.upstreamNodeIds != null && message.upstreamNodeIds.length) + for (var i = 0; i < message.upstreamNodeIds.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.upstreamNodeIds[i]); + if (message.outputAliases != null && message.outputAliases.length) + for (var i = 0; i < message.outputAliases.length; ++i) + $root.flyteidl.core.Alias.encode(message.outputAliases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.taskNode != null && message.hasOwnProperty("taskNode")) + $root.flyteidl.core.TaskNode.encode(message.taskNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) + $root.flyteidl.core.WorkflowNode.encode(message.workflowNode, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.branchNode != null && message.hasOwnProperty("branchNode")) + $root.flyteidl.core.BranchNode.encode(message.branchNode, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.gateNode != null && message.hasOwnProperty("gateNode")) + $root.flyteidl.core.GateNode.encode(message.gateNode, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) + $root.flyteidl.core.ArrayNode.encode(message.arrayNode, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; /** - * Decodes a LiteralType message from the specified reader or buffer. + * Decodes a Node message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.LiteralType + * @memberof flyteidl.core.Node * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LiteralType} LiteralType + * @returns {flyteidl.core.Node} Node * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LiteralType.decode = function decode(reader, length) { + Node.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Node(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.simple = reader.int32(); + message.id = reader.string(); break; case 2: - message.schema = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); + message.metadata = $root.flyteidl.core.NodeMetadata.decode(reader, reader.uint32()); break; case 3: - message.collectionType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + if (!(message.inputs && message.inputs.length)) + message.inputs = []; + message.inputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); break; case 4: - message.mapValueType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + if (!(message.upstreamNodeIds && message.upstreamNodeIds.length)) + message.upstreamNodeIds = []; + message.upstreamNodeIds.push(reader.string()); break; case 5: - message.blob = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); + if (!(message.outputAliases && message.outputAliases.length)) + message.outputAliases = []; + message.outputAliases.push($root.flyteidl.core.Alias.decode(reader, reader.uint32())); + break; + case 6: + message.taskNode = $root.flyteidl.core.TaskNode.decode(reader, reader.uint32()); break; case 7: - message.enumType = $root.flyteidl.core.EnumType.decode(reader, reader.uint32()); + message.workflowNode = $root.flyteidl.core.WorkflowNode.decode(reader, reader.uint32()); break; case 8: - message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); - break; - case 10: - message.unionType = $root.flyteidl.core.UnionType.decode(reader, reader.uint32()); - break; - case 6: - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.branchNode = $root.flyteidl.core.BranchNode.decode(reader, reader.uint32()); break; case 9: - message.annotation = $root.flyteidl.core.TypeAnnotation.decode(reader, reader.uint32()); + message.gateNode = $root.flyteidl.core.GateNode.decode(reader, reader.uint32()); break; - case 11: - message.structure = $root.flyteidl.core.TypeStructure.decode(reader, reader.uint32()); + case 10: + message.arrayNode = $root.flyteidl.core.ArrayNode.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -11204,147 +11317,299 @@ }; /** - * Verifies a LiteralType message. + * Verifies a Node message. * @function verify - * @memberof flyteidl.core.LiteralType + * @memberof flyteidl.core.Node * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LiteralType.verify = function verify(message) { + Node.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.simple != null && message.hasOwnProperty("simple")) { - properties.type = 1; - switch (message.simple) { - default: - return "simple: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.NodeMetadata.verify(message.metadata); + if (error) + return "metadata." + error; } - if (message.schema != null && message.hasOwnProperty("schema")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.SchemaType.verify(message.schema); + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!Array.isArray(message.inputs)) + return "inputs: array expected"; + for (var i = 0; i < message.inputs.length; ++i) { + var error = $root.flyteidl.core.Binding.verify(message.inputs[i]); if (error) - return "schema." + error; + return "inputs." + error; } } - if (message.collectionType != null && message.hasOwnProperty("collectionType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.LiteralType.verify(message.collectionType); + if (message.upstreamNodeIds != null && message.hasOwnProperty("upstreamNodeIds")) { + if (!Array.isArray(message.upstreamNodeIds)) + return "upstreamNodeIds: array expected"; + for (var i = 0; i < message.upstreamNodeIds.length; ++i) + if (!$util.isString(message.upstreamNodeIds[i])) + return "upstreamNodeIds: string[] expected"; + } + if (message.outputAliases != null && message.hasOwnProperty("outputAliases")) { + if (!Array.isArray(message.outputAliases)) + return "outputAliases: array expected"; + for (var i = 0; i < message.outputAliases.length; ++i) { + var error = $root.flyteidl.core.Alias.verify(message.outputAliases[i]); if (error) - return "collectionType." + error; + return "outputAliases." + error; } } - if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; + if (message.taskNode != null && message.hasOwnProperty("taskNode")) { + properties.target = 1; { - var error = $root.flyteidl.core.LiteralType.verify(message.mapValueType); + var error = $root.flyteidl.core.TaskNode.verify(message.taskNode); if (error) - return "mapValueType." + error; + return "taskNode." + error; } } - if (message.blob != null && message.hasOwnProperty("blob")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; + if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; { - var error = $root.flyteidl.core.BlobType.verify(message.blob); + var error = $root.flyteidl.core.WorkflowNode.verify(message.workflowNode); if (error) - return "blob." + error; + return "workflowNode." + error; } } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; + if (message.branchNode != null && message.hasOwnProperty("branchNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; { - var error = $root.flyteidl.core.EnumType.verify(message.enumType); + var error = $root.flyteidl.core.BranchNode.verify(message.branchNode); if (error) - return "enumType." + error; + return "branchNode." + error; } } - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; + if (message.gateNode != null && message.hasOwnProperty("gateNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; { - var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); + var error = $root.flyteidl.core.GateNode.verify(message.gateNode); if (error) - return "structuredDatasetType." + error; + return "gateNode." + error; } } - if (message.unionType != null && message.hasOwnProperty("unionType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; + if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; { - var error = $root.flyteidl.core.UnionType.verify(message.unionType); + var error = $root.flyteidl.core.ArrayNode.verify(message.arrayNode); if (error) - return "unionType." + error; + return "arrayNode." + error; } } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.annotation != null && message.hasOwnProperty("annotation")) { - var error = $root.flyteidl.core.TypeAnnotation.verify(message.annotation); - if (error) - return "annotation." + error; + return null; + }; + + return Node; + })(); + + core.WorkflowMetadata = (function() { + + /** + * Properties of a WorkflowMetadata. + * @memberof flyteidl.core + * @interface IWorkflowMetadata + * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] WorkflowMetadata qualityOfService + * @property {flyteidl.core.WorkflowMetadata.OnFailurePolicy|null} [onFailure] WorkflowMetadata onFailure + * @property {Object.|null} [tags] WorkflowMetadata tags + */ + + /** + * Constructs a new WorkflowMetadata. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowMetadata. + * @implements IWorkflowMetadata + * @constructor + * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set + */ + function WorkflowMetadata(properties) { + this.tags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowMetadata qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.core.WorkflowMetadata + * @instance + */ + WorkflowMetadata.prototype.qualityOfService = null; + + /** + * WorkflowMetadata onFailure. + * @member {flyteidl.core.WorkflowMetadata.OnFailurePolicy} onFailure + * @memberof flyteidl.core.WorkflowMetadata + * @instance + */ + WorkflowMetadata.prototype.onFailure = 0; + + /** + * WorkflowMetadata tags. + * @member {Object.} tags + * @memberof flyteidl.core.WorkflowMetadata + * @instance + */ + WorkflowMetadata.prototype.tags = $util.emptyObject; + + /** + * Creates a new WorkflowMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata instance + */ + WorkflowMetadata.create = function create(properties) { + return new WorkflowMetadata(properties); + }; + + /** + * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {flyteidl.core.IWorkflowMetadata} message WorkflowMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) + $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.onFailure != null && message.hasOwnProperty("onFailure")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.onFailure); + if (message.tags != null && message.hasOwnProperty("tags")) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadata(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); + break; + case 2: + message.onFailure = reader.int32(); + break; + case 3: + reader.skip().pos++; + if (message.tags === $util.emptyObject) + message.tags = {}; + key = reader.string(); + reader.pos++; + message.tags[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - if (message.structure != null && message.hasOwnProperty("structure")) { - var error = $root.flyteidl.core.TypeStructure.verify(message.structure); + return message; + }; + + /** + * Verifies a WorkflowMetadata message. + * @function verify + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { + var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); if (error) - return "structure." + error; + return "qualityOfService." + error; + } + if (message.onFailure != null && message.hasOwnProperty("onFailure")) + switch (message.onFailure) { + default: + return "onFailure: enum value expected"; + case 0: + case 1: + break; + } + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; } return null; }; - return LiteralType; + /** + * OnFailurePolicy enum. + * @name flyteidl.core.WorkflowMetadata.OnFailurePolicy + * @enum {string} + * @property {number} FAIL_IMMEDIATELY=0 FAIL_IMMEDIATELY value + * @property {number} FAIL_AFTER_EXECUTABLE_NODES_COMPLETE=1 FAIL_AFTER_EXECUTABLE_NODES_COMPLETE value + */ + WorkflowMetadata.OnFailurePolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FAIL_IMMEDIATELY"] = 0; + values[valuesById[1] = "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE"] = 1; + return values; + })(); + + return WorkflowMetadata; })(); - core.OutputReference = (function() { + core.WorkflowMetadataDefaults = (function() { /** - * Properties of an OutputReference. + * Properties of a WorkflowMetadataDefaults. * @memberof flyteidl.core - * @interface IOutputReference - * @property {string|null} [nodeId] OutputReference nodeId - * @property {string|null} ["var"] OutputReference var - * @property {Array.|null} [attrPath] OutputReference attrPath + * @interface IWorkflowMetadataDefaults + * @property {boolean|null} [interruptible] WorkflowMetadataDefaults interruptible */ /** - * Constructs a new OutputReference. + * Constructs a new WorkflowMetadataDefaults. * @memberof flyteidl.core - * @classdesc Represents an OutputReference. - * @implements IOutputReference + * @classdesc Represents a WorkflowMetadataDefaults. + * @implements IWorkflowMetadataDefaults * @constructor - * @param {flyteidl.core.IOutputReference=} [properties] Properties to set + * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set */ - function OutputReference(properties) { - this.attrPath = []; + function WorkflowMetadataDefaults(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11352,91 +11617,62 @@ } /** - * OutputReference nodeId. - * @member {string} nodeId - * @memberof flyteidl.core.OutputReference - * @instance - */ - OutputReference.prototype.nodeId = ""; - - /** - * OutputReference var. - * @member {string} var - * @memberof flyteidl.core.OutputReference - * @instance - */ - OutputReference.prototype["var"] = ""; - - /** - * OutputReference attrPath. - * @member {Array.} attrPath - * @memberof flyteidl.core.OutputReference + * WorkflowMetadataDefaults interruptible. + * @member {boolean} interruptible + * @memberof flyteidl.core.WorkflowMetadataDefaults * @instance */ - OutputReference.prototype.attrPath = $util.emptyArray; + WorkflowMetadataDefaults.prototype.interruptible = false; /** - * Creates a new OutputReference instance using the specified properties. + * Creates a new WorkflowMetadataDefaults instance using the specified properties. * @function create - * @memberof flyteidl.core.OutputReference + * @memberof flyteidl.core.WorkflowMetadataDefaults * @static - * @param {flyteidl.core.IOutputReference=} [properties] Properties to set - * @returns {flyteidl.core.OutputReference} OutputReference instance + * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults instance */ - OutputReference.create = function create(properties) { - return new OutputReference(properties); + WorkflowMetadataDefaults.create = function create(properties) { + return new WorkflowMetadataDefaults(properties); }; /** - * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. + * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. * @function encode - * @memberof flyteidl.core.OutputReference + * @memberof flyteidl.core.WorkflowMetadataDefaults * @static - * @param {flyteidl.core.IOutputReference} message OutputReference message or plain object to encode + * @param {flyteidl.core.IWorkflowMetadataDefaults} message WorkflowMetadataDefaults message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OutputReference.encode = function encode(message, writer) { + WorkflowMetadataDefaults.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); - if (message.attrPath != null && message.attrPath.length) - for (var i = 0; i < message.attrPath.length; ++i) - $root.flyteidl.core.PromiseAttribute.encode(message.attrPath[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.interruptible); return writer; }; /** - * Decodes an OutputReference message from the specified reader or buffer. + * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.OutputReference + * @memberof flyteidl.core.WorkflowMetadataDefaults * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.OutputReference} OutputReference + * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OutputReference.decode = function decode(reader, length) { + WorkflowMetadataDefaults.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OutputReference(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadataDefaults(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.nodeId = reader.string(); - break; - case 2: - message["var"] = reader.string(); - break; - case 3: - if (!(message.attrPath && message.attrPath.length)) - message.attrPath = []; - message.attrPath.push($root.flyteidl.core.PromiseAttribute.decode(reader, reader.uint32())); + message.interruptible = reader.bool(); break; default: reader.skipType(tag & 7); @@ -11447,56 +11683,51 @@ }; /** - * Verifies an OutputReference message. + * Verifies a WorkflowMetadataDefaults message. * @function verify - * @memberof flyteidl.core.OutputReference + * @memberof flyteidl.core.WorkflowMetadataDefaults * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OutputReference.verify = function verify(message) { + WorkflowMetadataDefaults.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isString(message.nodeId)) - return "nodeId: string expected"; - if (message["var"] != null && message.hasOwnProperty("var")) - if (!$util.isString(message["var"])) - return "var: string expected"; - if (message.attrPath != null && message.hasOwnProperty("attrPath")) { - if (!Array.isArray(message.attrPath)) - return "attrPath: array expected"; - for (var i = 0; i < message.attrPath.length; ++i) { - var error = $root.flyteidl.core.PromiseAttribute.verify(message.attrPath[i]); - if (error) - return "attrPath." + error; - } - } + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + if (typeof message.interruptible !== "boolean") + return "interruptible: boolean expected"; return null; }; - return OutputReference; + return WorkflowMetadataDefaults; })(); - core.PromiseAttribute = (function() { + core.WorkflowTemplate = (function() { /** - * Properties of a PromiseAttribute. + * Properties of a WorkflowTemplate. * @memberof flyteidl.core - * @interface IPromiseAttribute - * @property {string|null} [stringValue] PromiseAttribute stringValue - * @property {number|null} [intValue] PromiseAttribute intValue + * @interface IWorkflowTemplate + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowTemplate id + * @property {flyteidl.core.IWorkflowMetadata|null} [metadata] WorkflowTemplate metadata + * @property {flyteidl.core.ITypedInterface|null} ["interface"] WorkflowTemplate interface + * @property {Array.|null} [nodes] WorkflowTemplate nodes + * @property {Array.|null} [outputs] WorkflowTemplate outputs + * @property {flyteidl.core.INode|null} [failureNode] WorkflowTemplate failureNode + * @property {flyteidl.core.IWorkflowMetadataDefaults|null} [metadataDefaults] WorkflowTemplate metadataDefaults */ /** - * Constructs a new PromiseAttribute. + * Constructs a new WorkflowTemplate. * @memberof flyteidl.core - * @classdesc Represents a PromiseAttribute. - * @implements IPromiseAttribute + * @classdesc Represents a WorkflowTemplate. + * @implements IWorkflowTemplate * @constructor - * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set + * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set */ - function PromiseAttribute(properties) { + function WorkflowTemplate(properties) { + this.nodes = []; + this.outputs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11504,89 +11735,146 @@ } /** - * PromiseAttribute stringValue. - * @member {string} stringValue - * @memberof flyteidl.core.PromiseAttribute + * WorkflowTemplate id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.core.WorkflowTemplate * @instance */ - PromiseAttribute.prototype.stringValue = ""; + WorkflowTemplate.prototype.id = null; /** - * PromiseAttribute intValue. - * @member {number} intValue - * @memberof flyteidl.core.PromiseAttribute + * WorkflowTemplate metadata. + * @member {flyteidl.core.IWorkflowMetadata|null|undefined} metadata + * @memberof flyteidl.core.WorkflowTemplate * @instance */ - PromiseAttribute.prototype.intValue = 0; + WorkflowTemplate.prototype.metadata = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * WorkflowTemplate interface. + * @member {flyteidl.core.ITypedInterface|null|undefined} interface + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype["interface"] = null; /** - * PromiseAttribute value. - * @member {"stringValue"|"intValue"|undefined} value - * @memberof flyteidl.core.PromiseAttribute + * WorkflowTemplate nodes. + * @member {Array.} nodes + * @memberof flyteidl.core.WorkflowTemplate * @instance */ - Object.defineProperty(PromiseAttribute.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["stringValue", "intValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + WorkflowTemplate.prototype.nodes = $util.emptyArray; /** - * Creates a new PromiseAttribute instance using the specified properties. + * WorkflowTemplate outputs. + * @member {Array.} outputs + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.outputs = $util.emptyArray; + + /** + * WorkflowTemplate failureNode. + * @member {flyteidl.core.INode|null|undefined} failureNode + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.failureNode = null; + + /** + * WorkflowTemplate metadataDefaults. + * @member {flyteidl.core.IWorkflowMetadataDefaults|null|undefined} metadataDefaults + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.metadataDefaults = null; + + /** + * Creates a new WorkflowTemplate instance using the specified properties. * @function create - * @memberof flyteidl.core.PromiseAttribute + * @memberof flyteidl.core.WorkflowTemplate * @static - * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set - * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute instance + * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate instance */ - PromiseAttribute.create = function create(properties) { - return new PromiseAttribute(properties); + WorkflowTemplate.create = function create(properties) { + return new WorkflowTemplate(properties); }; /** - * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages. + * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. * @function encode - * @memberof flyteidl.core.PromiseAttribute + * @memberof flyteidl.core.WorkflowTemplate * @static - * @param {flyteidl.core.IPromiseAttribute} message PromiseAttribute message or plain object to encode + * @param {flyteidl.core.IWorkflowTemplate} message WorkflowTemplate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PromiseAttribute.encode = function encode(message, writer) { + WorkflowTemplate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stringValue); - if (message.intValue != null && message.hasOwnProperty("intValue")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.intValue); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.WorkflowMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message["interface"] != null && message.hasOwnProperty("interface")) + $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.nodes != null && message.nodes.length) + for (var i = 0; i < message.nodes.length; ++i) + $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.outputs != null && message.outputs.length) + for (var i = 0; i < message.outputs.length; ++i) + $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.failureNode != null && message.hasOwnProperty("failureNode")) + $root.flyteidl.core.Node.encode(message.failureNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) + $root.flyteidl.core.WorkflowMetadataDefaults.encode(message.metadataDefaults, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Decodes a PromiseAttribute message from the specified reader or buffer. + * Decodes a WorkflowTemplate message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.PromiseAttribute + * @memberof flyteidl.core.WorkflowTemplate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute + * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PromiseAttribute.decode = function decode(reader, length) { + WorkflowTemplate.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.PromiseAttribute(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowTemplate(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.stringValue = reader.string(); + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); break; case 2: - message.intValue = reader.int32(); + message.metadata = $root.flyteidl.core.WorkflowMetadata.decode(reader, reader.uint32()); + break; + case 3: + message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.nodes && message.nodes.length)) + message.nodes = []; + message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.outputs && message.outputs.length)) + message.outputs = []; + message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); + break; + case 6: + message.failureNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + case 7: + message.metadataDefaults = $root.flyteidl.core.WorkflowMetadataDefaults.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -11597,54 +11885,84 @@ }; /** - * Verifies a PromiseAttribute message. + * Verifies a WorkflowTemplate message. * @function verify - * @memberof flyteidl.core.PromiseAttribute + * @memberof flyteidl.core.WorkflowTemplate * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PromiseAttribute.verify = function verify(message) { + WorkflowTemplate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; } - if (message.intValue != null && message.hasOwnProperty("intValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isInteger(message.intValue)) - return "intValue: integer expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.WorkflowMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message["interface"] != null && message.hasOwnProperty("interface")) { + var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); + if (error) + return "interface." + error; + } + if (message.nodes != null && message.hasOwnProperty("nodes")) { + if (!Array.isArray(message.nodes)) + return "nodes: array expected"; + for (var i = 0; i < message.nodes.length; ++i) { + var error = $root.flyteidl.core.Node.verify(message.nodes[i]); + if (error) + return "nodes." + error; + } + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!Array.isArray(message.outputs)) + return "outputs: array expected"; + for (var i = 0; i < message.outputs.length; ++i) { + var error = $root.flyteidl.core.Binding.verify(message.outputs[i]); + if (error) + return "outputs." + error; + } + } + if (message.failureNode != null && message.hasOwnProperty("failureNode")) { + var error = $root.flyteidl.core.Node.verify(message.failureNode); + if (error) + return "failureNode." + error; + } + if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) { + var error = $root.flyteidl.core.WorkflowMetadataDefaults.verify(message.metadataDefaults); + if (error) + return "metadataDefaults." + error; } return null; }; - return PromiseAttribute; + return WorkflowTemplate; })(); - core.Error = (function() { + core.TaskNodeOverrides = (function() { /** - * Properties of an Error. + * Properties of a TaskNodeOverrides. * @memberof flyteidl.core - * @interface IError - * @property {string|null} [failedNodeId] Error failedNodeId - * @property {string|null} [message] Error message + * @interface ITaskNodeOverrides + * @property {flyteidl.core.IResources|null} [resources] TaskNodeOverrides resources + * @property {flyteidl.core.IExtendedResources|null} [extendedResources] TaskNodeOverrides extendedResources */ /** - * Constructs a new Error. + * Constructs a new TaskNodeOverrides. * @memberof flyteidl.core - * @classdesc Represents an Error. - * @implements IError + * @classdesc Represents a TaskNodeOverrides. + * @implements ITaskNodeOverrides * @constructor - * @param {flyteidl.core.IError=} [properties] Properties to set + * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set */ - function Error(properties) { + function TaskNodeOverrides(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11652,75 +11970,75 @@ } /** - * Error failedNodeId. - * @member {string} failedNodeId - * @memberof flyteidl.core.Error + * TaskNodeOverrides resources. + * @member {flyteidl.core.IResources|null|undefined} resources + * @memberof flyteidl.core.TaskNodeOverrides * @instance */ - Error.prototype.failedNodeId = ""; + TaskNodeOverrides.prototype.resources = null; /** - * Error message. - * @member {string} message - * @memberof flyteidl.core.Error + * TaskNodeOverrides extendedResources. + * @member {flyteidl.core.IExtendedResources|null|undefined} extendedResources + * @memberof flyteidl.core.TaskNodeOverrides * @instance */ - Error.prototype.message = ""; + TaskNodeOverrides.prototype.extendedResources = null; /** - * Creates a new Error instance using the specified properties. + * Creates a new TaskNodeOverrides instance using the specified properties. * @function create - * @memberof flyteidl.core.Error + * @memberof flyteidl.core.TaskNodeOverrides * @static - * @param {flyteidl.core.IError=} [properties] Properties to set - * @returns {flyteidl.core.Error} Error instance + * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set + * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides instance */ - Error.create = function create(properties) { - return new Error(properties); + TaskNodeOverrides.create = function create(properties) { + return new TaskNodeOverrides(properties); }; /** - * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. + * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Error + * @memberof flyteidl.core.TaskNodeOverrides * @static - * @param {flyteidl.core.IError} message Error message or plain object to encode + * @param {flyteidl.core.ITaskNodeOverrides} message TaskNodeOverrides message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Error.encode = function encode(message, writer) { + TaskNodeOverrides.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.failedNodeId); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.resources != null && message.hasOwnProperty("resources")) + $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) + $root.flyteidl.core.ExtendedResources.encode(message.extendedResources, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes an Error message from the specified reader or buffer. + * Decodes a TaskNodeOverrides message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Error + * @memberof flyteidl.core.TaskNodeOverrides * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Error} Error + * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Error.decode = function decode(reader, length) { + TaskNodeOverrides.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Error(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNodeOverrides(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.failedNodeId = reader.string(); + message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32()); break; case 2: - message.message = reader.string(); + message.extendedResources = $root.flyteidl.core.ExtendedResources.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -11731,45 +12049,51 @@ }; /** - * Verifies an Error message. + * Verifies a TaskNodeOverrides message. * @function verify - * @memberof flyteidl.core.Error + * @memberof flyteidl.core.TaskNodeOverrides * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Error.verify = function verify(message) { + TaskNodeOverrides.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) - if (!$util.isString(message.failedNodeId)) - return "failedNodeId: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.resources != null && message.hasOwnProperty("resources")) { + var error = $root.flyteidl.core.Resources.verify(message.resources); + if (error) + return "resources." + error; + } + if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) { + var error = $root.flyteidl.core.ExtendedResources.verify(message.extendedResources); + if (error) + return "extendedResources." + error; + } return null; }; - return Error; + return TaskNodeOverrides; })(); - core.WorkflowExecution = (function() { + core.LaunchPlanTemplate = (function() { /** - * Properties of a WorkflowExecution. + * Properties of a LaunchPlanTemplate. * @memberof flyteidl.core - * @interface IWorkflowExecution + * @interface ILaunchPlanTemplate + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanTemplate id + * @property {flyteidl.core.ITypedInterface|null} ["interface"] LaunchPlanTemplate interface */ /** - * Constructs a new WorkflowExecution. + * Constructs a new LaunchPlanTemplate. * @memberof flyteidl.core - * @classdesc Represents a WorkflowExecution. - * @implements IWorkflowExecution + * @classdesc Represents a LaunchPlanTemplate. + * @implements ILaunchPlanTemplate * @constructor - * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set + * @param {flyteidl.core.ILaunchPlanTemplate=} [properties] Properties to set */ - function WorkflowExecution(properties) { + function LaunchPlanTemplate(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11777,50 +12101,76 @@ } /** - * Creates a new WorkflowExecution instance using the specified properties. + * LaunchPlanTemplate id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.core.LaunchPlanTemplate + * @instance + */ + LaunchPlanTemplate.prototype.id = null; + + /** + * LaunchPlanTemplate interface. + * @member {flyteidl.core.ITypedInterface|null|undefined} interface + * @memberof flyteidl.core.LaunchPlanTemplate + * @instance + */ + LaunchPlanTemplate.prototype["interface"] = null; + + /** + * Creates a new LaunchPlanTemplate instance using the specified properties. * @function create - * @memberof flyteidl.core.WorkflowExecution + * @memberof flyteidl.core.LaunchPlanTemplate * @static - * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution instance + * @param {flyteidl.core.ILaunchPlanTemplate=} [properties] Properties to set + * @returns {flyteidl.core.LaunchPlanTemplate} LaunchPlanTemplate instance */ - WorkflowExecution.create = function create(properties) { - return new WorkflowExecution(properties); + LaunchPlanTemplate.create = function create(properties) { + return new LaunchPlanTemplate(properties); }; /** - * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. + * Encodes the specified LaunchPlanTemplate message. Does not implicitly {@link flyteidl.core.LaunchPlanTemplate.verify|verify} messages. * @function encode - * @memberof flyteidl.core.WorkflowExecution + * @memberof flyteidl.core.LaunchPlanTemplate * @static - * @param {flyteidl.core.IWorkflowExecution} message WorkflowExecution message or plain object to encode + * @param {flyteidl.core.ILaunchPlanTemplate} message LaunchPlanTemplate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkflowExecution.encode = function encode(message, writer) { + LaunchPlanTemplate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message["interface"] != null && message.hasOwnProperty("interface")) + $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a WorkflowExecution message from the specified reader or buffer. + * Decodes a LaunchPlanTemplate message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.WorkflowExecution + * @memberof flyteidl.core.LaunchPlanTemplate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution + * @returns {flyteidl.core.LaunchPlanTemplate} LaunchPlanTemplate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WorkflowExecution.decode = function decode(reader, length) { + LaunchPlanTemplate.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecution(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LaunchPlanTemplate(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -11830,69 +12180,52 @@ }; /** - * Verifies a WorkflowExecution message. + * Verifies a LaunchPlanTemplate message. * @function verify - * @memberof flyteidl.core.WorkflowExecution + * @memberof flyteidl.core.LaunchPlanTemplate * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WorkflowExecution.verify = function verify(message) { + LaunchPlanTemplate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message["interface"] != null && message.hasOwnProperty("interface")) { + var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); + if (error) + return "interface." + error; + } return null; }; - /** - * Phase enum. - * @name flyteidl.core.WorkflowExecution.Phase - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} QUEUED=1 QUEUED value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDING=3 SUCCEEDING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - * @property {number} FAILING=5 FAILING value - * @property {number} FAILED=6 FAILED value - * @property {number} ABORTED=7 ABORTED value - * @property {number} TIMED_OUT=8 TIMED_OUT value - * @property {number} ABORTING=9 ABORTING value - */ - WorkflowExecution.Phase = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "QUEUED"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - values[valuesById[5] = "FAILING"] = 5; - values[valuesById[6] = "FAILED"] = 6; - values[valuesById[7] = "ABORTED"] = 7; - values[valuesById[8] = "TIMED_OUT"] = 8; - values[valuesById[9] = "ABORTING"] = 9; - return values; - })(); - - return WorkflowExecution; + return LaunchPlanTemplate; })(); - core.NodeExecution = (function() { + core.ComparisonExpression = (function() { /** - * Properties of a NodeExecution. + * Properties of a ComparisonExpression. * @memberof flyteidl.core - * @interface INodeExecution + * @interface IComparisonExpression + * @property {flyteidl.core.ComparisonExpression.Operator|null} [operator] ComparisonExpression operator + * @property {flyteidl.core.IOperand|null} [leftValue] ComparisonExpression leftValue + * @property {flyteidl.core.IOperand|null} [rightValue] ComparisonExpression rightValue */ /** - * Constructs a new NodeExecution. + * Constructs a new ComparisonExpression. * @memberof flyteidl.core - * @classdesc Represents a NodeExecution. - * @implements INodeExecution + * @classdesc Represents a ComparisonExpression. + * @implements IComparisonExpression * @constructor - * @param {flyteidl.core.INodeExecution=} [properties] Properties to set + * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set */ - function NodeExecution(properties) { + function ComparisonExpression(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11900,50 +12233,89 @@ } /** - * Creates a new NodeExecution instance using the specified properties. + * ComparisonExpression operator. + * @member {flyteidl.core.ComparisonExpression.Operator} operator + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.operator = 0; + + /** + * ComparisonExpression leftValue. + * @member {flyteidl.core.IOperand|null|undefined} leftValue + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.leftValue = null; + + /** + * ComparisonExpression rightValue. + * @member {flyteidl.core.IOperand|null|undefined} rightValue + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.rightValue = null; + + /** + * Creates a new ComparisonExpression instance using the specified properties. * @function create - * @memberof flyteidl.core.NodeExecution + * @memberof flyteidl.core.ComparisonExpression * @static - * @param {flyteidl.core.INodeExecution=} [properties] Properties to set - * @returns {flyteidl.core.NodeExecution} NodeExecution instance + * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set + * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression instance */ - NodeExecution.create = function create(properties) { - return new NodeExecution(properties); + ComparisonExpression.create = function create(properties) { + return new ComparisonExpression(properties); }; /** - * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. + * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. * @function encode - * @memberof flyteidl.core.NodeExecution + * @memberof flyteidl.core.ComparisonExpression * @static - * @param {flyteidl.core.INodeExecution} message NodeExecution message or plain object to encode + * @param {flyteidl.core.IComparisonExpression} message ComparisonExpression message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeExecution.encode = function encode(message, writer) { + ComparisonExpression.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.operator != null && message.hasOwnProperty("operator")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); + if (message.leftValue != null && message.hasOwnProperty("leftValue")) + $root.flyteidl.core.Operand.encode(message.leftValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rightValue != null && message.hasOwnProperty("rightValue")) + $root.flyteidl.core.Operand.encode(message.rightValue, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Decodes a NodeExecution message from the specified reader or buffer. + * Decodes a ComparisonExpression message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.NodeExecution + * @memberof flyteidl.core.ComparisonExpression * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.NodeExecution} NodeExecution + * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeExecution.decode = function decode(reader, length) { + ComparisonExpression.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecution(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ComparisonExpression(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.operator = reader.int32(); + break; + case 2: + message.leftValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); + break; + case 3: + message.rightValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -11953,71 +12325,86 @@ }; /** - * Verifies a NodeExecution message. + * Verifies a ComparisonExpression message. * @function verify - * @memberof flyteidl.core.NodeExecution + * @memberof flyteidl.core.ComparisonExpression * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeExecution.verify = function verify(message) { + ComparisonExpression.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.operator != null && message.hasOwnProperty("operator")) + switch (message.operator) { + default: + return "operator: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.leftValue != null && message.hasOwnProperty("leftValue")) { + var error = $root.flyteidl.core.Operand.verify(message.leftValue); + if (error) + return "leftValue." + error; + } + if (message.rightValue != null && message.hasOwnProperty("rightValue")) { + var error = $root.flyteidl.core.Operand.verify(message.rightValue); + if (error) + return "rightValue." + error; + } return null; }; /** - * Phase enum. - * @name flyteidl.core.NodeExecution.Phase + * Operator enum. + * @name flyteidl.core.ComparisonExpression.Operator * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} QUEUED=1 QUEUED value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} FAILING=4 FAILING value - * @property {number} FAILED=5 FAILED value - * @property {number} ABORTED=6 ABORTED value - * @property {number} SKIPPED=7 SKIPPED value - * @property {number} TIMED_OUT=8 TIMED_OUT value - * @property {number} DYNAMIC_RUNNING=9 DYNAMIC_RUNNING value - * @property {number} RECOVERED=10 RECOVERED value + * @property {number} EQ=0 EQ value + * @property {number} NEQ=1 NEQ value + * @property {number} GT=2 GT value + * @property {number} GTE=3 GTE value + * @property {number} LT=4 LT value + * @property {number} LTE=5 LTE value */ - NodeExecution.Phase = (function() { + ComparisonExpression.Operator = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "QUEUED"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "FAILING"] = 4; - values[valuesById[5] = "FAILED"] = 5; - values[valuesById[6] = "ABORTED"] = 6; - values[valuesById[7] = "SKIPPED"] = 7; - values[valuesById[8] = "TIMED_OUT"] = 8; - values[valuesById[9] = "DYNAMIC_RUNNING"] = 9; - values[valuesById[10] = "RECOVERED"] = 10; + values[valuesById[0] = "EQ"] = 0; + values[valuesById[1] = "NEQ"] = 1; + values[valuesById[2] = "GT"] = 2; + values[valuesById[3] = "GTE"] = 3; + values[valuesById[4] = "LT"] = 4; + values[valuesById[5] = "LTE"] = 5; return values; })(); - return NodeExecution; + return ComparisonExpression; })(); - core.TaskExecution = (function() { + core.Operand = (function() { /** - * Properties of a TaskExecution. + * Properties of an Operand. * @memberof flyteidl.core - * @interface ITaskExecution + * @interface IOperand + * @property {flyteidl.core.IPrimitive|null} [primitive] Operand primitive + * @property {string|null} ["var"] Operand var + * @property {flyteidl.core.IScalar|null} [scalar] Operand scalar */ /** - * Constructs a new TaskExecution. + * Constructs a new Operand. * @memberof flyteidl.core - * @classdesc Represents a TaskExecution. - * @implements ITaskExecution + * @classdesc Represents an Operand. + * @implements IOperand * @constructor - * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set + * @param {flyteidl.core.IOperand=} [properties] Properties to set */ - function TaskExecution(properties) { + function Operand(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12025,50 +12412,103 @@ } /** - * Creates a new TaskExecution instance using the specified properties. + * Operand primitive. + * @member {flyteidl.core.IPrimitive|null|undefined} primitive + * @memberof flyteidl.core.Operand + * @instance + */ + Operand.prototype.primitive = null; + + /** + * Operand var. + * @member {string} var + * @memberof flyteidl.core.Operand + * @instance + */ + Operand.prototype["var"] = ""; + + /** + * Operand scalar. + * @member {flyteidl.core.IScalar|null|undefined} scalar + * @memberof flyteidl.core.Operand + * @instance + */ + Operand.prototype.scalar = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Operand val. + * @member {"primitive"|"var"|"scalar"|undefined} val + * @memberof flyteidl.core.Operand + * @instance + */ + Object.defineProperty(Operand.prototype, "val", { + get: $util.oneOfGetter($oneOfFields = ["primitive", "var", "scalar"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Operand instance using the specified properties. * @function create - * @memberof flyteidl.core.TaskExecution + * @memberof flyteidl.core.Operand * @static - * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set - * @returns {flyteidl.core.TaskExecution} TaskExecution instance + * @param {flyteidl.core.IOperand=} [properties] Properties to set + * @returns {flyteidl.core.Operand} Operand instance */ - TaskExecution.create = function create(properties) { - return new TaskExecution(properties); + Operand.create = function create(properties) { + return new Operand(properties); }; /** - * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. + * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. * @function encode - * @memberof flyteidl.core.TaskExecution + * @memberof flyteidl.core.Operand * @static - * @param {flyteidl.core.ITaskExecution} message TaskExecution message or plain object to encode + * @param {flyteidl.core.IOperand} message Operand message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecution.encode = function encode(message, writer) { + Operand.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.primitive != null && message.hasOwnProperty("primitive")) + $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); + if (message.scalar != null && message.hasOwnProperty("scalar")) + $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Decodes a TaskExecution message from the specified reader or buffer. + * Decodes an Operand message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.TaskExecution + * @memberof flyteidl.core.Operand * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskExecution} TaskExecution + * @returns {flyteidl.core.Operand} Operand * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskExecution.decode = function decode(reader, length) { + Operand.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecution(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Operand(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); + break; + case 2: + message["var"] = reader.string(); + break; + case 3: + message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -12078,69 +12518,67 @@ }; /** - * Verifies a TaskExecution message. + * Verifies an Operand message. * @function verify - * @memberof flyteidl.core.TaskExecution + * @memberof flyteidl.core.Operand * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TaskExecution.verify = function verify(message) { + Operand.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.primitive != null && message.hasOwnProperty("primitive")) { + properties.val = 1; + { + var error = $root.flyteidl.core.Primitive.verify(message.primitive); + if (error) + return "primitive." + error; + } + } + if (message["var"] != null && message.hasOwnProperty("var")) { + if (properties.val === 1) + return "val: multiple values"; + properties.val = 1; + if (!$util.isString(message["var"])) + return "var: string expected"; + } + if (message.scalar != null && message.hasOwnProperty("scalar")) { + if (properties.val === 1) + return "val: multiple values"; + properties.val = 1; + { + var error = $root.flyteidl.core.Scalar.verify(message.scalar); + if (error) + return "scalar." + error; + } + } return null; }; - /** - * Phase enum. - * @name flyteidl.core.TaskExecution.Phase - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} QUEUED=1 QUEUED value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} ABORTED=4 ABORTED value - * @property {number} FAILED=5 FAILED value - * @property {number} INITIALIZING=6 INITIALIZING value - * @property {number} WAITING_FOR_RESOURCES=7 WAITING_FOR_RESOURCES value - */ - TaskExecution.Phase = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "QUEUED"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "ABORTED"] = 4; - values[valuesById[5] = "FAILED"] = 5; - values[valuesById[6] = "INITIALIZING"] = 6; - values[valuesById[7] = "WAITING_FOR_RESOURCES"] = 7; - return values; - })(); - - return TaskExecution; + return Operand; })(); - core.ExecutionError = (function() { + core.BooleanExpression = (function() { /** - * Properties of an ExecutionError. + * Properties of a BooleanExpression. * @memberof flyteidl.core - * @interface IExecutionError - * @property {string|null} [code] ExecutionError code - * @property {string|null} [message] ExecutionError message - * @property {string|null} [errorUri] ExecutionError errorUri - * @property {flyteidl.core.ExecutionError.ErrorKind|null} [kind] ExecutionError kind + * @interface IBooleanExpression + * @property {flyteidl.core.IConjunctionExpression|null} [conjunction] BooleanExpression conjunction + * @property {flyteidl.core.IComparisonExpression|null} [comparison] BooleanExpression comparison */ /** - * Constructs a new ExecutionError. + * Constructs a new BooleanExpression. * @memberof flyteidl.core - * @classdesc Represents an ExecutionError. - * @implements IExecutionError + * @classdesc Represents a BooleanExpression. + * @implements IBooleanExpression * @constructor - * @param {flyteidl.core.IExecutionError=} [properties] Properties to set + * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set */ - function ExecutionError(properties) { + function BooleanExpression(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12148,182 +12586,154 @@ } /** - * ExecutionError code. - * @member {string} code - * @memberof flyteidl.core.ExecutionError + * BooleanExpression conjunction. + * @member {flyteidl.core.IConjunctionExpression|null|undefined} conjunction + * @memberof flyteidl.core.BooleanExpression * @instance */ - ExecutionError.prototype.code = ""; + BooleanExpression.prototype.conjunction = null; /** - * ExecutionError message. - * @member {string} message - * @memberof flyteidl.core.ExecutionError + * BooleanExpression comparison. + * @member {flyteidl.core.IComparisonExpression|null|undefined} comparison + * @memberof flyteidl.core.BooleanExpression * @instance */ - ExecutionError.prototype.message = ""; + BooleanExpression.prototype.comparison = null; - /** - * ExecutionError errorUri. - * @member {string} errorUri - * @memberof flyteidl.core.ExecutionError - * @instance - */ - ExecutionError.prototype.errorUri = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ExecutionError kind. - * @member {flyteidl.core.ExecutionError.ErrorKind} kind - * @memberof flyteidl.core.ExecutionError + * BooleanExpression expr. + * @member {"conjunction"|"comparison"|undefined} expr + * @memberof flyteidl.core.BooleanExpression * @instance */ - ExecutionError.prototype.kind = 0; + Object.defineProperty(BooleanExpression.prototype, "expr", { + get: $util.oneOfGetter($oneOfFields = ["conjunction", "comparison"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ExecutionError instance using the specified properties. + * Creates a new BooleanExpression instance using the specified properties. * @function create - * @memberof flyteidl.core.ExecutionError + * @memberof flyteidl.core.BooleanExpression * @static - * @param {flyteidl.core.IExecutionError=} [properties] Properties to set - * @returns {flyteidl.core.ExecutionError} ExecutionError instance + * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set + * @returns {flyteidl.core.BooleanExpression} BooleanExpression instance */ - ExecutionError.create = function create(properties) { - return new ExecutionError(properties); + BooleanExpression.create = function create(properties) { + return new BooleanExpression(properties); }; /** - * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. + * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. * @function encode - * @memberof flyteidl.core.ExecutionError + * @memberof flyteidl.core.BooleanExpression * @static - * @param {flyteidl.core.IExecutionError} message ExecutionError message or plain object to encode + * @param {flyteidl.core.IBooleanExpression} message BooleanExpression message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecutionError.encode = function encode(message, writer) { + BooleanExpression.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && message.hasOwnProperty("code")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.errorUri != null && message.hasOwnProperty("errorUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorUri); - if (message.kind != null && message.hasOwnProperty("kind")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.kind); + if (message.conjunction != null && message.hasOwnProperty("conjunction")) + $root.flyteidl.core.ConjunctionExpression.encode(message.conjunction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.comparison != null && message.hasOwnProperty("comparison")) + $root.flyteidl.core.ComparisonExpression.encode(message.comparison, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes an ExecutionError message from the specified reader or buffer. + * Decodes a BooleanExpression message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.ExecutionError + * @memberof flyteidl.core.BooleanExpression * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ExecutionError} ExecutionError + * @returns {flyteidl.core.BooleanExpression} BooleanExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecutionError.decode = function decode(reader, length) { + BooleanExpression.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExecutionError(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BooleanExpression(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.code = reader.string(); + message.conjunction = $root.flyteidl.core.ConjunctionExpression.decode(reader, reader.uint32()); break; case 2: - message.message = reader.string(); - break; - case 3: - message.errorUri = reader.string(); - break; - case 4: - message.kind = reader.int32(); + message.comparison = $root.flyteidl.core.ComparisonExpression.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); break; } - } - return message; - }; - - /** - * Verifies an ExecutionError message. - * @function verify - * @memberof flyteidl.core.ExecutionError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.errorUri != null && message.hasOwnProperty("errorUri")) - if (!$util.isString(message.errorUri)) - return "errorUri: string expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - switch (message.kind) { - default: - return "kind: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; + } + return message; }; /** - * ErrorKind enum. - * @name flyteidl.core.ExecutionError.ErrorKind - * @enum {string} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} USER=1 USER value - * @property {number} SYSTEM=2 SYSTEM value + * Verifies a BooleanExpression message. + * @function verify + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecutionError.ErrorKind = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "USER"] = 1; - values[valuesById[2] = "SYSTEM"] = 2; - return values; - })(); + BooleanExpression.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.conjunction != null && message.hasOwnProperty("conjunction")) { + properties.expr = 1; + { + var error = $root.flyteidl.core.ConjunctionExpression.verify(message.conjunction); + if (error) + return "conjunction." + error; + } + } + if (message.comparison != null && message.hasOwnProperty("comparison")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.flyteidl.core.ComparisonExpression.verify(message.comparison); + if (error) + return "comparison." + error; + } + } + return null; + }; - return ExecutionError; + return BooleanExpression; })(); - core.TaskLog = (function() { + core.ConjunctionExpression = (function() { /** - * Properties of a TaskLog. + * Properties of a ConjunctionExpression. * @memberof flyteidl.core - * @interface ITaskLog - * @property {string|null} [uri] TaskLog uri - * @property {string|null} [name] TaskLog name - * @property {flyteidl.core.TaskLog.MessageFormat|null} [messageFormat] TaskLog messageFormat - * @property {google.protobuf.IDuration|null} [ttl] TaskLog ttl + * @interface IConjunctionExpression + * @property {flyteidl.core.ConjunctionExpression.LogicalOperator|null} [operator] ConjunctionExpression operator + * @property {flyteidl.core.IBooleanExpression|null} [leftExpression] ConjunctionExpression leftExpression + * @property {flyteidl.core.IBooleanExpression|null} [rightExpression] ConjunctionExpression rightExpression */ /** - * Constructs a new TaskLog. + * Constructs a new ConjunctionExpression. * @memberof flyteidl.core - * @classdesc Represents a TaskLog. - * @implements ITaskLog + * @classdesc Represents a ConjunctionExpression. + * @implements IConjunctionExpression * @constructor - * @param {flyteidl.core.ITaskLog=} [properties] Properties to set + * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set */ - function TaskLog(properties) { + function ConjunctionExpression(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12331,101 +12741,88 @@ } /** - * TaskLog uri. - * @member {string} uri - * @memberof flyteidl.core.TaskLog - * @instance - */ - TaskLog.prototype.uri = ""; - - /** - * TaskLog name. - * @member {string} name - * @memberof flyteidl.core.TaskLog + * ConjunctionExpression operator. + * @member {flyteidl.core.ConjunctionExpression.LogicalOperator} operator + * @memberof flyteidl.core.ConjunctionExpression * @instance */ - TaskLog.prototype.name = ""; + ConjunctionExpression.prototype.operator = 0; /** - * TaskLog messageFormat. - * @member {flyteidl.core.TaskLog.MessageFormat} messageFormat - * @memberof flyteidl.core.TaskLog + * ConjunctionExpression leftExpression. + * @member {flyteidl.core.IBooleanExpression|null|undefined} leftExpression + * @memberof flyteidl.core.ConjunctionExpression * @instance */ - TaskLog.prototype.messageFormat = 0; + ConjunctionExpression.prototype.leftExpression = null; /** - * TaskLog ttl. - * @member {google.protobuf.IDuration|null|undefined} ttl - * @memberof flyteidl.core.TaskLog + * ConjunctionExpression rightExpression. + * @member {flyteidl.core.IBooleanExpression|null|undefined} rightExpression + * @memberof flyteidl.core.ConjunctionExpression * @instance */ - TaskLog.prototype.ttl = null; + ConjunctionExpression.prototype.rightExpression = null; /** - * Creates a new TaskLog instance using the specified properties. + * Creates a new ConjunctionExpression instance using the specified properties. * @function create - * @memberof flyteidl.core.TaskLog + * @memberof flyteidl.core.ConjunctionExpression * @static - * @param {flyteidl.core.ITaskLog=} [properties] Properties to set - * @returns {flyteidl.core.TaskLog} TaskLog instance + * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set + * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression instance */ - TaskLog.create = function create(properties) { - return new TaskLog(properties); + ConjunctionExpression.create = function create(properties) { + return new ConjunctionExpression(properties); }; /** - * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. + * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. * @function encode - * @memberof flyteidl.core.TaskLog + * @memberof flyteidl.core.ConjunctionExpression * @static - * @param {flyteidl.core.ITaskLog} message TaskLog message or plain object to encode + * @param {flyteidl.core.IConjunctionExpression} message ConjunctionExpression message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskLog.encode = function encode(message, writer) { + ConjunctionExpression.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.messageFormat); - if (message.ttl != null && message.hasOwnProperty("ttl")) - $root.google.protobuf.Duration.encode(message.ttl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.operator != null && message.hasOwnProperty("operator")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); + if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) + $root.flyteidl.core.BooleanExpression.encode(message.leftExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) + $root.flyteidl.core.BooleanExpression.encode(message.rightExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Decodes a TaskLog message from the specified reader or buffer. + * Decodes a ConjunctionExpression message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.TaskLog + * @memberof flyteidl.core.ConjunctionExpression * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskLog} TaskLog + * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskLog.decode = function decode(reader, length) { + ConjunctionExpression.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskLog(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConjunctionExpression(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.uri = reader.string(); + message.operator = reader.int32(); break; case 2: - message.name = reader.string(); + message.leftExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); break; case 3: - message.messageFormat = reader.int32(); - break; - case 4: - message.ttl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.rightExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -12436,76 +12833,71 @@ }; /** - * Verifies a TaskLog message. + * Verifies a ConjunctionExpression message. * @function verify - * @memberof flyteidl.core.TaskLog + * @memberof flyteidl.core.ConjunctionExpression * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TaskLog.verify = function verify(message) { + ConjunctionExpression.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) - switch (message.messageFormat) { + if (message.operator != null && message.hasOwnProperty("operator")) + switch (message.operator) { default: - return "messageFormat: enum value expected"; + return "operator: enum value expected"; case 0: case 1: - case 2: break; } - if (message.ttl != null && message.hasOwnProperty("ttl")) { - var error = $root.google.protobuf.Duration.verify(message.ttl); + if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) { + var error = $root.flyteidl.core.BooleanExpression.verify(message.leftExpression); if (error) - return "ttl." + error; + return "leftExpression." + error; + } + if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) { + var error = $root.flyteidl.core.BooleanExpression.verify(message.rightExpression); + if (error) + return "rightExpression." + error; } return null; }; /** - * MessageFormat enum. - * @name flyteidl.core.TaskLog.MessageFormat + * LogicalOperator enum. + * @name flyteidl.core.ConjunctionExpression.LogicalOperator * @enum {string} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} CSV=1 CSV value - * @property {number} JSON=2 JSON value + * @property {number} AND=0 AND value + * @property {number} OR=1 OR value */ - TaskLog.MessageFormat = (function() { + ConjunctionExpression.LogicalOperator = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "CSV"] = 1; - values[valuesById[2] = "JSON"] = 2; + values[valuesById[0] = "AND"] = 0; + values[valuesById[1] = "OR"] = 1; return values; })(); - return TaskLog; + return ConjunctionExpression; })(); - core.QualityOfServiceSpec = (function() { + core.WorkflowExecution = (function() { /** - * Properties of a QualityOfServiceSpec. + * Properties of a WorkflowExecution. * @memberof flyteidl.core - * @interface IQualityOfServiceSpec - * @property {google.protobuf.IDuration|null} [queueingBudget] QualityOfServiceSpec queueingBudget + * @interface IWorkflowExecution */ /** - * Constructs a new QualityOfServiceSpec. + * Constructs a new WorkflowExecution. * @memberof flyteidl.core - * @classdesc Represents a QualityOfServiceSpec. - * @implements IQualityOfServiceSpec + * @classdesc Represents a WorkflowExecution. + * @implements IWorkflowExecution * @constructor - * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set + * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set */ - function QualityOfServiceSpec(properties) { + function WorkflowExecution(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12513,63 +12905,50 @@ } /** - * QualityOfServiceSpec queueingBudget. - * @member {google.protobuf.IDuration|null|undefined} queueingBudget - * @memberof flyteidl.core.QualityOfServiceSpec - * @instance - */ - QualityOfServiceSpec.prototype.queueingBudget = null; - - /** - * Creates a new QualityOfServiceSpec instance using the specified properties. + * Creates a new WorkflowExecution instance using the specified properties. * @function create - * @memberof flyteidl.core.QualityOfServiceSpec + * @memberof flyteidl.core.WorkflowExecution * @static - * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set - * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec instance + * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution instance */ - QualityOfServiceSpec.create = function create(properties) { - return new QualityOfServiceSpec(properties); + WorkflowExecution.create = function create(properties) { + return new WorkflowExecution(properties); }; /** - * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. + * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. * @function encode - * @memberof flyteidl.core.QualityOfServiceSpec + * @memberof flyteidl.core.WorkflowExecution * @static - * @param {flyteidl.core.IQualityOfServiceSpec} message QualityOfServiceSpec message or plain object to encode + * @param {flyteidl.core.IWorkflowExecution} message WorkflowExecution message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QualityOfServiceSpec.encode = function encode(message, writer) { + WorkflowExecution.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) - $root.google.protobuf.Duration.encode(message.queueingBudget, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a QualityOfServiceSpec message from the specified reader or buffer. + * Decodes a WorkflowExecution message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.QualityOfServiceSpec + * @memberof flyteidl.core.WorkflowExecution * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec + * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QualityOfServiceSpec.decode = function decode(reader, length) { + WorkflowExecution.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfServiceSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecution(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.queueingBudget = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -12579,46 +12958,69 @@ }; /** - * Verifies a QualityOfServiceSpec message. + * Verifies a WorkflowExecution message. * @function verify - * @memberof flyteidl.core.QualityOfServiceSpec + * @memberof flyteidl.core.WorkflowExecution * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QualityOfServiceSpec.verify = function verify(message) { + WorkflowExecution.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) { - var error = $root.google.protobuf.Duration.verify(message.queueingBudget); - if (error) - return "queueingBudget." + error; - } return null; }; - return QualityOfServiceSpec; + /** + * Phase enum. + * @name flyteidl.core.WorkflowExecution.Phase + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDING=3 SUCCEEDING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} FAILING=5 FAILING value + * @property {number} FAILED=6 FAILED value + * @property {number} ABORTED=7 ABORTED value + * @property {number} TIMED_OUT=8 TIMED_OUT value + * @property {number} ABORTING=9 ABORTING value + */ + WorkflowExecution.Phase = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "FAILING"] = 5; + values[valuesById[6] = "FAILED"] = 6; + values[valuesById[7] = "ABORTED"] = 7; + values[valuesById[8] = "TIMED_OUT"] = 8; + values[valuesById[9] = "ABORTING"] = 9; + return values; + })(); + + return WorkflowExecution; })(); - core.QualityOfService = (function() { + core.NodeExecution = (function() { /** - * Properties of a QualityOfService. + * Properties of a NodeExecution. * @memberof flyteidl.core - * @interface IQualityOfService - * @property {flyteidl.core.QualityOfService.Tier|null} [tier] QualityOfService tier - * @property {flyteidl.core.IQualityOfServiceSpec|null} [spec] QualityOfService spec + * @interface INodeExecution */ /** - * Constructs a new QualityOfService. + * Constructs a new NodeExecution. * @memberof flyteidl.core - * @classdesc Represents a QualityOfService. - * @implements IQualityOfService + * @classdesc Represents a NodeExecution. + * @implements INodeExecution * @constructor - * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set + * @param {flyteidl.core.INodeExecution=} [properties] Properties to set */ - function QualityOfService(properties) { + function NodeExecution(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12626,90 +13028,50 @@ } /** - * QualityOfService tier. - * @member {flyteidl.core.QualityOfService.Tier} tier - * @memberof flyteidl.core.QualityOfService - * @instance - */ - QualityOfService.prototype.tier = 0; - - /** - * QualityOfService spec. - * @member {flyteidl.core.IQualityOfServiceSpec|null|undefined} spec - * @memberof flyteidl.core.QualityOfService - * @instance - */ - QualityOfService.prototype.spec = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * QualityOfService designation. - * @member {"tier"|"spec"|undefined} designation - * @memberof flyteidl.core.QualityOfService - * @instance - */ - Object.defineProperty(QualityOfService.prototype, "designation", { - get: $util.oneOfGetter($oneOfFields = ["tier", "spec"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new QualityOfService instance using the specified properties. + * Creates a new NodeExecution instance using the specified properties. * @function create - * @memberof flyteidl.core.QualityOfService + * @memberof flyteidl.core.NodeExecution * @static - * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set - * @returns {flyteidl.core.QualityOfService} QualityOfService instance + * @param {flyteidl.core.INodeExecution=} [properties] Properties to set + * @returns {flyteidl.core.NodeExecution} NodeExecution instance */ - QualityOfService.create = function create(properties) { - return new QualityOfService(properties); + NodeExecution.create = function create(properties) { + return new NodeExecution(properties); }; /** - * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. * @function encode - * @memberof flyteidl.core.QualityOfService + * @memberof flyteidl.core.NodeExecution * @static - * @param {flyteidl.core.IQualityOfService} message QualityOfService message or plain object to encode + * @param {flyteidl.core.INodeExecution} message NodeExecution message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QualityOfService.encode = function encode(message, writer) { + NodeExecution.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tier != null && message.hasOwnProperty("tier")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tier); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.core.QualityOfServiceSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a QualityOfService message from the specified reader or buffer. + * Decodes a NodeExecution message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.QualityOfService + * @memberof flyteidl.core.NodeExecution * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.QualityOfService} QualityOfService + * @returns {flyteidl.core.NodeExecution} NodeExecution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QualityOfService.decode = function decode(reader, length) { + NodeExecution.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfService(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecution(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.tier = reader.int32(); - break; - case 2: - message.spec = $root.flyteidl.core.QualityOfServiceSpec.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -12719,187 +13081,122 @@ }; /** - * Verifies a QualityOfService message. + * Verifies a NodeExecution message. * @function verify - * @memberof flyteidl.core.QualityOfService + * @memberof flyteidl.core.NodeExecution * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QualityOfService.verify = function verify(message) { + NodeExecution.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.tier != null && message.hasOwnProperty("tier")) { - properties.designation = 1; - switch (message.tier) { - default: - return "tier: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.spec != null && message.hasOwnProperty("spec")) { - if (properties.designation === 1) - return "designation: multiple values"; - properties.designation = 1; - { - var error = $root.flyteidl.core.QualityOfServiceSpec.verify(message.spec); - if (error) - return "spec." + error; - } - } return null; }; /** - * Tier enum. - * @name flyteidl.core.QualityOfService.Tier + * Phase enum. + * @name flyteidl.core.NodeExecution.Phase * @enum {string} * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} HIGH=1 HIGH value - * @property {number} MEDIUM=2 MEDIUM value - * @property {number} LOW=3 LOW value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} FAILING=4 FAILING value + * @property {number} FAILED=5 FAILED value + * @property {number} ABORTED=6 ABORTED value + * @property {number} SKIPPED=7 SKIPPED value + * @property {number} TIMED_OUT=8 TIMED_OUT value + * @property {number} DYNAMIC_RUNNING=9 DYNAMIC_RUNNING value + * @property {number} RECOVERED=10 RECOVERED value */ - QualityOfService.Tier = (function() { + NodeExecution.Phase = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "HIGH"] = 1; - values[valuesById[2] = "MEDIUM"] = 2; - values[valuesById[3] = "LOW"] = 3; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "FAILING"] = 4; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "ABORTED"] = 6; + values[valuesById[7] = "SKIPPED"] = 7; + values[valuesById[8] = "TIMED_OUT"] = 8; + values[valuesById[9] = "DYNAMIC_RUNNING"] = 9; + values[valuesById[10] = "RECOVERED"] = 10; return values; })(); - return QualityOfService; + return NodeExecution; })(); - core.Variable = (function() { - - /** - * Properties of a Variable. - * @memberof flyteidl.core - * @interface IVariable - * @property {flyteidl.core.ILiteralType|null} [type] Variable type - * @property {string|null} [description] Variable description - * @property {flyteidl.core.IArtifactID|null} [artifactPartialId] Variable artifactPartialId - * @property {flyteidl.core.IArtifactTag|null} [artifactTag] Variable artifactTag - */ + core.TaskExecution = (function() { /** - * Constructs a new Variable. + * Properties of a TaskExecution. * @memberof flyteidl.core - * @classdesc Represents a Variable. - * @implements IVariable - * @constructor - * @param {flyteidl.core.IVariable=} [properties] Properties to set - */ - function Variable(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Variable type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.core.Variable - * @instance - */ - Variable.prototype.type = null; - - /** - * Variable description. - * @member {string} description - * @memberof flyteidl.core.Variable - * @instance - */ - Variable.prototype.description = ""; - - /** - * Variable artifactPartialId. - * @member {flyteidl.core.IArtifactID|null|undefined} artifactPartialId - * @memberof flyteidl.core.Variable - * @instance + * @interface ITaskExecution */ - Variable.prototype.artifactPartialId = null; - - /** - * Variable artifactTag. - * @member {flyteidl.core.IArtifactTag|null|undefined} artifactTag - * @memberof flyteidl.core.Variable - * @instance + + /** + * Constructs a new TaskExecution. + * @memberof flyteidl.core + * @classdesc Represents a TaskExecution. + * @implements ITaskExecution + * @constructor + * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set */ - Variable.prototype.artifactTag = null; + function TaskExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Creates a new Variable instance using the specified properties. + * Creates a new TaskExecution instance using the specified properties. * @function create - * @memberof flyteidl.core.Variable + * @memberof flyteidl.core.TaskExecution * @static - * @param {flyteidl.core.IVariable=} [properties] Properties to set - * @returns {flyteidl.core.Variable} Variable instance + * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set + * @returns {flyteidl.core.TaskExecution} TaskExecution instance */ - Variable.create = function create(properties) { - return new Variable(properties); + TaskExecution.create = function create(properties) { + return new TaskExecution(properties); }; /** - * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Variable + * @memberof flyteidl.core.TaskExecution * @static - * @param {flyteidl.core.IVariable} message Variable message or plain object to encode + * @param {flyteidl.core.ITaskExecution} message TaskExecution message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Variable.encode = function encode(message, writer) { + TaskExecution.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.description != null && message.hasOwnProperty("description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.artifactPartialId != null && message.hasOwnProperty("artifactPartialId")) - $root.flyteidl.core.ArtifactID.encode(message.artifactPartialId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) - $root.flyteidl.core.ArtifactTag.encode(message.artifactTag, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Decodes a Variable message from the specified reader or buffer. + * Decodes a TaskExecution message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Variable + * @memberof flyteidl.core.TaskExecution * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Variable} Variable + * @returns {flyteidl.core.TaskExecution} TaskExecution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Variable.decode = function decode(reader, length) { + TaskExecution.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Variable(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecution(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.artifactPartialId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); - break; - case 4: - message.artifactTag = $root.flyteidl.core.ArtifactTag.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -12909,59 +13206,69 @@ }; /** - * Verifies a Variable message. + * Verifies a TaskExecution message. * @function verify - * @memberof flyteidl.core.Variable + * @memberof flyteidl.core.TaskExecution * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Variable.verify = function verify(message) { + TaskExecution.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.artifactPartialId != null && message.hasOwnProperty("artifactPartialId")) { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactPartialId); - if (error) - return "artifactPartialId." + error; - } - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { - var error = $root.flyteidl.core.ArtifactTag.verify(message.artifactTag); - if (error) - return "artifactTag." + error; - } return null; }; - return Variable; + /** + * Phase enum. + * @name flyteidl.core.TaskExecution.Phase + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} ABORTED=4 ABORTED value + * @property {number} FAILED=5 FAILED value + * @property {number} INITIALIZING=6 INITIALIZING value + * @property {number} WAITING_FOR_RESOURCES=7 WAITING_FOR_RESOURCES value + */ + TaskExecution.Phase = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "ABORTED"] = 4; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "INITIALIZING"] = 6; + values[valuesById[7] = "WAITING_FOR_RESOURCES"] = 7; + return values; + })(); + + return TaskExecution; })(); - core.VariableMap = (function() { + core.ExecutionError = (function() { /** - * Properties of a VariableMap. + * Properties of an ExecutionError. * @memberof flyteidl.core - * @interface IVariableMap - * @property {Object.|null} [variables] VariableMap variables + * @interface IExecutionError + * @property {string|null} [code] ExecutionError code + * @property {string|null} [message] ExecutionError message + * @property {string|null} [errorUri] ExecutionError errorUri + * @property {flyteidl.core.ExecutionError.ErrorKind|null} [kind] ExecutionError kind */ /** - * Constructs a new VariableMap. + * Constructs a new ExecutionError. * @memberof flyteidl.core - * @classdesc Represents a VariableMap. - * @implements IVariableMap + * @classdesc Represents an ExecutionError. + * @implements IExecutionError * @constructor - * @param {flyteidl.core.IVariableMap=} [properties] Properties to set + * @param {flyteidl.core.IExecutionError=} [properties] Properties to set */ - function VariableMap(properties) { - this.variables = {}; + function ExecutionError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12969,70 +13276,101 @@ } /** - * VariableMap variables. - * @member {Object.} variables - * @memberof flyteidl.core.VariableMap + * ExecutionError code. + * @member {string} code + * @memberof flyteidl.core.ExecutionError * @instance */ - VariableMap.prototype.variables = $util.emptyObject; + ExecutionError.prototype.code = ""; /** - * Creates a new VariableMap instance using the specified properties. + * ExecutionError message. + * @member {string} message + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.message = ""; + + /** + * ExecutionError errorUri. + * @member {string} errorUri + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.errorUri = ""; + + /** + * ExecutionError kind. + * @member {flyteidl.core.ExecutionError.ErrorKind} kind + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.kind = 0; + + /** + * Creates a new ExecutionError instance using the specified properties. * @function create - * @memberof flyteidl.core.VariableMap + * @memberof flyteidl.core.ExecutionError * @static - * @param {flyteidl.core.IVariableMap=} [properties] Properties to set - * @returns {flyteidl.core.VariableMap} VariableMap instance + * @param {flyteidl.core.IExecutionError=} [properties] Properties to set + * @returns {flyteidl.core.ExecutionError} ExecutionError instance */ - VariableMap.create = function create(properties) { - return new VariableMap(properties); + ExecutionError.create = function create(properties) { + return new ExecutionError(properties); }; /** - * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. + * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. * @function encode - * @memberof flyteidl.core.VariableMap + * @memberof flyteidl.core.ExecutionError * @static - * @param {flyteidl.core.IVariableMap} message VariableMap message or plain object to encode + * @param {flyteidl.core.IExecutionError} message ExecutionError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VariableMap.encode = function encode(message, writer) { + ExecutionError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.variables != null && message.hasOwnProperty("variables")) - for (var keys = Object.keys(message.variables), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.Variable.encode(message.variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.code != null && message.hasOwnProperty("code")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.errorUri != null && message.hasOwnProperty("errorUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorUri); + if (message.kind != null && message.hasOwnProperty("kind")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.kind); return writer; }; /** - * Decodes a VariableMap message from the specified reader or buffer. + * Decodes an ExecutionError message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.VariableMap + * @memberof flyteidl.core.ExecutionError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.VariableMap} VariableMap + * @returns {flyteidl.core.ExecutionError} ExecutionError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VariableMap.decode = function decode(reader, length) { + ExecutionError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.VariableMap(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExecutionError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - reader.skip().pos++; - if (message.variables === $util.emptyObject) - message.variables = {}; - key = reader.string(); - reader.pos++; - message.variables[key] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); + message.code = reader.string(); + break; + case 2: + message.message = reader.string(); + break; + case 3: + message.errorUri = reader.string(); + break; + case 4: + message.kind = reader.int32(); break; default: reader.skipType(tag & 7); @@ -13043,51 +13381,77 @@ }; /** - * Verifies a VariableMap message. + * Verifies an ExecutionError message. * @function verify - * @memberof flyteidl.core.VariableMap + * @memberof flyteidl.core.ExecutionError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VariableMap.verify = function verify(message) { + ExecutionError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.variables != null && message.hasOwnProperty("variables")) { - if (!$util.isObject(message.variables)) - return "variables: object expected"; - var key = Object.keys(message.variables); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.Variable.verify(message.variables[key[i]]); - if (error) - return "variables." + error; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isString(message.code)) + return "code: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.errorUri != null && message.hasOwnProperty("errorUri")) + if (!$util.isString(message.errorUri)) + return "errorUri: string expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + switch (message.kind) { + default: + return "kind: enum value expected"; + case 0: + case 1: + case 2: + break; } - } return null; }; - return VariableMap; + /** + * ErrorKind enum. + * @name flyteidl.core.ExecutionError.ErrorKind + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} USER=1 USER value + * @property {number} SYSTEM=2 SYSTEM value + */ + ExecutionError.ErrorKind = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + return values; + })(); + + return ExecutionError; })(); - core.TypedInterface = (function() { + core.TaskLog = (function() { /** - * Properties of a TypedInterface. + * Properties of a TaskLog. * @memberof flyteidl.core - * @interface ITypedInterface - * @property {flyteidl.core.IVariableMap|null} [inputs] TypedInterface inputs - * @property {flyteidl.core.IVariableMap|null} [outputs] TypedInterface outputs + * @interface ITaskLog + * @property {string|null} [uri] TaskLog uri + * @property {string|null} [name] TaskLog name + * @property {flyteidl.core.TaskLog.MessageFormat|null} [messageFormat] TaskLog messageFormat + * @property {google.protobuf.IDuration|null} [ttl] TaskLog ttl */ /** - * Constructs a new TypedInterface. + * Constructs a new TaskLog. * @memberof flyteidl.core - * @classdesc Represents a TypedInterface. - * @implements ITypedInterface + * @classdesc Represents a TaskLog. + * @implements ITaskLog * @constructor - * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set + * @param {flyteidl.core.ITaskLog=} [properties] Properties to set */ - function TypedInterface(properties) { + function TaskLog(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13095,75 +13459,101 @@ } /** - * TypedInterface inputs. - * @member {flyteidl.core.IVariableMap|null|undefined} inputs - * @memberof flyteidl.core.TypedInterface + * TaskLog uri. + * @member {string} uri + * @memberof flyteidl.core.TaskLog * @instance */ - TypedInterface.prototype.inputs = null; + TaskLog.prototype.uri = ""; /** - * TypedInterface outputs. - * @member {flyteidl.core.IVariableMap|null|undefined} outputs - * @memberof flyteidl.core.TypedInterface + * TaskLog name. + * @member {string} name + * @memberof flyteidl.core.TaskLog * @instance */ - TypedInterface.prototype.outputs = null; + TaskLog.prototype.name = ""; /** - * Creates a new TypedInterface instance using the specified properties. + * TaskLog messageFormat. + * @member {flyteidl.core.TaskLog.MessageFormat} messageFormat + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.messageFormat = 0; + + /** + * TaskLog ttl. + * @member {google.protobuf.IDuration|null|undefined} ttl + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.ttl = null; + + /** + * Creates a new TaskLog instance using the specified properties. * @function create - * @memberof flyteidl.core.TypedInterface + * @memberof flyteidl.core.TaskLog * @static - * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set - * @returns {flyteidl.core.TypedInterface} TypedInterface instance + * @param {flyteidl.core.ITaskLog=} [properties] Properties to set + * @returns {flyteidl.core.TaskLog} TaskLog instance */ - TypedInterface.create = function create(properties) { - return new TypedInterface(properties); + TaskLog.create = function create(properties) { + return new TaskLog(properties); }; /** - * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. + * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. * @function encode - * @memberof flyteidl.core.TypedInterface + * @memberof flyteidl.core.TaskLog * @static - * @param {flyteidl.core.ITypedInterface} message TypedInterface message or plain object to encode + * @param {flyteidl.core.ITaskLog} message TaskLog message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TypedInterface.encode = function encode(message, writer) { + TaskLog.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.VariableMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.core.VariableMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.messageFormat); + if (message.ttl != null && message.hasOwnProperty("ttl")) + $root.google.protobuf.Duration.encode(message.ttl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Decodes a TypedInterface message from the specified reader or buffer. + * Decodes a TaskLog message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.TypedInterface + * @memberof flyteidl.core.TaskLog * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TypedInterface} TypedInterface + * @returns {flyteidl.core.TaskLog} TaskLog * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TypedInterface.decode = function decode(reader, length) { + TaskLog.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypedInterface(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskLog(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.inputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + message.uri = reader.string(); break; case 2: - message.outputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + case 3: + message.messageFormat = reader.int32(); + break; + case 4: + message.ttl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13174,54 +13564,76 @@ }; /** - * Verifies a TypedInterface message. + * Verifies a TaskLog message. * @function verify - * @memberof flyteidl.core.TypedInterface + * @memberof flyteidl.core.TaskLog * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TypedInterface.verify = function verify(message) { + TaskLog.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.VariableMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.core.VariableMap.verify(message.outputs); + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) + switch (message.messageFormat) { + default: + return "messageFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.ttl != null && message.hasOwnProperty("ttl")) { + var error = $root.google.protobuf.Duration.verify(message.ttl); if (error) - return "outputs." + error; + return "ttl." + error; } return null; }; - return TypedInterface; + /** + * MessageFormat enum. + * @name flyteidl.core.TaskLog.MessageFormat + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} CSV=1 CSV value + * @property {number} JSON=2 JSON value + */ + TaskLog.MessageFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "CSV"] = 1; + values[valuesById[2] = "JSON"] = 2; + return values; + })(); + + return TaskLog; })(); - core.Parameter = (function() { + core.QualityOfServiceSpec = (function() { /** - * Properties of a Parameter. + * Properties of a QualityOfServiceSpec. * @memberof flyteidl.core - * @interface IParameter - * @property {flyteidl.core.IVariable|null} ["var"] Parameter var - * @property {flyteidl.core.ILiteral|null} ["default"] Parameter default - * @property {boolean|null} [required] Parameter required - * @property {flyteidl.core.IArtifactQuery|null} [artifactQuery] Parameter artifactQuery - * @property {flyteidl.core.IArtifactID|null} [artifactId] Parameter artifactId + * @interface IQualityOfServiceSpec + * @property {google.protobuf.IDuration|null} [queueingBudget] QualityOfServiceSpec queueingBudget */ /** - * Constructs a new Parameter. + * Constructs a new QualityOfServiceSpec. * @memberof flyteidl.core - * @classdesc Represents a Parameter. - * @implements IParameter + * @classdesc Represents a QualityOfServiceSpec. + * @implements IQualityOfServiceSpec * @constructor - * @param {flyteidl.core.IParameter=} [properties] Properties to set + * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set */ - function Parameter(properties) { + function QualityOfServiceSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13229,128 +13641,62 @@ } /** - * Parameter var. - * @member {flyteidl.core.IVariable|null|undefined} var - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype["var"] = null; - - /** - * Parameter default. - * @member {flyteidl.core.ILiteral|null|undefined} default - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype["default"] = null; - - /** - * Parameter required. - * @member {boolean} required - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype.required = false; - - /** - * Parameter artifactQuery. - * @member {flyteidl.core.IArtifactQuery|null|undefined} artifactQuery - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype.artifactQuery = null; - - /** - * Parameter artifactId. - * @member {flyteidl.core.IArtifactID|null|undefined} artifactId - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype.artifactId = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Parameter behavior. - * @member {"default"|"required"|"artifactQuery"|"artifactId"|undefined} behavior - * @memberof flyteidl.core.Parameter + * QualityOfServiceSpec queueingBudget. + * @member {google.protobuf.IDuration|null|undefined} queueingBudget + * @memberof flyteidl.core.QualityOfServiceSpec * @instance */ - Object.defineProperty(Parameter.prototype, "behavior", { - get: $util.oneOfGetter($oneOfFields = ["default", "required", "artifactQuery", "artifactId"]), - set: $util.oneOfSetter($oneOfFields) - }); + QualityOfServiceSpec.prototype.queueingBudget = null; /** - * Creates a new Parameter instance using the specified properties. + * Creates a new QualityOfServiceSpec instance using the specified properties. * @function create - * @memberof flyteidl.core.Parameter + * @memberof flyteidl.core.QualityOfServiceSpec * @static - * @param {flyteidl.core.IParameter=} [properties] Properties to set - * @returns {flyteidl.core.Parameter} Parameter instance + * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set + * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec instance */ - Parameter.create = function create(properties) { - return new Parameter(properties); + QualityOfServiceSpec.create = function create(properties) { + return new QualityOfServiceSpec(properties); }; /** - * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. + * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. * @function encode - * @memberof flyteidl.core.Parameter + * @memberof flyteidl.core.QualityOfServiceSpec * @static - * @param {flyteidl.core.IParameter} message Parameter message or plain object to encode + * @param {flyteidl.core.IQualityOfServiceSpec} message QualityOfServiceSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Parameter.encode = function encode(message, writer) { + QualityOfServiceSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message["var"] != null && message.hasOwnProperty("var")) - $root.flyteidl.core.Variable.encode(message["var"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message["default"] != null && message.hasOwnProperty("default")) - $root.flyteidl.core.Literal.encode(message["default"], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.required != null && message.hasOwnProperty("required")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.required); - if (message.artifactQuery != null && message.hasOwnProperty("artifactQuery")) - $root.flyteidl.core.ArtifactQuery.encode(message.artifactQuery, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - $root.flyteidl.core.ArtifactID.encode(message.artifactId, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) + $root.google.protobuf.Duration.encode(message.queueingBudget, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a Parameter message from the specified reader or buffer. + * Decodes a QualityOfServiceSpec message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.Parameter + * @memberof flyteidl.core.QualityOfServiceSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Parameter} Parameter + * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Parameter.decode = function decode(reader, length) { + QualityOfServiceSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Parameter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfServiceSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message["var"] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); - break; - case 2: - message["default"] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - case 3: - message.required = reader.bool(); - break; - case 4: - message.artifactQuery = $root.flyteidl.core.ArtifactQuery.decode(reader, reader.uint32()); - break; - case 5: - message.artifactId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); + message.queueingBudget = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13361,82 +13707,46 @@ }; /** - * Verifies a Parameter message. + * Verifies a QualityOfServiceSpec message. * @function verify - * @memberof flyteidl.core.Parameter + * @memberof flyteidl.core.QualityOfServiceSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Parameter.verify = function verify(message) { + QualityOfServiceSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message["var"] != null && message.hasOwnProperty("var")) { - var error = $root.flyteidl.core.Variable.verify(message["var"]); + if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) { + var error = $root.google.protobuf.Duration.verify(message.queueingBudget); if (error) - return "var." + error; - } - if (message["default"] != null && message.hasOwnProperty("default")) { - properties.behavior = 1; - { - var error = $root.flyteidl.core.Literal.verify(message["default"]); - if (error) - return "default." + error; - } - } - if (message.required != null && message.hasOwnProperty("required")) { - if (properties.behavior === 1) - return "behavior: multiple values"; - properties.behavior = 1; - if (typeof message.required !== "boolean") - return "required: boolean expected"; - } - if (message.artifactQuery != null && message.hasOwnProperty("artifactQuery")) { - if (properties.behavior === 1) - return "behavior: multiple values"; - properties.behavior = 1; - { - var error = $root.flyteidl.core.ArtifactQuery.verify(message.artifactQuery); - if (error) - return "artifactQuery." + error; - } - } - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - if (properties.behavior === 1) - return "behavior: multiple values"; - properties.behavior = 1; - { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactId); - if (error) - return "artifactId." + error; - } + return "queueingBudget." + error; } return null; }; - return Parameter; + return QualityOfServiceSpec; })(); - core.ParameterMap = (function() { + core.QualityOfService = (function() { /** - * Properties of a ParameterMap. + * Properties of a QualityOfService. * @memberof flyteidl.core - * @interface IParameterMap - * @property {Object.|null} [parameters] ParameterMap parameters + * @interface IQualityOfService + * @property {flyteidl.core.QualityOfService.Tier|null} [tier] QualityOfService tier + * @property {flyteidl.core.IQualityOfServiceSpec|null} [spec] QualityOfService spec */ /** - * Constructs a new ParameterMap. + * Constructs a new QualityOfService. * @memberof flyteidl.core - * @classdesc Represents a ParameterMap. - * @implements IParameterMap + * @classdesc Represents a QualityOfService. + * @implements IQualityOfService * @constructor - * @param {flyteidl.core.IParameterMap=} [properties] Properties to set + * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set */ - function ParameterMap(properties) { - this.parameters = {}; + function QualityOfService(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13444,70 +13754,89 @@ } /** - * ParameterMap parameters. - * @member {Object.} parameters - * @memberof flyteidl.core.ParameterMap + * QualityOfService tier. + * @member {flyteidl.core.QualityOfService.Tier} tier + * @memberof flyteidl.core.QualityOfService * @instance */ - ParameterMap.prototype.parameters = $util.emptyObject; + QualityOfService.prototype.tier = 0; /** - * Creates a new ParameterMap instance using the specified properties. + * QualityOfService spec. + * @member {flyteidl.core.IQualityOfServiceSpec|null|undefined} spec + * @memberof flyteidl.core.QualityOfService + * @instance + */ + QualityOfService.prototype.spec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QualityOfService designation. + * @member {"tier"|"spec"|undefined} designation + * @memberof flyteidl.core.QualityOfService + * @instance + */ + Object.defineProperty(QualityOfService.prototype, "designation", { + get: $util.oneOfGetter($oneOfFields = ["tier", "spec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QualityOfService instance using the specified properties. * @function create - * @memberof flyteidl.core.ParameterMap + * @memberof flyteidl.core.QualityOfService * @static - * @param {flyteidl.core.IParameterMap=} [properties] Properties to set - * @returns {flyteidl.core.ParameterMap} ParameterMap instance + * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set + * @returns {flyteidl.core.QualityOfService} QualityOfService instance */ - ParameterMap.create = function create(properties) { - return new ParameterMap(properties); + QualityOfService.create = function create(properties) { + return new QualityOfService(properties); }; /** - * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. + * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. * @function encode - * @memberof flyteidl.core.ParameterMap + * @memberof flyteidl.core.QualityOfService * @static - * @param {flyteidl.core.IParameterMap} message ParameterMap message or plain object to encode + * @param {flyteidl.core.IQualityOfService} message QualityOfService message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ParameterMap.encode = function encode(message, writer) { + QualityOfService.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parameters != null && message.hasOwnProperty("parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.Parameter.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.tier != null && message.hasOwnProperty("tier")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tier); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.core.QualityOfServiceSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a ParameterMap message from the specified reader or buffer. + * Decodes a QualityOfService message from the specified reader or buffer. * @function decode - * @memberof flyteidl.core.ParameterMap + * @memberof flyteidl.core.QualityOfService * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ParameterMap} ParameterMap + * @returns {flyteidl.core.QualityOfService} QualityOfService * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ParameterMap.decode = function decode(reader, length) { + QualityOfService.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ParameterMap(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfService(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - reader.skip().pos++; - if (message.parameters === $util.emptyObject) - message.parameters = {}; - key = reader.string(); - reader.pos++; - message.parameters[key] = $root.flyteidl.core.Parameter.decode(reader, reader.uint32()); + message.tier = reader.int32(); + break; + case 2: + message.spec = $root.flyteidl.core.QualityOfServiceSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13518,30 +13847,61 @@ }; /** - * Verifies a ParameterMap message. + * Verifies a QualityOfService message. * @function verify - * @memberof flyteidl.core.ParameterMap + * @memberof flyteidl.core.QualityOfService * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ParameterMap.verify = function verify(message) { + QualityOfService.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.Parameter.verify(message.parameters[key[i]]); + var properties = {}; + if (message.tier != null && message.hasOwnProperty("tier")) { + properties.designation = 1; + switch (message.tier) { + default: + return "tier: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.spec != null && message.hasOwnProperty("spec")) { + if (properties.designation === 1) + return "designation: multiple values"; + properties.designation = 1; + { + var error = $root.flyteidl.core.QualityOfServiceSpec.verify(message.spec); if (error) - return "parameters." + error; + return "spec." + error; } } return null; }; - return ParameterMap; + /** + * Tier enum. + * @name flyteidl.core.QualityOfService.Tier + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} HIGH=1 HIGH value + * @property {number} MEDIUM=2 MEDIUM value + * @property {number} LOW=3 LOW value + */ + QualityOfService.Tier = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "HIGH"] = 1; + values[valuesById[2] = "MEDIUM"] = 2; + values[valuesById[3] = "LOW"] = 3; + return values; + })(); + + return QualityOfService; })(); core.Resources = (function() { @@ -54551,133 +54911,6 @@ return Timestamp; })(); - protobuf.Duration = (function() { - - /** - * Properties of a Duration. - * @memberof google.protobuf - * @interface IDuration - * @property {Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos - */ - - /** - * Constructs a new Duration. - * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration - * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set - */ - function Duration(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Duration seconds. - * @member {Long} seconds - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.nanos = 0; - - /** - * Creates a new Duration instance using the specified properties. - * @function create - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration=} [properties] Properties to set - * @returns {google.protobuf.Duration} Duration instance - */ - Duration.create = function create(properties) { - return new Duration(properties); - }; - - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Duration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && message.hasOwnProperty("seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && message.hasOwnProperty("nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; - - /** - * Decodes a Duration message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Duration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Duration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Duration message. - * @function verify - * @memberof google.protobuf.Duration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Duration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; - - return Duration; - })(); - protobuf.Struct = (function() { /** @@ -55178,6 +55411,133 @@ return ListValue; })(); + protobuf.Duration = (function() { + + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ + + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Duration seconds. + * @member {Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && message.hasOwnProperty("seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && message.hasOwnProperty("nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + return Duration; + })(); + protobuf.DoubleValue = (function() { /** diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py index a47a859e9f..6ecd85a11d 100644 --- a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py @@ -11,11 +11,13 @@ _sym_db = _symbol_database.Default() +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/compiler.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\x87\x03\n\rConnectionSet\x12L\n\ndownstream\x18\x07 \x03(\x0b\x32,.flyteidl.core.ConnectionSet.DownstreamEntryR\ndownstream\x12\x46\n\x08upstream\x18\x08 \x03(\x0b\x32*.flyteidl.core.ConnectionSet.UpstreamEntryR\x08upstream\x1a\x1a\n\x06IdList\x12\x10\n\x03ids\x18\x01 \x03(\tR\x03ids\x1a\x62\n\x0f\x44ownstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\x1a`\n\rUpstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\"\x8f\x01\n\x10\x43ompiledWorkflow\x12;\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08template\x12>\n\x0b\x63onnections\x18\x02 \x01(\x0b\x32\x1c.flyteidl.core.ConnectionSetR\x0b\x63onnections\"G\n\x0c\x43ompiledTask\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\"\xcd\x01\n\x17\x43ompiledWorkflowClosure\x12\x39\n\x07primary\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x07primary\x12\x44\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x0csubWorkflows\x12\x31\n\x05tasks\x18\x03 \x03(\x0b\x32\x1b.flyteidl.core.CompiledTaskR\x05tasksB\xb3\x01\n\x11\x63om.flyteidl.coreB\rCompilerProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/compiler.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\x87\x03\n\rConnectionSet\x12L\n\ndownstream\x18\x07 \x03(\x0b\x32,.flyteidl.core.ConnectionSet.DownstreamEntryR\ndownstream\x12\x46\n\x08upstream\x18\x08 \x03(\x0b\x32*.flyteidl.core.ConnectionSet.UpstreamEntryR\x08upstream\x1a\x1a\n\x06IdList\x12\x10\n\x03ids\x18\x01 \x03(\tR\x03ids\x1a\x62\n\x0f\x44ownstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\x1a`\n\rUpstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\"\x8f\x01\n\x10\x43ompiledWorkflow\x12;\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08template\x12>\n\x0b\x63onnections\x18\x02 \x01(\x0b\x32\x1c.flyteidl.core.ConnectionSetR\x0b\x63onnections\"S\n\x12\x43ompiledLaunchPlan\x12=\n\x08template\x18\x01 \x01(\x0b\x32!.flyteidl.core.LaunchPlanTemplateR\x08template\"G\n\x0c\x43ompiledTask\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\"\x93\x02\n\x17\x43ompiledWorkflowClosure\x12\x39\n\x07primary\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x07primary\x12\x44\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x0csubWorkflows\x12\x31\n\x05tasks\x18\x03 \x03(\x0b\x32\x1b.flyteidl.core.CompiledTaskR\x05tasks\x12\x44\n\x0claunch_plans\x18\x04 \x03(\x0b\x32!.flyteidl.core.CompiledLaunchPlanR\x0blaunchPlansB\xb3\x01\n\x11\x63om.flyteidl.coreB\rCompilerProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -28,18 +30,20 @@ _CONNECTIONSET_DOWNSTREAMENTRY._serialized_options = b'8\001' _CONNECTIONSET_UPSTREAMENTRY._options = None _CONNECTIONSET_UPSTREAMENTRY._serialized_options = b'8\001' - _globals['_CONNECTIONSET']._serialized_start=105 - _globals['_CONNECTIONSET']._serialized_end=496 - _globals['_CONNECTIONSET_IDLIST']._serialized_start=272 - _globals['_CONNECTIONSET_IDLIST']._serialized_end=298 - _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_start=300 - _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_end=398 - _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_start=400 - _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_end=496 - _globals['_COMPILEDWORKFLOW']._serialized_start=499 - _globals['_COMPILEDWORKFLOW']._serialized_end=642 - _globals['_COMPILEDTASK']._serialized_start=644 - _globals['_COMPILEDTASK']._serialized_end=715 - _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_start=718 - _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_end=923 + _globals['_CONNECTIONSET']._serialized_start=168 + _globals['_CONNECTIONSET']._serialized_end=559 + _globals['_CONNECTIONSET_IDLIST']._serialized_start=335 + _globals['_CONNECTIONSET_IDLIST']._serialized_end=361 + _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_start=363 + _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_end=461 + _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_start=463 + _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_end=559 + _globals['_COMPILEDWORKFLOW']._serialized_start=562 + _globals['_COMPILEDWORKFLOW']._serialized_end=705 + _globals['_COMPILEDLAUNCHPLAN']._serialized_start=707 + _globals['_COMPILEDLAUNCHPLAN']._serialized_end=790 + _globals['_COMPILEDTASK']._serialized_start=792 + _globals['_COMPILEDTASK']._serialized_end=863 + _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_start=866 + _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_end=1141 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi index 509e8f4d58..26b6caa4aa 100644 --- a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi @@ -1,3 +1,5 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import interface_pb2 as _interface_pb2 from flyteidl.core import workflow_pb2 as _workflow_pb2 from flyteidl.core import tasks_pb2 as _tasks_pb2 from google.protobuf.internal import containers as _containers @@ -42,6 +44,12 @@ class CompiledWorkflow(_message.Message): connections: ConnectionSet def __init__(self, template: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., connections: _Optional[_Union[ConnectionSet, _Mapping]] = ...) -> None: ... +class CompiledLaunchPlan(_message.Message): + __slots__ = ["template"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + template: _workflow_pb2.LaunchPlanTemplate + def __init__(self, template: _Optional[_Union[_workflow_pb2.LaunchPlanTemplate, _Mapping]] = ...) -> None: ... + class CompiledTask(_message.Message): __slots__ = ["template"] TEMPLATE_FIELD_NUMBER: _ClassVar[int] @@ -49,11 +57,13 @@ class CompiledTask(_message.Message): def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ...) -> None: ... class CompiledWorkflowClosure(_message.Message): - __slots__ = ["primary", "sub_workflows", "tasks"] + __slots__ = ["primary", "sub_workflows", "tasks", "launch_plans"] PRIMARY_FIELD_NUMBER: _ClassVar[int] SUB_WORKFLOWS_FIELD_NUMBER: _ClassVar[int] TASKS_FIELD_NUMBER: _ClassVar[int] + LAUNCH_PLANS_FIELD_NUMBER: _ClassVar[int] primary: CompiledWorkflow sub_workflows: _containers.RepeatedCompositeFieldContainer[CompiledWorkflow] tasks: _containers.RepeatedCompositeFieldContainer[CompiledTask] - def __init__(self, primary: _Optional[_Union[CompiledWorkflow, _Mapping]] = ..., sub_workflows: _Optional[_Iterable[_Union[CompiledWorkflow, _Mapping]]] = ..., tasks: _Optional[_Iterable[_Union[CompiledTask, _Mapping]]] = ...) -> None: ... + launch_plans: _containers.RepeatedCompositeFieldContainer[CompiledLaunchPlan] + def __init__(self, primary: _Optional[_Union[CompiledWorkflow, _Mapping]] = ..., sub_workflows: _Optional[_Iterable[_Union[CompiledWorkflow, _Mapping]]] = ..., tasks: _Optional[_Iterable[_Union[CompiledTask, _Mapping]]] = ..., launch_plans: _Optional[_Iterable[_Union[CompiledLaunchPlan, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py index 8487a5170e..0d5c6e9b46 100644 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py @@ -22,7 +22,7 @@ from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/workflow.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/condition.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\"{\n\x07IfBlock\x12>\n\tcondition\x18\x01 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\tcondition\x12\x30\n\tthen_node\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x08thenNode\"\xd4\x01\n\x0bIfElseBlock\x12*\n\x04\x63\x61se\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.IfBlockR\x04\x63\x61se\x12,\n\x05other\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.IfBlockR\x05other\x12\x32\n\telse_node\x18\x03 \x01(\x0b\x32\x13.flyteidl.core.NodeH\x00R\x08\x65lseNode\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00R\x05\x65rrorB\t\n\x07\x64\x65\x66\x61ult\"A\n\nBranchNode\x12\x33\n\x07if_else\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.IfElseBlockR\x06ifElse\"\x97\x01\n\x08TaskNode\x12>\n\x0creference_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0breferenceId\x12>\n\toverrides\x18\x02 \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverridesB\x0b\n\treference\"\xa6\x01\n\x0cWorkflowNode\x12\x42\n\x0elaunchplan_ref\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\rlaunchplanRef\x12\x45\n\x10sub_workflow_ref\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0esubWorkflowRefB\x0b\n\treference\"/\n\x10\x41pproveCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\"\x90\x01\n\x0fSignalCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12\x30\n\x14output_variable_name\x18\x03 \x01(\tR\x12outputVariableName\"G\n\x0eSleepCondition\x12\x35\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\"\xc5\x01\n\x08GateNode\x12;\n\x07\x61pprove\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.ApproveConditionH\x00R\x07\x61pprove\x12\x38\n\x06signal\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.SignalConditionH\x00R\x06signal\x12\x35\n\x05sleep\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.SleepConditionH\x00R\x05sleepB\x0b\n\tcondition\"\xbf\x01\n\tArrayNode\x12\'\n\x04node\x18\x01 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x04node\x12 \n\x0bparallelism\x18\x02 \x01(\rR\x0bparallelism\x12%\n\rmin_successes\x18\x03 \x01(\rH\x00R\x0cminSuccesses\x12,\n\x11min_success_ratio\x18\x04 \x01(\x02H\x00R\x0fminSuccessRatioB\x12\n\x10success_criteria\"\xce\x01\n\x0cNodeMetadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x33\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x07timeout\x12\x36\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategyR\x07retries\x12&\n\rinterruptible\x18\x06 \x01(\x08H\x00R\rinterruptibleB\x15\n\x13interruptible_value\"/\n\x05\x41lias\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\x12\x14\n\x05\x61lias\x18\x02 \x01(\tR\x05\x61lias\"\x9f\x04\n\x04Node\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x37\n\x08metadata\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.NodeMetadataR\x08metadata\x12.\n\x06inputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x06inputs\x12*\n\x11upstream_node_ids\x18\x04 \x03(\tR\x0fupstreamNodeIds\x12;\n\x0eoutput_aliases\x18\x05 \x03(\x0b\x32\x14.flyteidl.core.AliasR\routputAliases\x12\x36\n\ttask_node\x18\x06 \x01(\x0b\x32\x17.flyteidl.core.TaskNodeH\x00R\x08taskNode\x12\x42\n\rworkflow_node\x18\x07 \x01(\x0b\x32\x1b.flyteidl.core.WorkflowNodeH\x00R\x0cworkflowNode\x12<\n\x0b\x62ranch_node\x18\x08 \x01(\x0b\x32\x19.flyteidl.core.BranchNodeH\x00R\nbranchNode\x12\x36\n\tgate_node\x18\t \x01(\x0b\x32\x17.flyteidl.core.GateNodeH\x00R\x08gateNode\x12\x39\n\narray_node\x18\n \x01(\x0b\x32\x18.flyteidl.core.ArrayNodeH\x00R\tarrayNodeB\x08\n\x06target\"\xfc\x02\n\x10WorkflowMetadata\x12M\n\x12quality_of_service\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12N\n\non_failure\x18\x02 \x01(\x0e\x32/.flyteidl.core.WorkflowMetadata.OnFailurePolicyR\tonFailure\x12=\n\x04tags\x18\x03 \x03(\x0b\x32).flyteidl.core.WorkflowMetadata.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"Q\n\x0fOnFailurePolicy\x12\x14\n\x10\x46\x41IL_IMMEDIATELY\x10\x00\x12(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\x10\x01\"@\n\x18WorkflowMetadataDefaults\x12$\n\rinterruptible\x18\x01 \x01(\x08R\rinterruptible\"\xa2\x03\n\x10WorkflowTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowMetadataR\x08metadata\x12;\n\tinterface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12)\n\x05nodes\x18\x04 \x03(\x0b\x32\x13.flyteidl.core.NodeR\x05nodes\x12\x30\n\x07outputs\x18\x05 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x07outputs\x12\x36\n\x0c\x66\x61ilure_node\x18\x06 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x0b\x66\x61ilureNode\x12T\n\x11metadata_defaults\x18\x07 \x01(\x0b\x32\'.flyteidl.core.WorkflowMetadataDefaultsR\x10metadataDefaults\"\x9c\x01\n\x11TaskNodeOverrides\x12\x36\n\tresources\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x12\x65xtended_resources\x18\x02 \x01(\x0b\x32 .flyteidl.core.ExtendedResourcesR\x11\x65xtendedResourcesB\xb3\x01\n\x11\x63om.flyteidl.coreB\rWorkflowProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/workflow.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/condition.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\"{\n\x07IfBlock\x12>\n\tcondition\x18\x01 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\tcondition\x12\x30\n\tthen_node\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x08thenNode\"\xd4\x01\n\x0bIfElseBlock\x12*\n\x04\x63\x61se\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.IfBlockR\x04\x63\x61se\x12,\n\x05other\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.IfBlockR\x05other\x12\x32\n\telse_node\x18\x03 \x01(\x0b\x32\x13.flyteidl.core.NodeH\x00R\x08\x65lseNode\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00R\x05\x65rrorB\t\n\x07\x64\x65\x66\x61ult\"A\n\nBranchNode\x12\x33\n\x07if_else\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.IfElseBlockR\x06ifElse\"\x97\x01\n\x08TaskNode\x12>\n\x0creference_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0breferenceId\x12>\n\toverrides\x18\x02 \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverridesB\x0b\n\treference\"\xa6\x01\n\x0cWorkflowNode\x12\x42\n\x0elaunchplan_ref\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\rlaunchplanRef\x12\x45\n\x10sub_workflow_ref\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0esubWorkflowRefB\x0b\n\treference\"/\n\x10\x41pproveCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\"\x90\x01\n\x0fSignalCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12\x30\n\x14output_variable_name\x18\x03 \x01(\tR\x12outputVariableName\"G\n\x0eSleepCondition\x12\x35\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\"\xc5\x01\n\x08GateNode\x12;\n\x07\x61pprove\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.ApproveConditionH\x00R\x07\x61pprove\x12\x38\n\x06signal\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.SignalConditionH\x00R\x06signal\x12\x35\n\x05sleep\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.SleepConditionH\x00R\x05sleepB\x0b\n\tcondition\"\xbf\x01\n\tArrayNode\x12\'\n\x04node\x18\x01 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x04node\x12 \n\x0bparallelism\x18\x02 \x01(\rR\x0bparallelism\x12%\n\rmin_successes\x18\x03 \x01(\rH\x00R\x0cminSuccesses\x12,\n\x11min_success_ratio\x18\x04 \x01(\x02H\x00R\x0fminSuccessRatioB\x12\n\x10success_criteria\"\x8c\x03\n\x0cNodeMetadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x33\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x07timeout\x12\x36\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategyR\x07retries\x12&\n\rinterruptible\x18\x06 \x01(\x08H\x00R\rinterruptible\x12\x1e\n\tcacheable\x18\x07 \x01(\x08H\x01R\tcacheable\x12%\n\rcache_version\x18\x08 \x01(\tH\x02R\x0c\x63\x61\x63heVersion\x12/\n\x12\x63\x61\x63he_serializable\x18\t \x01(\x08H\x03R\x11\x63\x61\x63heSerializableB\x15\n\x13interruptible_valueB\x11\n\x0f\x63\x61\x63heable_valueB\x15\n\x13\x63\x61\x63he_version_valueB\x1a\n\x18\x63\x61\x63he_serializable_value\"/\n\x05\x41lias\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\x12\x14\n\x05\x61lias\x18\x02 \x01(\tR\x05\x61lias\"\x9f\x04\n\x04Node\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x37\n\x08metadata\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.NodeMetadataR\x08metadata\x12.\n\x06inputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x06inputs\x12*\n\x11upstream_node_ids\x18\x04 \x03(\tR\x0fupstreamNodeIds\x12;\n\x0eoutput_aliases\x18\x05 \x03(\x0b\x32\x14.flyteidl.core.AliasR\routputAliases\x12\x36\n\ttask_node\x18\x06 \x01(\x0b\x32\x17.flyteidl.core.TaskNodeH\x00R\x08taskNode\x12\x42\n\rworkflow_node\x18\x07 \x01(\x0b\x32\x1b.flyteidl.core.WorkflowNodeH\x00R\x0cworkflowNode\x12<\n\x0b\x62ranch_node\x18\x08 \x01(\x0b\x32\x19.flyteidl.core.BranchNodeH\x00R\nbranchNode\x12\x36\n\tgate_node\x18\t \x01(\x0b\x32\x17.flyteidl.core.GateNodeH\x00R\x08gateNode\x12\x39\n\narray_node\x18\n \x01(\x0b\x32\x18.flyteidl.core.ArrayNodeH\x00R\tarrayNodeB\x08\n\x06target\"\xfc\x02\n\x10WorkflowMetadata\x12M\n\x12quality_of_service\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12N\n\non_failure\x18\x02 \x01(\x0e\x32/.flyteidl.core.WorkflowMetadata.OnFailurePolicyR\tonFailure\x12=\n\x04tags\x18\x03 \x03(\x0b\x32).flyteidl.core.WorkflowMetadata.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"Q\n\x0fOnFailurePolicy\x12\x14\n\x10\x46\x41IL_IMMEDIATELY\x10\x00\x12(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\x10\x01\"@\n\x18WorkflowMetadataDefaults\x12$\n\rinterruptible\x18\x01 \x01(\x08R\rinterruptible\"\xa2\x03\n\x10WorkflowTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowMetadataR\x08metadata\x12;\n\tinterface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12)\n\x05nodes\x18\x04 \x03(\x0b\x32\x13.flyteidl.core.NodeR\x05nodes\x12\x30\n\x07outputs\x18\x05 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x07outputs\x12\x36\n\x0c\x66\x61ilure_node\x18\x06 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x0b\x66\x61ilureNode\x12T\n\x11metadata_defaults\x18\x07 \x01(\x0b\x32\'.flyteidl.core.WorkflowMetadataDefaultsR\x10metadataDefaults\"\x9c\x01\n\x11TaskNodeOverrides\x12\x36\n\tresources\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x12\x65xtended_resources\x18\x02 \x01(\x0b\x32 .flyteidl.core.ExtendedResourcesR\x11\x65xtendedResources\"|\n\x12LaunchPlanTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12;\n\tinterface\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterfaceB\xb3\x01\n\x11\x63om.flyteidl.coreB\rWorkflowProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -54,21 +54,23 @@ _globals['_ARRAYNODE']._serialized_start=1518 _globals['_ARRAYNODE']._serialized_end=1709 _globals['_NODEMETADATA']._serialized_start=1712 - _globals['_NODEMETADATA']._serialized_end=1918 - _globals['_ALIAS']._serialized_start=1920 - _globals['_ALIAS']._serialized_end=1967 - _globals['_NODE']._serialized_start=1970 - _globals['_NODE']._serialized_end=2513 - _globals['_WORKFLOWMETADATA']._serialized_start=2516 - _globals['_WORKFLOWMETADATA']._serialized_end=2896 - _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_start=2758 - _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_end=2813 - _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_start=2815 - _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_end=2896 - _globals['_WORKFLOWMETADATADEFAULTS']._serialized_start=2898 - _globals['_WORKFLOWMETADATADEFAULTS']._serialized_end=2962 - _globals['_WORKFLOWTEMPLATE']._serialized_start=2965 - _globals['_WORKFLOWTEMPLATE']._serialized_end=3383 - _globals['_TASKNODEOVERRIDES']._serialized_start=3386 - _globals['_TASKNODEOVERRIDES']._serialized_end=3542 + _globals['_NODEMETADATA']._serialized_end=2108 + _globals['_ALIAS']._serialized_start=2110 + _globals['_ALIAS']._serialized_end=2157 + _globals['_NODE']._serialized_start=2160 + _globals['_NODE']._serialized_end=2703 + _globals['_WORKFLOWMETADATA']._serialized_start=2706 + _globals['_WORKFLOWMETADATA']._serialized_end=3086 + _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_start=2948 + _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_end=3003 + _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_start=3005 + _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_end=3086 + _globals['_WORKFLOWMETADATADEFAULTS']._serialized_start=3088 + _globals['_WORKFLOWMETADATADEFAULTS']._serialized_end=3152 + _globals['_WORKFLOWTEMPLATE']._serialized_start=3155 + _globals['_WORKFLOWTEMPLATE']._serialized_end=3573 + _globals['_TASKNODEOVERRIDES']._serialized_start=3576 + _globals['_TASKNODEOVERRIDES']._serialized_end=3732 + _globals['_LAUNCHPLANTEMPLATE']._serialized_start=3734 + _globals['_LAUNCHPLANTEMPLATE']._serialized_end=3858 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi index daf8082c7b..d23b07f540 100644 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi @@ -102,16 +102,22 @@ class ArrayNode(_message.Message): def __init__(self, node: _Optional[_Union[Node, _Mapping]] = ..., parallelism: _Optional[int] = ..., min_successes: _Optional[int] = ..., min_success_ratio: _Optional[float] = ...) -> None: ... class NodeMetadata(_message.Message): - __slots__ = ["name", "timeout", "retries", "interruptible"] + __slots__ = ["name", "timeout", "retries", "interruptible", "cacheable", "cache_version", "cache_serializable"] NAME_FIELD_NUMBER: _ClassVar[int] TIMEOUT_FIELD_NUMBER: _ClassVar[int] RETRIES_FIELD_NUMBER: _ClassVar[int] INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + CACHEABLE_FIELD_NUMBER: _ClassVar[int] + CACHE_VERSION_FIELD_NUMBER: _ClassVar[int] + CACHE_SERIALIZABLE_FIELD_NUMBER: _ClassVar[int] name: str timeout: _duration_pb2.Duration retries: _literals_pb2.RetryStrategy interruptible: bool - def __init__(self, name: _Optional[str] = ..., timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retries: _Optional[_Union[_literals_pb2.RetryStrategy, _Mapping]] = ..., interruptible: bool = ...) -> None: ... + cacheable: bool + cache_version: str + cache_serializable: bool + def __init__(self, name: _Optional[str] = ..., timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retries: _Optional[_Union[_literals_pb2.RetryStrategy, _Mapping]] = ..., interruptible: bool = ..., cacheable: bool = ..., cache_version: _Optional[str] = ..., cache_serializable: bool = ...) -> None: ... class Alias(_message.Message): __slots__ = ["var", "alias"] @@ -199,3 +205,11 @@ class TaskNodeOverrides(_message.Message): resources: _tasks_pb2.Resources extended_resources: _tasks_pb2.ExtendedResources def __init__(self, resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., extended_resources: _Optional[_Union[_tasks_pb2.ExtendedResources, _Mapping]] = ...) -> None: ... + +class LaunchPlanTemplate(_message.Message): + __slots__ = ["id", "interface"] + ID_FIELD_NUMBER: _ClassVar[int] + INTERFACE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + interface: _interface_pb2.TypedInterface + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_rust/flyteidl.core.rs b/flyteidl/gen/pb_rust/flyteidl.core.rs index 64fb26d7d7..6f38b7b50b 100644 --- a/flyteidl/gen/pb_rust/flyteidl.core.rs +++ b/flyteidl/gen/pb_rust/flyteidl.core.rs @@ -2415,6 +2415,15 @@ pub struct NodeMetadata { /// Identify whether node is interruptible #[prost(oneof="node_metadata::InterruptibleValue", tags="6")] pub interruptible_value: ::core::option::Option, + /// Identify whether a node should have it's outputs cached. + #[prost(oneof="node_metadata::CacheableValue", tags="7")] + pub cacheable_value: ::core::option::Option, + /// The version of the cache to use. + #[prost(oneof="node_metadata::CacheVersionValue", tags="8")] + pub cache_version_value: ::core::option::Option, + /// Identify whether caching operations involving this node should be serialized. + #[prost(oneof="node_metadata::CacheSerializableValue", tags="9")] + pub cache_serializable_value: ::core::option::Option, } /// Nested message and enum types in `NodeMetadata`. pub mod node_metadata { @@ -2425,6 +2434,27 @@ pub mod node_metadata { #[prost(bool, tag="6")] Interruptible(bool), } + /// Identify whether a node should have it's outputs cached. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum CacheableValue { + #[prost(bool, tag="7")] + Cacheable(bool), + } + /// The version of the cache to use. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum CacheVersionValue { + #[prost(string, tag="8")] + CacheVersion(::prost::alloc::string::String), + } + /// Identify whether caching operations involving this node should be serialized. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum CacheSerializableValue { + #[prost(bool, tag="9")] + CacheSerializable(bool), + } } /// Links a variable to an alias. #[allow(clippy::derive_partial_eq_without_eq)] @@ -2603,6 +2633,17 @@ pub struct TaskNodeOverrides { #[prost(message, optional, tag="2")] pub extended_resources: ::core::option::Option, } +/// A structure that uniquely identifies a launch plan in the system. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanTemplate { + /// A globally unique identifier for the launch plan. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// The input and output interface for the launch plan + #[prost(message, optional, tag="2")] + pub interface: ::core::option::Option, +} /// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation /// step uses this created ConnectionSet #[allow(clippy::derive_partial_eq_without_eq)] @@ -2635,6 +2676,14 @@ pub struct CompiledWorkflow { #[prost(message, optional, tag="2")] pub connections: ::core::option::Option, } +/// Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CompiledLaunchPlan { + /// Completely contained LaunchPlan Template + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, +} /// Output of the Compilation step. This object represent one Task. We store more metadata at this layer #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -2663,6 +2712,10 @@ pub struct CompiledWorkflowClosure { /// +required (at least 1) #[prost(message, repeated, tag="3")] pub tasks: ::prost::alloc::vec::Vec, + /// A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan + /// with a given id, i.e., every launch plan has a unique id. + #[prost(message, repeated, tag="4")] + pub launch_plans: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/flyteidl/protos/flyteidl/core/compiler.proto b/flyteidl/protos/flyteidl/core/compiler.proto index aaa5bff69e..620ee26f2d 100644 --- a/flyteidl/protos/flyteidl/core/compiler.proto +++ b/flyteidl/protos/flyteidl/core/compiler.proto @@ -4,6 +4,8 @@ package flyteidl.core; option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/interface.proto"; import "flyteidl/core/workflow.proto"; import "flyteidl/core/tasks.proto"; @@ -29,6 +31,12 @@ message CompiledWorkflow { ConnectionSet connections = 2; } +// Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer +message CompiledLaunchPlan { + // Completely contained LaunchPlan Template + LaunchPlanTemplate template = 1; +} + // Output of the Compilation step. This object represent one Task. We store more metadata at this layer message CompiledTask { // Completely contained TaskTemplate @@ -50,4 +58,7 @@ message CompiledWorkflowClosure { // Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id //+required (at least 1) repeated CompiledTask tasks = 3; + // A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan + // with a given id, i.e., every launch plan has a unique id. + repeated CompiledLaunchPlan launch_plans = 4; } diff --git a/flyteidl/protos/flyteidl/core/workflow.proto b/flyteidl/protos/flyteidl/core/workflow.proto index 8c74094b5b..f06b04860a 100644 --- a/flyteidl/protos/flyteidl/core/workflow.proto +++ b/flyteidl/protos/flyteidl/core/workflow.proto @@ -149,6 +149,20 @@ message NodeMetadata { bool interruptible = 6; }; + // Identify whether a node should have it's outputs cached. + oneof cacheable_value { + bool cacheable = 7; + } + + // The version of the cache to use. + oneof cache_version_value { + string cache_version = 8; + } + + // Identify whether caching operations involving this node should be serialized. + oneof cache_serializable_value { + bool cache_serializable = 9; + } } // Links a variable to an alias. @@ -284,3 +298,12 @@ message TaskNodeOverrides { // v1.ResourceRequirements, to allocate to a task. ExtendedResources extended_resources = 2; } + +// A structure that uniquely identifies a launch plan in the system. +message LaunchPlanTemplate { + // A globally unique identifier for the launch plan. + Identifier id = 1; + + // The input and output interface for the launch plan + TypedInterface interface = 2; +}