Class Smtp (0.3.0)

public final class Smtp extends GeneratedMessage implements SmtpOrBuilder

SMTP info. See RFC 2821.

Protobuf type google.backstory.Smtp

Implements

SmtpOrBuilder

Static Fields

HELO_FIELD_NUMBER

public static final int HELO_FIELD_NUMBER
Field Value
Type Description
int

IS_TLS_FIELD_NUMBER

public static final int IS_TLS_FIELD_NUMBER
Field Value
Type Description
int

IS_WEBMAIL_FIELD_NUMBER

public static final int IS_WEBMAIL_FIELD_NUMBER
Field Value
Type Description
int

MAIL_FROM_FIELD_NUMBER

public static final int MAIL_FROM_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_PATH_FIELD_NUMBER

public static final int MESSAGE_PATH_FIELD_NUMBER
Field Value
Type Description
int

RCPT_TO_FIELD_NUMBER

public static final int RCPT_TO_FIELD_NUMBER
Field Value
Type Description
int

SERVER_RESPONSE_FIELD_NUMBER

public static final int SERVER_RESPONSE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Smtp getDefaultInstance()
Returns
Type Description
Smtp

getDescriptor()

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

newBuilder()

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

newBuilder(Smtp prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Smtp getDefaultInstanceForType()
Returns
Type Description
Smtp

getHelo()

public String getHelo()

The client's 'HELO'/'EHLO' string.

string helo = 1;

Returns
Type Description
String

The helo.

getHeloBytes()

public ByteString getHeloBytes()

The client's 'HELO'/'EHLO' string.

string helo = 1;

Returns
Type Description
ByteString

The bytes for helo.

getIsTls()

public boolean getIsTls()

If the connection switched to TLS.

bool is_tls = 7;

Returns
Type Description
boolean

The isTls.

getIsWebmail()

public boolean getIsWebmail()

If the message was sent via a webmail client.

bool is_webmail = 6;

Returns
Type Description
boolean

The isWebmail.

getMailFrom()

public String getMailFrom()

The client's 'MAIL FROM' string.

string mail_from = 2;

Returns
Type Description
String

The mailFrom.

getMailFromBytes()

public ByteString getMailFromBytes()

The client's 'MAIL FROM' string.

string mail_from = 2;

Returns
Type Description
ByteString

The bytes for mailFrom.

getMessagePath()

public String getMessagePath()

The message's path (extracted from the headers).

string message_path = 5;

Returns
Type Description
String

The messagePath.

getMessagePathBytes()

public ByteString getMessagePathBytes()

The message's path (extracted from the headers).

string message_path = 5;

Returns
Type Description
ByteString

The bytes for messagePath.

getParserForType()

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

getRcptTo(int index)

public String getRcptTo(int index)

The client's 'RCPT TO' string(s).

repeated string rcpt_to = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The rcptTo at the given index.

getRcptToBytes(int index)

public ByteString getRcptToBytes(int index)

The client's 'RCPT TO' string(s).

repeated string rcpt_to = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the rcptTo at the given index.

getRcptToCount()

public int getRcptToCount()

The client's 'RCPT TO' string(s).

repeated string rcpt_to = 3;

Returns
Type Description
int

The count of rcptTo.

getRcptToList()

public ProtocolStringList getRcptToList()

The client's 'RCPT TO' string(s).

repeated string rcpt_to = 3;

Returns
Type Description
ProtocolStringList

A list containing the rcptTo.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServerResponse(int index)

public String getServerResponse(int index)

The server's response(s) to the client.

repeated string server_response = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The serverResponse at the given index.

getServerResponseBytes(int index)

public ByteString getServerResponseBytes(int index)

The server's response(s) to the client.

repeated string server_response = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the serverResponse at the given index.

getServerResponseCount()

public int getServerResponseCount()

The server's response(s) to the client.

repeated string server_response = 4;

Returns
Type Description
int

The count of serverResponse.

getServerResponseList()

public ProtocolStringList getServerResponseList()

The server's response(s) to the client.

repeated string server_response = 4;

Returns
Type Description
ProtocolStringList

A list containing the serverResponse.

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 Smtp.Builder newBuilderForType()
Returns
Type Description
Smtp.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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