Class Email.Builder (0.3.0)

public static final class Email.Builder extends GeneratedMessage.Builder<Email.Builder> implements EmailOrBuilder

Email info.

Protobuf type google.backstory.Email

Implements

EmailOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBcc(Iterable<String> values)

public Email.Builder addAllBcc(Iterable<String> values)

A list of 'bcc' addresses.

repeated string bcc = 5;

Parameter
Name Description
values Iterable<String>

The bcc to add.

Returns
Type Description
Email.Builder

This builder for chaining.

addAllCc(Iterable<String> values)

public Email.Builder addAllCc(Iterable<String> values)

A list of 'cc' addresses.

repeated string cc = 4;

Parameter
Name Description
values Iterable<String>

The cc to add.

Returns
Type Description
Email.Builder

This builder for chaining.

addAllSubject(Iterable<String> values)

public Email.Builder addAllSubject(Iterable<String> values)

The subject line(s) of the email.

repeated string subject = 7;

Parameter
Name Description
values Iterable<String>

The subject to add.

Returns
Type Description
Email.Builder

This builder for chaining.

addAllTo(Iterable<String> values)

public Email.Builder addAllTo(Iterable<String> values)

A list of 'to' addresses.

repeated string to = 3;

Parameter
Name Description
values Iterable<String>

The to to add.

Returns
Type Description
Email.Builder

This builder for chaining.

addBcc(String value)

public Email.Builder addBcc(String value)

A list of 'bcc' addresses.

repeated string bcc = 5;

Parameter
Name Description
value String

The bcc to add.

Returns
Type Description
Email.Builder

This builder for chaining.

addBccBytes(ByteString value)

public Email.Builder addBccBytes(ByteString value)

A list of 'bcc' addresses.

repeated string bcc = 5;

Parameter
Name Description
value ByteString

The bytes of the bcc to add.

Returns
Type Description
Email.Builder

This builder for chaining.

addCc(String value)

public Email.Builder addCc(String value)

A list of 'cc' addresses.

repeated string cc = 4;

Parameter
Name Description
value String

The cc to add.

Returns
Type Description
Email.Builder

This builder for chaining.

addCcBytes(ByteString value)

public Email.Builder addCcBytes(ByteString value)

A list of 'cc' addresses.

repeated string cc = 4;

Parameter
Name Description
value ByteString

The bytes of the cc to add.

Returns
Type Description
Email.Builder

This builder for chaining.

addSubject(String value)

public Email.Builder addSubject(String value)

The subject line(s) of the email.

repeated string subject = 7;

Parameter
Name Description
value String

The subject to add.

Returns
Type Description
Email.Builder

This builder for chaining.

addSubjectBytes(ByteString value)

public Email.Builder addSubjectBytes(ByteString value)

The subject line(s) of the email.

repeated string subject = 7;

Parameter
Name Description
value ByteString

The bytes of the subject to add.

Returns
Type Description
Email.Builder

This builder for chaining.

addTo(String value)

public Email.Builder addTo(String value)

A list of 'to' addresses.

repeated string to = 3;

Parameter
Name Description
value String

The to to add.

Returns
Type Description
Email.Builder

This builder for chaining.

addToBytes(ByteString value)

public Email.Builder addToBytes(ByteString value)

A list of 'to' addresses.

repeated string to = 3;

Parameter
Name Description
value ByteString

The bytes of the to to add.

Returns
Type Description
Email.Builder

This builder for chaining.

build()

public Email build()
Returns
Type Description
Email

buildPartial()

public Email buildPartial()
Returns
Type Description
Email

clear()

public Email.Builder clear()
Returns
Type Description
Email.Builder
Overrides

clearBcc()

public Email.Builder clearBcc()

A list of 'bcc' addresses.

repeated string bcc = 5;

Returns
Type Description
Email.Builder

This builder for chaining.

clearBounceAddress()

public Email.Builder clearBounceAddress()

The envelope from address. https://en.wikipedia.org/wiki/Bounce_address

string bounce_address = 8;

Returns
Type Description
Email.Builder

This builder for chaining.

clearCc()

public Email.Builder clearCc()

A list of 'cc' addresses.

repeated string cc = 4;

Returns
Type Description
Email.Builder

This builder for chaining.

clearFrom()

public Email.Builder clearFrom()

The 'from' address.

string from = 1;

Returns
Type Description
Email.Builder

This builder for chaining.

clearMailId()

public Email.Builder clearMailId()

The mail (or message) ID.

string mail_id = 6;

Returns
Type Description
Email.Builder

This builder for chaining.

clearReplyTo()

public Email.Builder clearReplyTo()

The 'reply to' address.

string reply_to = 2;

Returns
Type Description
Email.Builder

This builder for chaining.

clearSubject()

public Email.Builder clearSubject()

The subject line(s) of the email.

repeated string subject = 7;

Returns
Type Description
Email.Builder

This builder for chaining.

clearTo()

public Email.Builder clearTo()

A list of 'to' addresses.

repeated string to = 3;

Returns
Type Description
Email.Builder

This builder for chaining.

getBcc(int index)

public String getBcc(int index)

A list of 'bcc' addresses.

repeated string bcc = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The bcc at the given index.

getBccBytes(int index)

public ByteString getBccBytes(int index)

A list of 'bcc' addresses.

repeated string bcc = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the bcc at the given index.

getBccCount()

public int getBccCount()

A list of 'bcc' addresses.

repeated string bcc = 5;

Returns
Type Description
int

The count of bcc.

getBccList()

public ProtocolStringList getBccList()

A list of 'bcc' addresses.

repeated string bcc = 5;

Returns
Type Description
ProtocolStringList

A list containing the bcc.

getBounceAddress()

public String getBounceAddress()

The envelope from address. https://en.wikipedia.org/wiki/Bounce_address

string bounce_address = 8;

Returns
Type Description
String

The bounceAddress.

getBounceAddressBytes()

public ByteString getBounceAddressBytes()

The envelope from address. https://en.wikipedia.org/wiki/Bounce_address

string bounce_address = 8;

Returns
Type Description
ByteString

The bytes for bounceAddress.

getCc(int index)

public String getCc(int index)

A list of 'cc' addresses.

repeated string cc = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The cc at the given index.

getCcBytes(int index)

public ByteString getCcBytes(int index)

A list of 'cc' addresses.

repeated string cc = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the cc at the given index.

getCcCount()

public int getCcCount()

A list of 'cc' addresses.

repeated string cc = 4;

Returns
Type Description
int

The count of cc.

getCcList()

public ProtocolStringList getCcList()

A list of 'cc' addresses.

repeated string cc = 4;

Returns
Type Description
ProtocolStringList

A list containing the cc.

getDefaultInstanceForType()

public Email getDefaultInstanceForType()
Returns
Type Description
Email

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFrom()

public String getFrom()

The 'from' address.

string from = 1;

Returns
Type Description
String

The from.

getFromBytes()

public ByteString getFromBytes()

The 'from' address.

string from = 1;

Returns
Type Description
ByteString

The bytes for from.

getMailId()

public String getMailId()

The mail (or message) ID.

string mail_id = 6;

Returns
Type Description
String

The mailId.

getMailIdBytes()

public ByteString getMailIdBytes()

The mail (or message) ID.

string mail_id = 6;

Returns
Type Description
ByteString

The bytes for mailId.

getReplyTo()

public String getReplyTo()

The 'reply to' address.

string reply_to = 2;

Returns
Type Description
String

The replyTo.

getReplyToBytes()

public ByteString getReplyToBytes()

The 'reply to' address.

string reply_to = 2;

Returns
Type Description
ByteString

The bytes for replyTo.

getSubject(int index)

public String getSubject(int index)

The subject line(s) of the email.

repeated string subject = 7;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The subject at the given index.

getSubjectBytes(int index)

public ByteString getSubjectBytes(int index)

The subject line(s) of the email.

repeated string subject = 7;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the subject at the given index.

getSubjectCount()

public int getSubjectCount()

The subject line(s) of the email.

repeated string subject = 7;

Returns
Type Description
int

The count of subject.

getSubjectList()

public ProtocolStringList getSubjectList()

The subject line(s) of the email.

repeated string subject = 7;

Returns
Type Description
ProtocolStringList

A list containing the subject.

getTo(int index)

public String getTo(int index)

A list of 'to' addresses.

repeated string to = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The to at the given index.

getToBytes(int index)

public ByteString getToBytes(int index)

A list of 'to' addresses.

repeated string to = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the to at the given index.

getToCount()

public int getToCount()

A list of 'to' addresses.

repeated string to = 3;

Returns
Type Description
int

The count of to.

getToList()

public ProtocolStringList getToList()

A list of 'to' addresses.

repeated string to = 3;

Returns
Type Description
ProtocolStringList

A list containing the to.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Email other)

public Email.Builder mergeFrom(Email other)
Parameter
Name Description
other Email
Returns
Type Description
Email.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Email.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Email.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Email.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Email.Builder
Overrides

setBcc(int index, String value)

public Email.Builder setBcc(int index, String value)

A list of 'bcc' addresses.

repeated string bcc = 5;

Parameters
Name Description
index int

The index to set the value at.

value String

The bcc to set.

Returns
Type Description
Email.Builder

This builder for chaining.

setBounceAddress(String value)

public Email.Builder setBounceAddress(String value)

The envelope from address. https://en.wikipedia.org/wiki/Bounce_address

string bounce_address = 8;

Parameter
Name Description
value String

The bounceAddress to set.

Returns
Type Description
Email.Builder

This builder for chaining.

setBounceAddressBytes(ByteString value)

public Email.Builder setBounceAddressBytes(ByteString value)

The envelope from address. https://en.wikipedia.org/wiki/Bounce_address

string bounce_address = 8;

Parameter
Name Description
value ByteString

The bytes for bounceAddress to set.

Returns
Type Description
Email.Builder

This builder for chaining.

setCc(int index, String value)

public Email.Builder setCc(int index, String value)

A list of 'cc' addresses.

repeated string cc = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The cc to set.

Returns
Type Description
Email.Builder

This builder for chaining.

setFrom(String value)

public Email.Builder setFrom(String value)

The 'from' address.

string from = 1;

Parameter
Name Description
value String

The from to set.

Returns
Type Description
Email.Builder

This builder for chaining.

setFromBytes(ByteString value)

public Email.Builder setFromBytes(ByteString value)

The 'from' address.

string from = 1;

Parameter
Name Description
value ByteString

The bytes for from to set.

Returns
Type Description
Email.Builder

This builder for chaining.

setMailId(String value)

public Email.Builder setMailId(String value)

The mail (or message) ID.

string mail_id = 6;

Parameter
Name Description
value String

The mailId to set.

Returns
Type Description
Email.Builder

This builder for chaining.

setMailIdBytes(ByteString value)

public Email.Builder setMailIdBytes(ByteString value)

The mail (or message) ID.

string mail_id = 6;

Parameter
Name Description
value ByteString

The bytes for mailId to set.

Returns
Type Description
Email.Builder

This builder for chaining.

setReplyTo(String value)

public Email.Builder setReplyTo(String value)

The 'reply to' address.

string reply_to = 2;

Parameter
Name Description
value String

The replyTo to set.

Returns
Type Description
Email.Builder

This builder for chaining.

setReplyToBytes(ByteString value)

public Email.Builder setReplyToBytes(ByteString value)

The 'reply to' address.

string reply_to = 2;

Parameter
Name Description
value ByteString

The bytes for replyTo to set.

Returns
Type Description
Email.Builder

This builder for chaining.

setSubject(int index, String value)

public Email.Builder setSubject(int index, String value)

The subject line(s) of the email.

repeated string subject = 7;

Parameters
Name Description
index int

The index to set the value at.

value String

The subject to set.

Returns
Type Description
Email.Builder

This builder for chaining.

setTo(int index, String value)

public Email.Builder setTo(int index, String value)

A list of 'to' addresses.

repeated string to = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The to to set.

Returns
Type Description
Email.Builder

This builder for chaining.