Package flyteidl.core

Class DynamicJob.DynamicJobSpec.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicJob.DynamicJobSpec.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicJob.DynamicJobSpec.Builder>
      • getDefaultInstanceForType

        public DynamicJob.DynamicJobSpec getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public DynamicJob.DynamicJobSpec build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public DynamicJob.DynamicJobSpec buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setField

        public DynamicJob.DynamicJobSpec.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicJob.DynamicJobSpec.Builder>
      • setRepeatedField

        public DynamicJob.DynamicJobSpec.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicJob.DynamicJobSpec.Builder>
      • addRepeatedField

        public DynamicJob.DynamicJobSpec.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicJob.DynamicJobSpec.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicJob.DynamicJobSpec.Builder>
      • mergeFrom

        public DynamicJob.DynamicJobSpec.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DynamicJob.DynamicJobSpec.Builder>
        Throws:
        java.io.IOException
      • getNodesBuilder

        public Workflow.Node.Builder getNodesBuilder​(int index)
         A collection of nodes to execute.
         
        repeated .flyteidl.core.Node nodes = 1;
      • addNodesBuilder

        public Workflow.Node.Builder addNodesBuilder()
         A collection of nodes to execute.
         
        repeated .flyteidl.core.Node nodes = 1;
      • addNodesBuilder

        public Workflow.Node.Builder addNodesBuilder​(int index)
         A collection of nodes to execute.
         
        repeated .flyteidl.core.Node nodes = 1;
      • getNodesBuilderList

        public java.util.List<Workflow.Node.Builder> getNodesBuilderList()
         A collection of nodes to execute.
         
        repeated .flyteidl.core.Node nodes = 1;
      • 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:
        getMinSuccesses in interface DynamicJob.DynamicJobSpecOrBuilder
        Returns:
        The minSuccesses.
      • setMinSuccesses

        public DynamicJob.DynamicJobSpec.Builder setMinSuccesses​(long value)
         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;
        Parameters:
        value - The minSuccesses to set.
        Returns:
        This builder for chaining.
      • clearMinSuccesses

        public DynamicJob.DynamicJobSpec.Builder clearMinSuccesses()
         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;
        Returns:
        This builder for chaining.
      • 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:
        getOutputsList in interface DynamicJob.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:
        getOutputsCount in interface DynamicJob.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:
        getOutputs in interface DynamicJob.DynamicJobSpecOrBuilder
      • setOutputs

        public DynamicJob.DynamicJobSpec.Builder setOutputs​(int index,
                                                            Literals.Binding value)
         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;
      • setOutputs

        public DynamicJob.DynamicJobSpec.Builder setOutputs​(int index,
                                                            Literals.Binding.Builder builderForValue)
         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;
      • addOutputs

        public DynamicJob.DynamicJobSpec.Builder addOutputs​(Literals.Binding value)
         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;
      • addOutputs

        public DynamicJob.DynamicJobSpec.Builder addOutputs​(int index,
                                                            Literals.Binding value)
         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;
      • addOutputs

        public DynamicJob.DynamicJobSpec.Builder addOutputs​(Literals.Binding.Builder builderForValue)
         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;
      • addOutputs

        public DynamicJob.DynamicJobSpec.Builder addOutputs​(int index,
                                                            Literals.Binding.Builder builderForValue)
         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;
      • addAllOutputs

        public DynamicJob.DynamicJobSpec.Builder addAllOutputs​(java.lang.Iterable<? extends Literals.Binding> values)
         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;
      • clearOutputs

        public DynamicJob.DynamicJobSpec.Builder clearOutputs()
         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;
      • removeOutputs

        public DynamicJob.DynamicJobSpec.Builder removeOutputs​(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;
      • getOutputsBuilder

        public Literals.Binding.Builder getOutputsBuilder​(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;
      • 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:
        getOutputsOrBuilder in interface DynamicJob.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:
        getOutputsOrBuilderList in interface DynamicJob.DynamicJobSpecOrBuilder
      • addOutputsBuilder

        public Literals.Binding.Builder addOutputsBuilder()
         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;
      • addOutputsBuilder

        public Literals.Binding.Builder addOutputsBuilder​(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;
      • getOutputsBuilderList

        public java.util.List<Literals.Binding.Builder> getOutputsBuilderList()
         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;
      • clearTasks

        public DynamicJob.DynamicJobSpec.Builder clearTasks()
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.TaskTemplate tasks = 4;
      • removeTasks

        public DynamicJob.DynamicJobSpec.Builder removeTasks​(int index)
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.TaskTemplate tasks = 4;
      • getTasksBuilder

        public Tasks.TaskTemplate.Builder getTasksBuilder​(int index)
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.TaskTemplate tasks = 4;
      • addTasksBuilder

        public Tasks.TaskTemplate.Builder addTasksBuilder()
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.TaskTemplate tasks = 4;
      • addTasksBuilder

        public Tasks.TaskTemplate.Builder addTasksBuilder​(int index)
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.TaskTemplate tasks = 4;
      • getTasksBuilderList

        public java.util.List<Tasks.TaskTemplate.Builder> getTasksBuilderList()
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.TaskTemplate tasks = 4;
      • clearSubworkflows

        public DynamicJob.DynamicJobSpec.Builder clearSubworkflows()
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;
      • removeSubworkflows

        public DynamicJob.DynamicJobSpec.Builder removeSubworkflows​(int index)
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;
      • getSubworkflowsBuilder

        public Workflow.WorkflowTemplate.Builder getSubworkflowsBuilder​(int index)
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;
      • addSubworkflowsBuilder

        public Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder()
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;
      • addSubworkflowsBuilder

        public Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder​(int index)
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;
      • getSubworkflowsBuilderList

        public java.util.List<Workflow.WorkflowTemplate.Builder> getSubworkflowsBuilderList()
         [Optional] A complete list of task specs referenced in nodes.
         
        repeated .flyteidl.core.WorkflowTemplate subworkflows = 5;
      • setUnknownFields

        public final DynamicJob.DynamicJobSpec.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicJob.DynamicJobSpec.Builder>
      • mergeUnknownFields

        public final DynamicJob.DynamicJobSpec.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicJob.DynamicJobSpec.Builder>