Package flyteidl.admin
Class Notification.EmailMessage.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
- flyteidl.admin.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 typeflyteidl.admin.EmailMessage
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private Objectbody_private com.google.protobuf.LazyStringListrecipientsEmail_private ObjectsenderEmail_private ObjectsubjectLine_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Notification.EmailMessage.BuilderaddAllRecipientsEmail(Iterable<String> values)The list of email addresses to receive an email with the content populated in the other fields.Notification.EmailMessage.BuilderaddRecipientsEmail(String value)The list of email addresses to receive an email with the content populated in the other fields.Notification.EmailMessage.BuilderaddRecipientsEmailBytes(com.google.protobuf.ByteString value)The list of email addresses to receive an email with the content populated in the other fields.Notification.EmailMessage.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Notification.EmailMessagebuild()Notification.EmailMessagebuildPartial()private voidbuildPartial0(Notification.EmailMessage result)private voidbuildPartialRepeatedFields(Notification.EmailMessage result)Notification.EmailMessage.Builderclear()Notification.EmailMessage.BuilderclearBody()The content of the email body.Notification.EmailMessage.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Notification.EmailMessage.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Notification.EmailMessage.BuilderclearRecipientsEmail()The list of email addresses to receive an email with the content populated in the other fields.Notification.EmailMessage.BuilderclearSenderEmail()The email of the sender.Notification.EmailMessage.BuilderclearSubjectLine()The content of the subject line.Notification.EmailMessage.Builderclone()private voidensureRecipientsEmailIsMutable()StringgetBody()The content of the email body.com.google.protobuf.ByteStringgetBodyBytes()The content of the email body.Notification.EmailMessagegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetRecipientsEmail(int index)The list of email addresses to receive an email with the content populated in the other fields.com.google.protobuf.ByteStringgetRecipientsEmailBytes(int index)The list of email addresses to receive an email with the content populated in the other fields.intgetRecipientsEmailCount()The list of email addresses to receive an email with the content populated in the other fields.com.google.protobuf.ProtocolStringListgetRecipientsEmailList()The list of email addresses to receive an email with the content populated in the other fields.StringgetSenderEmail()The email of the sender.com.google.protobuf.ByteStringgetSenderEmailBytes()The email of the sender.StringgetSubjectLine()The content of the subject line.com.google.protobuf.ByteStringgetSubjectLineBytes()The content of the subject line.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Notification.EmailMessage.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Notification.EmailMessage.BuildermergeFrom(com.google.protobuf.Message other)Notification.EmailMessage.BuildermergeFrom(Notification.EmailMessage other)Notification.EmailMessage.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Notification.EmailMessage.BuildersetBody(String value)The content of the email body.Notification.EmailMessage.BuildersetBodyBytes(com.google.protobuf.ByteString value)The content of the email body.Notification.EmailMessage.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Notification.EmailMessage.BuildersetRecipientsEmail(int index, String value)The list of email addresses to receive an email with the content populated in the other fields.Notification.EmailMessage.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Notification.EmailMessage.BuildersetSenderEmail(String value)The email of the sender.Notification.EmailMessage.BuildersetSenderEmailBytes(com.google.protobuf.ByteString value)The email of the sender.Notification.EmailMessage.BuildersetSubjectLine(String value)The content of the subject line.Notification.EmailMessage.BuildersetSubjectLineBytes(com.google.protobuf.ByteString value)The content of the subject line.Notification.EmailMessage.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
clear
public Notification.EmailMessage.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
getDefaultInstanceForType
public Notification.EmailMessage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Notification.EmailMessage build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Notification.EmailMessage buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(Notification.EmailMessage result)
-
buildPartial0
private void buildPartial0(Notification.EmailMessage result)
-
clone
public Notification.EmailMessage.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
setField
public Notification.EmailMessage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
clearField
public Notification.EmailMessage.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
clearOneof
public Notification.EmailMessage.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
setRepeatedField
public Notification.EmailMessage.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
addRepeatedField
public Notification.EmailMessage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
mergeFrom
public Notification.EmailMessage.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Notification.EmailMessage.Builder>
-
mergeFrom
public Notification.EmailMessage.Builder mergeFrom(Notification.EmailMessage other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getRecipientsEmailListin interfaceNotification.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:
getRecipientsEmailCountin interfaceNotification.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:
getRecipientsEmailin interfaceNotification.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:
getRecipientsEmailBytesin interfaceNotification.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.
-
getSenderEmail
public String getSenderEmail()
The email of the sender. This populates the FROM field.
string sender_email = 2;- Specified by:
getSenderEmailin interfaceNotification.EmailMessageOrBuilder- Returns:
- The senderEmail.
-
getSenderEmailBytes
public com.google.protobuf.ByteString getSenderEmailBytes()
The email of the sender. This populates the FROM field.
string sender_email = 2;- Specified by:
getSenderEmailBytesin interfaceNotification.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.
-
getSubjectLine
public String getSubjectLine()
The content of the subject line. This populates the SUBJECT field.
string subject_line = 3;- Specified by:
getSubjectLinein interfaceNotification.EmailMessageOrBuilder- Returns:
- The subjectLine.
-
getSubjectLineBytes
public com.google.protobuf.ByteString getSubjectLineBytes()
The content of the subject line. This populates the SUBJECT field.
string subject_line = 3;- Specified by:
getSubjectLineBytesin interfaceNotification.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.
-
getBody
public String getBody()
The content of the email body. This populates the BODY field.
string body = 4;- Specified by:
getBodyin interfaceNotification.EmailMessageOrBuilder- Returns:
- The body.
-
getBodyBytes
public com.google.protobuf.ByteString getBodyBytes()
The content of the email body. This populates the BODY field.
string body = 4;- Specified by:
getBodyBytesin interfaceNotification.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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
mergeUnknownFields
public final Notification.EmailMessage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.EmailMessage.Builder>
-
-