Class EmailMessage

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.support.v2beta.EmailMessage
All Implemented Interfaces:
EmailMessageOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class EmailMessage extends com.google.protobuf.GeneratedMessage implements EmailMessageOrBuilder
 An email associated with a support case.
 
Protobuf type google.cloud.support.v2beta.EmailMessage
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • ACTOR_FIELD_NUMBER

      public static final int ACTOR_FIELD_NUMBER
      See Also:
    • SUBJECT_FIELD_NUMBER

      public static final int SUBJECT_FIELD_NUMBER
      See Also:
    • RECIPIENT_EMAIL_ADDRESSES_FIELD_NUMBER

      public static final int RECIPIENT_EMAIL_ADDRESSES_FIELD_NUMBER
      See Also:
    • CC_EMAIL_ADDRESSES_FIELD_NUMBER

      public static final int CC_EMAIL_ADDRESSES_FIELD_NUMBER
      See Also:
    • BODY_CONTENT_FIELD_NUMBER

      public static final int BODY_CONTENT_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static EmailMessage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EmailMessage parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EmailMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EmailMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EmailMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EmailMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EmailMessage parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EmailMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EmailMessage parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EmailMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EmailMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EmailMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static EmailMessage.Builder newBuilder()
    • newBuilder

      public static EmailMessage.Builder newBuilder(EmailMessage prototype)
    • toBuilder

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

      protected EmailMessage.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static EmailMessage getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<EmailMessage> parser()
    • getParserForType

      public com.google.protobuf.Parser<EmailMessage> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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