Class Common.Notification.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Common.NotificationOrBuilder, java.lang.Cloneable
    Enclosing class:
    Common.Notification

    public static final class Common.Notification.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Common.Notification.Builder>
    implements Common.NotificationOrBuilder
     Represents a structure for notifications based on execution status.
     The Notification content is configured within Admin. Future iterations could
     expose configuring notifications with custom content.
     
    Protobuf type flyteidl.admin.Notification
    • 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<Common.Notification.Builder>
      • clear

        public Common.Notification.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<Common.Notification.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<Common.Notification.Builder>
      • getDefaultInstanceForType

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

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

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

        public Common.Notification.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<Common.Notification.Builder>
      • setField

        public Common.Notification.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<Common.Notification.Builder>
      • clearField

        public Common.Notification.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<Common.Notification.Builder>
      • clearOneof

        public Common.Notification.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<Common.Notification.Builder>
      • setRepeatedField

        public Common.Notification.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<Common.Notification.Builder>
      • addRepeatedField

        public Common.Notification.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<Common.Notification.Builder>
      • mergeFrom

        public Common.Notification.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<Common.Notification.Builder>
      • isInitialized

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

        public Common.Notification.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<Common.Notification.Builder>
        Throws:
        java.io.IOException
      • getPhasesCount

        public int getPhasesCount()
         A list of phases to which users can associate the notifications to.
         
        repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;
        Specified by:
        getPhasesCount in interface Common.NotificationOrBuilder
        Returns:
        The count of phases.
      • getPhases

        public Execution.WorkflowExecution.Phase getPhases​(int index)
         A list of phases to which users can associate the notifications to.
         
        repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;
        Specified by:
        getPhases in interface Common.NotificationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The phases at the given index.
      • setPhases

        public Common.Notification.Builder setPhases​(int index,
                                                     Execution.WorkflowExecution.Phase value)
         A list of phases to which users can associate the notifications to.
         
        repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;
        Parameters:
        index - The index to set the value at.
        value - The phases to set.
        Returns:
        This builder for chaining.
      • addPhases

        public Common.Notification.Builder addPhases​(Execution.WorkflowExecution.Phase value)
         A list of phases to which users can associate the notifications to.
         
        repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;
        Parameters:
        value - The phases to add.
        Returns:
        This builder for chaining.
      • addAllPhases

        public Common.Notification.Builder addAllPhases​(java.lang.Iterable<? extends Execution.WorkflowExecution.Phase> values)
         A list of phases to which users can associate the notifications to.
         
        repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;
        Parameters:
        values - The phases to add.
        Returns:
        This builder for chaining.
      • clearPhases

        public Common.Notification.Builder clearPhases()
         A list of phases to which users can associate the notifications to.
         
        repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;
        Returns:
        This builder for chaining.
      • getPhasesValueList

        public java.util.List<java.lang.Integer> getPhasesValueList()
         A list of phases to which users can associate the notifications to.
         
        repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;
        Specified by:
        getPhasesValueList in interface Common.NotificationOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for phases.
      • getPhasesValue

        public int getPhasesValue​(int index)
         A list of phases to which users can associate the notifications to.
         
        repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;
        Specified by:
        getPhasesValue in interface Common.NotificationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of phases at the given index.
      • setPhasesValue

        public Common.Notification.Builder setPhasesValue​(int index,
                                                          int value)
         A list of phases to which users can associate the notifications to.
         
        repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of phases at the given index.
      • addPhasesValue

        public Common.Notification.Builder addPhasesValue​(int value)
         A list of phases to which users can associate the notifications to.
         
        repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;
        Parameters:
        value - The enum numeric value on the wire for phases to add.
        Returns:
        This builder for chaining.
      • addAllPhasesValue

        public Common.Notification.Builder addAllPhasesValue​(java.lang.Iterable<java.lang.Integer> values)
         A list of phases to which users can associate the notifications to.
         
        repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;
        Parameters:
        values - The enum numeric values on the wire for phases to add.
        Returns:
        This builder for chaining.
      • hasEmail

        public boolean hasEmail()
         option (validate.required) = true;
         
        .flyteidl.admin.EmailNotification email = 2;
        Specified by:
        hasEmail in interface Common.NotificationOrBuilder
        Returns:
        Whether the email field is set.
      • clearEmail

        public Common.Notification.Builder clearEmail()
         option (validate.required) = true;
         
        .flyteidl.admin.EmailNotification email = 2;
      • hasPagerDuty

        public boolean hasPagerDuty()
        .flyteidl.admin.PagerDutyNotification pager_duty = 3;
        Specified by:
        hasPagerDuty in interface Common.NotificationOrBuilder
        Returns:
        Whether the pagerDuty field is set.
      • hasSlack

        public boolean hasSlack()
        .flyteidl.admin.SlackNotification slack = 4;
        Specified by:
        hasSlack in interface Common.NotificationOrBuilder
        Returns:
        Whether the slack field is set.
      • setUnknownFields

        public final Common.Notification.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<Common.Notification.Builder>
      • mergeUnknownFields

        public final Common.Notification.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<Common.Notification.Builder>