Package flyteidl.core

Class Tasks.TaskMetadata

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Tasks.TaskMetadataOrBuilder, Serializable
    Enclosing class:
    Tasks

    public static final class Tasks.TaskMetadata
    extends com.google.protobuf.GeneratedMessageV3
    implements Tasks.TaskMetadataOrBuilder
     Task Metadata
     
    Protobuf type flyteidl.core.TaskMetadata
    See Also:
    Serialized Form
    • Field Detail

      • interruptibleValueCase_

        private int interruptibleValueCase_
      • interruptibleValue_

        private Object interruptibleValue_
      • DISCOVERABLE_FIELD_NUMBER

        public static final int DISCOVERABLE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • discoverable_

        private boolean discoverable_
      • timeout_

        private com.google.protobuf.Duration timeout_
      • DISCOVERY_VERSION_FIELD_NUMBER

        public static final int DISCOVERY_VERSION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • discoveryVersion_

        private volatile Object discoveryVersion_
      • DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER

        public static final int DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • deprecatedErrorMessage_

        private volatile Object deprecatedErrorMessage_
      • INTERRUPTIBLE_FIELD_NUMBER

        public static final int INTERRUPTIBLE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CACHE_SERIALIZABLE_FIELD_NUMBER

        public static final int CACHE_SERIALIZABLE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • cacheSerializable_

        private boolean cacheSerializable_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
    • Constructor Detail

      • TaskMetadata

        private TaskMetadata​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
      • TaskMetadata

        private TaskMetadata()
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getDiscoverable

        public boolean getDiscoverable()
         Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
         
        bool discoverable = 1;
        Specified by:
        getDiscoverable in interface Tasks.TaskMetadataOrBuilder
        Returns:
        The discoverable.
      • hasRuntime

        public boolean hasRuntime()
         Runtime information about the task.
         
        .flyteidl.core.RuntimeMetadata runtime = 2;
        Specified by:
        hasRuntime in interface Tasks.TaskMetadataOrBuilder
        Returns:
        Whether the runtime field is set.
      • hasTimeout

        public boolean hasTimeout()
         The overall timeout of a task including user-triggered retries.
         
        .google.protobuf.Duration timeout = 4;
        Specified by:
        hasTimeout in interface Tasks.TaskMetadataOrBuilder
        Returns:
        Whether the timeout field is set.
      • getTimeout

        public com.google.protobuf.Duration getTimeout()
         The overall timeout of a task including user-triggered retries.
         
        .google.protobuf.Duration timeout = 4;
        Specified by:
        getTimeout in interface Tasks.TaskMetadataOrBuilder
        Returns:
        The timeout.
      • getTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
         The overall timeout of a task including user-triggered retries.
         
        .google.protobuf.Duration timeout = 4;
        Specified by:
        getTimeoutOrBuilder in interface Tasks.TaskMetadataOrBuilder
      • hasRetries

        public boolean hasRetries()
         Number of retries per task.
         
        .flyteidl.core.RetryStrategy retries = 5;
        Specified by:
        hasRetries in interface Tasks.TaskMetadataOrBuilder
        Returns:
        Whether the retries field is set.
      • getDiscoveryVersion

        public String getDiscoveryVersion()
         Indicates a logical version to apply to this task for the purpose of discovery.
         
        string discovery_version = 6;
        Specified by:
        getDiscoveryVersion in interface Tasks.TaskMetadataOrBuilder
        Returns:
        The discoveryVersion.
      • getDiscoveryVersionBytes

        public com.google.protobuf.ByteString getDiscoveryVersionBytes()
         Indicates a logical version to apply to this task for the purpose of discovery.
         
        string discovery_version = 6;
        Specified by:
        getDiscoveryVersionBytes in interface Tasks.TaskMetadataOrBuilder
        Returns:
        The bytes for discoveryVersion.
      • getDeprecatedErrorMessage

        public String getDeprecatedErrorMessage()
         If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
         of the ending of support for a given task.
         
        string deprecated_error_message = 7;
        Specified by:
        getDeprecatedErrorMessage in interface Tasks.TaskMetadataOrBuilder
        Returns:
        The deprecatedErrorMessage.
      • getDeprecatedErrorMessageBytes

        public com.google.protobuf.ByteString getDeprecatedErrorMessageBytes()
         If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
         of the ending of support for a given task.
         
        string deprecated_error_message = 7;
        Specified by:
        getDeprecatedErrorMessageBytes in interface Tasks.TaskMetadataOrBuilder
        Returns:
        The bytes for deprecatedErrorMessage.
      • getCacheSerializable

        public boolean getCacheSerializable()
         Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
         
        bool cache_serializable = 9;
        Specified by:
        getCacheSerializable in interface Tasks.TaskMetadataOrBuilder
        Returns:
        The cacheSerializable.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Tasks.TaskMetadata parseFrom​(ByteBuffer data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Tasks.TaskMetadata parseFrom​(ByteBuffer data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Tasks.TaskMetadata parseFrom​(com.google.protobuf.ByteString data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Tasks.TaskMetadata 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.TaskMetadata parseFrom​(byte[] data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Tasks.TaskMetadata parseFrom​(byte[] data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Tasks.TaskMetadata parseFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Tasks.TaskMetadata.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Tasks.TaskMetadata.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Tasks.TaskMetadata.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Tasks.TaskMetadata> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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