Package flyteidl.core
Interface Tasks.ContainerOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Tasks.Container,Tasks.Container.Builder
- Enclosing class:
- Tasks
public static interface Tasks.ContainerOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Tasks.Container.ArchitecturegetArchitecture().flyteidl.core.Container.Architecture architecture = 10;intgetArchitectureValue().flyteidl.core.Container.Architecture architecture = 10;StringgetArgs(int index)These will default to Flyte given paths.com.google.protobuf.ByteStringgetArgsBytes(int index)These will default to Flyte given paths.intgetArgsCount()These will default to Flyte given paths.List<String>getArgsList()These will default to Flyte given paths.StringgetCommand(int index)Command to be executed, if not provided, the default entrypoint in the container image will be used.com.google.protobuf.ByteStringgetCommandBytes(int index)Command to be executed, if not provided, the default entrypoint in the container image will be used.intgetCommandCount()Command to be executed, if not provided, the default entrypoint in the container image will be used.List<String>getCommandList()Command to be executed, if not provided, the default entrypoint in the container image will be used.Literals.KeyValuePairgetConfig(int index)Deprecated.intgetConfigCount()Deprecated.List<Literals.KeyValuePair>getConfigList()Deprecated.Literals.KeyValuePairOrBuildergetConfigOrBuilder(int index)Deprecated.List<? extends Literals.KeyValuePairOrBuilder>getConfigOrBuilderList()Deprecated.Tasks.DataLoadingConfiggetDataConfig()BETA: Optional configuration for DataLoading.Tasks.DataLoadingConfigOrBuildergetDataConfigOrBuilder()BETA: Optional configuration for DataLoading.Literals.KeyValuePairgetEnv(int index)Environment variables will be set as the container is starting up.intgetEnvCount()Environment variables will be set as the container is starting up.List<Literals.KeyValuePair>getEnvList()Environment variables will be set as the container is starting up.Literals.KeyValuePairOrBuildergetEnvOrBuilder(int index)Environment variables will be set as the container is starting up.List<? extends Literals.KeyValuePairOrBuilder>getEnvOrBuilderList()Environment variables will be set as the container is starting up.StringgetImage()Container image url.com.google.protobuf.ByteStringgetImageBytes()Container image url.Tasks.ContainerPortgetPorts(int index)Ports to open in the container.intgetPortsCount()Ports to open in the container.List<Tasks.ContainerPort>getPortsList()Ports to open in the container.Tasks.ContainerPortOrBuildergetPortsOrBuilder(int index)Ports to open in the container.List<? extends Tasks.ContainerPortOrBuilder>getPortsOrBuilderList()Ports to open in the container.Tasks.ResourcesgetResources()Container resources requirement as specified by the container engine.Tasks.ResourcesOrBuildergetResourcesOrBuilder()Container resources requirement as specified by the container engine.booleanhasDataConfig()BETA: Optional configuration for DataLoading.booleanhasResources()Container resources requirement as specified by the container engine.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getImage
String getImage()
Container image url. Eg: docker/redis:latest
string image = 1;- Returns:
- The image.
-
getImageBytes
com.google.protobuf.ByteString getImageBytes()
Container image url. Eg: docker/redis:latest
string image = 1;- Returns:
- The bytes for image.
-
getCommandList
List<String> getCommandList()
Command to be executed, if not provided, the default entrypoint in the container image will be used.
repeated string command = 2;- Returns:
- A list containing the command.
-
getCommandCount
int getCommandCount()
Command to be executed, if not provided, the default entrypoint in the container image will be used.
repeated string command = 2;- Returns:
- The count of command.
-
getCommand
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;- Parameters:
index- The index of the element to return.- Returns:
- The command at the given index.
-
getCommandBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the command at the given index.
-
getArgsList
List<String> 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;- Returns:
- A list containing the args.
-
getArgsCount
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;- Returns:
- The count of args.
-
getArgs
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;- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
hasResources
boolean hasResources()
Container resources requirement as specified by the container engine.
.flyteidl.core.Resources resources = 4;- Returns:
- Whether the resources field is set.
-
getResources
Tasks.Resources getResources()
Container resources requirement as specified by the container engine.
.flyteidl.core.Resources resources = 4;- Returns:
- The resources.
-
getResourcesOrBuilder
Tasks.ResourcesOrBuilder getResourcesOrBuilder()
Container resources requirement as specified by the container engine.
.flyteidl.core.Resources resources = 4;
-
getEnvList
List<Literals.KeyValuePair> getEnvList()
Environment variables will be set as the container is starting up.
repeated .flyteidl.core.KeyValuePair env = 5;
-
getEnv
Literals.KeyValuePair getEnv(int index)
Environment variables will be set as the container is starting up.
repeated .flyteidl.core.KeyValuePair env = 5;
-
getEnvCount
int getEnvCount()
Environment variables will be set as the container is starting up.
repeated .flyteidl.core.KeyValuePair env = 5;
-
getEnvOrBuilderList
List<? extends Literals.KeyValuePairOrBuilder> getEnvOrBuilderList()
Environment variables will be set as the container is starting up.
repeated .flyteidl.core.KeyValuePair env = 5;
-
getEnvOrBuilder
Literals.KeyValuePairOrBuilder getEnvOrBuilder(int index)
Environment variables will be set as the container is starting up.
repeated .flyteidl.core.KeyValuePair env = 5;
-
getConfigList
@Deprecated 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];
-
getConfig
@Deprecated 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];
-
getConfigCount
@Deprecated 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];
-
getConfigOrBuilderList
@Deprecated List<? extends Literals.KeyValuePairOrBuilder> getConfigOrBuilderList()
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 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];
-
getPortsList
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;
-
getPorts
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;
-
getPortsCount
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;
-
getPortsOrBuilderList
List<? extends Tasks.ContainerPortOrBuilder> getPortsOrBuilderList()
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
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;
-
hasDataConfig
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;- Returns:
- Whether the dataConfig field is set.
-
getDataConfig
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;- Returns:
- The dataConfig.
-
getDataConfigOrBuilder
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;
-
getArchitectureValue
int getArchitectureValue()
.flyteidl.core.Container.Architecture architecture = 10;- Returns:
- The enum numeric value on the wire for architecture.
-
getArchitecture
Tasks.Container.Architecture getArchitecture()
.flyteidl.core.Container.Architecture architecture = 10;- Returns:
- The architecture.
-
-