Package flyteidl.core
Class DynamicJob.DynamicJobSpec
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- flyteidl.core.DynamicJob.DynamicJobSpec
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DynamicJob.DynamicJobSpecOrBuilder,Serializable
- Enclosing class:
- DynamicJob
public static final class DynamicJob.DynamicJobSpec extends com.google.protobuf.GeneratedMessageV3 implements DynamicJob.DynamicJobSpecOrBuilder
Describes a set of tasks to execute and how the final outputs are produced.
Protobuf typeflyteidl.core.DynamicJobSpec- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDynamicJob.DynamicJobSpec.BuilderDescribes a set of tasks to execute and how the final outputs are produced.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private static DynamicJob.DynamicJobSpecDEFAULT_INSTANCEprivate bytememoizedIsInitializedstatic intMIN_SUCCESSES_FIELD_NUMBERprivate longminSuccesses_private List<Workflow.Node>nodes_static intNODES_FIELD_NUMBERprivate List<Literals.Binding>outputs_static intOUTPUTS_FIELD_NUMBERprivate static com.google.protobuf.Parser<DynamicJob.DynamicJobSpec>PARSERprivate static longserialVersionUIDprivate List<Workflow.WorkflowTemplate>subworkflows_static intSUBWORKFLOWS_FIELD_NUMBERprivate List<Tasks.TaskTemplate>tasks_static intTASKS_FIELD_NUMBER
-
Constructor Summary
Constructors Modifier Constructor Description privateDynamicJobSpec()privateDynamicJobSpec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static DynamicJob.DynamicJobSpecgetDefaultInstance()DynamicJob.DynamicJobSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()longgetMinSuccesses()An absolute number of successful completions of nodes required to mark this job as succeeded.Workflow.NodegetNodes(int index)A collection of nodes to execute.intgetNodesCount()A collection of nodes to execute.List<Workflow.Node>getNodesList()A collection of nodes to execute.Workflow.NodeOrBuildergetNodesOrBuilder(int index)A collection of nodes to execute.List<? extends Workflow.NodeOrBuilder>getNodesOrBuilderList()A collection of nodes to execute.Literals.BindinggetOutputs(int index)Describes how to bind the final output of the dynamic job from the outputs of executed nodes.intgetOutputsCount()Describes how to bind the final output of the dynamic job from the outputs of executed nodes.List<Literals.Binding>getOutputsList()Describes how to bind the final output of the dynamic job from the outputs of executed nodes.Literals.BindingOrBuildergetOutputsOrBuilder(int index)Describes how to bind the final output of the dynamic job from the outputs of executed nodes.List<? extends Literals.BindingOrBuilder>getOutputsOrBuilderList()Describes how to bind the final output of the dynamic job from the outputs of executed nodes.com.google.protobuf.Parser<DynamicJob.DynamicJobSpec>getParserForType()intgetSerializedSize()Workflow.WorkflowTemplategetSubworkflows(int index)[Optional] A complete list of sub-workflows templates.intgetSubworkflowsCount()[Optional] A complete list of sub-workflows templates.List<Workflow.WorkflowTemplate>getSubworkflowsList()[Optional] A complete list of sub-workflows templates.Workflow.WorkflowTemplateOrBuildergetSubworkflowsOrBuilder(int index)[Optional] A complete list of sub-workflows templates.List<? extends Workflow.WorkflowTemplateOrBuilder>getSubworkflowsOrBuilderList()[Optional] A complete list of sub-workflows templates.Tasks.TaskTemplategetTasks(int index)[Optional] A complete list of task specs referenced in nodes.intgetTasksCount()[Optional] A complete list of task specs referenced in nodes.List<Tasks.TaskTemplate>getTasksList()[Optional] A complete list of task specs referenced in nodes.Tasks.TaskTemplateOrBuildergetTasksOrBuilder(int index)[Optional] A complete list of task specs referenced in nodes.List<? extends Tasks.TaskTemplateOrBuilder>getTasksOrBuilderList()[Optional] A complete list of task specs referenced in nodes.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DynamicJob.DynamicJobSpec.BuildernewBuilder()static DynamicJob.DynamicJobSpec.BuildernewBuilder(DynamicJob.DynamicJobSpec prototype)DynamicJob.DynamicJobSpec.BuildernewBuilderForType()protected DynamicJob.DynamicJobSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DynamicJob.DynamicJobSpecparseDelimitedFrom(InputStream input)static DynamicJob.DynamicJobSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DynamicJob.DynamicJobSpecparseFrom(byte[] data)static DynamicJob.DynamicJobSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DynamicJob.DynamicJobSpecparseFrom(com.google.protobuf.ByteString data)static DynamicJob.DynamicJobSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DynamicJob.DynamicJobSpecparseFrom(com.google.protobuf.CodedInputStream input)static DynamicJob.DynamicJobSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DynamicJob.DynamicJobSpecparseFrom(InputStream input)static DynamicJob.DynamicJobSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DynamicJob.DynamicJobSpecparseFrom(ByteBuffer data)static DynamicJob.DynamicJobSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DynamicJob.DynamicJobSpec>parser()DynamicJob.DynamicJobSpec.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
NODES_FIELD_NUMBER
public static final int NODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
nodes_
private List<Workflow.Node> nodes_
-
MIN_SUCCESSES_FIELD_NUMBER
public static final int MIN_SUCCESSES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
minSuccesses_
private long minSuccesses_
-
OUTPUTS_FIELD_NUMBER
public static final int OUTPUTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
outputs_
private List<Literals.Binding> outputs_
-
TASKS_FIELD_NUMBER
public static final int TASKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
tasks_
private List<Tasks.TaskTemplate> tasks_
-
SUBWORKFLOWS_FIELD_NUMBER
public static final int SUBWORKFLOWS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
subworkflows_
private List<Workflow.WorkflowTemplate> subworkflows_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final DynamicJob.DynamicJobSpec DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<DynamicJob.DynamicJobSpec> PARSER
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getNodesList
public List<Workflow.Node> getNodesList()
A collection of nodes to execute.
repeated .flyteidl.core.Node nodes = 1;- Specified by:
getNodesListin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getNodesOrBuilderList
public List<? extends Workflow.NodeOrBuilder> getNodesOrBuilderList()
A collection of nodes to execute.
repeated .flyteidl.core.Node nodes = 1;- Specified by:
getNodesOrBuilderListin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getNodesCount
public int getNodesCount()
A collection of nodes to execute.
repeated .flyteidl.core.Node nodes = 1;- Specified by:
getNodesCountin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getNodes
public Workflow.Node getNodes(int index)
A collection of nodes to execute.
repeated .flyteidl.core.Node nodes = 1;- Specified by:
getNodesin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getNodesOrBuilder
public Workflow.NodeOrBuilder getNodesOrBuilder(int index)
A collection of nodes to execute.
repeated .flyteidl.core.Node nodes = 1;- Specified by:
getNodesOrBuilderin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getMinSuccesses
public long getMinSuccesses()
An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not specified, is the count of nodes repeated field.
int64 min_successes = 2;- Specified by:
getMinSuccessesin interfaceDynamicJob.DynamicJobSpecOrBuilder- Returns:
- The minSuccesses.
-
getOutputsList
public List<Literals.Binding> getOutputsList()
Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids in bindings should have the generated id for the subtask.
repeated .flyteidl.core.Binding outputs = 3;- Specified by:
getOutputsListin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getOutputsOrBuilderList
public List<? extends Literals.BindingOrBuilder> getOutputsOrBuilderList()
Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids in bindings should have the generated id for the subtask.
repeated .flyteidl.core.Binding outputs = 3;- Specified by:
getOutputsOrBuilderListin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getOutputsCount
public int getOutputsCount()
Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids in bindings should have the generated id for the subtask.
repeated .flyteidl.core.Binding outputs = 3;- Specified by:
getOutputsCountin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getOutputs
public Literals.Binding getOutputs(int index)
Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids in bindings should have the generated id for the subtask.
repeated .flyteidl.core.Binding outputs = 3;- Specified by:
getOutputsin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getOutputsOrBuilder
public Literals.BindingOrBuilder getOutputsOrBuilder(int index)
Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids in bindings should have the generated id for the subtask.
repeated .flyteidl.core.Binding outputs = 3;- Specified by:
getOutputsOrBuilderin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getTasksList
public List<Tasks.TaskTemplate> getTasksList()
[Optional] A complete list of task specs referenced in nodes.
repeated .flyteidl.core.TaskTemplate tasks = 4;- Specified by:
getTasksListin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getTasksOrBuilderList
public List<? extends Tasks.TaskTemplateOrBuilder> getTasksOrBuilderList()
[Optional] A complete list of task specs referenced in nodes.
repeated .flyteidl.core.TaskTemplate tasks = 4;- Specified by:
getTasksOrBuilderListin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getTasksCount
public int getTasksCount()
[Optional] A complete list of task specs referenced in nodes.
repeated .flyteidl.core.TaskTemplate tasks = 4;- Specified by:
getTasksCountin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getTasks
public Tasks.TaskTemplate getTasks(int index)
[Optional] A complete list of task specs referenced in nodes.
repeated .flyteidl.core.TaskTemplate tasks = 4;- Specified by:
getTasksin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getTasksOrBuilder
public Tasks.TaskTemplateOrBuilder getTasksOrBuilder(int index)
[Optional] A complete list of task specs referenced in nodes.
repeated .flyteidl.core.TaskTemplate tasks = 4;- Specified by:
getTasksOrBuilderin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getSubworkflowsList
public List<Workflow.WorkflowTemplate> getSubworkflowsList()
[Optional] A complete list of sub-workflows templates.
repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;- Specified by:
getSubworkflowsListin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getSubworkflowsOrBuilderList
public List<? extends Workflow.WorkflowTemplateOrBuilder> getSubworkflowsOrBuilderList()
[Optional] A complete list of sub-workflows templates.
repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;- Specified by:
getSubworkflowsOrBuilderListin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getSubworkflowsCount
public int getSubworkflowsCount()
[Optional] A complete list of sub-workflows templates.
repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;- Specified by:
getSubworkflowsCountin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getSubworkflows
public Workflow.WorkflowTemplate getSubworkflows(int index)
[Optional] A complete list of sub-workflows templates.
repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;- Specified by:
getSubworkflowsin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getSubworkflowsOrBuilder
public Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder(int index)
[Optional] A complete list of sub-workflows templates.
repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;- Specified by:
getSubworkflowsOrBuilderin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DynamicJob.DynamicJobSpec parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DynamicJob.DynamicJobSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public DynamicJob.DynamicJobSpec.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DynamicJob.DynamicJobSpec.Builder newBuilder()
-
newBuilder
public static DynamicJob.DynamicJobSpec.Builder newBuilder(DynamicJob.DynamicJobSpec prototype)
-
toBuilder
public DynamicJob.DynamicJobSpec.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DynamicJob.DynamicJobSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DynamicJob.DynamicJobSpec getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DynamicJob.DynamicJobSpec> parser()
-
getParserForType
public com.google.protobuf.Parser<DynamicJob.DynamicJobSpec> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DynamicJob.DynamicJobSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-