Class EmailMessage (0.47.0)

public final class EmailMessage extends GeneratedMessageV3 implements EmailMessageOrBuilder

An email associated with a support case.

Protobuf type google.cloud.support.v2beta.EmailMessage

Static Fields

ACTOR_FIELD_NUMBER

public static final int ACTOR_FIELD_NUMBER
Field Value
Type Description
int

BODY_CONTENT_FIELD_NUMBER

public static final int BODY_CONTENT_FIELD_NUMBER
Field Value
Type Description
int

CC_EMAIL_ADDRESSES_FIELD_NUMBER

public static final int CC_EMAIL_ADDRESSES_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RECIPIENT_EMAIL_ADDRESSES_FIELD_NUMBER

public static final int RECIPIENT_EMAIL_ADDRESSES_FIELD_NUMBER
Field Value
Type Description
int

SUBJECT_FIELD_NUMBER

public static final int SUBJECT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EmailMessage getDefaultInstance()
Returns
Type Description
EmailMessage

getDescriptor()

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

newBuilder()

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

newBuilder(EmailMessage prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getActor()

public Actor getActor()

Output only. The user or Google Support agent that created this email message. This is inferred from the headers on the email message.

.google.cloud.support.v2beta.Actor actor = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Actor

The actor.

getActorOrBuilder()

public ActorOrBuilder getActorOrBuilder()

Output only. The user or Google Support agent that created this email message. This is inferred from the headers on the email message.

.google.cloud.support.v2beta.Actor actor = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ActorOrBuilder

getBodyContent()

public TextContent getBodyContent()

Output only. The full email message body. A best-effort attempt is made to remove extraneous reply threads.

.google.cloud.support.v2beta.TextContent body_content = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TextContent

The bodyContent.

getBodyContentOrBuilder()

public TextContentOrBuilder getBodyContentOrBuilder()

Output only. The full email message body. A best-effort attempt is made to remove extraneous reply threads.

.google.cloud.support.v2beta.TextContent body_content = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TextContentOrBuilder

getCcEmailAddresses(int index)

public String getCcEmailAddresses(int index)

Output only. Email addresses CCed on the email.

repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ccEmailAddresses at the given index.

getCcEmailAddressesBytes(int index)

public ByteString getCcEmailAddressesBytes(int index)

Output only. Email addresses CCed on the email.

repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ccEmailAddresses at the given index.

getCcEmailAddressesCount()

public int getCcEmailAddressesCount()

Output only. Email addresses CCed on the email.

repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of ccEmailAddresses.

getCcEmailAddressesList()

public ProtocolStringList getCcEmailAddressesList()

Output only. Email addresses CCed on the email.

repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the ccEmailAddresses.

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when this email message object was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when this email message object was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public EmailMessage getDefaultInstanceForType()
Returns
Type Description
EmailMessage

getName()

public String getName()

Identifier. Resource name for the email message.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Resource name for the email message.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getRecipientEmailAddresses(int index)

public String getRecipientEmailAddresses(int index)

Output only. Email addresses the email was sent to.

repeated string recipient_email_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The recipientEmailAddresses at the given index.

getRecipientEmailAddressesBytes(int index)

public ByteString getRecipientEmailAddressesBytes(int index)

Output only. Email addresses the email was sent to.

repeated string recipient_email_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the recipientEmailAddresses at the given index.

getRecipientEmailAddressesCount()

public int getRecipientEmailAddressesCount()

Output only. Email addresses the email was sent to.

repeated string recipient_email_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of recipientEmailAddresses.

getRecipientEmailAddressesList()

public ProtocolStringList getRecipientEmailAddressesList()

Output only. Email addresses the email was sent to.

repeated string recipient_email_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the recipientEmailAddresses.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSubject()

public String getSubject()

Output only. Subject of the email.

string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The subject.

getSubjectBytes()

public ByteString getSubjectBytes()

Output only. Subject of the email.

string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for subject.

hasActor()

public boolean hasActor()

Output only. The user or Google Support agent that created this email message. This is inferred from the headers on the email message.

.google.cloud.support.v2beta.Actor actor = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the actor field is set.

hasBodyContent()

public boolean hasBodyContent()

Output only. The full email message body. A best-effort attempt is made to remove extraneous reply threads.

.google.cloud.support.v2beta.TextContent body_content = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the bodyContent field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when this email message object was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EmailMessage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EmailMessage.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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