Package flyteidl.core

Class Tasks.TaskTemplate.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Tasks.TaskTemplateOrBuilder, java.lang.Cloneable
    Enclosing class:
    Tasks.TaskTemplate

    public static final class Tasks.TaskTemplate.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Tasks.TaskTemplate.Builder>
    implements Tasks.TaskTemplateOrBuilder
     A Task structure that uniquely identifies a task in the system
     Tasks are registered as a first step in the system.
     
    Protobuf type flyteidl.core.TaskTemplate
    • 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<Tasks.TaskTemplate.Builder>
      • clear

        public Tasks.TaskTemplate.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Tasks.TaskTemplate.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<Tasks.TaskTemplate.Builder>
      • getDefaultInstanceForType

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

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

        public Tasks.TaskTemplate buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Tasks.TaskTemplate.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Tasks.TaskTemplate.Builder>
      • setField

        public Tasks.TaskTemplate.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<Tasks.TaskTemplate.Builder>
      • clearField

        public Tasks.TaskTemplate.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Tasks.TaskTemplate.Builder>
      • clearOneof

        public Tasks.TaskTemplate.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Tasks.TaskTemplate.Builder>
      • setRepeatedField

        public Tasks.TaskTemplate.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<Tasks.TaskTemplate.Builder>
      • addRepeatedField

        public Tasks.TaskTemplate.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<Tasks.TaskTemplate.Builder>
      • mergeFrom

        public Tasks.TaskTemplate.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tasks.TaskTemplate.Builder>
      • isInitialized

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

        public Tasks.TaskTemplate.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<Tasks.TaskTemplate.Builder>
        Throws:
        java.io.IOException
      • hasId

        public boolean hasId()
         Auto generated taskId by the system. Task Id uniquely identifies this task globally.
         
        .flyteidl.core.Identifier id = 1;
        Specified by:
        hasId in interface Tasks.TaskTemplateOrBuilder
        Returns:
        Whether the id field is set.
      • clearId

        public Tasks.TaskTemplate.Builder clearId()
         Auto generated taskId by the system. Task Id uniquely identifies this task globally.
         
        .flyteidl.core.Identifier id = 1;
      • getIdBuilder

        public IdentifierOuterClass.Identifier.Builder getIdBuilder()
         Auto generated taskId by the system. Task Id uniquely identifies this task globally.
         
        .flyteidl.core.Identifier id = 1;
      • getType

        public java.lang.String getType()
         A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
         extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
         implementation registered for the TaskCategory.
         
        string type = 2;
        Specified by:
        getType in interface Tasks.TaskTemplateOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
         extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
         implementation registered for the TaskCategory.
         
        string type = 2;
        Specified by:
        getTypeBytes in interface Tasks.TaskTemplateOrBuilder
        Returns:
        The bytes for type.
      • setType

        public Tasks.TaskTemplate.Builder setType​(java.lang.String value)
         A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
         extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
         implementation registered for the TaskCategory.
         
        string type = 2;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Tasks.TaskTemplate.Builder clearType()
         A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
         extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
         implementation registered for the TaskCategory.
         
        string type = 2;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public Tasks.TaskTemplate.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
         extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
         implementation registered for the TaskCategory.
         
        string type = 2;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • hasMetadata

        public boolean hasMetadata()
         Extra metadata about the task.
         
        .flyteidl.core.TaskMetadata metadata = 3;
        Specified by:
        hasMetadata in interface Tasks.TaskTemplateOrBuilder
        Returns:
        Whether the metadata field is set.
      • clearMetadata

        public Tasks.TaskTemplate.Builder clearMetadata()
         Extra metadata about the task.
         
        .flyteidl.core.TaskMetadata metadata = 3;
      • getMetadataBuilder

        public Tasks.TaskMetadata.Builder getMetadataBuilder()
         Extra metadata about the task.
         
        .flyteidl.core.TaskMetadata metadata = 3;
      • hasInterface

        public boolean hasInterface()
         A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
         compile-time validation of the workflow to avoid costly runtime failures.
         
        .flyteidl.core.TypedInterface interface = 4;
        Specified by:
        hasInterface in interface Tasks.TaskTemplateOrBuilder
        Returns:
        Whether the interface field is set.
      • getInterface

        public Interface.TypedInterface getInterface()
         A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
         compile-time validation of the workflow to avoid costly runtime failures.
         
        .flyteidl.core.TypedInterface interface = 4;
        Specified by:
        getInterface in interface Tasks.TaskTemplateOrBuilder
        Returns:
        The interface.
      • setInterface

        public Tasks.TaskTemplate.Builder setInterface​(Interface.TypedInterface value)
         A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
         compile-time validation of the workflow to avoid costly runtime failures.
         
        .flyteidl.core.TypedInterface interface = 4;
      • setInterface

        public Tasks.TaskTemplate.Builder setInterface​(Interface.TypedInterface.Builder builderForValue)
         A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
         compile-time validation of the workflow to avoid costly runtime failures.
         
        .flyteidl.core.TypedInterface interface = 4;
      • mergeInterface

        public Tasks.TaskTemplate.Builder mergeInterface​(Interface.TypedInterface value)
         A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
         compile-time validation of the workflow to avoid costly runtime failures.
         
        .flyteidl.core.TypedInterface interface = 4;
      • clearInterface

        public Tasks.TaskTemplate.Builder clearInterface()
         A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
         compile-time validation of the workflow to avoid costly runtime failures.
         
        .flyteidl.core.TypedInterface interface = 4;
      • getInterfaceBuilder

        public Interface.TypedInterface.Builder getInterfaceBuilder()
         A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
         compile-time validation of the workflow to avoid costly runtime failures.
         
        .flyteidl.core.TypedInterface interface = 4;
      • hasCustom

        public boolean hasCustom()
         Custom data about the task. This is extensible to allow various plugins in the system.
         
        .google.protobuf.Struct custom = 5;
        Specified by:
        hasCustom in interface Tasks.TaskTemplateOrBuilder
        Returns:
        Whether the custom field is set.
      • getCustom

        public com.google.protobuf.Struct getCustom()
         Custom data about the task. This is extensible to allow various plugins in the system.
         
        .google.protobuf.Struct custom = 5;
        Specified by:
        getCustom in interface Tasks.TaskTemplateOrBuilder
        Returns:
        The custom.
      • setCustom

        public Tasks.TaskTemplate.Builder setCustom​(com.google.protobuf.Struct value)
         Custom data about the task. This is extensible to allow various plugins in the system.
         
        .google.protobuf.Struct custom = 5;
      • setCustom

        public Tasks.TaskTemplate.Builder setCustom​(com.google.protobuf.Struct.Builder builderForValue)
         Custom data about the task. This is extensible to allow various plugins in the system.
         
        .google.protobuf.Struct custom = 5;
      • mergeCustom

        public Tasks.TaskTemplate.Builder mergeCustom​(com.google.protobuf.Struct value)
         Custom data about the task. This is extensible to allow various plugins in the system.
         
        .google.protobuf.Struct custom = 5;
      • clearCustom

        public Tasks.TaskTemplate.Builder clearCustom()
         Custom data about the task. This is extensible to allow various plugins in the system.
         
        .google.protobuf.Struct custom = 5;
      • getCustomBuilder

        public com.google.protobuf.Struct.Builder getCustomBuilder()
         Custom data about the task. This is extensible to allow various plugins in the system.
         
        .google.protobuf.Struct custom = 5;
      • getCustomOrBuilder

        public com.google.protobuf.StructOrBuilder getCustomOrBuilder()
         Custom data about the task. This is extensible to allow various plugins in the system.
         
        .google.protobuf.Struct custom = 5;
        Specified by:
        getCustomOrBuilder in interface Tasks.TaskTemplateOrBuilder
      • hasContainer

        public boolean hasContainer()
        .flyteidl.core.Container container = 6;
        Specified by:
        hasContainer in interface Tasks.TaskTemplateOrBuilder
        Returns:
        Whether the container field is set.
      • getContainerBuilder

        public Tasks.Container.Builder getContainerBuilder()
        .flyteidl.core.Container container = 6;
      • setUnknownFields

        public final Tasks.TaskTemplate.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<Tasks.TaskTemplate.Builder>
      • mergeUnknownFields

        public final Tasks.TaskTemplate.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<Tasks.TaskTemplate.Builder>