Class Smtp.Builder (0.3.0)

public static final class Smtp.Builder extends GeneratedMessage.Builder<Smtp.Builder> implements SmtpOrBuilder

SMTP info. See RFC 2821.

Protobuf type google.backstory.Smtp

Implements

SmtpOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllRcptTo(Iterable<String> values)

public Smtp.Builder addAllRcptTo(Iterable<String> values)

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

repeated string rcpt_to = 3;

Parameter
Name Description
values Iterable<String>

The rcptTo to add.

Returns
Type Description
Smtp.Builder

This builder for chaining.

addAllServerResponse(Iterable<String> values)

public Smtp.Builder addAllServerResponse(Iterable<String> values)

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

repeated string server_response = 4;

Parameter
Name Description
values Iterable<String>

The serverResponse to add.

Returns
Type Description
Smtp.Builder

This builder for chaining.

addRcptTo(String value)

public Smtp.Builder addRcptTo(String value)

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

repeated string rcpt_to = 3;

Parameter
Name Description
value String

The rcptTo to add.

Returns
Type Description
Smtp.Builder

This builder for chaining.

addRcptToBytes(ByteString value)

public Smtp.Builder addRcptToBytes(ByteString value)

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

repeated string rcpt_to = 3;

Parameter
Name Description
value ByteString

The bytes of the rcptTo to add.

Returns
Type Description
Smtp.Builder

This builder for chaining.

addServerResponse(String value)

public Smtp.Builder addServerResponse(String value)

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

repeated string server_response = 4;

Parameter
Name Description
value String

The serverResponse to add.

Returns
Type Description
Smtp.Builder

This builder for chaining.

addServerResponseBytes(ByteString value)

public Smtp.Builder addServerResponseBytes(ByteString value)

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

repeated string server_response = 4;

Parameter
Name Description
value ByteString

The bytes of the serverResponse to add.

Returns
Type Description
Smtp.Builder

This builder for chaining.

build()

public Smtp build()
Returns
Type Description
Smtp

buildPartial()

public Smtp buildPartial()
Returns
Type Description
Smtp

clear()

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

clearHelo()

public Smtp.Builder clearHelo()

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

string helo = 1;

Returns
Type Description
Smtp.Builder

This builder for chaining.

clearIsTls()

public Smtp.Builder clearIsTls()

If the connection switched to TLS.

bool is_tls = 7;

Returns
Type Description
Smtp.Builder

This builder for chaining.

clearIsWebmail()

public Smtp.Builder clearIsWebmail()

If the message was sent via a webmail client.

bool is_webmail = 6;

Returns
Type Description
Smtp.Builder

This builder for chaining.

clearMailFrom()

public Smtp.Builder clearMailFrom()

The client's 'MAIL FROM' string.

string mail_from = 2;

Returns
Type Description
Smtp.Builder

This builder for chaining.

clearMessagePath()

public Smtp.Builder clearMessagePath()

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

string message_path = 5;

Returns
Type Description
Smtp.Builder

This builder for chaining.

clearRcptTo()

public Smtp.Builder clearRcptTo()

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

repeated string rcpt_to = 3;

Returns
Type Description
Smtp.Builder

This builder for chaining.

clearServerResponse()

public Smtp.Builder clearServerResponse()

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

repeated string server_response = 4;

Returns
Type Description
Smtp.Builder

This builder for chaining.

getDefaultInstanceForType()

public Smtp getDefaultInstanceForType()
Returns
Type Description
Smtp

getDescriptorForType()

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

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Smtp other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setHelo(String value)

public Smtp.Builder setHelo(String value)

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

string helo = 1;

Parameter
Name Description
value String

The helo to set.

Returns
Type Description
Smtp.Builder

This builder for chaining.

setHeloBytes(ByteString value)

public Smtp.Builder setHeloBytes(ByteString value)

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

string helo = 1;

Parameter
Name Description
value ByteString

The bytes for helo to set.

Returns
Type Description
Smtp.Builder

This builder for chaining.

setIsTls(boolean value)

public Smtp.Builder setIsTls(boolean value)

If the connection switched to TLS.

bool is_tls = 7;

Parameter
Name Description
value boolean

The isTls to set.

Returns
Type Description
Smtp.Builder

This builder for chaining.

setIsWebmail(boolean value)

public Smtp.Builder setIsWebmail(boolean value)

If the message was sent via a webmail client.

bool is_webmail = 6;

Parameter
Name Description
value boolean

The isWebmail to set.

Returns
Type Description
Smtp.Builder

This builder for chaining.

setMailFrom(String value)

public Smtp.Builder setMailFrom(String value)

The client's 'MAIL FROM' string.

string mail_from = 2;

Parameter
Name Description
value String

The mailFrom to set.

Returns
Type Description
Smtp.Builder

This builder for chaining.

setMailFromBytes(ByteString value)

public Smtp.Builder setMailFromBytes(ByteString value)

The client's 'MAIL FROM' string.

string mail_from = 2;

Parameter
Name Description
value ByteString

The bytes for mailFrom to set.

Returns
Type Description
Smtp.Builder

This builder for chaining.

setMessagePath(String value)

public Smtp.Builder setMessagePath(String value)

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

string message_path = 5;

Parameter
Name Description
value String

The messagePath to set.

Returns
Type Description
Smtp.Builder

This builder for chaining.

setMessagePathBytes(ByteString value)

public Smtp.Builder setMessagePathBytes(ByteString value)

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

string message_path = 5;

Parameter
Name Description
value ByteString

The bytes for messagePath to set.

Returns
Type Description
Smtp.Builder

This builder for chaining.

setRcptTo(int index, String value)

public Smtp.Builder setRcptTo(int index, String value)

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

repeated string rcpt_to = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The rcptTo to set.

Returns
Type Description
Smtp.Builder

This builder for chaining.

setServerResponse(int index, String value)

public Smtp.Builder setServerResponse(int index, String value)

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

repeated string server_response = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The serverResponse to set.

Returns
Type Description
Smtp.Builder

This builder for chaining.