Class: Google::Apis::ChatV1::ListMessagesResponse

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

Overview

Response message for listing messages.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListMessagesResponse

Returns a new instance of ListMessagesResponse.



3787
3788
3789
# File 'lib/google/apis/chat_v1/classes.rb', line 3787

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

Instance Attribute Details

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

List of messages. Corresponds to the JSON property messages

Returns:



3779
3780
3781
# File 'lib/google/apis/chat_v1/classes.rb', line 3779

def messages
  @messages
end

#next_page_tokenString

You can send a token as pageToken to retrieve the next page of results. If empty, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


3785
3786
3787
# File 'lib/google/apis/chat_v1/classes.rb', line 3785

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3792
3793
3794
3795
# File 'lib/google/apis/chat_v1/classes.rb', line 3792

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