class Google::Apis::GmailV1::FilterCriteria

Message matching criteria.

Attributes

exclude_chats[RW]

Whether the response should exclude chats. Corresponds to the JSON property `excludeChats` @return [Boolean]

exclude_chats?[RW]

Whether the response should exclude chats. Corresponds to the JSON property `excludeChats` @return [Boolean]

from[RW]

The sender's display name or email address. Corresponds to the JSON property `from` @return [String]

has_attachment[RW]

Whether the message has any attachment. Corresponds to the JSON property `hasAttachment` @return [Boolean]

has_attachment?[RW]

Whether the message has any attachment. Corresponds to the JSON property `hasAttachment` @return [Boolean]

negated_query[RW]

Only return messages not matching the specified query. Supports the same query format as the Gmail search box. For example, `“from:someuser@example.com rfc822msgid: is:unread”`. Corresponds to the JSON property `negatedQuery` @return [String]

query[RW]

Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, `“from:someuser@example.com rfc822msgid: is:unread”`. Corresponds to the JSON property `query` @return [String]

size[RW]

The size of the entire RFC822 message in bytes, including all headers and attachments. Corresponds to the JSON property `size` @return [Fixnum]

size_comparison[RW]

How the message size in bytes should be in relation to the size field. Corresponds to the JSON property `sizeComparison` @return [String]

subject[RW]

Case-insensitive phrase found in the message's subject. Trailing and leading whitespace are be trimmed and adjacent spaces are collapsed. Corresponds to the JSON property `subject` @return [String]

to[RW]

The recipient's display name or email address. Includes recipients in the “to”, “cc”, and “bcc” header fields. You can use simply the local part of the email address. For example, “example” and “example@” both match “example@gmail.com”. This field is case-insensitive. Corresponds to the JSON property `to` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gmail_v1/classes.rb, line 289
def update!(**args)
  @exclude_chats = args[:exclude_chats] if args.key?(:exclude_chats)
  @from = args[:from] if args.key?(:from)
  @has_attachment = args[:has_attachment] if args.key?(:has_attachment)
  @negated_query = args[:negated_query] if args.key?(:negated_query)
  @query = args[:query] if args.key?(:query)
  @size = args[:size] if args.key?(:size)
  @size_comparison = args[:size_comparison] if args.key?(:size_comparison)
  @subject = args[:subject] if args.key?(:subject)
  @to = args[:to] if args.key?(:to)
end