Package flyteidl.core
Interface Tasks.TaskTemplateOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Tasks.TaskTemplate,Tasks.TaskTemplate.Builder
- Enclosing class:
- Tasks
public static interface Tasks.TaskTemplateOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsConfig(String key)Metadata about the custom defined for this task.Map<String,String>getConfig()Deprecated.intgetConfigCount()Metadata about the custom defined for this task.Map<String,String>getConfigMap()Metadata about the custom defined for this task.StringgetConfigOrDefault(String key, String defaultValue)Metadata about the custom defined for this task.StringgetConfigOrThrow(String key)Metadata about the custom defined for this task.Tasks.ContainergetContainer().flyteidl.core.Container container = 6;Tasks.ContainerOrBuildergetContainerOrBuilder().flyteidl.core.Container container = 6;com.google.protobuf.StructgetCustom()Custom data about the task.com.google.protobuf.StructOrBuildergetCustomOrBuilder()Custom data about the task.IdentifierOuterClass.IdentifiergetId()Auto generated taskId by the system.IdentifierOuterClass.IdentifierOrBuildergetIdOrBuilder()Auto generated taskId by the system.Interface.TypedInterfacegetInterface()A strongly typed interface for the task.Interface.TypedInterfaceOrBuildergetInterfaceOrBuilder()A strongly typed interface for the task.Tasks.K8sPodgetK8SPod().flyteidl.core.K8sPod k8s_pod = 17;Tasks.K8sPodOrBuildergetK8SPodOrBuilder().flyteidl.core.K8sPod k8s_pod = 17;Tasks.TaskMetadatagetMetadata()Extra metadata about the task.Tasks.TaskMetadataOrBuildergetMetadataOrBuilder()Extra metadata about the task.Security.SecurityContextgetSecurityContext()security_context encapsulates security attributes requested to run this task.Security.SecurityContextOrBuildergetSecurityContextOrBuilder()security_context encapsulates security attributes requested to run this task.Tasks.SqlgetSql().flyteidl.core.Sql sql = 18;Tasks.SqlOrBuildergetSqlOrBuilder().flyteidl.core.Sql sql = 18;Tasks.TaskTemplate.TargetCasegetTargetCase()intgetTaskTypeVersion()This can be used to customize task handling at execution time for the same task type.StringgetType()A predefined yet extensible Task type identifier.com.google.protobuf.ByteStringgetTypeBytes()A predefined yet extensible Task type identifier.booleanhasContainer().flyteidl.core.Container container = 6;booleanhasCustom()Custom data about the task.booleanhasId()Auto generated taskId by the system.booleanhasInterface()A strongly typed interface for the task.booleanhasK8SPod().flyteidl.core.K8sPod k8s_pod = 17;booleanhasMetadata()Extra metadata about the task.booleanhasSecurityContext()security_context encapsulates security attributes requested to run this task.booleanhasSql().flyteidl.core.Sql sql = 18;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasId
boolean hasId()
Auto generated taskId by the system. Task Id uniquely identifies this task globally.
.flyteidl.core.Identifier id = 1;- Returns:
- Whether the id field is set.
-
getId
IdentifierOuterClass.Identifier getId()
Auto generated taskId by the system. Task Id uniquely identifies this task globally.
.flyteidl.core.Identifier id = 1;- Returns:
- The id.
-
getIdOrBuilder
IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder()
Auto generated taskId by the system. Task Id uniquely identifies this task globally.
.flyteidl.core.Identifier id = 1;
-
getType
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 this task to its TaskCategory and default the implementation registered for the TaskCategory.
string type = 2;- Returns:
- The type.
-
getTypeBytes
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 this task to its TaskCategory and default the implementation registered for the TaskCategory.
string type = 2;- Returns:
- The bytes for type.
-
hasMetadata
boolean hasMetadata()
Extra metadata about the task.
.flyteidl.core.TaskMetadata metadata = 3;- Returns:
- Whether the metadata field is set.
-
getMetadata
Tasks.TaskMetadata getMetadata()
Extra metadata about the task.
.flyteidl.core.TaskMetadata metadata = 3;- Returns:
- The metadata.
-
getMetadataOrBuilder
Tasks.TaskMetadataOrBuilder getMetadataOrBuilder()
Extra metadata about the task.
.flyteidl.core.TaskMetadata metadata = 3;
-
hasInterface
boolean hasInterface()
A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees compile-time validation of the workflow to avoid costly runtime failures.
.flyteidl.core.TypedInterface interface = 4;- Returns:
- Whether the interface field is set.
-
getInterface
Interface.TypedInterface getInterface()
A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees compile-time validation of the workflow to avoid costly runtime failures.
.flyteidl.core.TypedInterface interface = 4;- Returns:
- The interface.
-
getInterfaceOrBuilder
Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder()
A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees compile-time validation of the workflow to avoid costly runtime failures.
.flyteidl.core.TypedInterface interface = 4;
-
hasCustom
boolean hasCustom()
Custom data about the task. This is extensible to allow various plugins in the system.
.google.protobuf.Struct custom = 5;- Returns:
- Whether the custom field is set.
-
getCustom
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;- Returns:
- The custom.
-
getCustomOrBuilder
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;
-
hasContainer
boolean hasContainer()
.flyteidl.core.Container container = 6;- Returns:
- Whether the container field is set.
-
getContainer
Tasks.Container getContainer()
.flyteidl.core.Container container = 6;- Returns:
- The container.
-
getContainerOrBuilder
Tasks.ContainerOrBuilder getContainerOrBuilder()
.flyteidl.core.Container container = 6;
-
hasK8SPod
boolean hasK8SPod()
.flyteidl.core.K8sPod k8s_pod = 17;- Returns:
- Whether the k8sPod field is set.
-
getK8SPod
Tasks.K8sPod getK8SPod()
.flyteidl.core.K8sPod k8s_pod = 17;- Returns:
- The k8sPod.
-
getK8SPodOrBuilder
Tasks.K8sPodOrBuilder getK8SPodOrBuilder()
.flyteidl.core.K8sPod k8s_pod = 17;
-
hasSql
boolean hasSql()
.flyteidl.core.Sql sql = 18;- Returns:
- Whether the sql field is set.
-
getSql
Tasks.Sql getSql()
.flyteidl.core.Sql sql = 18;- Returns:
- The sql.
-
getSqlOrBuilder
Tasks.SqlOrBuilder getSqlOrBuilder()
.flyteidl.core.Sql sql = 18;
-
getTaskTypeVersion
int getTaskTypeVersion()
This can be used to customize task handling at execution time for the same task type.
int32 task_type_version = 7;- Returns:
- The taskTypeVersion.
-
hasSecurityContext
boolean hasSecurityContext()
security_context encapsulates security attributes requested to run this task.
.flyteidl.core.SecurityContext security_context = 8;- Returns:
- Whether the securityContext field is set.
-
getSecurityContext
Security.SecurityContext getSecurityContext()
security_context encapsulates security attributes requested to run this task.
.flyteidl.core.SecurityContext security_context = 8;- Returns:
- The securityContext.
-
getSecurityContextOrBuilder
Security.SecurityContextOrBuilder getSecurityContextOrBuilder()
security_context encapsulates security attributes requested to run this task.
.flyteidl.core.SecurityContext security_context = 8;
-
getConfigCount
int getConfigCount()
Metadata about the custom defined for this task. This is extensible to allow various plugins in the system to use as required. reserve the field numbers 1 through 15 for very frequently occurring message elements
map<string, string> config = 16;
-
containsConfig
boolean containsConfig(String key)
Metadata about the custom defined for this task. This is extensible to allow various plugins in the system to use as required. reserve the field numbers 1 through 15 for very frequently occurring message elements
map<string, string> config = 16;
-
getConfig
@Deprecated Map<String,String> getConfig()
Deprecated.UsegetConfigMap()instead.
-
getConfigMap
Map<String,String> getConfigMap()
Metadata about the custom defined for this task. This is extensible to allow various plugins in the system to use as required. reserve the field numbers 1 through 15 for very frequently occurring message elements
map<string, string> config = 16;
-
getConfigOrDefault
String getConfigOrDefault(String key, String defaultValue)
Metadata about the custom defined for this task. This is extensible to allow various plugins in the system to use as required. reserve the field numbers 1 through 15 for very frequently occurring message elements
map<string, string> config = 16;
-
getConfigOrThrow
String getConfigOrThrow(String key)
Metadata about the custom defined for this task. This is extensible to allow various plugins in the system to use as required. reserve the field numbers 1 through 15 for very frequently occurring message elements
map<string, string> config = 16;
-
getTargetCase
Tasks.TaskTemplate.TargetCase getTargetCase()
-
-