Class Notification.EmailMessage.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Notification.EmailMessageOrBuilder, Cloneable
    Enclosing class:
    Notification.EmailMessage

    public static final class Notification.EmailMessage.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
    implements Notification.EmailMessageOrBuilder
     Represents the Email object that is sent to a publisher/subscriber
     to forward the notification.
     Note: This is internal to Admin and doesn't need to be exposed to other components.
     
    Protobuf type flyteidl.admin.EmailMessage
    • Field Detail

      • bitField0_

        private int bitField0_
      • recipientsEmail_

        private com.google.protobuf.LazyStringList recipientsEmail_
      • senderEmail_

        private Object senderEmail_
      • subjectLine_

        private Object subjectLine_
    • 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<Notification.EmailMessage.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<Notification.EmailMessage.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

        public Notification.EmailMessage.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<Notification.EmailMessage.Builder>
        Throws:
        IOException
      • ensureRecipientsEmailIsMutable

        private void ensureRecipientsEmailIsMutable()
      • getRecipientsEmailList

        public com.google.protobuf.ProtocolStringList getRecipientsEmailList()
         The list of email addresses to receive an email with the content populated in the other fields.
         Currently, each email recipient will receive its own email.
         This populates the TO field.
         
        repeated string recipients_email = 1;
        Specified by:
        getRecipientsEmailList in interface Notification.EmailMessageOrBuilder
        Returns:
        A list containing the recipientsEmail.
      • getRecipientsEmailCount

        public int getRecipientsEmailCount()
         The list of email addresses to receive an email with the content populated in the other fields.
         Currently, each email recipient will receive its own email.
         This populates the TO field.
         
        repeated string recipients_email = 1;
        Specified by:
        getRecipientsEmailCount in interface Notification.EmailMessageOrBuilder
        Returns:
        The count of recipientsEmail.
      • getRecipientsEmail

        public String getRecipientsEmail​(int index)
         The list of email addresses to receive an email with the content populated in the other fields.
         Currently, each email recipient will receive its own email.
         This populates the TO field.
         
        repeated string recipients_email = 1;
        Specified by:
        getRecipientsEmail in interface Notification.EmailMessageOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The recipientsEmail at the given index.
      • getRecipientsEmailBytes

        public com.google.protobuf.ByteString getRecipientsEmailBytes​(int index)
         The list of email addresses to receive an email with the content populated in the other fields.
         Currently, each email recipient will receive its own email.
         This populates the TO field.
         
        repeated string recipients_email = 1;
        Specified by:
        getRecipientsEmailBytes in interface Notification.EmailMessageOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the recipientsEmail at the given index.
      • setRecipientsEmail

        public Notification.EmailMessage.Builder setRecipientsEmail​(int index,
                                                                    String value)
         The list of email addresses to receive an email with the content populated in the other fields.
         Currently, each email recipient will receive its own email.
         This populates the TO field.
         
        repeated string recipients_email = 1;
        Parameters:
        index - The index to set the value at.
        value - The recipientsEmail to set.
        Returns:
        This builder for chaining.
      • addRecipientsEmail

        public Notification.EmailMessage.Builder addRecipientsEmail​(String value)
         The list of email addresses to receive an email with the content populated in the other fields.
         Currently, each email recipient will receive its own email.
         This populates the TO field.
         
        repeated string recipients_email = 1;
        Parameters:
        value - The recipientsEmail to add.
        Returns:
        This builder for chaining.
      • addAllRecipientsEmail

        public Notification.EmailMessage.Builder addAllRecipientsEmail​(Iterable<String> values)
         The list of email addresses to receive an email with the content populated in the other fields.
         Currently, each email recipient will receive its own email.
         This populates the TO field.
         
        repeated string recipients_email = 1;
        Parameters:
        values - The recipientsEmail to add.
        Returns:
        This builder for chaining.
      • clearRecipientsEmail

        public Notification.EmailMessage.Builder clearRecipientsEmail()
         The list of email addresses to receive an email with the content populated in the other fields.
         Currently, each email recipient will receive its own email.
         This populates the TO field.
         
        repeated string recipients_email = 1;
        Returns:
        This builder for chaining.
      • addRecipientsEmailBytes

        public Notification.EmailMessage.Builder addRecipientsEmailBytes​(com.google.protobuf.ByteString value)
         The list of email addresses to receive an email with the content populated in the other fields.
         Currently, each email recipient will receive its own email.
         This populates the TO field.
         
        repeated string recipients_email = 1;
        Parameters:
        value - The bytes of the recipientsEmail to add.
        Returns:
        This builder for chaining.
      • getSenderEmailBytes

        public com.google.protobuf.ByteString getSenderEmailBytes()
         The email of the sender.
         This populates the FROM field.
         
        string sender_email = 2;
        Specified by:
        getSenderEmailBytes in interface Notification.EmailMessageOrBuilder
        Returns:
        The bytes for senderEmail.
      • setSenderEmail

        public Notification.EmailMessage.Builder setSenderEmail​(String value)
         The email of the sender.
         This populates the FROM field.
         
        string sender_email = 2;
        Parameters:
        value - The senderEmail to set.
        Returns:
        This builder for chaining.
      • clearSenderEmail

        public Notification.EmailMessage.Builder clearSenderEmail()
         The email of the sender.
         This populates the FROM field.
         
        string sender_email = 2;
        Returns:
        This builder for chaining.
      • setSenderEmailBytes

        public Notification.EmailMessage.Builder setSenderEmailBytes​(com.google.protobuf.ByteString value)
         The email of the sender.
         This populates the FROM field.
         
        string sender_email = 2;
        Parameters:
        value - The bytes for senderEmail to set.
        Returns:
        This builder for chaining.
      • getSubjectLineBytes

        public com.google.protobuf.ByteString getSubjectLineBytes()
         The content of the subject line.
         This populates the SUBJECT field.
         
        string subject_line = 3;
        Specified by:
        getSubjectLineBytes in interface Notification.EmailMessageOrBuilder
        Returns:
        The bytes for subjectLine.
      • setSubjectLine

        public Notification.EmailMessage.Builder setSubjectLine​(String value)
         The content of the subject line.
         This populates the SUBJECT field.
         
        string subject_line = 3;
        Parameters:
        value - The subjectLine to set.
        Returns:
        This builder for chaining.
      • clearSubjectLine

        public Notification.EmailMessage.Builder clearSubjectLine()
         The content of the subject line.
         This populates the SUBJECT field.
         
        string subject_line = 3;
        Returns:
        This builder for chaining.
      • setSubjectLineBytes

        public Notification.EmailMessage.Builder setSubjectLineBytes​(com.google.protobuf.ByteString value)
         The content of the subject line.
         This populates the SUBJECT field.
         
        string subject_line = 3;
        Parameters:
        value - The bytes for subjectLine to set.
        Returns:
        This builder for chaining.
      • getBodyBytes

        public com.google.protobuf.ByteString getBodyBytes()
         The content of the email body.
         This populates the BODY field.
         
        string body = 4;
        Specified by:
        getBodyBytes in interface Notification.EmailMessageOrBuilder
        Returns:
        The bytes for body.
      • setBody

        public Notification.EmailMessage.Builder setBody​(String value)
         The content of the email body.
         This populates the BODY field.
         
        string body = 4;
        Parameters:
        value - The body to set.
        Returns:
        This builder for chaining.
      • clearBody

        public Notification.EmailMessage.Builder clearBody()
         The content of the email body.
         This populates the BODY field.
         
        string body = 4;
        Returns:
        This builder for chaining.
      • setBodyBytes

        public Notification.EmailMessage.Builder setBodyBytes​(com.google.protobuf.ByteString value)
         The content of the email body.
         This populates the BODY field.
         
        string body = 4;
        Parameters:
        value - The bytes for body to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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