Class: Google::Apis::ContentV2_1::SearchResponse

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

Overview

Response message for the ReportService.Search method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchResponse

Returns a new instance of SearchResponse.



13145
13146
13147
# File 'lib/google/apis/content_v2_1/classes.rb', line 13145

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

Instance Attribute Details

#next_page_tokenString

Token which can be sent as page_token to retrieve the next page. If omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


13138
13139
13140
# File 'lib/google/apis/content_v2_1/classes.rb', line 13138

def next_page_token
  @next_page_token
end

#resultsArray<Google::Apis::ContentV2_1::ReportRow>

Rows that matched the search query. Corresponds to the JSON property results



13143
13144
13145
# File 'lib/google/apis/content_v2_1/classes.rb', line 13143

def results
  @results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13150
13151
13152
13153
# File 'lib/google/apis/content_v2_1/classes.rb', line 13150

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