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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<EmailMessage.Builder>
    • clear

      public EmailMessage.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<EmailMessage.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<EmailMessage.Builder>
    • getDefaultInstanceForType

      public EmailMessage getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public EmailMessage build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public EmailMessage buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public EmailMessage.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EmailMessage.Builder>
    • mergeFrom

      public EmailMessage.Builder mergeFrom(EmailMessage other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EmailMessage.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Resource name for the email message.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface EmailMessageOrBuilder
      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:
      getNameBytes in interface EmailMessageOrBuilder
      Returns:
      The bytes for name.
    • setName

      public EmailMessage.Builder setName(String value)
       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

      public EmailMessage.Builder clearName()
       Identifier. Resource name for the email message.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public EmailMessage.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasCreateTime in interface EmailMessageOrBuilder
      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:
      getCreateTime in interface EmailMessageOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public EmailMessage.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this email message object was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public EmailMessage.Builder setCreateTime(com.google.protobuf.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];
    • mergeCreateTime

      public EmailMessage.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this email message object was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • 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:
      getCreateTimeOrBuilder in interface EmailMessageOrBuilder
    • 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:
      hasActor in interface EmailMessageOrBuilder
      Returns:
      Whether the actor field is set.
    • 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];
      Specified by:
      getActor in interface EmailMessageOrBuilder
      Returns:
      The actor.
    • setActor

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

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

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getActorOrBuilder in interface EmailMessageOrBuilder
    • getSubject

      public String getSubject()
       Output only. Subject of the email.
       
      string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSubject in interface EmailMessageOrBuilder
      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:
      getSubjectBytes in interface EmailMessageOrBuilder
      Returns:
      The bytes for subject.
    • setSubject

      public EmailMessage.Builder setSubject(String value)
       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

      public EmailMessage.Builder clearSubject()
       Output only. Subject of the email.
       
      string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSubjectBytes

      public EmailMessage.Builder setSubjectBytes(com.google.protobuf.ByteString value)
       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:
      getRecipientEmailAddressesList in interface EmailMessageOrBuilder
      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:
      getRecipientEmailAddressesCount in interface EmailMessageOrBuilder
      Returns:
      The count of recipientEmailAddresses.
    • getRecipientEmailAddresses

      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];
      Specified by:
      getRecipientEmailAddresses in interface EmailMessageOrBuilder
      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:
      getRecipientEmailAddressesBytes in interface EmailMessageOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the recipientEmailAddresses at the given index.
    • setRecipientEmailAddresses

      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:
      index - The index to set the value at.
      value - The recipientEmailAddresses to set.
      Returns:
      This builder for chaining.
    • addRecipientEmailAddresses

      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];
      Parameters:
      value - The recipientEmailAddresses to add.
      Returns:
      This builder for chaining.
    • addAllRecipientEmailAddresses

      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];
      Parameters:
      values - The recipientEmailAddresses to add.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • addRecipientEmailAddressesBytes

      public EmailMessage.Builder addRecipientEmailAddressesBytes(com.google.protobuf.ByteString value)
       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:
      getCcEmailAddressesList in interface EmailMessageOrBuilder
      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:
      getCcEmailAddressesCount in interface EmailMessageOrBuilder
      Returns:
      The count of ccEmailAddresses.
    • getCcEmailAddresses

      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];
      Specified by:
      getCcEmailAddresses in interface EmailMessageOrBuilder
      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:
      getCcEmailAddressesBytes in interface EmailMessageOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ccEmailAddresses at the given index.
    • setCcEmailAddresses

      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:
      index - The index to set the value at.
      value - The ccEmailAddresses to set.
      Returns:
      This builder for chaining.
    • addCcEmailAddresses

      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];
      Parameters:
      value - The ccEmailAddresses to add.
      Returns:
      This builder for chaining.
    • addAllCcEmailAddresses

      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];
      Parameters:
      values - The ccEmailAddresses to add.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • addCcEmailAddressesBytes

      public EmailMessage.Builder addCcEmailAddressesBytes(com.google.protobuf.ByteString value)
       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:
      hasBodyContent in interface EmailMessageOrBuilder
      Returns:
      Whether the bodyContent field is set.
    • 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];
      Specified by:
      getBodyContent in interface EmailMessageOrBuilder
      Returns:
      The bodyContent.
    • setBodyContent

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

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

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getBodyContentOrBuilder in interface EmailMessageOrBuilder