Class: Google::Apis::GmailV1::FilterCriteria
- Inherits:
-
Object
- Object
- Google::Apis::GmailV1::FilterCriteria
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/gmail_v1/classes.rb,
generated/google/apis/gmail_v1/representations.rb,
generated/google/apis/gmail_v1/representations.rb
Overview
Message matching criteria.
Instance Attribute Summary collapse
-
#exclude_chats ⇒ Boolean
(also: #exclude_chats?)
Whether the response should exclude chats.
-
#from ⇒ String
The sender's display name or email address.
-
#has_attachment ⇒ Boolean
(also: #has_attachment?)
Whether the message has any attachment.
-
#negated_query ⇒ String
Only return messages not matching the specified query.
-
#query ⇒ String
Only return messages matching the specified query.
-
#size ⇒ Fixnum
The size of the entire RFC822 message in bytes, including all headers and attachments.
-
#size_comparison ⇒ String
How the message size in bytes should be in relation to the size field.
-
#subject ⇒ String
Case-insensitive phrase found in the message's subject.
-
#to ⇒ String
The recipient's display name or email address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FilterCriteria
constructor
A new instance of FilterCriteria.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FilterCriteria
Returns a new instance of FilterCriteria.
225 226 227 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 225 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exclude_chats ⇒ Boolean Also known as: exclude_chats?
Whether the response should exclude chats.
Corresponds to the JSON property excludeChats
172 173 174 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 172 def exclude_chats @exclude_chats end |
#from ⇒ String
The sender's display name or email address.
Corresponds to the JSON property from
178 179 180 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 178 def from @from end |
#has_attachment ⇒ Boolean Also known as: has_attachment?
Whether the message has any attachment.
Corresponds to the JSON property hasAttachment
183 184 185 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 183 def @has_attachment end |
#negated_query ⇒ String
Only return messages not matching the specified query. Supports the same query
format as the Gmail search box. For example, "from:[email protected]
rfc822msgid: is:unread".
Corresponds to the JSON property negatedQuery
191 192 193 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 191 def negated_query @negated_query end |
#query ⇒ String
Only return messages matching the specified query. Supports the same query
format as the Gmail search box. For example, "from:[email protected]
rfc822msgid: is:unread".
Corresponds to the JSON property query
198 199 200 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 198 def query @query end |
#size ⇒ Fixnum
The size of the entire RFC822 message in bytes, including all headers and
attachments.
Corresponds to the JSON property size
204 205 206 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 204 def size @size end |
#size_comparison ⇒ String
How the message size in bytes should be in relation to the size field.
Corresponds to the JSON property sizeComparison
209 210 211 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 209 def size_comparison @size_comparison end |
#subject ⇒ String
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
215 216 217 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 215 def subject @subject end |
#to ⇒ String
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 "[email protected]".
This field is case-insensitive.
Corresponds to the JSON property to
223 224 225 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 223 def to @to end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
230 231 232 233 234 235 236 237 238 239 240 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 230 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 |