Package com.google.cloud.support.v2beta
Class EmailMessage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EmailMessage.Builder>
com.google.cloud.support.v2beta.EmailMessage.Builder
- All Implemented Interfaces:
EmailMessageOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EmailMessage
public static final class EmailMessage.Builder
extends com.google.protobuf.GeneratedMessage.Builder<EmailMessage.Builder>
implements EmailMessageOrBuilder
An email associated with a support case.Protobuf type
google.cloud.support.v2beta.EmailMessage-
Method Summary
Modifier and TypeMethodDescriptionaddAllCcEmailAddresses(Iterable<String> values) Output only.addAllRecipientEmailAddresses(Iterable<String> values) Output only.addCcEmailAddresses(String value) Output only.addCcEmailAddressesBytes(com.google.protobuf.ByteString value) Output only.addRecipientEmailAddresses(String value) Output only.addRecipientEmailAddressesBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.Output only.Identifier.Output only.Output only.getActor()Output only.Output only.Output only.Output only.Output only.Output only.getCcEmailAddresses(int index) Output only.com.google.protobuf.ByteStringgetCcEmailAddressesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Identifier.com.google.protobuf.ByteStringIdentifier.getRecipientEmailAddresses(int index) Output only.com.google.protobuf.ByteStringgetRecipientEmailAddressesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanhasActor()Output only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeActor(Actor value) Output only.mergeBodyContent(TextContent value) Output only.mergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(EmailMessage other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.setActor(Actor.Builder builderForValue) Output only.setBodyContent(TextContent value) Output only.setBodyContent(TextContent.Builder builderForValue) Output only.setCcEmailAddresses(int index, String value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setRecipientEmailAddresses(int index, String value) Output only.setSubject(String value) Output only.setSubjectBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EmailMessage.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EmailMessage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EmailMessage.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EmailMessage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EmailMessage.Builder>
-
mergeFrom
public EmailMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EmailMessage.Builder>- Throws:
IOException
-
getName
Identifier. Resource name for the email message.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceEmailMessageOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. Resource name for the email message.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceEmailMessageOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. Resource name for the email message.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Identifier. Resource name for the email message.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Identifier. Resource name for the email message.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCreateTimein interfaceEmailMessageOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Time when this email message object was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceEmailMessageOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Time when this email message object was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Time when this email message object was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Time when this email message object was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Time when this email message object was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.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]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time when this email message object was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceEmailMessageOrBuilder
-
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];- Specified by:
hasActorin interfaceEmailMessageOrBuilder- Returns:
- Whether the actor field is set.
-
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];- Specified by:
getActorin interfaceEmailMessageOrBuilder- Returns:
- The actor.
-
setActor
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]; -
setActor
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]; -
mergeActor
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]; -
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]; -
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]; -
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];- Specified by:
getActorOrBuilderin interfaceEmailMessageOrBuilder
-
getSubject
Output only. Subject of the email.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSubjectin interfaceEmailMessageOrBuilder- Returns:
- The subject.
-
getSubjectBytes
public com.google.protobuf.ByteString getSubjectBytes()Output only. Subject of the email.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSubjectBytesin interfaceEmailMessageOrBuilder- Returns:
- The bytes for subject.
-
setSubject
Output only. Subject of the email.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The subject to set.- Returns:
- This builder for chaining.
-
clearSubject
Output only. Subject of the email.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setSubjectBytes
Output only. Subject of the email.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for subject to set.- Returns:
- This builder for chaining.
-
getRecipientEmailAddressesList
public com.google.protobuf.ProtocolStringList getRecipientEmailAddressesList()Output only. Email addresses the email was sent to.
repeated string recipient_email_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRecipientEmailAddressesListin interfaceEmailMessageOrBuilder- Returns:
- A list containing the recipientEmailAddresses.
-
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];- Specified by:
getRecipientEmailAddressesCountin interfaceEmailMessageOrBuilder- Returns:
- The count of recipientEmailAddresses.
-
getRecipientEmailAddresses
Output only. Email addresses the email was sent to.
repeated string recipient_email_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRecipientEmailAddressesin interfaceEmailMessageOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The recipientEmailAddresses at the given index.
-
getRecipientEmailAddressesBytes
public com.google.protobuf.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];- Specified by:
getRecipientEmailAddressesBytesin interfaceEmailMessageOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the recipientEmailAddresses at the given index.
-
setRecipientEmailAddresses
Output only. Email addresses the email was sent to.
repeated string recipient_email_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The recipientEmailAddresses to set.- Returns:
- This builder for chaining.
-
addRecipientEmailAddresses
Output only. Email addresses the email was sent to.
repeated string recipient_email_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The recipientEmailAddresses to add.- Returns:
- This builder for chaining.
-
addAllRecipientEmailAddresses
Output only. Email addresses the email was sent to.
repeated string recipient_email_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The recipientEmailAddresses to add.- Returns:
- This builder for chaining.
-
clearRecipientEmailAddresses
Output only. Email addresses the email was sent to.
repeated string recipient_email_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addRecipientEmailAddressesBytes
Output only. Email addresses the email was sent to.
repeated string recipient_email_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the recipientEmailAddresses to add.- Returns:
- This builder for chaining.
-
getCcEmailAddressesList
public com.google.protobuf.ProtocolStringList getCcEmailAddressesList()Output only. Email addresses CCed on the email.
repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCcEmailAddressesListin interfaceEmailMessageOrBuilder- Returns:
- A list containing the ccEmailAddresses.
-
getCcEmailAddressesCount
public int getCcEmailAddressesCount()Output only. Email addresses CCed on the email.
repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCcEmailAddressesCountin interfaceEmailMessageOrBuilder- Returns:
- The count of ccEmailAddresses.
-
getCcEmailAddresses
Output only. Email addresses CCed on the email.
repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCcEmailAddressesin interfaceEmailMessageOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ccEmailAddresses at the given index.
-
getCcEmailAddressesBytes
public com.google.protobuf.ByteString getCcEmailAddressesBytes(int index) Output only. Email addresses CCed on the email.
repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCcEmailAddressesBytesin interfaceEmailMessageOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ccEmailAddresses at the given index.
-
setCcEmailAddresses
Output only. Email addresses CCed on the email.
repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The ccEmailAddresses to set.- Returns:
- This builder for chaining.
-
addCcEmailAddresses
Output only. Email addresses CCed on the email.
repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The ccEmailAddresses to add.- Returns:
- This builder for chaining.
-
addAllCcEmailAddresses
Output only. Email addresses CCed on the email.
repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The ccEmailAddresses to add.- Returns:
- This builder for chaining.
-
clearCcEmailAddresses
Output only. Email addresses CCed on the email.
repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addCcEmailAddressesBytes
Output only. Email addresses CCed on the email.
repeated string cc_email_addresses = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the ccEmailAddresses to add.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasBodyContentin interfaceEmailMessageOrBuilder- Returns:
- Whether the bodyContent field is set.
-
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];- Specified by:
getBodyContentin interfaceEmailMessageOrBuilder- Returns:
- The bodyContent.
-
setBodyContent
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]; -
setBodyContent
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]; -
mergeBodyContent
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]; -
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]; -
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]; -
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];- Specified by:
getBodyContentOrBuilderin interfaceEmailMessageOrBuilder
-