Class Email (0.3.0)

public final class Email extends GeneratedMessage implements EmailOrBuilder

Email info.

Protobuf type google.backstory.Email

Implements

EmailOrBuilder

Static Fields

BCC_FIELD_NUMBER

public static final int BCC_FIELD_NUMBER
Field Value
Type Description
int

BOUNCE_ADDRESS_FIELD_NUMBER

public static final int BOUNCE_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

CC_FIELD_NUMBER

public static final int CC_FIELD_NUMBER
Field Value
Type Description
int

FROM_FIELD_NUMBER

public static final int FROM_FIELD_NUMBER
Field Value
Type Description
int

MAIL_ID_FIELD_NUMBER

public static final int MAIL_ID_FIELD_NUMBER
Field Value
Type Description
int

REPLY_TO_FIELD_NUMBER

public static final int REPLY_TO_FIELD_NUMBER
Field Value
Type Description
int

SUBJECT_FIELD_NUMBER

public static final int SUBJECT_FIELD_NUMBER
Field Value
Type Description
int

TO_FIELD_NUMBER

public static final int TO_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Email getDefaultInstance()
Returns
Type Description
Email

getDescriptor()

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

newBuilder()

public static Email.Builder newBuilder()
Returns
Type Description
Email.Builder

newBuilder(Email prototype)

public static Email.Builder newBuilder(Email prototype)
Parameter
Name Description
prototype Email
Returns
Type Description
Email.Builder

parseDelimitedFrom(InputStream input)

public static Email parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Email
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Email parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Email
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Email parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Email
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Email parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Email
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Email parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Email
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Email parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Email
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Email parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Email
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Email parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Email
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Email parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Email
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Email parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Email
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Email parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Email
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Email parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Email
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Email> parser()
Returns
Type Description
Parser<Email>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<Email> getParserForType()
Returns
Type Description
Parser<Email>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Email.Builder newBuilderForType()
Returns
Type Description
Email.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Email.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Email.Builder
Overrides

toBuilder()

public Email.Builder toBuilder()
Returns
Type Description
Email.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException