Package flyteidl.core

Class Compiler.CompiledWorkflowClosure.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Compiler.CompiledWorkflowClosureOrBuilder, java.lang.Cloneable
    Enclosing class:
    Compiler.CompiledWorkflowClosure

    public static final class Compiler.CompiledWorkflowClosure.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Compiler.CompiledWorkflowClosure.Builder>
    implements Compiler.CompiledWorkflowClosureOrBuilder
     A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
     and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
     will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
     compiled subworkflows.
     
    Protobuf type flyteidl.core.CompiledWorkflowClosure
    • 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<Compiler.CompiledWorkflowClosure.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<Compiler.CompiledWorkflowClosure.Builder>
      • getDefaultInstanceForType

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

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

        public Compiler.CompiledWorkflowClosure buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public Compiler.CompiledWorkflowClosure.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<Compiler.CompiledWorkflowClosure.Builder>
        Throws:
        java.io.IOException
      • getSubWorkflowsList

        public java.util.List<Compiler.CompiledWorkflow> getSubWorkflowsList()
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
        Specified by:
        getSubWorkflowsList in interface Compiler.CompiledWorkflowClosureOrBuilder
      • getSubWorkflowsCount

        public int getSubWorkflowsCount()
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
        Specified by:
        getSubWorkflowsCount in interface Compiler.CompiledWorkflowClosureOrBuilder
      • getSubWorkflows

        public Compiler.CompiledWorkflow getSubWorkflows​(int index)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
        Specified by:
        getSubWorkflows in interface Compiler.CompiledWorkflowClosureOrBuilder
      • setSubWorkflows

        public Compiler.CompiledWorkflowClosure.Builder setSubWorkflows​(int index,
                                                                        Compiler.CompiledWorkflow value)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • setSubWorkflows

        public Compiler.CompiledWorkflowClosure.Builder setSubWorkflows​(int index,
                                                                        Compiler.CompiledWorkflow.Builder builderForValue)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • addSubWorkflows

        public Compiler.CompiledWorkflowClosure.Builder addSubWorkflows​(Compiler.CompiledWorkflow value)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • addSubWorkflows

        public Compiler.CompiledWorkflowClosure.Builder addSubWorkflows​(int index,
                                                                        Compiler.CompiledWorkflow value)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • addSubWorkflows

        public Compiler.CompiledWorkflowClosure.Builder addSubWorkflows​(Compiler.CompiledWorkflow.Builder builderForValue)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • addSubWorkflows

        public Compiler.CompiledWorkflowClosure.Builder addSubWorkflows​(int index,
                                                                        Compiler.CompiledWorkflow.Builder builderForValue)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • addAllSubWorkflows

        public Compiler.CompiledWorkflowClosure.Builder addAllSubWorkflows​(java.lang.Iterable<? extends Compiler.CompiledWorkflow> values)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • clearSubWorkflows

        public Compiler.CompiledWorkflowClosure.Builder clearSubWorkflows()
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • removeSubWorkflows

        public Compiler.CompiledWorkflowClosure.Builder removeSubWorkflows​(int index)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • getSubWorkflowsBuilder

        public Compiler.CompiledWorkflow.Builder getSubWorkflowsBuilder​(int index)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • getSubWorkflowsOrBuilder

        public Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder​(int index)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
        Specified by:
        getSubWorkflowsOrBuilder in interface Compiler.CompiledWorkflowClosureOrBuilder
      • getSubWorkflowsOrBuilderList

        public java.util.List<? extends Compiler.CompiledWorkflowOrBuilder> getSubWorkflowsOrBuilderList()
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
        Specified by:
        getSubWorkflowsOrBuilderList in interface Compiler.CompiledWorkflowClosureOrBuilder
      • addSubWorkflowsBuilder

        public Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder()
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • addSubWorkflowsBuilder

        public Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder​(int index)
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • getSubWorkflowsBuilderList

        public java.util.List<Compiler.CompiledWorkflow.Builder> getSubWorkflowsBuilderList()
         Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
         unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
         as an inlined workflow
        +optional
         
        repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2;
      • getTasksCount

        public int getTasksCount()
         Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
        +required (atleast 1)
         
        repeated .flyteidl.core.CompiledTask tasks = 3;
        Specified by:
        getTasksCount in interface Compiler.CompiledWorkflowClosureOrBuilder
      • addAllTasks

        public Compiler.CompiledWorkflowClosure.Builder addAllTasks​(java.lang.Iterable<? extends Compiler.CompiledTask> values)
         Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
        +required (atleast 1)
         
        repeated .flyteidl.core.CompiledTask tasks = 3;
      • clearTasks

        public Compiler.CompiledWorkflowClosure.Builder clearTasks()
         Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
        +required (atleast 1)
         
        repeated .flyteidl.core.CompiledTask tasks = 3;
      • removeTasks

        public Compiler.CompiledWorkflowClosure.Builder removeTasks​(int index)
         Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
        +required (atleast 1)
         
        repeated .flyteidl.core.CompiledTask tasks = 3;
      • getTasksBuilder

        public Compiler.CompiledTask.Builder getTasksBuilder​(int index)
         Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
        +required (atleast 1)
         
        repeated .flyteidl.core.CompiledTask tasks = 3;
      • addTasksBuilder

        public Compiler.CompiledTask.Builder addTasksBuilder()
         Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
        +required (atleast 1)
         
        repeated .flyteidl.core.CompiledTask tasks = 3;
      • addTasksBuilder

        public Compiler.CompiledTask.Builder addTasksBuilder​(int index)
         Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
        +required (atleast 1)
         
        repeated .flyteidl.core.CompiledTask tasks = 3;
      • getTasksBuilderList

        public java.util.List<Compiler.CompiledTask.Builder> getTasksBuilderList()
         Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
        +required (atleast 1)
         
        repeated .flyteidl.core.CompiledTask tasks = 3;