Class: Google::Apis::GmailV1::ListMessagesResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gmail_v1/classes.rb,
lib/google/apis/gmail_v1/representations.rb,
lib/google/apis/gmail_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListMessagesResponse

Returns a new instance of ListMessagesResponse.



1104
1105
1106
# File 'lib/google/apis/gmail_v1/classes.rb', line 1104

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#messagesArray<Google::Apis::GmailV1::Message>

List of messages. Note that each message resource contains only an id and a threadId. Additional message details can be fetched using the messages.get method. Corresponds to the JSON property messages

Returns:



1092
1093
1094
# File 'lib/google/apis/gmail_v1/classes.rb', line 1092

def messages
  @messages
end

#next_page_tokenString

Token to retrieve the next page of results in the list. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1097
1098
1099
# File 'lib/google/apis/gmail_v1/classes.rb', line 1097

def next_page_token
  @next_page_token
end

#result_size_estimateFixnum

Estimated total number of results. Corresponds to the JSON property resultSizeEstimate

Returns:

  • (Fixnum)


1102
1103
1104
# File 'lib/google/apis/gmail_v1/classes.rb', line 1102

def result_size_estimate
  @result_size_estimate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1109
1110
1111
1112
1113
# File 'lib/google/apis/gmail_v1/classes.rb', line 1109

def update!(**args)
  @messages = args[:messages] if args.key?(:messages)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @result_size_estimate = args[:result_size_estimate] if args.key?(:result_size_estimate)
end