Package flyteidl.core
Class Tasks.TaskTemplate
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- flyteidl.core.Tasks.TaskTemplate
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Tasks.TaskTemplateOrBuilder,java.io.Serializable
- Enclosing class:
- Tasks
public static final class Tasks.TaskTemplate extends com.google.protobuf.GeneratedMessageV3 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 typeflyteidl.core.TaskTemplate- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTasks.TaskTemplate.BuilderA Task structure that uniquely identifies a task in the system Tasks are registered as a first step in the system.static classTasks.TaskTemplate.TargetCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONTAINER_FIELD_NUMBERstatic intCUSTOM_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intINTERFACE_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)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.static Tasks.TaskTemplategetDefaultInstance()Tasks.TaskTemplategetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.TaskMetadatagetMetadata()Extra metadata about the task.Tasks.TaskMetadataOrBuildergetMetadataOrBuilder()Extra metadata about the task.com.google.protobuf.Parser<Tasks.TaskTemplate>getParserForType()intgetSerializedSize()Tasks.TaskTemplate.TargetCasegetTargetCase()java.lang.StringgetType()A predefined yet extensible Task type identifier.com.google.protobuf.ByteStringgetTypeBytes()A predefined yet extensible Task type identifier.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasContainer().flyteidl.core.Container container = 6;booleanhasCustom()Custom data about the task.inthashCode()booleanhasId()Auto generated taskId by the system.booleanhasInterface()A strongly typed interface for the task.booleanhasMetadata()Extra metadata about the task.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Tasks.TaskTemplate.BuildernewBuilder()static Tasks.TaskTemplate.BuildernewBuilder(Tasks.TaskTemplate prototype)Tasks.TaskTemplate.BuildernewBuilderForType()protected Tasks.TaskTemplate.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Tasks.TaskTemplateparseDelimitedFrom(java.io.InputStream input)static Tasks.TaskTemplateparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Tasks.TaskTemplateparseFrom(byte[] data)static Tasks.TaskTemplateparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Tasks.TaskTemplateparseFrom(com.google.protobuf.ByteString data)static Tasks.TaskTemplateparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Tasks.TaskTemplateparseFrom(com.google.protobuf.CodedInputStream input)static Tasks.TaskTemplateparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Tasks.TaskTemplateparseFrom(java.io.InputStream input)static Tasks.TaskTemplateparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Tasks.TaskTemplateparseFrom(java.nio.ByteBuffer data)static Tasks.TaskTemplateparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Tasks.TaskTemplate>parser()Tasks.TaskTemplate.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INTERFACE_FIELD_NUMBER
public static final int INTERFACE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CUSTOM_FIELD_NUMBER
public static final int CUSTOM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTAINER_FIELD_NUMBER
public static final int CONTAINER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTargetCase
public Tasks.TaskTemplate.TargetCase getTargetCase()
- Specified by:
getTargetCasein interfaceTasks.TaskTemplateOrBuilder
-
hasId
public boolean hasId()
Auto generated taskId by the system. Task Id uniquely identifies this task globally.
.flyteidl.core.Identifier id = 1;- Specified by:
hasIdin interfaceTasks.TaskTemplateOrBuilder- Returns:
- Whether the id field is set.
-
getId
public IdentifierOuterClass.Identifier getId()
Auto generated taskId by the system. Task Id uniquely identifies this task globally.
.flyteidl.core.Identifier id = 1;- Specified by:
getIdin interfaceTasks.TaskTemplateOrBuilder- Returns:
- The id.
-
getIdOrBuilder
public IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder()
Auto generated taskId by the system. Task Id uniquely identifies this task globally.
.flyteidl.core.Identifier id = 1;- Specified by:
getIdOrBuilderin interfaceTasks.TaskTemplateOrBuilder
-
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:
getTypein interfaceTasks.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:
getTypeBytesin interfaceTasks.TaskTemplateOrBuilder- Returns:
- The bytes for type.
-
hasMetadata
public boolean hasMetadata()
Extra metadata about the task.
.flyteidl.core.TaskMetadata metadata = 3;- Specified by:
hasMetadatain interfaceTasks.TaskTemplateOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public Tasks.TaskMetadata getMetadata()
Extra metadata about the task.
.flyteidl.core.TaskMetadata metadata = 3;- Specified by:
getMetadatain interfaceTasks.TaskTemplateOrBuilder- Returns:
- The metadata.
-
getMetadataOrBuilder
public Tasks.TaskMetadataOrBuilder getMetadataOrBuilder()
Extra metadata about the task.
.flyteidl.core.TaskMetadata metadata = 3;- Specified by:
getMetadataOrBuilderin interfaceTasks.TaskTemplateOrBuilder
-
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:
hasInterfacein interfaceTasks.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:
getInterfacein interfaceTasks.TaskTemplateOrBuilder- Returns:
- The interface.
-
getInterfaceOrBuilder
public Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder()
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:
getInterfaceOrBuilderin interfaceTasks.TaskTemplateOrBuilder
-
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:
hasCustomin interfaceTasks.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:
getCustomin interfaceTasks.TaskTemplateOrBuilder- Returns:
- The custom.
-
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:
getCustomOrBuilderin interfaceTasks.TaskTemplateOrBuilder
-
hasContainer
public boolean hasContainer()
.flyteidl.core.Container container = 6;- Specified by:
hasContainerin interfaceTasks.TaskTemplateOrBuilder- Returns:
- Whether the container field is set.
-
getContainer
public Tasks.Container getContainer()
.flyteidl.core.Container container = 6;- Specified by:
getContainerin interfaceTasks.TaskTemplateOrBuilder- Returns:
- The container.
-
getContainerOrBuilder
public Tasks.ContainerOrBuilder getContainerOrBuilder()
.flyteidl.core.Container container = 6;- Specified by:
getContainerOrBuilderin interfaceTasks.TaskTemplateOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Tasks.TaskTemplate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.TaskTemplate parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.TaskTemplate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.TaskTemplate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.TaskTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.TaskTemplate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tasks.TaskTemplate parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Tasks.TaskTemplate parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Tasks.TaskTemplate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Tasks.TaskTemplate parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Tasks.TaskTemplate parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Tasks.TaskTemplate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Tasks.TaskTemplate.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Tasks.TaskTemplate.Builder newBuilder()
-
newBuilder
public static Tasks.TaskTemplate.Builder newBuilder(Tasks.TaskTemplate prototype)
-
toBuilder
public Tasks.TaskTemplate.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Tasks.TaskTemplate.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Tasks.TaskTemplate getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Tasks.TaskTemplate> parser()
-
getParserForType
public com.google.protobuf.Parser<Tasks.TaskTemplate> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Tasks.TaskTemplate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-