class Google::Apis::GmailV1::MessagePartBody

The body of a single MIME message part.

Attributes

attachment_id[RW]

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]

data[RW]

The body data of a MIME message part. 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` @return [String]

size[RW]

Total number of bytes in the body of the message part. Corresponds to the JSON property `size` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/gmail_v1/classes.rb, line 585
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/gmail_v1/classes.rb, line 590
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