@flyteorg/flyteidl2
Version:
Compiled protocol buffers and gRPC service and connect clients/servers for Flyte IDLs
188 lines (169 loc) • 7.09 kB
text/typescript
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
// @generated from file flyteidl2/core/interface.proto (package flyteidl2.core, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { ArtifactID, ArtifactQuery, ArtifactTag } from "./artifact_id_pb.ts";
import { file_flyteidl2_core_artifact_id } from "./artifact_id_pb.ts";
import type { Literal } from "./literals_pb.ts";
import { file_flyteidl2_core_literals } from "./literals_pb.ts";
import type { LiteralType } from "./types_pb.ts";
import { file_flyteidl2_core_types } from "./types_pb.ts";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file flyteidl2/core/interface.proto.
*/
export const file_flyteidl2_core_interface: GenFile = /*@__PURE__*/
fileDesc("Ch5mbHl0ZWlkbDIvY29yZS9pbnRlcmZhY2UucHJvdG8SDmZseXRlaWRsMi5jb3JlIrYBCghWYXJpYWJsZRIpCgR0eXBlGAEgASgLMhsuZmx5dGVpZGwyLmNvcmUuTGl0ZXJhbFR5cGUSEwoLZGVzY3JpcHRpb24YAiABKAkSNwoTYXJ0aWZhY3RfcGFydGlhbF9pZBgDIAEoCzIaLmZseXRlaWRsMi5jb3JlLkFydGlmYWN0SUQSMQoMYXJ0aWZhY3RfdGFnGAQgASgLMhsuZmx5dGVpZGwyLmNvcmUuQXJ0aWZhY3RUYWcimAEKC1ZhcmlhYmxlTWFwEj0KCXZhcmlhYmxlcxgBIAMoCzIqLmZseXRlaWRsMi5jb3JlLlZhcmlhYmxlTWFwLlZhcmlhYmxlc0VudHJ5GkoKDlZhcmlhYmxlc0VudHJ5EgsKA2tleRgBIAEoCRInCgV2YWx1ZRgCIAEoCzIYLmZseXRlaWRsMi5jb3JlLlZhcmlhYmxlOgI4ASJrCg5UeXBlZEludGVyZmFjZRIrCgZpbnB1dHMYASABKAsyGy5mbHl0ZWlkbDIuY29yZS5WYXJpYWJsZU1hcBIsCgdvdXRwdXRzGAIgASgLMhsuZmx5dGVpZGwyLmNvcmUuVmFyaWFibGVNYXAi6gEKCVBhcmFtZXRlchIlCgN2YXIYASABKAsyGC5mbHl0ZWlkbDIuY29yZS5WYXJpYWJsZRIqCgdkZWZhdWx0GAIgASgLMhcuZmx5dGVpZGwyLmNvcmUuTGl0ZXJhbEgAEhIKCHJlcXVpcmVkGAMgASgISAASNwoOYXJ0aWZhY3RfcXVlcnkYBCABKAsyHS5mbHl0ZWlkbDIuY29yZS5BcnRpZmFjdFF1ZXJ5SAASMQoLYXJ0aWZhY3RfaWQYBSABKAsyGi5mbHl0ZWlkbDIuY29yZS5BcnRpZmFjdElESABCCgoIYmVoYXZpb3IingEKDFBhcmFtZXRlck1hcBJACgpwYXJhbWV0ZXJzGAEgAygLMiwuZmx5dGVpZGwyLmNvcmUuUGFyYW1ldGVyTWFwLlBhcmFtZXRlcnNFbnRyeRpMCg9QYXJhbWV0ZXJzRW50cnkSCwoDa2V5GAEgASgJEigKBXZhbHVlGAIgASgLMhkuZmx5dGVpZGwyLmNvcmUuUGFyYW1ldGVyOgI4AUKzAQoSY29tLmZseXRlaWRsMi5jb3JlQg5JbnRlcmZhY2VQcm90b0gCUAFaMmdpdGh1Yi5jb20vZmx5dGVvcmcvZmx5dGUvdjIvZ2VuL2dvL2ZseXRlaWRsMi9jb3JlogIDRkNYqgIORmx5dGVpZGwyLkNvcmXKAg5GbHl0ZWlkbDJcQ29yZeICGkZseXRlaWRsMlxDb3JlXEdQQk1ldGFkYXRh6gIPRmx5dGVpZGwyOjpDb3JlYgZwcm90bzM", [file_flyteidl2_core_artifact_id, file_flyteidl2_core_literals, file_flyteidl2_core_types]);
/**
* Defines a strongly typed variable.
*
* @generated from message flyteidl2.core.Variable
*/
export type Variable = Message<"flyteidl2.core.Variable"> & {
/**
* Variable literal type.
*
* @generated from field: flyteidl2.core.LiteralType type = 1;
*/
type?: LiteralType;
/**
* +optional string describing input variable
*
* @generated from field: string description = 2;
*/
description: string;
/**
* +optional This object allows the user to specify how Artifacts are created.
* name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
*
* @generated from field: flyteidl2.core.ArtifactID artifact_partial_id = 3;
*/
artifactPartialId?: ArtifactID;
/**
* @generated from field: flyteidl2.core.ArtifactTag artifact_tag = 4;
*/
artifactTag?: ArtifactTag;
};
/**
* Describes the message flyteidl2.core.Variable.
* Use `create(VariableSchema)` to create a new message.
*/
export const VariableSchema: GenMessage<Variable> = /*@__PURE__*/
messageDesc(file_flyteidl2_core_interface, 0);
/**
* A map of Variables
*
* @generated from message flyteidl2.core.VariableMap
*/
export type VariableMap = Message<"flyteidl2.core.VariableMap"> & {
/**
* Defines a map of variable names to variables.
*
* @generated from field: map<string, flyteidl2.core.Variable> variables = 1;
*/
variables: { [key: string]: Variable };
};
/**
* Describes the message flyteidl2.core.VariableMap.
* Use `create(VariableMapSchema)` to create a new message.
*/
export const VariableMapSchema: GenMessage<VariableMap> = /*@__PURE__*/
messageDesc(file_flyteidl2_core_interface, 1);
/**
* Defines strongly typed inputs and outputs.
*
* @generated from message flyteidl2.core.TypedInterface
*/
export type TypedInterface = Message<"flyteidl2.core.TypedInterface"> & {
/**
* @generated from field: flyteidl2.core.VariableMap inputs = 1;
*/
inputs?: VariableMap;
/**
* @generated from field: flyteidl2.core.VariableMap outputs = 2;
*/
outputs?: VariableMap;
};
/**
* Describes the message flyteidl2.core.TypedInterface.
* Use `create(TypedInterfaceSchema)` to create a new message.
*/
export const TypedInterfaceSchema: GenMessage<TypedInterface> = /*@__PURE__*/
messageDesc(file_flyteidl2_core_interface, 2);
/**
* A parameter is used as input to a launch plan and has
* the special ability to have a default value or mark itself as required.
*
* @generated from message flyteidl2.core.Parameter
*/
export type Parameter = Message<"flyteidl2.core.Parameter"> & {
/**
* +required Variable. Defines the type of the variable backing this parameter.
*
* @generated from field: flyteidl2.core.Variable var = 1;
*/
var?: Variable;
/**
* +optional
*
* @generated from oneof flyteidl2.core.Parameter.behavior
*/
behavior: {
/**
* Defines a default value that has to match the variable type defined.
*
* @generated from field: flyteidl2.core.Literal default = 2;
*/
value: Literal;
case: "default";
} | {
/**
* +optional, is this value required to be filled.
*
* @generated from field: bool required = 3;
*/
value: boolean;
case: "required";
} | {
/**
* This is an execution time search basically that should result in exactly one Artifact with a Type that
* matches the type of the variable.
*
* @generated from field: flyteidl2.core.ArtifactQuery artifact_query = 4;
*/
value: ArtifactQuery;
case: "artifactQuery";
} | {
/**
* @generated from field: flyteidl2.core.ArtifactID artifact_id = 5;
*/
value: ArtifactID;
case: "artifactId";
} | { case: undefined; value?: undefined };
};
/**
* Describes the message flyteidl2.core.Parameter.
* Use `create(ParameterSchema)` to create a new message.
*/
export const ParameterSchema: GenMessage<Parameter> = /*@__PURE__*/
messageDesc(file_flyteidl2_core_interface, 3);
/**
* A map of Parameters.
*
* @generated from message flyteidl2.core.ParameterMap
*/
export type ParameterMap = Message<"flyteidl2.core.ParameterMap"> & {
/**
* Defines a map of parameter names to parameters.
*
* @generated from field: map<string, flyteidl2.core.Parameter> parameters = 1;
*/
parameters: { [key: string]: Parameter };
};
/**
* Describes the message flyteidl2.core.ParameterMap.
* Use `create(ParameterMapSchema)` to create a new message.
*/
export const ParameterMapSchema: GenMessage<ParameterMap> = /*@__PURE__*/
messageDesc(file_flyteidl2_core_interface, 4);