All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.gmail.model.MessagePartBody.html Maven / Gradle / Ivy

There is a newer version: v1-rev20240520-2.0.0
Show newest version






MessagePartBody (Gmail API v1-rev20230911-2.0.0)












com.google.api.services.gmail.model

Class MessagePartBody

    • Constructor Detail

      • MessagePartBody

        public MessagePartBody()
    • Method Detail

      • getAttachmentId

        public String getAttachmentId()
        When present, contains the ID of an external attachment that can be retrieved in a separate `messages.attachments.get` request. When not present, the entire content of the message part body is contained in the data field.
        Returns:
        value or null for none
      • setAttachmentId

        public MessagePartBody setAttachmentId(String attachmentId)
        When present, contains the ID of an external attachment that can be retrieved in a separate `messages.attachments.get` request. When not present, the entire content of the message part body is contained in the data field.
        Parameters:
        attachmentId - attachmentId or null for none
      • getData

        public String getData()
        The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
        Returns:
        value or null for none
        See Also:
        decodeData()
      • decodeData

        public byte[] decodeData()
        The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
        Returns:
        Base64 decoded value or null for none
        Since:
        1.14
        See Also:
        getData()
      • setData

        public MessagePartBody setData(String data)
        The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
        Parameters:
        data - data or null for none
        See Also:
        #encodeData()
      • encodeData

        public MessagePartBody encodeData(byte[] data)
        The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
        Since:
        1.14
        See Also:

        The value is encoded Base64 or {@code null} for none.

      • getSize

        public Integer getSize()
        Number of bytes for the message part data (encoding notwithstanding).
        Returns:
        value or null for none
      • setSize

        public MessagePartBody setSize(Integer size)
        Number of bytes for the message part data (encoding notwithstanding).
        Parameters:
        size - size or null for none
      • clone

        public MessagePartBody clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2023 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy