Package flyteidl.core

Class Tasks.Container.Builder

    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
    • 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.Container.Builder>
      • clear

        public Tasks.Container.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.Container.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.Container.Builder>
      • getDefaultInstanceForType

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

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

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

        private void buildPartialRepeatedFields​(Tasks.Container result)
      • clone

        public Tasks.Container.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.Container.Builder>
      • setField

        public Tasks.Container.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Tasks.Container.Builder>
      • clearField

        public Tasks.Container.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.Container.Builder>
      • clearOneof

        public Tasks.Container.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.Container.Builder>
      • setRepeatedField

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

        public Tasks.Container.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Tasks.Container.Builder>
      • mergeFrom

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

        public Tasks.Container.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws 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.Container.Builder>
        Throws:
        IOException
      • getImageBytes

        public com.google.protobuf.ByteString getImageBytes()
         Container image url. Eg: docker/redis:latest
         
        string image = 1;
        Specified by:
        getImageBytes in interface Tasks.ContainerOrBuilder
        Returns:
        The bytes for image.
      • setImage

        public Tasks.Container.Builder setImage​(String value)
         Container image url. Eg: docker/redis:latest
         
        string image = 1;
        Parameters:
        value - The image to set.
        Returns:
        This builder for chaining.
      • clearImage

        public Tasks.Container.Builder clearImage()
         Container image url. Eg: docker/redis:latest
         
        string image = 1;
        Returns:
        This builder for chaining.
      • setImageBytes

        public Tasks.Container.Builder setImageBytes​(com.google.protobuf.ByteString value)
         Container image url. Eg: docker/redis:latest
         
        string image = 1;
        Parameters:
        value - The bytes for image to set.
        Returns:
        This builder for chaining.
      • ensureCommandIsMutable

        private void ensureCommandIsMutable()
      • getCommandList

        public com.google.protobuf.ProtocolStringList getCommandList()
         Command to be executed, if not provided, the default entrypoint in the container image will be used.
         
        repeated string command = 2;
        Specified by:
        getCommandList in interface Tasks.ContainerOrBuilder
        Returns:
        A list containing the command.
      • getCommandCount

        public int getCommandCount()
         Command to be executed, if not provided, the default entrypoint in the container image will be used.
         
        repeated string command = 2;
        Specified by:
        getCommandCount in interface Tasks.ContainerOrBuilder
        Returns:
        The count of command.
      • getCommand

        public String getCommand​(int index)
         Command to be executed, if not provided, the default entrypoint in the container image will be used.
         
        repeated string command = 2;
        Specified by:
        getCommand in interface Tasks.ContainerOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The command at the given index.
      • getCommandBytes

        public com.google.protobuf.ByteString getCommandBytes​(int index)
         Command to be executed, if not provided, the default entrypoint in the container image will be used.
         
        repeated string command = 2;
        Specified by:
        getCommandBytes in interface Tasks.ContainerOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the command at the given index.
      • setCommand

        public Tasks.Container.Builder setCommand​(int index,
                                                  String value)
         Command to be executed, if not provided, the default entrypoint in the container image will be used.
         
        repeated string command = 2;
        Parameters:
        index - The index to set the value at.
        value - The command to set.
        Returns:
        This builder for chaining.
      • addCommand

        public Tasks.Container.Builder addCommand​(String value)
         Command to be executed, if not provided, the default entrypoint in the container image will be used.
         
        repeated string command = 2;
        Parameters:
        value - The command to add.
        Returns:
        This builder for chaining.
      • addAllCommand

        public Tasks.Container.Builder addAllCommand​(Iterable<String> values)
         Command to be executed, if not provided, the default entrypoint in the container image will be used.
         
        repeated string command = 2;
        Parameters:
        values - The command to add.
        Returns:
        This builder for chaining.
      • clearCommand

        public Tasks.Container.Builder clearCommand()
         Command to be executed, if not provided, the default entrypoint in the container image will be used.
         
        repeated string command = 2;
        Returns:
        This builder for chaining.
      • addCommandBytes

        public Tasks.Container.Builder addCommandBytes​(com.google.protobuf.ByteString value)
         Command to be executed, if not provided, the default entrypoint in the container image will be used.
         
        repeated string command = 2;
        Parameters:
        value - The bytes of the command to add.
        Returns:
        This builder for chaining.
      • ensureArgsIsMutable

        private void ensureArgsIsMutable()
      • getArgsList

        public com.google.protobuf.ProtocolStringList getArgsList()
         These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
         needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
         system will populate these before executing the container.
         
        repeated string args = 3;
        Specified by:
        getArgsList in interface Tasks.ContainerOrBuilder
        Returns:
        A list containing the args.
      • getArgsCount

        public int getArgsCount()
         These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
         needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
         system will populate these before executing the container.
         
        repeated string args = 3;
        Specified by:
        getArgsCount in interface Tasks.ContainerOrBuilder
        Returns:
        The count of args.
      • getArgs

        public String getArgs​(int index)
         These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
         needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
         system will populate these before executing the container.
         
        repeated string args = 3;
        Specified by:
        getArgs in interface Tasks.ContainerOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The args at the given index.
      • getArgsBytes

        public com.google.protobuf.ByteString getArgsBytes​(int index)
         These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
         needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
         system will populate these before executing the container.
         
        repeated string args = 3;
        Specified by:
        getArgsBytes in interface Tasks.ContainerOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the args at the given index.
      • setArgs

        public Tasks.Container.Builder setArgs​(int index,
                                               String value)
         These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
         needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
         system will populate these before executing the container.
         
        repeated string args = 3;
        Parameters:
        index - The index to set the value at.
        value - The args to set.
        Returns:
        This builder for chaining.
      • addArgs

        public Tasks.Container.Builder addArgs​(String value)
         These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
         needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
         system will populate these before executing the container.
         
        repeated string args = 3;
        Parameters:
        value - The args to add.
        Returns:
        This builder for chaining.
      • addAllArgs

        public Tasks.Container.Builder addAllArgs​(Iterable<String> values)
         These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
         needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
         system will populate these before executing the container.
         
        repeated string args = 3;
        Parameters:
        values - The args to add.
        Returns:
        This builder for chaining.
      • clearArgs

        public Tasks.Container.Builder clearArgs()
         These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
         needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
         system will populate these before executing the container.
         
        repeated string args = 3;
        Returns:
        This builder for chaining.
      • addArgsBytes

        public Tasks.Container.Builder addArgsBytes​(com.google.protobuf.ByteString value)
         These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
         needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
         system will populate these before executing the container.
         
        repeated string args = 3;
        Parameters:
        value - The bytes of the args to add.
        Returns:
        This builder for chaining.
      • hasResources

        public boolean hasResources()
         Container resources requirement as specified by the container engine.
         
        .flyteidl.core.Resources resources = 4;
        Specified by:
        hasResources in interface Tasks.ContainerOrBuilder
        Returns:
        Whether the resources field is set.
      • getResources

        public Tasks.Resources getResources()
         Container resources requirement as specified by the container engine.
         
        .flyteidl.core.Resources resources = 4;
        Specified by:
        getResources in interface Tasks.ContainerOrBuilder
        Returns:
        The resources.
      • setResources

        public Tasks.Container.Builder setResources​(Tasks.Resources value)
         Container resources requirement as specified by the container engine.
         
        .flyteidl.core.Resources resources = 4;
      • mergeResources

        public Tasks.Container.Builder mergeResources​(Tasks.Resources value)
         Container resources requirement as specified by the container engine.
         
        .flyteidl.core.Resources resources = 4;
      • clearResources

        public Tasks.Container.Builder clearResources()
         Container resources requirement as specified by the container engine.
         
        .flyteidl.core.Resources resources = 4;
      • getResourcesBuilder

        public Tasks.Resources.Builder getResourcesBuilder()
         Container resources requirement as specified by the container engine.
         
        .flyteidl.core.Resources resources = 4;
      • ensureEnvIsMutable

        private void ensureEnvIsMutable()
      • getEnvCount

        public int getEnvCount()
         Environment variables will be set as the container is starting up.
         
        repeated .flyteidl.core.KeyValuePair env = 5;
        Specified by:
        getEnvCount in interface Tasks.ContainerOrBuilder
      • clearEnv

        public Tasks.Container.Builder clearEnv()
         Environment variables will be set as the container is starting up.
         
        repeated .flyteidl.core.KeyValuePair env = 5;
      • removeEnv

        public Tasks.Container.Builder removeEnv​(int index)
         Environment variables will be set as the container is starting up.
         
        repeated .flyteidl.core.KeyValuePair env = 5;
      • getEnvBuilder

        public Literals.KeyValuePair.Builder getEnvBuilder​(int index)
         Environment variables will be set as the container is starting up.
         
        repeated .flyteidl.core.KeyValuePair env = 5;
      • addEnvBuilder

        public Literals.KeyValuePair.Builder addEnvBuilder()
         Environment variables will be set as the container is starting up.
         
        repeated .flyteidl.core.KeyValuePair env = 5;
      • addEnvBuilder

        public Literals.KeyValuePair.Builder addEnvBuilder​(int index)
         Environment variables will be set as the container is starting up.
         
        repeated .flyteidl.core.KeyValuePair env = 5;
      • getEnvBuilderList

        public List<Literals.KeyValuePair.Builder> getEnvBuilderList()
         Environment variables will be set as the container is starting up.
         
        repeated .flyteidl.core.KeyValuePair env = 5;
      • ensureConfigIsMutable

        private void ensureConfigIsMutable()
      • getConfigList

        @Deprecated
        public List<Literals.KeyValuePair> getConfigList()
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
        Specified by:
        getConfigList in interface Tasks.ContainerOrBuilder
      • getConfigCount

        @Deprecated
        public int getConfigCount()
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
        Specified by:
        getConfigCount in interface Tasks.ContainerOrBuilder
      • getConfig

        @Deprecated
        public Literals.KeyValuePair getConfig​(int index)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
        Specified by:
        getConfig in interface Tasks.ContainerOrBuilder
      • setConfig

        @Deprecated
        public Tasks.Container.Builder setConfig​(int index,
                                                 Literals.KeyValuePair value)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • setConfig

        @Deprecated
        public Tasks.Container.Builder setConfig​(int index,
                                                 Literals.KeyValuePair.Builder builderForValue)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • addConfig

        @Deprecated
        public Tasks.Container.Builder addConfig​(Literals.KeyValuePair value)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • addConfig

        @Deprecated
        public Tasks.Container.Builder addConfig​(int index,
                                                 Literals.KeyValuePair value)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • addConfig

        @Deprecated
        public Tasks.Container.Builder addConfig​(Literals.KeyValuePair.Builder builderForValue)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • addConfig

        @Deprecated
        public Tasks.Container.Builder addConfig​(int index,
                                                 Literals.KeyValuePair.Builder builderForValue)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • addAllConfig

        @Deprecated
        public Tasks.Container.Builder addAllConfig​(Iterable<? extends Literals.KeyValuePair> values)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • clearConfig

        @Deprecated
        public Tasks.Container.Builder clearConfig()
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • removeConfig

        @Deprecated
        public Tasks.Container.Builder removeConfig​(int index)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • getConfigBuilder

        @Deprecated
        public Literals.KeyValuePair.Builder getConfigBuilder​(int index)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • getConfigOrBuilder

        @Deprecated
        public Literals.KeyValuePairOrBuilder getConfigOrBuilder​(int index)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
        Specified by:
        getConfigOrBuilder in interface Tasks.ContainerOrBuilder
      • addConfigBuilder

        @Deprecated
        public Literals.KeyValuePair.Builder addConfigBuilder()
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • addConfigBuilder

        @Deprecated
        public Literals.KeyValuePair.Builder addConfigBuilder​(int index)
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • getConfigBuilderList

        @Deprecated
        public List<Literals.KeyValuePair.Builder> getConfigBuilderList()
        Deprecated.
         Allows extra configs to be available for the container.
         TODO: elaborate on how configs will become available.
         Deprecated, please use TaskTemplate.config instead.
         
        repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true];
      • ensurePortsIsMutable

        private void ensurePortsIsMutable()
      • getPortsList

        public List<Tasks.ContainerPort> getPortsList()
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
        Specified by:
        getPortsList in interface Tasks.ContainerOrBuilder
      • getPortsCount

        public int getPortsCount()
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
        Specified by:
        getPortsCount in interface Tasks.ContainerOrBuilder
      • getPorts

        public Tasks.ContainerPort getPorts​(int index)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
        Specified by:
        getPorts in interface Tasks.ContainerOrBuilder
      • setPorts

        public Tasks.Container.Builder setPorts​(int index,
                                                Tasks.ContainerPort value)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • setPorts

        public Tasks.Container.Builder setPorts​(int index,
                                                Tasks.ContainerPort.Builder builderForValue)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • addPorts

        public Tasks.Container.Builder addPorts​(Tasks.ContainerPort value)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • addPorts

        public Tasks.Container.Builder addPorts​(int index,
                                                Tasks.ContainerPort value)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • addPorts

        public Tasks.Container.Builder addPorts​(Tasks.ContainerPort.Builder builderForValue)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • addPorts

        public Tasks.Container.Builder addPorts​(int index,
                                                Tasks.ContainerPort.Builder builderForValue)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • addAllPorts

        public Tasks.Container.Builder addAllPorts​(Iterable<? extends Tasks.ContainerPort> values)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • clearPorts

        public Tasks.Container.Builder clearPorts()
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • removePorts

        public Tasks.Container.Builder removePorts​(int index)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • getPortsBuilder

        public Tasks.ContainerPort.Builder getPortsBuilder​(int index)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • getPortsOrBuilder

        public Tasks.ContainerPortOrBuilder getPortsOrBuilder​(int index)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
        Specified by:
        getPortsOrBuilder in interface Tasks.ContainerOrBuilder
      • addPortsBuilder

        public Tasks.ContainerPort.Builder addPortsBuilder()
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • addPortsBuilder

        public Tasks.ContainerPort.Builder addPortsBuilder​(int index)
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • getPortsBuilderList

        public List<Tasks.ContainerPort.Builder> getPortsBuilderList()
         Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
         not supported on AWS Batch)
         Only K8s
         
        repeated .flyteidl.core.ContainerPort ports = 7;
      • hasDataConfig

        public boolean hasDataConfig()
         BETA: Optional configuration for DataLoading. If not specified, then default values are used.
         This makes it possible to to run a completely portable container, that uses inputs and outputs
         only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
         If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
         are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
         to understand the default paths.
         Only K8s
         
        .flyteidl.core.DataLoadingConfig data_config = 9;
        Specified by:
        hasDataConfig in interface Tasks.ContainerOrBuilder
        Returns:
        Whether the dataConfig field is set.
      • getDataConfig

        public Tasks.DataLoadingConfig getDataConfig()
         BETA: Optional configuration for DataLoading. If not specified, then default values are used.
         This makes it possible to to run a completely portable container, that uses inputs and outputs
         only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
         If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
         are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
         to understand the default paths.
         Only K8s
         
        .flyteidl.core.DataLoadingConfig data_config = 9;
        Specified by:
        getDataConfig in interface Tasks.ContainerOrBuilder
        Returns:
        The dataConfig.
      • setDataConfig

        public Tasks.Container.Builder setDataConfig​(Tasks.DataLoadingConfig value)
         BETA: Optional configuration for DataLoading. If not specified, then default values are used.
         This makes it possible to to run a completely portable container, that uses inputs and outputs
         only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
         If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
         are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
         to understand the default paths.
         Only K8s
         
        .flyteidl.core.DataLoadingConfig data_config = 9;
      • setDataConfig

        public Tasks.Container.Builder setDataConfig​(Tasks.DataLoadingConfig.Builder builderForValue)
         BETA: Optional configuration for DataLoading. If not specified, then default values are used.
         This makes it possible to to run a completely portable container, that uses inputs and outputs
         only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
         If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
         are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
         to understand the default paths.
         Only K8s
         
        .flyteidl.core.DataLoadingConfig data_config = 9;
      • mergeDataConfig

        public Tasks.Container.Builder mergeDataConfig​(Tasks.DataLoadingConfig value)
         BETA: Optional configuration for DataLoading. If not specified, then default values are used.
         This makes it possible to to run a completely portable container, that uses inputs and outputs
         only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
         If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
         are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
         to understand the default paths.
         Only K8s
         
        .flyteidl.core.DataLoadingConfig data_config = 9;
      • clearDataConfig

        public Tasks.Container.Builder clearDataConfig()
         BETA: Optional configuration for DataLoading. If not specified, then default values are used.
         This makes it possible to to run a completely portable container, that uses inputs and outputs
         only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
         If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
         are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
         to understand the default paths.
         Only K8s
         
        .flyteidl.core.DataLoadingConfig data_config = 9;
      • getDataConfigBuilder

        public Tasks.DataLoadingConfig.Builder getDataConfigBuilder()
         BETA: Optional configuration for DataLoading. If not specified, then default values are used.
         This makes it possible to to run a completely portable container, that uses inputs and outputs
         only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
         If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
         are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
         to understand the default paths.
         Only K8s
         
        .flyteidl.core.DataLoadingConfig data_config = 9;
      • getDataConfigOrBuilder

        public Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder()
         BETA: Optional configuration for DataLoading. If not specified, then default values are used.
         This makes it possible to to run a completely portable container, that uses inputs and outputs
         only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
         If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
         are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
         to understand the default paths.
         Only K8s
         
        .flyteidl.core.DataLoadingConfig data_config = 9;
        Specified by:
        getDataConfigOrBuilder in interface Tasks.ContainerOrBuilder
      • getDataConfigFieldBuilder

        private com.google.protobuf.SingleFieldBuilderV3<Tasks.DataLoadingConfig,​Tasks.DataLoadingConfig.Builder,​Tasks.DataLoadingConfigOrBuilder> getDataConfigFieldBuilder()
         BETA: Optional configuration for DataLoading. If not specified, then default values are used.
         This makes it possible to to run a completely portable container, that uses inputs and outputs
         only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
         If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
         are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
         to understand the default paths.
         Only K8s
         
        .flyteidl.core.DataLoadingConfig data_config = 9;
      • getArchitectureValue

        public int getArchitectureValue()
        .flyteidl.core.Container.Architecture architecture = 10;
        Specified by:
        getArchitectureValue in interface Tasks.ContainerOrBuilder
        Returns:
        The enum numeric value on the wire for architecture.
      • setArchitectureValue

        public Tasks.Container.Builder setArchitectureValue​(int value)
        .flyteidl.core.Container.Architecture architecture = 10;
        Parameters:
        value - The enum numeric value on the wire for architecture to set.
        Returns:
        This builder for chaining.
      • clearArchitecture

        public Tasks.Container.Builder clearArchitecture()
        .flyteidl.core.Container.Architecture architecture = 10;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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