Package flyteidl.core

Class Workflow.WorkflowMetadata.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Workflow.WorkflowMetadataOrBuilder, java.lang.Cloneable
    Enclosing class:
    Workflow.WorkflowMetadata

    public static final class Workflow.WorkflowMetadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Workflow.WorkflowMetadata.Builder>
    implements Workflow.WorkflowMetadataOrBuilder
     This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not
     percolate down to child entities (like tasks) launched by the workflow.
     
    Protobuf type flyteidl.core.WorkflowMetadata
    • 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<Workflow.WorkflowMetadata.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<Workflow.WorkflowMetadata.Builder>
      • getDefaultInstanceForType

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

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

        public Workflow.WorkflowMetadata buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setField

        public Workflow.WorkflowMetadata.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Workflow.WorkflowMetadata.Builder>
      • setRepeatedField

        public Workflow.WorkflowMetadata.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Workflow.WorkflowMetadata.Builder>
      • addRepeatedField

        public Workflow.WorkflowMetadata.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Workflow.WorkflowMetadata.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Workflow.WorkflowMetadata.Builder>
      • mergeFrom

        public Workflow.WorkflowMetadata.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws java.io.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<Workflow.WorkflowMetadata.Builder>
        Throws:
        java.io.IOException
      • hasQualityOfService

        public boolean hasQualityOfService()
         Indicates the runtime priority of workflow executions.
         
        .flyteidl.core.QualityOfService quality_of_service = 1;
        Specified by:
        hasQualityOfService in interface Workflow.WorkflowMetadataOrBuilder
        Returns:
        Whether the qualityOfService field is set.
      • clearQualityOfService

        public Workflow.WorkflowMetadata.Builder clearQualityOfService()
         Indicates the runtime priority of workflow executions.
         
        .flyteidl.core.QualityOfService quality_of_service = 1;
      • getQualityOfServiceBuilder

        public Execution.QualityOfService.Builder getQualityOfServiceBuilder()
         Indicates the runtime priority of workflow executions.
         
        .flyteidl.core.QualityOfService quality_of_service = 1;
      • getOnFailureValue

        public int getOnFailureValue()
         Defines how the system should behave when a failure is detected in the workflow execution.
         
        .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2;
        Specified by:
        getOnFailureValue in interface Workflow.WorkflowMetadataOrBuilder
        Returns:
        The enum numeric value on the wire for onFailure.
      • setOnFailureValue

        public Workflow.WorkflowMetadata.Builder setOnFailureValue​(int value)
         Defines how the system should behave when a failure is detected in the workflow execution.
         
        .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2;
        Parameters:
        value - The enum numeric value on the wire for onFailure to set.
        Returns:
        This builder for chaining.
      • clearOnFailure

        public Workflow.WorkflowMetadata.Builder clearOnFailure()
         Defines how the system should behave when a failure is detected in the workflow execution.
         
        .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Workflow.WorkflowMetadata.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<Workflow.WorkflowMetadata.Builder>
      • mergeUnknownFields

        public final Workflow.WorkflowMetadata.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<Workflow.WorkflowMetadata.Builder>