Package flyteidl.core

Class Tasks.TaskMetadata.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.TaskMetadata.Builder>
      • clear

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

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

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

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

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

        public Tasks.TaskMetadata.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.TaskMetadata.Builder>
      • clearField

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

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

        public Tasks.TaskMetadata.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.TaskMetadata.Builder>
      • addRepeatedField

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

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

        public Tasks.TaskMetadata.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.TaskMetadata.Builder>
        Throws:
        IOException
      • 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.
      • setDiscoverable

        public Tasks.TaskMetadata.Builder setDiscoverable​(boolean value)
         Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
         
        bool discoverable = 1;
        Parameters:
        value - The discoverable to set.
        Returns:
        This builder for chaining.
      • clearDiscoverable

        public Tasks.TaskMetadata.Builder clearDiscoverable()
         Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
         
        bool discoverable = 1;
        Returns:
        This builder for chaining.
      • 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.
      • clearRuntime

        public Tasks.TaskMetadata.Builder clearRuntime()
         Runtime information about the task.
         
        .flyteidl.core.RuntimeMetadata runtime = 2;
      • getRuntimeBuilder

        public Tasks.RuntimeMetadata.Builder getRuntimeBuilder()
         Runtime information about the task.
         
        .flyteidl.core.RuntimeMetadata runtime = 2;
      • 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.
      • setTimeout

        public Tasks.TaskMetadata.Builder setTimeout​(com.google.protobuf.Duration value)
         The overall timeout of a task including user-triggered retries.
         
        .google.protobuf.Duration timeout = 4;
      • setTimeout

        public Tasks.TaskMetadata.Builder setTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         The overall timeout of a task including user-triggered retries.
         
        .google.protobuf.Duration timeout = 4;
      • mergeTimeout

        public Tasks.TaskMetadata.Builder mergeTimeout​(com.google.protobuf.Duration value)
         The overall timeout of a task including user-triggered retries.
         
        .google.protobuf.Duration timeout = 4;
      • clearTimeout

        public Tasks.TaskMetadata.Builder clearTimeout()
         The overall timeout of a task including user-triggered retries.
         
        .google.protobuf.Duration timeout = 4;
      • getTimeoutBuilder

        public com.google.protobuf.Duration.Builder getTimeoutBuilder()
         The overall timeout of a task including user-triggered retries.
         
        .google.protobuf.Duration timeout = 4;
      • 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
      • getTimeoutFieldBuilder

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> getTimeoutFieldBuilder()
         The overall timeout of a task including user-triggered retries.
         
        .google.protobuf.Duration timeout = 4;
      • 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.
      • clearRetries

        public Tasks.TaskMetadata.Builder clearRetries()
         Number of retries per task.
         
        .flyteidl.core.RetryStrategy retries = 5;
      • 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.
      • setDiscoveryVersion

        public Tasks.TaskMetadata.Builder setDiscoveryVersion​(String value)
         Indicates a logical version to apply to this task for the purpose of discovery.
         
        string discovery_version = 6;
        Parameters:
        value - The discoveryVersion to set.
        Returns:
        This builder for chaining.
      • clearDiscoveryVersion

        public Tasks.TaskMetadata.Builder clearDiscoveryVersion()
         Indicates a logical version to apply to this task for the purpose of discovery.
         
        string discovery_version = 6;
        Returns:
        This builder for chaining.
      • setDiscoveryVersionBytes

        public Tasks.TaskMetadata.Builder setDiscoveryVersionBytes​(com.google.protobuf.ByteString value)
         Indicates a logical version to apply to this task for the purpose of discovery.
         
        string discovery_version = 6;
        Parameters:
        value - The bytes for discoveryVersion to set.
        Returns:
        This builder for chaining.
      • 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.
      • setDeprecatedErrorMessage

        public Tasks.TaskMetadata.Builder setDeprecatedErrorMessage​(String value)
         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;
        Parameters:
        value - The deprecatedErrorMessage to set.
        Returns:
        This builder for chaining.
      • clearDeprecatedErrorMessage

        public Tasks.TaskMetadata.Builder clearDeprecatedErrorMessage()
         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;
        Returns:
        This builder for chaining.
      • setDeprecatedErrorMessageBytes

        public Tasks.TaskMetadata.Builder setDeprecatedErrorMessageBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for deprecatedErrorMessage to set.
        Returns:
        This builder for chaining.
      • setInterruptible

        public Tasks.TaskMetadata.Builder setInterruptible​(boolean value)
        bool interruptible = 8;
        Parameters:
        value - The interruptible to set.
        Returns:
        This builder for chaining.
      • clearInterruptible

        public Tasks.TaskMetadata.Builder clearInterruptible()
        bool interruptible = 8;
        Returns:
        This builder for chaining.
      • 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.
      • setCacheSerializable

        public Tasks.TaskMetadata.Builder setCacheSerializable​(boolean value)
         Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
         
        bool cache_serializable = 9;
        Parameters:
        value - The cacheSerializable to set.
        Returns:
        This builder for chaining.
      • clearCacheSerializable

        public Tasks.TaskMetadata.Builder clearCacheSerializable()
         Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
         
        bool cache_serializable = 9;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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