Class EmailMessage.Builder (0.48.0)

public static final class EmailMessage.Builder extends GeneratedMessageV3.Builder<EmailMessage.Builder> implements EmailMessageOrBuilder

An email associated with a support case.

Protobuf type google.cloud.support.v2beta.EmailMessage

Static Methods

getDescriptor()

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

Methods

addAllCcEmailAddresses(Iterable<String> values)

public EmailMessage.Builder addAllCcEmailAddresses(Iterable<String> values)

Output only. Email addresses CCed on the email.

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

Parameter
Name Description
values Iterable<String>

The ccEmailAddresses to add.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

addAllRecipientEmailAddresses(Iterable<String> values)

public EmailMessage.Builder addAllRecipientEmailAddresses(Iterable<String> values)

Output only. Email addresses the email was sent to.

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

Parameter
Name Description
values Iterable<String>

The recipientEmailAddresses to add.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

addCcEmailAddresses(String value)

public EmailMessage.Builder addCcEmailAddresses(String value)

Output only. Email addresses CCed on the email.

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

Parameter
Name Description
value String

The ccEmailAddresses to add.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

addCcEmailAddressesBytes(ByteString value)

public EmailMessage.Builder addCcEmailAddressesBytes(ByteString value)

Output only. Email addresses CCed on the email.

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

Parameter
Name Description
value ByteString

The bytes of the ccEmailAddresses to add.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

addRecipientEmailAddresses(String value)

public EmailMessage.Builder addRecipientEmailAddresses(String value)

Output only. Email addresses the email was sent to.

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

Parameter
Name Description
value String

The recipientEmailAddresses to add.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

addRecipientEmailAddressesBytes(ByteString value)

public EmailMessage.Builder addRecipientEmailAddressesBytes(ByteString value)

Output only. Email addresses the email was sent to.

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

Parameter
Name Description
value ByteString

The bytes of the recipientEmailAddresses to add.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EmailMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EmailMessage.Builder
Overrides

build()

public EmailMessage build()
Returns
Type Description
EmailMessage

buildPartial()

public EmailMessage buildPartial()
Returns
Type Description
EmailMessage

clear()

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

clearActor()

public EmailMessage.Builder clearActor()

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
EmailMessage.Builder

clearBodyContent()

public EmailMessage.Builder clearBodyContent()

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
EmailMessage.Builder

clearCcEmailAddresses()

public EmailMessage.Builder clearCcEmailAddresses()

Output only. Email addresses CCed on the email.

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

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

clearCreateTime()

public EmailMessage.Builder clearCreateTime()

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
EmailMessage.Builder

clearField(Descriptors.FieldDescriptor field)

public EmailMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EmailMessage.Builder
Overrides

clearName()

public EmailMessage.Builder clearName()

Identifier. Resource name for the email message.

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

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public EmailMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EmailMessage.Builder
Overrides

clearRecipientEmailAddresses()

public EmailMessage.Builder clearRecipientEmailAddresses()

Output only. Email addresses the email was sent to.

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

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

clearSubject()

public EmailMessage.Builder clearSubject()

Output only. Subject of the email.

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

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

clone()

public EmailMessage.Builder clone()
Returns
Type Description
EmailMessage.Builder
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.

getActorBuilder()

public Actor.Builder getActorBuilder()

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.Builder

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.

getBodyContentBuilder()

public TextContent.Builder getBodyContentBuilder()

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.Builder

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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
Builder

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

getDescriptorForType()

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

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeActor(Actor value)

public EmailMessage.Builder mergeActor(Actor value)

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];

Parameter
Name Description
value Actor
Returns
Type Description
EmailMessage.Builder

mergeBodyContent(TextContent value)

public EmailMessage.Builder mergeBodyContent(TextContent value)

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];

Parameter
Name Description
value TextContent
Returns
Type Description
EmailMessage.Builder

mergeCreateTime(Timestamp value)

public EmailMessage.Builder mergeCreateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
EmailMessage.Builder

mergeFrom(EmailMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EmailMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EmailMessage.Builder
Overrides

setActor(Actor value)

public EmailMessage.Builder setActor(Actor value)

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];

Parameter
Name Description
value Actor
Returns
Type Description
EmailMessage.Builder

setActor(Actor.Builder builderForValue)

public EmailMessage.Builder setActor(Actor.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Actor.Builder
Returns
Type Description
EmailMessage.Builder

setBodyContent(TextContent value)

public EmailMessage.Builder setBodyContent(TextContent value)

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];

Parameter
Name Description
value TextContent
Returns
Type Description
EmailMessage.Builder

setBodyContent(TextContent.Builder builderForValue)

public EmailMessage.Builder setBodyContent(TextContent.Builder builderForValue)

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];

Parameter
Name Description
builderForValue TextContent.Builder
Returns
Type Description
EmailMessage.Builder

setCcEmailAddresses(int index, String value)

public EmailMessage.Builder setCcEmailAddresses(int index, String value)

Output only. Email addresses CCed on the email.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The ccEmailAddresses to set.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public EmailMessage.Builder setCreateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
EmailMessage.Builder

setCreateTime(Timestamp.Builder builderForValue)

public EmailMessage.Builder setCreateTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EmailMessage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public EmailMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EmailMessage.Builder
Overrides

setName(String value)

public EmailMessage.Builder setName(String value)

Identifier. Resource name for the email message.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EmailMessage.Builder setNameBytes(ByteString value)

Identifier. Resource name for the email message.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

setRecipientEmailAddresses(int index, String value)

public EmailMessage.Builder setRecipientEmailAddresses(int index, String value)

Output only. Email addresses the email was sent to.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The recipientEmailAddresses to set.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EmailMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EmailMessage.Builder
Overrides

setSubject(String value)

public EmailMessage.Builder setSubject(String value)

Output only. Subject of the email.

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

Parameter
Name Description
value String

The subject to set.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

setSubjectBytes(ByteString value)

public EmailMessage.Builder setSubjectBytes(ByteString value)

Output only. Subject of the email.

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

Parameter
Name Description
value ByteString

The bytes for subject to set.

Returns
Type Description
EmailMessage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final EmailMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EmailMessage.Builder
Overrides