Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse

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

Overview

Response from searching fact-checked claims by image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse

Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse.



373
374
375
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 373

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

Instance Attribute Details

#next_page_tokenString

The next pagination token in the Search response. It should be used as the page_token for the following request. An empty value means no more results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


366
367
368
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 366

def next_page_token
  @next_page_token
end

#resultsArray<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult>

The list of claims and all of their associated information. Corresponds to the JSON property results



371
372
373
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 371

def results
  @results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



378
379
380
381
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 378

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