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,java.io.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 static intMIN_SUCCESSES_FIELD_NUMBERstatic intNODES_FIELD_NUMBERstatic intOUTPUTS_FIELD_NUMBERstatic intSUBWORKFLOWS_FIELD_NUMBERstatic intTASKS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.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.java.util.List<Workflow.Node>getNodesList()A collection of nodes to execute.Workflow.NodeOrBuildergetNodesOrBuilder(int index)A collection of nodes to execute.java.util.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.java.util.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.java.util.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 task specs referenced in nodes.intgetSubworkflowsCount()[Optional] A complete list of task specs referenced in nodes.java.util.List<Workflow.WorkflowTemplate>getSubworkflowsList()[Optional] A complete list of task specs referenced in nodes.Workflow.WorkflowTemplateOrBuildergetSubworkflowsOrBuilder(int index)[Optional] A complete list of task specs referenced in nodes.java.util.List<? extends Workflow.WorkflowTemplateOrBuilder>getSubworkflowsOrBuilderList()[Optional] A complete list of task specs referenced in nodes.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.java.util.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.java.util.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 java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DynamicJob.DynamicJobSpecparseDelimitedFrom(java.io.InputStream input)static DynamicJob.DynamicJobSpecparseDelimitedFrom(java.io.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(java.io.InputStream input)static DynamicJob.DynamicJobSpecparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DynamicJob.DynamicJobSpecparseFrom(java.nio.ByteBuffer data)static DynamicJob.DynamicJobSpecparseFrom(java.nio.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, 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
-
NODES_FIELD_NUMBER
public static final int NODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_SUCCESSES_FIELD_NUMBER
public static final int MIN_SUCCESSES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUTS_FIELD_NUMBER
public static final int OUTPUTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TASKS_FIELD_NUMBER
public static final int TASKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUBWORKFLOWS_FIELD_NUMBER
public static final int SUBWORKFLOWS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.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 java.util.List<Workflow.Node> getNodesList()
A collection of nodes to execute.
repeated .flyteidl.core.Node nodes = 1;- Specified by:
getNodesListin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getNodesOrBuilderList
public java.util.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 java.util.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 java.util.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 java.util.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 java.util.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 java.util.List<Workflow.WorkflowTemplate> getSubworkflowsList()
[Optional] A complete list of task specs referenced in nodes.
repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;- Specified by:
getSubworkflowsListin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getSubworkflowsOrBuilderList
public java.util.List<? extends Workflow.WorkflowTemplateOrBuilder> getSubworkflowsOrBuilderList()
[Optional] A complete list of task specs referenced in nodes.
repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;- Specified by:
getSubworkflowsOrBuilderListin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getSubworkflowsCount
public int getSubworkflowsCount()
[Optional] A complete list of task specs referenced in nodes.
repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;- Specified by:
getSubworkflowsCountin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getSubworkflows
public Workflow.WorkflowTemplate getSubworkflows(int index)
[Optional] A complete list of task specs referenced in nodes.
repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;- Specified by:
getSubworkflowsin interfaceDynamicJob.DynamicJobSpecOrBuilder
-
getSubworkflowsOrBuilder
public Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder(int index)
[Optional] A complete list of task specs referenced in nodes.
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 java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DynamicJob.DynamicJobSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DynamicJob.DynamicJobSpec parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DynamicJob.DynamicJobSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.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
-
-