google-apis-factchecktools_v1alpha1 0.18.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c7e2e8b48e34f30dbcbdf45b874104112be6a1fb9e242d51f39f9534a8cf739
4
- data.tar.gz: 9cf98e37d03df1eac8fdb6be712d04c8860cf405b62275fbbf21386c96c49ff8
3
+ metadata.gz: 5d5bed75626551a9eea12032149823986afd0d4bad120825d52552276b8e0032
4
+ data.tar.gz: 1dfe699cfd66fa0410032a4e3dc7575c277df0b1de3a18f8aeda8c6599772e05
5
5
  SHA512:
6
- metadata.gz: 16d72a71b46367c7e0c729b2ec36f4fffe68553c7d42a6e0f04a94e22e4f20bb7b3390307fb7b259c19a53a25e8ad41f6e29c84ab4ac2ab8fb8448edc98238e4
7
- data.tar.gz: 2ca9f20ba59bcb63e29104dd1e19a5dcc18246938781ac9e294b5aab8bf68838ed4513ea35a1b7614b734660d92db9fab99faf4024759b5d99a924c43191cb2f
6
+ metadata.gz: 8d07b7380df917f8ec2b7b52d1bc46f718592f61e36ab341a7ee34fb55817da9ad30d42f6e1fc2c8bc4e4f2503f9d2922686482dd3bd68320826a45db83d9641
7
+ data.tar.gz: 8f8113f64575b321399859fa3d863072f323ba71b4c33d6903e0eb4a949afa9ab1aa1bb5ee9eb8b797ba1852404c46bfca3c48a915acafbd0382837622842020
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-factchecktools_v1alpha1
2
2
 
3
+ ### v0.19.0 (2024-03-31)
4
+
5
+ * Regenerated from discovery document revision 20240326
6
+
3
7
  ### v0.18.0 (2024-02-23)
4
8
 
5
9
  * Regenerated using generator version 0.14.0
@@ -355,6 +355,51 @@ module Google
355
355
  end
356
356
  end
357
357
 
358
+ # Response from searching fact-checked claims by image.
359
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse
360
+ include Google::Apis::Core::Hashable
361
+
362
+ # The next pagination token in the Search response. It should be used as the `
363
+ # page_token` for the following request. An empty value means no more results.
364
+ # Corresponds to the JSON property `nextPageToken`
365
+ # @return [String]
366
+ attr_accessor :next_page_token
367
+
368
+ # The list of claims and all of their associated information.
369
+ # Corresponds to the JSON property `results`
370
+ # @return [Array<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult>]
371
+ attr_accessor :results
372
+
373
+ def initialize(**args)
374
+ update!(**args)
375
+ end
376
+
377
+ # Update properties of this object
378
+ def update!(**args)
379
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
380
+ @results = args[:results] if args.key?(:results)
381
+ end
382
+ end
383
+
384
+ # A claim and its associated information.
385
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult
386
+ include Google::Apis::Core::Hashable
387
+
388
+ # Information about the claim.
389
+ # Corresponds to the JSON property `claim`
390
+ # @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim]
391
+ attr_accessor :claim
392
+
393
+ def initialize(**args)
394
+ update!(**args)
395
+ end
396
+
397
+ # Update properties of this object
398
+ def update!(**args)
399
+ @claim = args[:claim] if args.key?(:claim)
400
+ end
401
+ end
402
+
358
403
  # Response from searching fact-checked claims.
359
404
  class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
360
405
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FactchecktoolsV1alpha1
18
18
  # Version of the google-apis-factchecktools_v1alpha1 gem
19
- GEM_VERSION = "0.18.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220317"
25
+ REVISION = "20240326"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,18 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
67
79
  class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
68
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
81
 
@@ -172,6 +184,23 @@ module Google
172
184
  end
173
185
  end
174
186
 
187
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse
188
+ # @private
189
+ class Representation < Google::Apis::Core::JsonRepresentation
190
+ property :next_page_token, as: 'nextPageToken'
191
+ collection :results, as: 'results', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult::Representation
192
+
193
+ end
194
+ end
195
+
196
+ class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult
197
+ # @private
198
+ class Representation < Google::Apis::Core::JsonRepresentation
199
+ property :claim, as: 'claim', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim::Representation
200
+
201
+ end
202
+ end
203
+
175
204
  class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
176
205
  # @private
177
206
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,6 +51,61 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Search through fact-checked claims using an image as the query.
55
+ # @param [String] image_uri
56
+ # Required. The URI of the source image. This must be a publicly-accessible
57
+ # image HTTP/HTTPS URL. When fetching images from HTTP/HTTPS URLs, Google cannot
58
+ # guarantee that the request will be completed. Your request may fail if the
59
+ # specified host denies the request (e.g. due to request throttling or DOS
60
+ # prevention), or if Google throttles requests to the site for abuse prevention.
61
+ # You should not depend on externally-hosted images for production applications.
62
+ # @param [String] language_code
63
+ # Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used
64
+ # to restrict results by language, though we do not currently consider the
65
+ # region.
66
+ # @param [Fixnum] offset
67
+ # Optional. An integer that specifies the current offset (that is, starting
68
+ # result location) in search results. This field is only considered if `
69
+ # page_token` is unset. For example, 0 means to return results starting from the
70
+ # first matching result, and 10 means to return from the 11th result.
71
+ # @param [Fixnum] page_size
72
+ # Optional. The pagination size. We will return up to that many results.
73
+ # Defaults to 10 if not set.
74
+ # @param [String] page_token
75
+ # Optional. The pagination token. You may provide the `next_page_token` returned
76
+ # from a previous List request, if any, in order to get the next page. All other
77
+ # fields must have the same values as in the previous request.
78
+ # @param [String] fields
79
+ # Selector specifying which fields to include in a partial response.
80
+ # @param [String] quota_user
81
+ # Available to use for quota purposes for server-side applications. Can be any
82
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
83
+ # @param [Google::Apis::RequestOptions] options
84
+ # Request-specific options
85
+ #
86
+ # @yield [result, err] Result & error if block supplied
87
+ # @yieldparam result [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse] parsed result object
88
+ # @yieldparam err [StandardError] error object if request failed
89
+ #
90
+ # @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse]
91
+ #
92
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
93
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
94
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
95
+ def image_claim_search(image_uri: nil, language_code: nil, offset: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
96
+ command = make_simple_command(:get, 'v1alpha1/claims:imageSearch', options)
97
+ command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse::Representation
98
+ command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse
99
+ command.query['imageUri'] = image_uri unless image_uri.nil?
100
+ command.query['languageCode'] = language_code unless language_code.nil?
101
+ command.query['offset'] = offset unless offset.nil?
102
+ command.query['pageSize'] = page_size unless page_size.nil?
103
+ command.query['pageToken'] = page_token unless page_token.nil?
104
+ command.query['fields'] = fields unless fields.nil?
105
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
106
+ execute_or_queue_command(command, &block)
107
+ end
108
+
54
109
  # Search through fact-checked claims.
55
110
  # @param [String] language_code
56
111
  # The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-factchecktools_v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-25 00:00:00.000000000 Z
11
+ date: 2024-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-factchecktools_v1alpha1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-factchecktools_v1alpha1/v0.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-factchecktools_v1alpha1/v0.19.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-factchecktools_v1alpha1
63
63
  post_install_message:
64
64
  rdoc_options: []