class Google::Apis::GmailV1::MessagePartBody
The body of a single MIME message part.
Attributes
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. Corresponds to the JSON property `attachmentId` @return [String]
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. Corresponds to the JSON property `data` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]
Number of bytes for the message part data (encoding notwithstanding). Corresponds to the JSON property `size` @return [Fixnum]
Public Class Methods
# File lib/google/apis/gmail_v1/classes.rb, line 1085 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/gmail_v1/classes.rb, line 1090 def update!(**args) @attachment_id = args[:attachment_id] if args.key?(:attachment_id) @data = args[:data] if args.key?(:data) @size = args[:size] if args.key?(:size) end