google-api-client 0.30.9 → 0.30.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +89 -0
  3. data/api_names.yaml +1 -0
  4. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
  5. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +18 -7
  6. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +5 -10
  7. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  8. data/generated/google/apis/adexperiencereport_v1/classes.rb +24 -12
  9. data/generated/google/apis/adexperiencereport_v1/service.rb +6 -9
  10. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  11. data/generated/google/apis/analyticsreporting_v4/classes.rb +3 -0
  12. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  13. data/generated/google/apis/androidmanagement_v1/classes.rb +62 -9
  14. data/generated/google/apis/androidmanagement_v1/representations.rb +19 -0
  15. data/generated/google/apis/bigquery_v2.rb +1 -1
  16. data/generated/google/apis/bigquery_v2/classes.rb +32 -9
  17. data/generated/google/apis/bigquery_v2/representations.rb +5 -0
  18. data/generated/google/apis/bigquery_v2/service.rb +1 -1
  19. data/generated/google/apis/bigqueryconnection_v1beta1.rb +37 -0
  20. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +645 -0
  21. data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +263 -0
  22. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +378 -0
  23. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  24. data/generated/google/apis/bigtableadmin_v2/classes.rb +41 -16
  25. data/generated/google/apis/bigtableadmin_v2/representations.rb +15 -0
  26. data/generated/google/apis/binaryauthorization_v1.rb +35 -0
  27. data/generated/google/apis/binaryauthorization_v1/classes.rb +388 -0
  28. data/generated/google/apis/binaryauthorization_v1/representations.rb +167 -0
  29. data/generated/google/apis/binaryauthorization_v1/service.rb +313 -0
  30. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  31. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -1
  32. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +10 -6
  33. data/generated/google/apis/calendar_v3.rb +1 -1
  34. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  35. data/generated/google/apis/cloudasset_v1.rb +1 -1
  36. data/generated/google/apis/cloudasset_v1/classes.rb +52 -1
  37. data/generated/google/apis/cloudasset_v1/representations.rb +17 -0
  38. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  39. data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -1
  40. data/generated/google/apis/cloudiot_v1.rb +1 -1
  41. data/generated/google/apis/cloudiot_v1/classes.rb +11 -4
  42. data/generated/google/apis/cloudkms_v1.rb +1 -1
  43. data/generated/google/apis/cloudkms_v1/classes.rb +0 -14
  44. data/generated/google/apis/cloudkms_v1/representations.rb +0 -2
  45. data/generated/google/apis/cloudkms_v1/service.rb +3 -3
  46. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  47. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +6 -1
  48. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +5 -3
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +12 -8
  51. data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -1
  52. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  53. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +12 -8
  54. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +6 -2
  55. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +11 -4
  57. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +11 -4
  59. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  60. data/generated/google/apis/cloudsearch_v1/classes.rb +14 -3
  61. data/generated/google/apis/cloudsearch_v1/representations.rb +1 -0
  62. data/generated/google/apis/cloudsearch_v1/service.rb +3 -1
  63. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  64. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
  65. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  66. data/generated/google/apis/cloudtrace_v2/classes.rb +8 -0
  67. data/generated/google/apis/cloudtrace_v2/representations.rb +1 -0
  68. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  69. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +1 -0
  70. data/generated/google/apis/composer_v1.rb +1 -1
  71. data/generated/google/apis/composer_v1/classes.rb +17 -24
  72. data/generated/google/apis/composer_v1beta1.rb +1 -1
  73. data/generated/google/apis/composer_v1beta1/classes.rb +17 -24
  74. data/generated/google/apis/compute_alpha.rb +1 -1
  75. data/generated/google/apis/compute_alpha/classes.rb +1139 -284
  76. data/generated/google/apis/compute_alpha/representations.rb +304 -1
  77. data/generated/google/apis/compute_alpha/service.rb +935 -23
  78. data/generated/google/apis/compute_beta.rb +1 -1
  79. data/generated/google/apis/compute_beta/classes.rb +554 -98
  80. data/generated/google/apis/compute_beta/representations.rb +117 -0
  81. data/generated/google/apis/compute_beta/service.rb +63 -19
  82. data/generated/google/apis/compute_v1.rb +1 -1
  83. data/generated/google/apis/compute_v1/classes.rb +1187 -165
  84. data/generated/google/apis/compute_v1/representations.rb +402 -0
  85. data/generated/google/apis/compute_v1/service.rb +832 -12
  86. data/generated/google/apis/container_v1.rb +1 -1
  87. data/generated/google/apis/container_v1/classes.rb +36 -0
  88. data/generated/google/apis/container_v1/representations.rb +16 -0
  89. data/generated/google/apis/container_v1beta1.rb +1 -1
  90. data/generated/google/apis/container_v1beta1/classes.rb +153 -0
  91. data/generated/google/apis/container_v1beta1/representations.rb +77 -0
  92. data/generated/google/apis/content_v2.rb +1 -1
  93. data/generated/google/apis/content_v2/classes.rb +93 -2
  94. data/generated/google/apis/content_v2/representations.rb +37 -0
  95. data/generated/google/apis/content_v2_1.rb +1 -1
  96. data/generated/google/apis/content_v2_1/classes.rb +86 -2
  97. data/generated/google/apis/content_v2_1/representations.rb +36 -0
  98. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  99. data/generated/google/apis/dataflow_v1b3/classes.rb +21 -106
  100. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -58
  101. data/generated/google/apis/dataflow_v1b3/service.rb +0 -327
  102. data/generated/google/apis/dataproc_v1.rb +1 -1
  103. data/generated/google/apis/dataproc_v1/classes.rb +7 -0
  104. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  105. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  106. data/generated/google/apis/dataproc_v1beta2/classes.rb +7 -0
  107. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  108. data/generated/google/apis/datastore_v1.rb +1 -1
  109. data/generated/google/apis/datastore_v1/classes.rb +9 -75
  110. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  111. data/generated/google/apis/datastore_v1beta1/classes.rb +9 -75
  112. data/generated/google/apis/dfareporting_v3_1.rb +1 -1
  113. data/generated/google/apis/dfareporting_v3_1/classes.rb +42 -302
  114. data/generated/google/apis/dfareporting_v3_1/representations.rb +8 -84
  115. data/generated/google/apis/dfareporting_v3_1/service.rb +5 -107
  116. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  117. data/generated/google/apis/dialogflow_v2beta1/classes.rb +118 -0
  118. data/generated/google/apis/dialogflow_v2beta1/representations.rb +70 -0
  119. data/generated/google/apis/dialogflow_v2beta1/service.rb +75 -0
  120. data/generated/google/apis/dlp_v2.rb +1 -1
  121. data/generated/google/apis/dlp_v2/classes.rb +42 -0
  122. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  123. data/generated/google/apis/dlp_v2/service.rb +125 -1
  124. data/generated/google/apis/docs_v1.rb +1 -1
  125. data/generated/google/apis/docs_v1/classes.rb +128 -0
  126. data/generated/google/apis/docs_v1/representations.rb +49 -0
  127. data/generated/google/apis/{appstate_v1.rb → domainsrdap_v1.rb} +8 -11
  128. data/generated/google/apis/domainsrdap_v1/classes.rb +269 -0
  129. data/generated/google/apis/{appstate_v1 → domainsrdap_v1}/representations.rb +33 -22
  130. data/generated/google/apis/domainsrdap_v1/service.rb +350 -0
  131. data/generated/google/apis/drive_v2.rb +1 -1
  132. data/generated/google/apis/drive_v2/classes.rb +10 -1
  133. data/generated/google/apis/drive_v2/representations.rb +1 -0
  134. data/generated/google/apis/drive_v3.rb +1 -1
  135. data/generated/google/apis/drive_v3/classes.rb +10 -1
  136. data/generated/google/apis/drive_v3/representations.rb +1 -0
  137. data/generated/google/apis/driveactivity_v2.rb +1 -1
  138. data/generated/google/apis/firestore_v1.rb +1 -1
  139. data/generated/google/apis/firestore_v1/classes.rb +21 -130
  140. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  141. data/generated/google/apis/firestore_v1beta1/classes.rb +16 -122
  142. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  143. data/generated/google/apis/firestore_v1beta2/classes.rb +14 -83
  144. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  145. data/generated/google/apis/healthcare_v1alpha2/classes.rb +94 -48
  146. data/generated/google/apis/healthcare_v1alpha2/representations.rb +16 -0
  147. data/generated/google/apis/healthcare_v1alpha2/service.rb +117 -75
  148. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  149. data/generated/google/apis/healthcare_v1beta1/classes.rb +56 -2
  150. data/generated/google/apis/healthcare_v1beta1/representations.rb +17 -0
  151. data/generated/google/apis/healthcare_v1beta1/service.rb +10 -5
  152. data/generated/google/apis/homegraph_v1.rb +31 -0
  153. data/generated/google/apis/homegraph_v1/classes.rb +692 -0
  154. data/generated/google/apis/homegraph_v1/representations.rb +323 -0
  155. data/generated/google/apis/homegraph_v1/service.rb +255 -0
  156. data/generated/google/apis/logging_v2.rb +1 -1
  157. data/generated/google/apis/logging_v2/classes.rb +8 -7
  158. data/generated/google/apis/logging_v2/service.rb +40 -35
  159. data/generated/google/apis/ml_v1.rb +1 -1
  160. data/generated/google/apis/monitoring_v3.rb +1 -1
  161. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  162. data/generated/google/apis/pubsub_v1.rb +1 -1
  163. data/generated/google/apis/pubsub_v1/classes.rb +6 -1
  164. data/generated/google/apis/pubsub_v1/service.rb +15 -9
  165. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  166. data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -1
  167. data/generated/google/apis/pubsub_v1beta2/service.rb +10 -6
  168. data/generated/google/apis/run_v1alpha1.rb +1 -1
  169. data/generated/google/apis/run_v1alpha1/classes.rb +26 -6
  170. data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
  171. data/generated/google/apis/run_v1alpha1/service.rb +5 -3
  172. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  173. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -1
  174. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +5 -3
  175. data/generated/google/apis/script_v1.rb +1 -1
  176. data/generated/google/apis/script_v1/service.rb +6 -5
  177. data/generated/google/apis/securitycenter_v1.rb +1 -1
  178. data/generated/google/apis/securitycenter_v1/classes.rb +11 -4
  179. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  180. data/generated/google/apis/securitycenter_v1beta1/classes.rb +11 -4
  181. data/generated/google/apis/servicebroker_v1.rb +1 -1
  182. data/generated/google/apis/servicebroker_v1/classes.rb +6 -1
  183. data/generated/google/apis/servicebroker_v1/service.rb +5 -3
  184. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  185. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +6 -1
  186. data/generated/google/apis/servicebroker_v1alpha1/service.rb +5 -3
  187. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  188. data/generated/google/apis/servicebroker_v1beta1/classes.rb +6 -1
  189. data/generated/google/apis/servicebroker_v1beta1/service.rb +5 -3
  190. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  191. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -4
  192. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +11 -4
  194. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  195. data/generated/google/apis/servicenetworking_v1/classes.rb +1 -4
  196. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  197. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -4
  198. data/generated/google/apis/serviceusage_v1.rb +1 -1
  199. data/generated/google/apis/serviceusage_v1/classes.rb +30 -4
  200. data/generated/google/apis/serviceusage_v1/representations.rb +14 -0
  201. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  202. data/generated/google/apis/serviceusage_v1beta1/classes.rb +30 -4
  203. data/generated/google/apis/serviceusage_v1beta1/representations.rb +14 -0
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +1 -1
  206. data/generated/google/apis/speech_v1.rb +1 -1
  207. data/generated/google/apis/speech_v1/classes.rb +9 -7
  208. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  209. data/generated/google/apis/speech_v1p1beta1/classes.rb +17 -15
  210. data/generated/google/apis/speech_v2beta.rb +1 -1
  211. data/generated/google/apis/speech_v2beta/classes.rb +3 -3
  212. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  213. data/generated/google/apis/sqladmin_v1beta4/classes.rb +72 -0
  214. data/generated/google/apis/sqladmin_v1beta4/representations.rb +35 -0
  215. data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
  216. data/generated/google/apis/storage_v1.rb +1 -1
  217. data/generated/google/apis/storage_v1/classes.rb +7 -1
  218. data/generated/google/apis/storage_v1/representations.rb +2 -2
  219. data/generated/google/apis/storage_v1/service.rb +6 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/service.rb +1 -9
  222. data/generated/google/apis/testing_v1.rb +1 -1
  223. data/generated/google/apis/testing_v1/classes.rb +19 -0
  224. data/generated/google/apis/testing_v1/representations.rb +3 -0
  225. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  226. data/generated/google/apis/toolresults_v1beta3/classes.rb +1 -0
  227. data/generated/google/apis/translate_v3beta1.rb +1 -1
  228. data/generated/google/apis/translate_v3beta1/classes.rb +33 -0
  229. data/generated/google/apis/translate_v3beta1/representations.rb +3 -0
  230. data/generated/google/apis/verifiedaccess_v1.rb +35 -0
  231. data/generated/google/apis/verifiedaccess_v1/classes.rb +174 -0
  232. data/generated/google/apis/verifiedaccess_v1/representations.rb +99 -0
  233. data/generated/google/apis/verifiedaccess_v1/service.rb +120 -0
  234. data/generated/google/apis/vision_v1.rb +1 -1
  235. data/generated/google/apis/vision_v1/classes.rb +204 -2375
  236. data/generated/google/apis/vision_v1/representations.rb +701 -1634
  237. data/generated/google/apis/vision_v1/service.rb +17 -17
  238. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  239. data/generated/google/apis/vision_v1p1beta1/classes.rb +135 -2306
  240. data/generated/google/apis/vision_v1p1beta1/representations.rb +768 -1701
  241. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  242. data/generated/google/apis/vision_v1p2beta1/classes.rb +326 -2161
  243. data/generated/google/apis/vision_v1p2beta1/representations.rb +897 -1710
  244. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  245. data/generated/google/apis/youtube_v3.rb +1 -1
  246. data/generated/google/apis/youtube_v3/classes.rb +8 -2
  247. data/generated/google/apis/youtube_v3/representations.rb +1 -0
  248. data/lib/google/apis/version.rb +1 -1
  249. metadata +22 -6
  250. data/generated/google/apis/appstate_v1/classes.rb +0 -154
  251. data/generated/google/apis/appstate_v1/service.rb +0 -249
@@ -0,0 +1,99 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module VerifiedaccessV1
24
+
25
+ class Challenge
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Empty
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class SignedData
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class VerifyChallengeResponseRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class VerifyChallengeResponseResult
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Challenge
56
+ # @private
57
+ class Representation < Google::Apis::Core::JsonRepresentation
58
+ property :alternative_challenge, as: 'alternativeChallenge', class: Google::Apis::VerifiedaccessV1::SignedData, decorator: Google::Apis::VerifiedaccessV1::SignedData::Representation
59
+
60
+ property :challenge, as: 'challenge', class: Google::Apis::VerifiedaccessV1::SignedData, decorator: Google::Apis::VerifiedaccessV1::SignedData::Representation
61
+
62
+ end
63
+ end
64
+
65
+ class Empty
66
+ # @private
67
+ class Representation < Google::Apis::Core::JsonRepresentation
68
+ end
69
+ end
70
+
71
+ class SignedData
72
+ # @private
73
+ class Representation < Google::Apis::Core::JsonRepresentation
74
+ property :data, :base64 => true, as: 'data'
75
+ property :signature, :base64 => true, as: 'signature'
76
+ end
77
+ end
78
+
79
+ class VerifyChallengeResponseRequest
80
+ # @private
81
+ class Representation < Google::Apis::Core::JsonRepresentation
82
+ property :challenge_response, as: 'challengeResponse', class: Google::Apis::VerifiedaccessV1::SignedData, decorator: Google::Apis::VerifiedaccessV1::SignedData::Representation
83
+
84
+ property :expected_identity, as: 'expectedIdentity'
85
+ end
86
+ end
87
+
88
+ class VerifyChallengeResponseResult
89
+ # @private
90
+ class Representation < Google::Apis::Core::JsonRepresentation
91
+ property :device_enrollment_id, as: 'deviceEnrollmentId'
92
+ property :device_permanent_id, as: 'devicePermanentId'
93
+ property :signed_public_key_and_challenge, as: 'signedPublicKeyAndChallenge'
94
+ property :verification_output, as: 'verificationOutput'
95
+ end
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,120 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module VerifiedaccessV1
23
+ # Verified Access API
24
+ #
25
+ # API for Verified Access chrome extension to provide credential verification
26
+ # for chrome devices connecting to an enterprise network
27
+ #
28
+ # @example
29
+ # require 'google/apis/verifiedaccess_v1'
30
+ #
31
+ # Verifiedaccess = Google::Apis::VerifiedaccessV1 # Alias the module
32
+ # service = Verifiedaccess::VerifiedaccessService.new
33
+ #
34
+ # @see https://www.google.com/work/chrome/
35
+ class VerifiedaccessService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://verifiedaccess.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # CreateChallenge API
52
+ # @param [Google::Apis::VerifiedaccessV1::Empty] empty_object
53
+ # @param [String] fields
54
+ # Selector specifying which fields to include in a partial response.
55
+ # @param [String] quota_user
56
+ # Available to use for quota purposes for server-side applications. Can be any
57
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
58
+ # @param [Google::Apis::RequestOptions] options
59
+ # Request-specific options
60
+ #
61
+ # @yield [result, err] Result & error if block supplied
62
+ # @yieldparam result [Google::Apis::VerifiedaccessV1::Challenge] parsed result object
63
+ # @yieldparam err [StandardError] error object if request failed
64
+ #
65
+ # @return [Google::Apis::VerifiedaccessV1::Challenge]
66
+ #
67
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
70
+ def create_challenge(empty_object = nil, fields: nil, quota_user: nil, options: nil, &block)
71
+ command = make_simple_command(:post, 'v1/challenge', options)
72
+ command.request_representation = Google::Apis::VerifiedaccessV1::Empty::Representation
73
+ command.request_object = empty_object
74
+ command.response_representation = Google::Apis::VerifiedaccessV1::Challenge::Representation
75
+ command.response_class = Google::Apis::VerifiedaccessV1::Challenge
76
+ command.query['fields'] = fields unless fields.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
78
+ execute_or_queue_command(command, &block)
79
+ end
80
+
81
+ # VerifyChallengeResponse API
82
+ # @param [Google::Apis::VerifiedaccessV1::VerifyChallengeResponseRequest] verify_challenge_response_request_object
83
+ # @param [String] fields
84
+ # Selector specifying which fields to include in a partial response.
85
+ # @param [String] quota_user
86
+ # Available to use for quota purposes for server-side applications. Can be any
87
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
88
+ # @param [Google::Apis::RequestOptions] options
89
+ # Request-specific options
90
+ #
91
+ # @yield [result, err] Result & error if block supplied
92
+ # @yieldparam result [Google::Apis::VerifiedaccessV1::VerifyChallengeResponseResult] parsed result object
93
+ # @yieldparam err [StandardError] error object if request failed
94
+ #
95
+ # @return [Google::Apis::VerifiedaccessV1::VerifyChallengeResponseResult]
96
+ #
97
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
98
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
99
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
100
+ def verify_challenge_response(verify_challenge_response_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
101
+ command = make_simple_command(:post, 'v1/challenge:verify', options)
102
+ command.request_representation = Google::Apis::VerifiedaccessV1::VerifyChallengeResponseRequest::Representation
103
+ command.request_object = verify_challenge_response_request_object
104
+ command.response_representation = Google::Apis::VerifiedaccessV1::VerifyChallengeResponseResult::Representation
105
+ command.response_class = Google::Apis::VerifiedaccessV1::VerifyChallengeResponseResult
106
+ command.query['fields'] = fields unless fields.nil?
107
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
108
+ execute_or_queue_command(command, &block)
109
+ end
110
+
111
+ protected
112
+
113
+ def apply_command_defaults(command)
114
+ command.query['key'] = key unless key.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
116
+ end
117
+ end
118
+ end
119
+ end
120
+ end
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1
29
29
  VERSION = 'V1'
30
- REVISION = '20190823'
30
+ REVISION = '20190907'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
26
26
  class AddProductToProductSetRequest
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # The resource name for the Product to be added to this ProductSet.
29
+ # Required. The resource name for the Product to be added to this ProductSet.
30
30
  # Format is:
31
31
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
32
32
  # Corresponds to the JSON property `product`
@@ -350,7 +350,7 @@ module Google
350
350
  # @return [String]
351
351
  attr_accessor :parent
352
352
 
353
- # Individual async file annotation requests for this batch.
353
+ # Required. Individual async file annotation requests for this batch.
354
354
  # Corresponds to the JSON property `requests`
355
355
  # @return [Array<Google::Apis::VisionV1::AsyncAnnotateFileRequest>]
356
356
  attr_accessor :requests
@@ -407,7 +407,7 @@ module Google
407
407
  # @return [String]
408
408
  attr_accessor :parent
409
409
 
410
- # Individual image annotation requests for this batch.
410
+ # Required. Individual image annotation requests for this batch.
411
411
  # Corresponds to the JSON property `requests`
412
412
  # @return [Array<Google::Apis::VisionV1::AnnotateImageRequest>]
413
413
  attr_accessor :requests
@@ -459,7 +459,7 @@ module Google
459
459
  # @return [String]
460
460
  attr_accessor :parent
461
461
 
462
- # The list of file annotation requests. Right now we support only one
462
+ # Required. The list of file annotation requests. Right now we support only one
463
463
  # AnnotateFileRequest in BatchAnnotateFilesRequest.
464
464
  # Corresponds to the JSON property `requests`
465
465
  # @return [Array<Google::Apis::VisionV1::AnnotateFileRequest>]
@@ -512,7 +512,7 @@ module Google
512
512
  # @return [String]
513
513
  attr_accessor :parent
514
514
 
515
- # Individual image annotation requests for this batch.
515
+ # Required. Individual image annotation requests for this batch.
516
516
  # Corresponds to the JSON property `requests`
517
517
  # @return [Array<Google::Apis::VisionV1::AnnotateImageRequest>]
518
518
  attr_accessor :requests
@@ -2516,11 +2516,11 @@ module Google
2516
2516
  # @return [String]
2517
2517
  attr_accessor :name
2518
2518
 
2519
- # The category for the product identified by the reference image. This should
2519
+ # Immutable. The category for the product identified by the reference image.
2520
+ # This should
2520
2521
  # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
2521
2522
  # "homegoods", "apparel", and "toys" are still supported, but these should
2522
2523
  # not be used for new products.
2523
- # This field is immutable.
2524
2524
  # Corresponds to the JSON property `productCategory`
2525
2525
  # @return [String]
2526
2526
  attr_accessor :product_category
@@ -4320,11 +4320,11 @@ module Google
4320
4320
  # @return [String]
4321
4321
  attr_accessor :name
4322
4322
 
4323
- # The category for the product identified by the reference image. This should
4323
+ # Immutable. The category for the product identified by the reference image.
4324
+ # This should
4324
4325
  # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
4325
4326
  # "homegoods", "apparel", and "toys" are still supported, but these should
4326
4327
  # not be used for new products.
4327
- # This field is immutable.
4328
4328
  # Corresponds to the JSON property `productCategory`
4329
4329
  # @return [String]
4330
4330
  attr_accessor :product_category
@@ -6190,11 +6190,11 @@ module Google
6190
6190
  # @return [String]
6191
6191
  attr_accessor :name
6192
6192
 
6193
- # The category for the product identified by the reference image. This should
6193
+ # Immutable. The category for the product identified by the reference image.
6194
+ # This should
6194
6195
  # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
6195
6196
  # "homegoods", "apparel", and "toys" are still supported, but these should
6196
6197
  # not be used for new products.
6197
- # This field is immutable.
6198
6198
  # Corresponds to the JSON property `productCategory`
6199
6199
  # @return [String]
6200
6200
  attr_accessor :product_category
@@ -6430,8 +6430,9 @@ module Google
6430
6430
  class GoogleCloudVisionV1p3beta1ReferenceImage
6431
6431
  include Google::Apis::Core::Hashable
6432
6432
 
6433
- # Bounding polygons around the areas of interest in the reference image.
6434
- # Optional. If this field is empty, the system will try to detect regions of
6433
+ # Optional. Bounding polygons around the areas of interest in the reference
6434
+ # image.
6435
+ # If this field is empty, the system will try to detect regions of
6435
6436
  # interest. At most 10 bounding polygons will be used.
6436
6437
  # The provided shape is converted into a non-rotated rectangle. Once
6437
6438
  # converted, the small edge of the rectangle must be greater than or equal
@@ -6450,9 +6451,8 @@ module Google
6450
6451
  # @return [String]
6451
6452
  attr_accessor :name
6452
6453
 
6453
- # The Google Cloud Storage URI of the reference image.
6454
+ # Required. The Google Cloud Storage URI of the reference image.
6454
6455
  # The URI must start with `gs://`.
6455
- # Required.
6456
6456
  # Corresponds to the JSON property `uri`
6457
6457
  # @return [String]
6458
6458
  attr_accessor :uri
@@ -7005,2108 +7005,57 @@ module Google
7005
7005
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageProperties]
7006
7006
  attr_accessor :image_properties_annotation
7007
7007
 
7008
- # Stores image quality scores, could be aesthetic quality or technical quality.
7009
- # Corresponds to the JSON property `imageQualityAnnotation`
7010
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageQuality]
7011
- attr_accessor :image_quality_annotation
7012
-
7013
- # If present, label detection has completed successfully.
7014
- # Corresponds to the JSON property `labelAnnotations`
7015
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
7016
- attr_accessor :label_annotations
7017
-
7018
- # If present, landmark detection has completed successfully.
7019
- # Corresponds to the JSON property `landmarkAnnotations`
7020
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
7021
- attr_accessor :landmark_annotations
7022
-
7023
- # If present, localized object detection has completed successfully.
7024
- # This will be sorted descending by confidence score.
7025
- # Corresponds to the JSON property `localizedObjectAnnotations`
7026
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation>]
7027
- attr_accessor :localized_object_annotations
7028
-
7029
- # If present, logo detection has completed successfully.
7030
- # Corresponds to the JSON property `logoAnnotations`
7031
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
7032
- attr_accessor :logo_annotations
7033
-
7034
- # Results for a product search request.
7035
- # Corresponds to the JSON property `productSearchResults`
7036
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResults]
7037
- attr_accessor :product_search_results
7038
-
7039
- # Stores enhanced image bytes.
7040
- # Corresponds to the JSON property `qualityOptimizationResult`
7041
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1QualityOptimizationResult]
7042
- attr_accessor :quality_optimization_result
7043
-
7044
- # Set of features pertaining to the image, computed by computer vision
7045
- # methods over safe-search verticals (for example, adult, spoof, medical,
7046
- # violence).
7047
- # Corresponds to the JSON property `safeSearchAnnotation`
7048
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1SafeSearchAnnotation]
7049
- attr_accessor :safe_search_annotation
7050
-
7051
- # If present, text (OCR) detection has completed successfully.
7052
- # Corresponds to the JSON property `textAnnotations`
7053
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
7054
- attr_accessor :text_annotations
7055
-
7056
- # Relevant information for the image from the Internet.
7057
- # Corresponds to the JSON property `webDetection`
7058
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetection]
7059
- attr_accessor :web_detection
7060
-
7061
- def initialize(**args)
7062
- update!(**args)
7063
- end
7064
-
7065
- # Update properties of this object
7066
- def update!(**args)
7067
- @context = args[:context] if args.key?(:context)
7068
- @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
7069
- @error = args[:error] if args.key?(:error)
7070
- @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
7071
- @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
7072
- @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
7073
- @image_quality_annotation = args[:image_quality_annotation] if args.key?(:image_quality_annotation)
7074
- @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
7075
- @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
7076
- @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
7077
- @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
7078
- @product_search_results = args[:product_search_results] if args.key?(:product_search_results)
7079
- @quality_optimization_result = args[:quality_optimization_result] if args.key?(:quality_optimization_result)
7080
- @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
7081
- @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
7082
- @web_detection = args[:web_detection] if args.key?(:web_detection)
7083
- end
7084
- end
7085
-
7086
- # The response for a single offline file annotation request.
7087
- class GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse
7088
- include Google::Apis::Core::Hashable
7089
-
7090
- # The desired output location and metadata.
7091
- # Corresponds to the JSON property `outputConfig`
7092
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1OutputConfig]
7093
- attr_accessor :output_config
7094
-
7095
- def initialize(**args)
7096
- update!(**args)
7097
- end
7098
-
7099
- # Update properties of this object
7100
- def update!(**args)
7101
- @output_config = args[:output_config] if args.key?(:output_config)
7102
- end
7103
- end
7104
-
7105
- # Response to an async batch file annotation request.
7106
- class GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse
7107
- include Google::Apis::Core::Hashable
7108
-
7109
- # The list of file annotation responses, one for each request in
7110
- # AsyncBatchAnnotateFilesRequest.
7111
- # Corresponds to the JSON property `responses`
7112
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse>]
7113
- attr_accessor :responses
7114
-
7115
- def initialize(**args)
7116
- update!(**args)
7117
- end
7118
-
7119
- # Update properties of this object
7120
- def update!(**args)
7121
- @responses = args[:responses] if args.key?(:responses)
7122
- end
7123
- end
7124
-
7125
- # Response to an async batch image annotation request.
7126
- class GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse
7127
- include Google::Apis::Core::Hashable
7128
-
7129
- # The desired output location and metadata.
7130
- # Corresponds to the JSON property `outputConfig`
7131
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1OutputConfig]
7132
- attr_accessor :output_config
7133
-
7134
- def initialize(**args)
7135
- update!(**args)
7136
- end
7137
-
7138
- # Update properties of this object
7139
- def update!(**args)
7140
- @output_config = args[:output_config] if args.key?(:output_config)
7141
- end
7142
- end
7143
-
7144
- # A list of file annotation responses.
7145
- class GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse
7146
- include Google::Apis::Core::Hashable
7147
-
7148
- # The list of file annotation responses, each response corresponding to each
7149
- # AnnotateFileRequest in BatchAnnotateFilesRequest.
7150
- # Corresponds to the JSON property `responses`
7151
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AnnotateFileResponse>]
7152
- attr_accessor :responses
7153
-
7154
- def initialize(**args)
7155
- update!(**args)
7156
- end
7157
-
7158
- # Update properties of this object
7159
- def update!(**args)
7160
- @responses = args[:responses] if args.key?(:responses)
7161
- end
7162
- end
7163
-
7164
- # Metadata for the batch operations such as the current state.
7165
- # This is included in the `metadata` field of the `Operation` returned by the
7166
- # `GetOperation` call of the `google::longrunning::Operations` service.
7167
- class GoogleCloudVisionV1p4beta1BatchOperationMetadata
7168
- include Google::Apis::Core::Hashable
7169
-
7170
- # The time when the batch request is finished and
7171
- # google.longrunning.Operation.done is set to true.
7172
- # Corresponds to the JSON property `endTime`
7173
- # @return [String]
7174
- attr_accessor :end_time
7175
-
7176
- # The current state of the batch operation.
7177
- # Corresponds to the JSON property `state`
7178
- # @return [String]
7179
- attr_accessor :state
7180
-
7181
- # The time when the batch request was submitted to the server.
7182
- # Corresponds to the JSON property `submitTime`
7183
- # @return [String]
7184
- attr_accessor :submit_time
7185
-
7186
- def initialize(**args)
7187
- update!(**args)
7188
- end
7189
-
7190
- # Update properties of this object
7191
- def update!(**args)
7192
- @end_time = args[:end_time] if args.key?(:end_time)
7193
- @state = args[:state] if args.key?(:state)
7194
- @submit_time = args[:submit_time] if args.key?(:submit_time)
7195
- end
7196
- end
7197
-
7198
- # Logical element on the page.
7199
- class GoogleCloudVisionV1p4beta1Block
7200
- include Google::Apis::Core::Hashable
7201
-
7202
- # Detected block type (text, image etc) for this block.
7203
- # Corresponds to the JSON property `blockType`
7204
- # @return [String]
7205
- attr_accessor :block_type
7206
-
7207
- # A bounding polygon for the detected image annotation.
7208
- # Corresponds to the JSON property `boundingBox`
7209
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7210
- attr_accessor :bounding_box
7211
-
7212
- # Confidence of the OCR results on the block. Range [0, 1].
7213
- # Corresponds to the JSON property `confidence`
7214
- # @return [Float]
7215
- attr_accessor :confidence
7216
-
7217
- # List of paragraphs in this block (if this blocks is of type text).
7218
- # Corresponds to the JSON property `paragraphs`
7219
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Paragraph>]
7220
- attr_accessor :paragraphs
7221
-
7222
- # Additional information detected on the structural component.
7223
- # Corresponds to the JSON property `property`
7224
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
7225
- attr_accessor :property
7226
-
7227
- def initialize(**args)
7228
- update!(**args)
7229
- end
7230
-
7231
- # Update properties of this object
7232
- def update!(**args)
7233
- @block_type = args[:block_type] if args.key?(:block_type)
7234
- @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
7235
- @confidence = args[:confidence] if args.key?(:confidence)
7236
- @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
7237
- @property = args[:property] if args.key?(:property)
7238
- end
7239
- end
7240
-
7241
- # A bounding polygon for the detected image annotation.
7242
- class GoogleCloudVisionV1p4beta1BoundingPoly
7243
- include Google::Apis::Core::Hashable
7244
-
7245
- # The bounding polygon normalized vertices.
7246
- # Corresponds to the JSON property `normalizedVertices`
7247
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1NormalizedVertex>]
7248
- attr_accessor :normalized_vertices
7249
-
7250
- # The bounding polygon vertices.
7251
- # Corresponds to the JSON property `vertices`
7252
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Vertex>]
7253
- attr_accessor :vertices
7254
-
7255
- def initialize(**args)
7256
- update!(**args)
7257
- end
7258
-
7259
- # Update properties of this object
7260
- def update!(**args)
7261
- @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
7262
- @vertices = args[:vertices] if args.key?(:vertices)
7263
- end
7264
- end
7265
-
7266
- # Color information consists of RGB channels, score, and the fraction of
7267
- # the image that the color occupies in the image.
7268
- class GoogleCloudVisionV1p4beta1ColorInfo
7269
- include Google::Apis::Core::Hashable
7270
-
7271
- # Represents a color in the RGBA color space. This representation is designed
7272
- # for simplicity of conversion to/from color representations in various
7273
- # languages over compactness; for example, the fields of this representation
7274
- # can be trivially provided to the constructor of "java.awt.Color" in Java; it
7275
- # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
7276
- # method in iOS; and, with just a little work, it can be easily formatted into
7277
- # a CSS "rgba()" string in JavaScript, as well.
7278
- # Note: this proto does not carry information about the absolute color space
7279
- # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
7280
- # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
7281
- # space.
7282
- # Example (Java):
7283
- # import com.google.type.Color;
7284
- # // ...
7285
- # public static java.awt.Color fromProto(Color protocolor) `
7286
- # float alpha = protocolor.hasAlpha()
7287
- # ? protocolor.getAlpha().getValue()
7288
- # : 1.0;
7289
- # return new java.awt.Color(
7290
- # protocolor.getRed(),
7291
- # protocolor.getGreen(),
7292
- # protocolor.getBlue(),
7293
- # alpha);
7294
- # `
7295
- # public static Color toProto(java.awt.Color color) `
7296
- # float red = (float) color.getRed();
7297
- # float green = (float) color.getGreen();
7298
- # float blue = (float) color.getBlue();
7299
- # float denominator = 255.0;
7300
- # Color.Builder resultBuilder =
7301
- # Color
7302
- # .newBuilder()
7303
- # .setRed(red / denominator)
7304
- # .setGreen(green / denominator)
7305
- # .setBlue(blue / denominator);
7306
- # int alpha = color.getAlpha();
7307
- # if (alpha != 255) `
7308
- # result.setAlpha(
7309
- # FloatValue
7310
- # .newBuilder()
7311
- # .setValue(((float) alpha) / denominator)
7312
- # .build());
7313
- # `
7314
- # return resultBuilder.build();
7315
- # `
7316
- # // ...
7317
- # Example (iOS / Obj-C):
7318
- # // ...
7319
- # static UIColor* fromProto(Color* protocolor) `
7320
- # float red = [protocolor red];
7321
- # float green = [protocolor green];
7322
- # float blue = [protocolor blue];
7323
- # FloatValue* alpha_wrapper = [protocolor alpha];
7324
- # float alpha = 1.0;
7325
- # if (alpha_wrapper != nil) `
7326
- # alpha = [alpha_wrapper value];
7327
- # `
7328
- # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
7329
- # `
7330
- # static Color* toProto(UIColor* color) `
7331
- # CGFloat red, green, blue, alpha;
7332
- # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
7333
- # return nil;
7334
- # `
7335
- # Color* result = [[Color alloc] init];
7336
- # [result setRed:red];
7337
- # [result setGreen:green];
7338
- # [result setBlue:blue];
7339
- # if (alpha <= 0.9999) `
7340
- # [result setAlpha:floatWrapperWithValue(alpha)];
7341
- # `
7342
- # [result autorelease];
7343
- # return result;
7344
- # `
7345
- # // ...
7346
- # Example (JavaScript):
7347
- # // ...
7348
- # var protoToCssColor = function(rgb_color) `
7349
- # var redFrac = rgb_color.red || 0.0;
7350
- # var greenFrac = rgb_color.green || 0.0;
7351
- # var blueFrac = rgb_color.blue || 0.0;
7352
- # var red = Math.floor(redFrac * 255);
7353
- # var green = Math.floor(greenFrac * 255);
7354
- # var blue = Math.floor(blueFrac * 255);
7355
- # if (!('alpha' in rgb_color)) `
7356
- # return rgbToCssColor_(red, green, blue);
7357
- # `
7358
- # var alphaFrac = rgb_color.alpha.value || 0.0;
7359
- # var rgbParams = [red, green, blue].join(',');
7360
- # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
7361
- # `;
7362
- # var rgbToCssColor_ = function(red, green, blue) `
7363
- # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
7364
- # var hexString = rgbNumber.toString(16);
7365
- # var missingZeros = 6 - hexString.length;
7366
- # var resultBuilder = ['#'];
7367
- # for (var i = 0; i < missingZeros; i++) `
7368
- # resultBuilder.push('0');
7369
- # `
7370
- # resultBuilder.push(hexString);
7371
- # return resultBuilder.join('');
7372
- # `;
7373
- # // ...
7374
- # Corresponds to the JSON property `color`
7375
- # @return [Google::Apis::VisionV1::Color]
7376
- attr_accessor :color
7377
-
7378
- # The fraction of pixels the color occupies in the image.
7379
- # Value in range [0, 1].
7380
- # Corresponds to the JSON property `pixelFraction`
7381
- # @return [Float]
7382
- attr_accessor :pixel_fraction
7383
-
7384
- # Image-specific score for this color. Value in range [0, 1].
7385
- # Corresponds to the JSON property `score`
7386
- # @return [Float]
7387
- attr_accessor :score
7388
-
7389
- def initialize(**args)
7390
- update!(**args)
7391
- end
7392
-
7393
- # Update properties of this object
7394
- def update!(**args)
7395
- @color = args[:color] if args.key?(:color)
7396
- @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
7397
- @score = args[:score] if args.key?(:score)
7398
- end
7399
- end
7400
-
7401
- # Single crop hint that is used to generate a new crop when serving an image.
7402
- class GoogleCloudVisionV1p4beta1CropHint
7403
- include Google::Apis::Core::Hashable
7404
-
7405
- # A bounding polygon for the detected image annotation.
7406
- # Corresponds to the JSON property `boundingPoly`
7407
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7408
- attr_accessor :bounding_poly
7409
-
7410
- # Confidence of this being a salient region. Range [0, 1].
7411
- # Corresponds to the JSON property `confidence`
7412
- # @return [Float]
7413
- attr_accessor :confidence
7414
-
7415
- # Fraction of importance of this salient region with respect to the original
7416
- # image.
7417
- # Corresponds to the JSON property `importanceFraction`
7418
- # @return [Float]
7419
- attr_accessor :importance_fraction
7420
-
7421
- def initialize(**args)
7422
- update!(**args)
7423
- end
7424
-
7425
- # Update properties of this object
7426
- def update!(**args)
7427
- @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
7428
- @confidence = args[:confidence] if args.key?(:confidence)
7429
- @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
7430
- end
7431
- end
7432
-
7433
- # Set of crop hints that are used to generate new crops when serving images.
7434
- class GoogleCloudVisionV1p4beta1CropHintsAnnotation
7435
- include Google::Apis::Core::Hashable
7436
-
7437
- # Crop hint results.
7438
- # Corresponds to the JSON property `cropHints`
7439
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1CropHint>]
7440
- attr_accessor :crop_hints
7441
-
7442
- def initialize(**args)
7443
- update!(**args)
7444
- end
7445
-
7446
- # Update properties of this object
7447
- def update!(**args)
7448
- @crop_hints = args[:crop_hints] if args.key?(:crop_hints)
7449
- end
7450
- end
7451
-
7452
- # Set of dominant colors and their corresponding scores.
7453
- class GoogleCloudVisionV1p4beta1DominantColorsAnnotation
7454
- include Google::Apis::Core::Hashable
7455
-
7456
- # RGB color values with their score and pixel fraction.
7457
- # Corresponds to the JSON property `colors`
7458
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ColorInfo>]
7459
- attr_accessor :colors
7460
-
7461
- def initialize(**args)
7462
- update!(**args)
7463
- end
7464
-
7465
- # Update properties of this object
7466
- def update!(**args)
7467
- @colors = args[:colors] if args.key?(:colors)
7468
- end
7469
- end
7470
-
7471
- # Set of detected entity features.
7472
- class GoogleCloudVisionV1p4beta1EntityAnnotation
7473
- include Google::Apis::Core::Hashable
7474
-
7475
- # A bounding polygon for the detected image annotation.
7476
- # Corresponds to the JSON property `boundingPoly`
7477
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7478
- attr_accessor :bounding_poly
7479
-
7480
- # **Deprecated. Use `score` instead.**
7481
- # The accuracy of the entity detection in an image.
7482
- # For example, for an image in which the "Eiffel Tower" entity is detected,
7483
- # this field represents the confidence that there is a tower in the query
7484
- # image. Range [0, 1].
7485
- # Corresponds to the JSON property `confidence`
7486
- # @return [Float]
7487
- attr_accessor :confidence
7488
-
7489
- # Entity textual description, expressed in its `locale` language.
7490
- # Corresponds to the JSON property `description`
7491
- # @return [String]
7492
- attr_accessor :description
7493
-
7494
- # The language code for the locale in which the entity textual
7495
- # `description` is expressed.
7496
- # Corresponds to the JSON property `locale`
7497
- # @return [String]
7498
- attr_accessor :locale
7499
-
7500
- # The location information for the detected entity. Multiple
7501
- # `LocationInfo` elements can be present because one location may
7502
- # indicate the location of the scene in the image, and another location
7503
- # may indicate the location of the place where the image was taken.
7504
- # Location information is usually present for landmarks.
7505
- # Corresponds to the JSON property `locations`
7506
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1LocationInfo>]
7507
- attr_accessor :locations
7508
-
7509
- # Opaque entity ID. Some IDs may be available in
7510
- # [Google Knowledge Graph Search
7511
- # API](https://developers.google.com/knowledge-graph/).
7512
- # Corresponds to the JSON property `mid`
7513
- # @return [String]
7514
- attr_accessor :mid
7515
-
7516
- # Some entities may have optional user-supplied `Property` (name/value)
7517
- # fields, such a score or string that qualifies the entity.
7518
- # Corresponds to the JSON property `properties`
7519
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Property>]
7520
- attr_accessor :properties
7521
-
7522
- # Overall score of the result. Range [0, 1].
7523
- # Corresponds to the JSON property `score`
7524
- # @return [Float]
7525
- attr_accessor :score
7526
-
7527
- # The relevancy of the ICA (Image Content Annotation) label to the
7528
- # image. For example, the relevancy of "tower" is likely higher to an image
7529
- # containing the detected "Eiffel Tower" than to an image containing a
7530
- # detected distant towering building, even though the confidence that
7531
- # there is a tower in each image may be the same. Range [0, 1].
7532
- # Corresponds to the JSON property `topicality`
7533
- # @return [Float]
7534
- attr_accessor :topicality
7535
-
7536
- def initialize(**args)
7537
- update!(**args)
7538
- end
7539
-
7540
- # Update properties of this object
7541
- def update!(**args)
7542
- @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
7543
- @confidence = args[:confidence] if args.key?(:confidence)
7544
- @description = args[:description] if args.key?(:description)
7545
- @locale = args[:locale] if args.key?(:locale)
7546
- @locations = args[:locations] if args.key?(:locations)
7547
- @mid = args[:mid] if args.key?(:mid)
7548
- @properties = args[:properties] if args.key?(:properties)
7549
- @score = args[:score] if args.key?(:score)
7550
- @topicality = args[:topicality] if args.key?(:topicality)
7551
- end
7552
- end
7553
-
7554
- # A face annotation object contains the results of face detection.
7555
- class GoogleCloudVisionV1p4beta1FaceAnnotation
7556
- include Google::Apis::Core::Hashable
7557
-
7558
- # Anger likelihood.
7559
- # Corresponds to the JSON property `angerLikelihood`
7560
- # @return [String]
7561
- attr_accessor :anger_likelihood
7562
-
7563
- # Blurred likelihood.
7564
- # Corresponds to the JSON property `blurredLikelihood`
7565
- # @return [String]
7566
- attr_accessor :blurred_likelihood
7567
-
7568
- # A bounding polygon for the detected image annotation.
7569
- # Corresponds to the JSON property `boundingPoly`
7570
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7571
- attr_accessor :bounding_poly
7572
-
7573
- # Detection confidence. Range [0, 1].
7574
- # Corresponds to the JSON property `detectionConfidence`
7575
- # @return [Float]
7576
- attr_accessor :detection_confidence
7577
-
7578
- # A bounding polygon for the detected image annotation.
7579
- # Corresponds to the JSON property `fdBoundingPoly`
7580
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7581
- attr_accessor :fd_bounding_poly
7582
-
7583
- # Headwear likelihood.
7584
- # Corresponds to the JSON property `headwearLikelihood`
7585
- # @return [String]
7586
- attr_accessor :headwear_likelihood
7587
-
7588
- # Joy likelihood.
7589
- # Corresponds to the JSON property `joyLikelihood`
7590
- # @return [String]
7591
- attr_accessor :joy_likelihood
7592
-
7593
- # Face landmarking confidence. Range [0, 1].
7594
- # Corresponds to the JSON property `landmarkingConfidence`
7595
- # @return [Float]
7596
- attr_accessor :landmarking_confidence
7597
-
7598
- # Detected face landmarks.
7599
- # Corresponds to the JSON property `landmarks`
7600
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark>]
7601
- attr_accessor :landmarks
7602
-
7603
- # Yaw angle, which indicates the leftward/rightward angle that the face is
7604
- # pointing relative to the vertical plane perpendicular to the image. Range
7605
- # [-180,180].
7606
- # Corresponds to the JSON property `panAngle`
7607
- # @return [Float]
7608
- attr_accessor :pan_angle
7609
-
7610
- # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
7611
- # of the face relative to the image vertical about the axis perpendicular to
7612
- # the face. Range [-180,180].
7613
- # Corresponds to the JSON property `rollAngle`
7614
- # @return [Float]
7615
- attr_accessor :roll_angle
7616
-
7617
- # Sorrow likelihood.
7618
- # Corresponds to the JSON property `sorrowLikelihood`
7619
- # @return [String]
7620
- attr_accessor :sorrow_likelihood
7621
-
7622
- # Surprise likelihood.
7623
- # Corresponds to the JSON property `surpriseLikelihood`
7624
- # @return [String]
7625
- attr_accessor :surprise_likelihood
7626
-
7627
- # Pitch angle, which indicates the upwards/downwards angle that the face is
7628
- # pointing relative to the image's horizontal plane. Range [-180,180].
7629
- # Corresponds to the JSON property `tiltAngle`
7630
- # @return [Float]
7631
- attr_accessor :tilt_angle
7632
-
7633
- # Under-exposed likelihood.
7634
- # Corresponds to the JSON property `underExposedLikelihood`
7635
- # @return [String]
7636
- attr_accessor :under_exposed_likelihood
7637
-
7638
- def initialize(**args)
7639
- update!(**args)
7640
- end
7641
-
7642
- # Update properties of this object
7643
- def update!(**args)
7644
- @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
7645
- @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
7646
- @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
7647
- @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
7648
- @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
7649
- @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
7650
- @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
7651
- @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
7652
- @landmarks = args[:landmarks] if args.key?(:landmarks)
7653
- @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
7654
- @roll_angle = args[:roll_angle] if args.key?(:roll_angle)
7655
- @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
7656
- @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
7657
- @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
7658
- @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
7659
- end
7660
- end
7661
-
7662
- # A face-specific landmark (for example, a face feature).
7663
- class GoogleCloudVisionV1p4beta1FaceAnnotationLandmark
7664
- include Google::Apis::Core::Hashable
7665
-
7666
- # A 3D position in the image, used primarily for Face detection landmarks.
7667
- # A valid Position must have both x and y coordinates.
7668
- # The position coordinates are in the same scale as the original image.
7669
- # Corresponds to the JSON property `position`
7670
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Position]
7671
- attr_accessor :position
7672
-
7673
- # Face landmark type.
7674
- # Corresponds to the JSON property `type`
7675
- # @return [String]
7676
- attr_accessor :type
7677
-
7678
- def initialize(**args)
7679
- update!(**args)
7680
- end
7681
-
7682
- # Update properties of this object
7683
- def update!(**args)
7684
- @position = args[:position] if args.key?(:position)
7685
- @type = args[:type] if args.key?(:type)
7686
- end
7687
- end
7688
-
7689
- # The Google Cloud Storage location where the output will be written to.
7690
- class GoogleCloudVisionV1p4beta1GcsDestination
7691
- include Google::Apis::Core::Hashable
7692
-
7693
- # Google Cloud Storage URI prefix where the results will be stored. Results
7694
- # will be in JSON format and preceded by its corresponding input URI prefix.
7695
- # This field can either represent a gcs file prefix or gcs directory. In
7696
- # either case, the uri should be unique because in order to get all of the
7697
- # output files, you will need to do a wildcard gcs search on the uri prefix
7698
- # you provide.
7699
- # Examples:
7700
- # * File Prefix: gs://bucket-name/here/filenameprefix The output files
7701
- # will be created in gs://bucket-name/here/ and the names of the
7702
- # output files will begin with "filenameprefix".
7703
- # * Directory Prefix: gs://bucket-name/some/location/ The output files
7704
- # will be created in gs://bucket-name/some/location/ and the names of the
7705
- # output files could be anything because there was no filename prefix
7706
- # specified.
7707
- # If multiple outputs, each response is still AnnotateFileResponse, each of
7708
- # which contains some subset of the full list of AnnotateImageResponse.
7709
- # Multiple outputs can happen if, for example, the output JSON is too large
7710
- # and overflows into multiple sharded files.
7711
- # Corresponds to the JSON property `uri`
7712
- # @return [String]
7713
- attr_accessor :uri
7714
-
7715
- def initialize(**args)
7716
- update!(**args)
7717
- end
7718
-
7719
- # Update properties of this object
7720
- def update!(**args)
7721
- @uri = args[:uri] if args.key?(:uri)
7722
- end
7723
- end
7724
-
7725
- # The Google Cloud Storage location where the input will be read from.
7726
- class GoogleCloudVisionV1p4beta1GcsSource
7727
- include Google::Apis::Core::Hashable
7728
-
7729
- # Google Cloud Storage URI for the input file. This must only be a
7730
- # Google Cloud Storage object. Wildcards are not currently supported.
7731
- # Corresponds to the JSON property `uri`
7732
- # @return [String]
7733
- attr_accessor :uri
7734
-
7735
- def initialize(**args)
7736
- update!(**args)
7737
- end
7738
-
7739
- # Update properties of this object
7740
- def update!(**args)
7741
- @uri = args[:uri] if args.key?(:uri)
7742
- end
7743
- end
7744
-
7745
- # If an image was produced from a file (e.g. a PDF), this message gives
7746
- # information about the source of that image.
7747
- class GoogleCloudVisionV1p4beta1ImageAnnotationContext
7748
- include Google::Apis::Core::Hashable
7749
-
7750
- # If the file was a PDF or TIFF, this field gives the page number within
7751
- # the file used to produce the image.
7752
- # Corresponds to the JSON property `pageNumber`
7753
- # @return [Fixnum]
7754
- attr_accessor :page_number
7755
-
7756
- # The URI of the file used to produce the image.
7757
- # Corresponds to the JSON property `uri`
7758
- # @return [String]
7759
- attr_accessor :uri
7760
-
7761
- def initialize(**args)
7762
- update!(**args)
7763
- end
7764
-
7765
- # Update properties of this object
7766
- def update!(**args)
7767
- @page_number = args[:page_number] if args.key?(:page_number)
7768
- @uri = args[:uri] if args.key?(:uri)
7769
- end
7770
- end
7771
-
7772
- # Stores image properties, such as dominant colors.
7773
- class GoogleCloudVisionV1p4beta1ImageProperties
7774
- include Google::Apis::Core::Hashable
7775
-
7776
- # Set of dominant colors and their corresponding scores.
7777
- # Corresponds to the JSON property `dominantColors`
7778
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1DominantColorsAnnotation]
7779
- attr_accessor :dominant_colors
7780
-
7781
- def initialize(**args)
7782
- update!(**args)
7783
- end
7784
-
7785
- # Update properties of this object
7786
- def update!(**args)
7787
- @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
7788
- end
7789
- end
7790
-
7791
- # Stores image quality scores, could be aesthetic quality or technical quality.
7792
- class GoogleCloudVisionV1p4beta1ImageQuality
7793
- include Google::Apis::Core::Hashable
7794
-
7795
- # A score representing the aesthetic/technical quality of the image. The
7796
- # score is in range [0, 1]. Higher value corresponds to more professional
7797
- # looking photos. 0 means the image looks very bad, 1 means the image with
7798
- # very high quality.
7799
- # Corresponds to the JSON property `qualityScore`
7800
- # @return [Float]
7801
- attr_accessor :quality_score
7802
-
7803
- def initialize(**args)
7804
- update!(**args)
7805
- end
7806
-
7807
- # Update properties of this object
7808
- def update!(**args)
7809
- @quality_score = args[:quality_score] if args.key?(:quality_score)
7810
- end
7811
- end
7812
-
7813
- # Response message for the `ImportProductSets` method.
7814
- # This message is returned by the
7815
- # google.longrunning.Operations.GetOperation method in the returned
7816
- # google.longrunning.Operation.response field.
7817
- class GoogleCloudVisionV1p4beta1ImportProductSetsResponse
7818
- include Google::Apis::Core::Hashable
7819
-
7820
- # The list of reference_images that are imported successfully.
7821
- # Corresponds to the JSON property `referenceImages`
7822
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ReferenceImage>]
7823
- attr_accessor :reference_images
7824
-
7825
- # The rpc status for each ImportProductSet request, including both successes
7826
- # and errors.
7827
- # The number of statuses here matches the number of lines in the csv file,
7828
- # and statuses[i] stores the success or failure status of processing the i-th
7829
- # line of the csv, starting from line 0.
7830
- # Corresponds to the JSON property `statuses`
7831
- # @return [Array<Google::Apis::VisionV1::Status>]
7832
- attr_accessor :statuses
7833
-
7834
- def initialize(**args)
7835
- update!(**args)
7836
- end
7837
-
7838
- # Update properties of this object
7839
- def update!(**args)
7840
- @reference_images = args[:reference_images] if args.key?(:reference_images)
7841
- @statuses = args[:statuses] if args.key?(:statuses)
7842
- end
7843
- end
7844
-
7845
- # The desired input location and metadata.
7846
- class GoogleCloudVisionV1p4beta1InputConfig
7847
- include Google::Apis::Core::Hashable
7848
-
7849
- # File content, represented as a stream of bytes.
7850
- # Note: As with all `bytes` fields, protobuffers use a pure binary
7851
- # representation, whereas JSON representations use base64.
7852
- # Currently, this field only works for BatchAnnotateFiles requests. It does
7853
- # not work for AsyncBatchAnnotateFiles requests.
7854
- # Corresponds to the JSON property `content`
7855
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
7856
- # @return [String]
7857
- attr_accessor :content
7858
-
7859
- # The Google Cloud Storage location where the input will be read from.
7860
- # Corresponds to the JSON property `gcsSource`
7861
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1GcsSource]
7862
- attr_accessor :gcs_source
7863
-
7864
- # The type of the file. Currently only "application/pdf", "image/tiff" and
7865
- # "image/gif" are supported. Wildcards are not supported.
7866
- # Corresponds to the JSON property `mimeType`
7867
- # @return [String]
7868
- attr_accessor :mime_type
7869
-
7870
- def initialize(**args)
7871
- update!(**args)
7872
- end
7873
-
7874
- # Update properties of this object
7875
- def update!(**args)
7876
- @content = args[:content] if args.key?(:content)
7877
- @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
7878
- @mime_type = args[:mime_type] if args.key?(:mime_type)
7879
- end
7880
- end
7881
-
7882
- # Set of detected objects with bounding boxes.
7883
- class GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation
7884
- include Google::Apis::Core::Hashable
7885
-
7886
- # A bounding polygon for the detected image annotation.
7887
- # Corresponds to the JSON property `boundingPoly`
7888
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7889
- attr_accessor :bounding_poly
7890
-
7891
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
7892
- # information, see
7893
- # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
7894
- # Corresponds to the JSON property `languageCode`
7895
- # @return [String]
7896
- attr_accessor :language_code
7897
-
7898
- # Object ID that should align with EntityAnnotation mid.
7899
- # Corresponds to the JSON property `mid`
7900
- # @return [String]
7901
- attr_accessor :mid
7902
-
7903
- # Object name, expressed in its `language_code` language.
7904
- # Corresponds to the JSON property `name`
7905
- # @return [String]
7906
- attr_accessor :name
7907
-
7908
- # Score of the result. Range [0, 1].
7909
- # Corresponds to the JSON property `score`
7910
- # @return [Float]
7911
- attr_accessor :score
7912
-
7913
- def initialize(**args)
7914
- update!(**args)
7915
- end
7916
-
7917
- # Update properties of this object
7918
- def update!(**args)
7919
- @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
7920
- @language_code = args[:language_code] if args.key?(:language_code)
7921
- @mid = args[:mid] if args.key?(:mid)
7922
- @name = args[:name] if args.key?(:name)
7923
- @score = args[:score] if args.key?(:score)
7924
- end
7925
- end
7926
-
7927
- # Detected entity location information.
7928
- class GoogleCloudVisionV1p4beta1LocationInfo
7929
- include Google::Apis::Core::Hashable
7930
-
7931
- # An object representing a latitude/longitude pair. This is expressed as a pair
7932
- # of doubles representing degrees latitude and degrees longitude. Unless
7933
- # specified otherwise, this must conform to the
7934
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
7935
- # standard</a>. Values must be within normalized ranges.
7936
- # Corresponds to the JSON property `latLng`
7937
- # @return [Google::Apis::VisionV1::LatLng]
7938
- attr_accessor :lat_lng
7939
-
7940
- def initialize(**args)
7941
- update!(**args)
7942
- end
7943
-
7944
- # Update properties of this object
7945
- def update!(**args)
7946
- @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
7947
- end
7948
- end
7949
-
7950
- # A vertex represents a 2D point in the image.
7951
- # NOTE: the normalized vertex coordinates are relative to the original image
7952
- # and range from 0 to 1.
7953
- class GoogleCloudVisionV1p4beta1NormalizedVertex
7954
- include Google::Apis::Core::Hashable
7955
-
7956
- # X coordinate.
7957
- # Corresponds to the JSON property `x`
7958
- # @return [Float]
7959
- attr_accessor :x
7960
-
7961
- # Y coordinate.
7962
- # Corresponds to the JSON property `y`
7963
- # @return [Float]
7964
- attr_accessor :y
7965
-
7966
- def initialize(**args)
7967
- update!(**args)
7968
- end
7969
-
7970
- # Update properties of this object
7971
- def update!(**args)
7972
- @x = args[:x] if args.key?(:x)
7973
- @y = args[:y] if args.key?(:y)
7974
- end
7975
- end
7976
-
7977
- # Contains metadata for the BatchAnnotateImages operation.
7978
- class GoogleCloudVisionV1p4beta1OperationMetadata
7979
- include Google::Apis::Core::Hashable
7980
-
7981
- # The time when the batch request was received.
7982
- # Corresponds to the JSON property `createTime`
7983
- # @return [String]
7984
- attr_accessor :create_time
7985
-
7986
- # Current state of the batch operation.
7987
- # Corresponds to the JSON property `state`
7988
- # @return [String]
7989
- attr_accessor :state
7990
-
7991
- # The time when the operation result was last updated.
7992
- # Corresponds to the JSON property `updateTime`
7993
- # @return [String]
7994
- attr_accessor :update_time
7995
-
7996
- def initialize(**args)
7997
- update!(**args)
7998
- end
7999
-
8000
- # Update properties of this object
8001
- def update!(**args)
8002
- @create_time = args[:create_time] if args.key?(:create_time)
8003
- @state = args[:state] if args.key?(:state)
8004
- @update_time = args[:update_time] if args.key?(:update_time)
8005
- end
8006
- end
8007
-
8008
- # The desired output location and metadata.
8009
- class GoogleCloudVisionV1p4beta1OutputConfig
8010
- include Google::Apis::Core::Hashable
8011
-
8012
- # The max number of response protos to put into each output JSON file on
8013
- # Google Cloud Storage.
8014
- # The valid range is [1, 100]. If not specified, the default value is 20.
8015
- # For example, for one pdf file with 100 pages, 100 response protos will
8016
- # be generated. If `batch_size` = 20, then 5 json files each
8017
- # containing 20 response protos will be written under the prefix
8018
- # `gcs_destination`.`uri`.
8019
- # Currently, batch_size only applies to GcsDestination, with potential future
8020
- # support for other output configurations.
8021
- # Corresponds to the JSON property `batchSize`
8022
- # @return [Fixnum]
8023
- attr_accessor :batch_size
8024
-
8025
- # The Google Cloud Storage location where the output will be written to.
8026
- # Corresponds to the JSON property `gcsDestination`
8027
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1GcsDestination]
8028
- attr_accessor :gcs_destination
8029
-
8030
- def initialize(**args)
8031
- update!(**args)
8032
- end
8033
-
8034
- # Update properties of this object
8035
- def update!(**args)
8036
- @batch_size = args[:batch_size] if args.key?(:batch_size)
8037
- @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
8038
- end
8039
- end
8040
-
8041
- # Detected page from OCR.
8042
- class GoogleCloudVisionV1p4beta1Page
8043
- include Google::Apis::Core::Hashable
8044
-
8045
- # List of blocks of text, images etc on this page.
8046
- # Corresponds to the JSON property `blocks`
8047
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Block>]
8048
- attr_accessor :blocks
8049
-
8050
- # Confidence of the OCR results on the page. Range [0, 1].
8051
- # Corresponds to the JSON property `confidence`
8052
- # @return [Float]
8053
- attr_accessor :confidence
8054
-
8055
- # Page height. For PDFs the unit is points. For images (including
8056
- # TIFFs) the unit is pixels.
8057
- # Corresponds to the JSON property `height`
8058
- # @return [Fixnum]
8059
- attr_accessor :height
8060
-
8061
- # Additional information detected on the structural component.
8062
- # Corresponds to the JSON property `property`
8063
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
8064
- attr_accessor :property
8065
-
8066
- # Page width. For PDFs the unit is points. For images (including
8067
- # TIFFs) the unit is pixels.
8068
- # Corresponds to the JSON property `width`
8069
- # @return [Fixnum]
8070
- attr_accessor :width
8071
-
8072
- def initialize(**args)
8073
- update!(**args)
8074
- end
8075
-
8076
- # Update properties of this object
8077
- def update!(**args)
8078
- @blocks = args[:blocks] if args.key?(:blocks)
8079
- @confidence = args[:confidence] if args.key?(:confidence)
8080
- @height = args[:height] if args.key?(:height)
8081
- @property = args[:property] if args.key?(:property)
8082
- @width = args[:width] if args.key?(:width)
8083
- end
8084
- end
8085
-
8086
- # Structural unit of text representing a number of words in certain order.
8087
- class GoogleCloudVisionV1p4beta1Paragraph
8088
- include Google::Apis::Core::Hashable
8089
-
8090
- # A bounding polygon for the detected image annotation.
8091
- # Corresponds to the JSON property `boundingBox`
8092
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
8093
- attr_accessor :bounding_box
8094
-
8095
- # Confidence of the OCR results for the paragraph. Range [0, 1].
8096
- # Corresponds to the JSON property `confidence`
8097
- # @return [Float]
8098
- attr_accessor :confidence
8099
-
8100
- # Additional information detected on the structural component.
8101
- # Corresponds to the JSON property `property`
8102
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
8103
- attr_accessor :property
8104
-
8105
- # List of all words in this paragraph.
8106
- # Corresponds to the JSON property `words`
8107
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Word>]
8108
- attr_accessor :words
8109
-
8110
- def initialize(**args)
8111
- update!(**args)
8112
- end
8113
-
8114
- # Update properties of this object
8115
- def update!(**args)
8116
- @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
8117
- @confidence = args[:confidence] if args.key?(:confidence)
8118
- @property = args[:property] if args.key?(:property)
8119
- @words = args[:words] if args.key?(:words)
8120
- end
8121
- end
8122
-
8123
- # A 3D position in the image, used primarily for Face detection landmarks.
8124
- # A valid Position must have both x and y coordinates.
8125
- # The position coordinates are in the same scale as the original image.
8126
- class GoogleCloudVisionV1p4beta1Position
8127
- include Google::Apis::Core::Hashable
8128
-
8129
- # X coordinate.
8130
- # Corresponds to the JSON property `x`
8131
- # @return [Float]
8132
- attr_accessor :x
8133
-
8134
- # Y coordinate.
8135
- # Corresponds to the JSON property `y`
8136
- # @return [Float]
8137
- attr_accessor :y
8138
-
8139
- # Z coordinate (or depth).
8140
- # Corresponds to the JSON property `z`
8141
- # @return [Float]
8142
- attr_accessor :z
8143
-
8144
- def initialize(**args)
8145
- update!(**args)
8146
- end
8147
-
8148
- # Update properties of this object
8149
- def update!(**args)
8150
- @x = args[:x] if args.key?(:x)
8151
- @y = args[:y] if args.key?(:y)
8152
- @z = args[:z] if args.key?(:z)
8153
- end
8154
- end
8155
-
8156
- # A Product contains ReferenceImages.
8157
- class GoogleCloudVisionV1p4beta1Product
8158
- include Google::Apis::Core::Hashable
8159
-
8160
- # User-provided metadata to be stored with this product. Must be at most 4096
8161
- # characters long.
8162
- # Corresponds to the JSON property `description`
8163
- # @return [String]
8164
- attr_accessor :description
8165
-
8166
- # The user-provided name for this Product. Must not be empty. Must be at most
8167
- # 4096 characters long.
8168
- # Corresponds to the JSON property `displayName`
8169
- # @return [String]
8170
- attr_accessor :display_name
8171
-
8172
- # The resource name of the product.
8173
- # Format is:
8174
- # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
8175
- # This field is ignored when creating a product.
8176
- # Corresponds to the JSON property `name`
8177
- # @return [String]
8178
- attr_accessor :name
8179
-
8180
- # The category for the product identified by the reference image. This should
8181
- # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
8182
- # "homegoods", "apparel", and "toys" are still supported, but these should
8183
- # not be used for new products.
8184
- # This field is immutable.
8185
- # Corresponds to the JSON property `productCategory`
8186
- # @return [String]
8187
- attr_accessor :product_category
8188
-
8189
- # Key-value pairs that can be attached to a product. At query time,
8190
- # constraints can be specified based on the product_labels.
8191
- # Note that integer values can be provided as strings, e.g. "1199". Only
8192
- # strings with integer values can match a range-based restriction which is
8193
- # to be supported soon.
8194
- # Multiple values can be assigned to the same key. One product may have up to
8195
- # 500 product_labels.
8196
- # Notice that the total number of distinct product_labels over all products
8197
- # in one ProductSet cannot exceed 1M, otherwise the product search pipeline
8198
- # will refuse to work for that ProductSet.
8199
- # Corresponds to the JSON property `productLabels`
8200
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductKeyValue>]
8201
- attr_accessor :product_labels
8202
-
8203
- def initialize(**args)
8204
- update!(**args)
8205
- end
8206
-
8207
- # Update properties of this object
8208
- def update!(**args)
8209
- @description = args[:description] if args.key?(:description)
8210
- @display_name = args[:display_name] if args.key?(:display_name)
8211
- @name = args[:name] if args.key?(:name)
8212
- @product_category = args[:product_category] if args.key?(:product_category)
8213
- @product_labels = args[:product_labels] if args.key?(:product_labels)
8214
- end
8215
- end
8216
-
8217
- # A product label represented as a key-value pair.
8218
- class GoogleCloudVisionV1p4beta1ProductKeyValue
8219
- include Google::Apis::Core::Hashable
8220
-
8221
- # The key of the label attached to the product. Cannot be empty and cannot
8222
- # exceed 128 bytes.
8223
- # Corresponds to the JSON property `key`
8224
- # @return [String]
8225
- attr_accessor :key
8226
-
8227
- # The value of the label attached to the product. Cannot be empty and
8228
- # cannot exceed 128 bytes.
8229
- # Corresponds to the JSON property `value`
8230
- # @return [String]
8231
- attr_accessor :value
8232
-
8233
- def initialize(**args)
8234
- update!(**args)
8235
- end
8236
-
8237
- # Update properties of this object
8238
- def update!(**args)
8239
- @key = args[:key] if args.key?(:key)
8240
- @value = args[:value] if args.key?(:value)
8241
- end
8242
- end
8243
-
8244
- # Results for a product search request.
8245
- class GoogleCloudVisionV1p4beta1ProductSearchResults
8246
- include Google::Apis::Core::Hashable
8247
-
8248
- # Timestamp of the index which provided these results. Products added to the
8249
- # product set and products removed from the product set after this time are
8250
- # not reflected in the current results.
8251
- # Corresponds to the JSON property `indexTime`
8252
- # @return [String]
8253
- attr_accessor :index_time
8254
-
8255
- # List of results grouped by products detected in the query image. Each entry
8256
- # corresponds to one bounding polygon in the query image, and contains the
8257
- # matching products specific to that region. There may be duplicate product
8258
- # matches in the union of all the per-product results.
8259
- # Corresponds to the JSON property `productGroupedResults`
8260
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult>]
8261
- attr_accessor :product_grouped_results
8262
-
8263
- # List of results, one for each product match.
8264
- # Corresponds to the JSON property `results`
8265
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult>]
8266
- attr_accessor :results
8267
-
8268
- def initialize(**args)
8269
- update!(**args)
8270
- end
8271
-
8272
- # Update properties of this object
8273
- def update!(**args)
8274
- @index_time = args[:index_time] if args.key?(:index_time)
8275
- @product_grouped_results = args[:product_grouped_results] if args.key?(:product_grouped_results)
8276
- @results = args[:results] if args.key?(:results)
8277
- end
8278
- end
8279
-
8280
- # Information about the products similar to a single product in a query
8281
- # image.
8282
- class GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult
8283
- include Google::Apis::Core::Hashable
8284
-
8285
- # A bounding polygon for the detected image annotation.
8286
- # Corresponds to the JSON property `boundingPoly`
8287
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
8288
- attr_accessor :bounding_poly
8289
-
8290
- # List of generic predictions for the object in the bounding box.
8291
- # Corresponds to the JSON property `objectAnnotations`
8292
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation>]
8293
- attr_accessor :object_annotations
8294
-
8295
- # List of results, one for each product match.
8296
- # Corresponds to the JSON property `results`
8297
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult>]
8298
- attr_accessor :results
8299
-
8300
- def initialize(**args)
8301
- update!(**args)
8302
- end
8303
-
8304
- # Update properties of this object
8305
- def update!(**args)
8306
- @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
8307
- @object_annotations = args[:object_annotations] if args.key?(:object_annotations)
8308
- @results = args[:results] if args.key?(:results)
8309
- end
8310
- end
8311
-
8312
- # Prediction for what the object in the bounding box is.
8313
- class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
8314
- include Google::Apis::Core::Hashable
8315
-
8316
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
8317
- # information, see
8318
- # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
8319
- # Corresponds to the JSON property `languageCode`
8320
- # @return [String]
8321
- attr_accessor :language_code
8322
-
8323
- # Object ID that should align with EntityAnnotation mid.
8324
- # Corresponds to the JSON property `mid`
8325
- # @return [String]
8326
- attr_accessor :mid
8327
-
8328
- # Object name, expressed in its `language_code` language.
8329
- # Corresponds to the JSON property `name`
8330
- # @return [String]
8331
- attr_accessor :name
8332
-
8333
- # Score of the result. Range [0, 1].
8334
- # Corresponds to the JSON property `score`
8335
- # @return [Float]
8336
- attr_accessor :score
8337
-
8338
- def initialize(**args)
8339
- update!(**args)
8340
- end
8341
-
8342
- # Update properties of this object
8343
- def update!(**args)
8344
- @language_code = args[:language_code] if args.key?(:language_code)
8345
- @mid = args[:mid] if args.key?(:mid)
8346
- @name = args[:name] if args.key?(:name)
8347
- @score = args[:score] if args.key?(:score)
8348
- end
8349
- end
8350
-
8351
- # Information about a product.
8352
- class GoogleCloudVisionV1p4beta1ProductSearchResultsResult
8353
- include Google::Apis::Core::Hashable
8354
-
8355
- # The resource name of the image from the product that is the closest match
8356
- # to the query.
8357
- # Corresponds to the JSON property `image`
8358
- # @return [String]
8359
- attr_accessor :image
8360
-
8361
- # A Product contains ReferenceImages.
8362
- # Corresponds to the JSON property `product`
8363
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Product]
8364
- attr_accessor :product
8365
-
8366
- # A confidence level on the match, ranging from 0 (no confidence) to
8367
- # 1 (full confidence).
8368
- # Corresponds to the JSON property `score`
8369
- # @return [Float]
8370
- attr_accessor :score
8371
-
8372
- def initialize(**args)
8373
- update!(**args)
8374
- end
8375
-
8376
- # Update properties of this object
8377
- def update!(**args)
8378
- @image = args[:image] if args.key?(:image)
8379
- @product = args[:product] if args.key?(:product)
8380
- @score = args[:score] if args.key?(:score)
8381
- end
8382
- end
8383
-
8384
- # A `Property` consists of a user-supplied name/value pair.
8385
- class GoogleCloudVisionV1p4beta1Property
8386
- include Google::Apis::Core::Hashable
8387
-
8388
- # Name of the property.
8389
- # Corresponds to the JSON property `name`
8390
- # @return [String]
8391
- attr_accessor :name
8392
-
8393
- # Value of numeric properties.
8394
- # Corresponds to the JSON property `uint64Value`
8395
- # @return [Fixnum]
8396
- attr_accessor :uint64_value
8397
-
8398
- # Value of the property.
8399
- # Corresponds to the JSON property `value`
8400
- # @return [String]
8401
- attr_accessor :value
8402
-
8403
- def initialize(**args)
8404
- update!(**args)
8405
- end
8406
-
8407
- # Update properties of this object
8408
- def update!(**args)
8409
- @name = args[:name] if args.key?(:name)
8410
- @uint64_value = args[:uint64_value] if args.key?(:uint64_value)
8411
- @value = args[:value] if args.key?(:value)
8412
- end
8413
- end
8414
-
8415
- # Stores enhanced image bytes.
8416
- class GoogleCloudVisionV1p4beta1QualityOptimizationResult
8417
- include Google::Apis::Core::Hashable
8418
-
8419
- # Optimized image bytes.
8420
- # Corresponds to the JSON property `image`
8421
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
8422
- # @return [String]
8423
- attr_accessor :image
8424
-
8425
- # Mime type of the output image.
8426
- # Corresponds to the JSON property `mimeType`
8427
- # @return [String]
8428
- attr_accessor :mime_type
8429
-
8430
- # Required optimization type.
8431
- # Corresponds to the JSON property `qualityOptimizationType`
8432
- # @return [String]
8433
- attr_accessor :quality_optimization_type
8434
-
8435
- def initialize(**args)
8436
- update!(**args)
8437
- end
8438
-
8439
- # Update properties of this object
8440
- def update!(**args)
8441
- @image = args[:image] if args.key?(:image)
8442
- @mime_type = args[:mime_type] if args.key?(:mime_type)
8443
- @quality_optimization_type = args[:quality_optimization_type] if args.key?(:quality_optimization_type)
8444
- end
8445
- end
8446
-
8447
- # A `ReferenceImage` represents a product image and its associated metadata,
8448
- # such as bounding boxes.
8449
- class GoogleCloudVisionV1p4beta1ReferenceImage
8450
- include Google::Apis::Core::Hashable
8451
-
8452
- # Bounding polygons around the areas of interest in the reference image.
8453
- # Optional. If this field is empty, the system will try to detect regions of
8454
- # interest. At most 10 bounding polygons will be used.
8455
- # The provided shape is converted into a non-rotated rectangle. Once
8456
- # converted, the small edge of the rectangle must be greater than or equal
8457
- # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
8458
- # is not).
8459
- # Corresponds to the JSON property `boundingPolys`
8460
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly>]
8461
- attr_accessor :bounding_polys
8462
-
8463
- # The resource name of the reference image.
8464
- # Format is:
8465
- # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
8466
- # IMAGE_ID`.
8467
- # This field is ignored when creating a reference image.
8468
- # Corresponds to the JSON property `name`
8469
- # @return [String]
8470
- attr_accessor :name
8471
-
8472
- # The Google Cloud Storage URI of the reference image.
8473
- # The URI must start with `gs://`.
8474
- # Required.
8475
- # Corresponds to the JSON property `uri`
8476
- # @return [String]
8477
- attr_accessor :uri
8478
-
8479
- def initialize(**args)
8480
- update!(**args)
8481
- end
8482
-
8483
- # Update properties of this object
8484
- def update!(**args)
8485
- @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
8486
- @name = args[:name] if args.key?(:name)
8487
- @uri = args[:uri] if args.key?(:uri)
8488
- end
8489
- end
8490
-
8491
- # Set of features pertaining to the image, computed by computer vision
8492
- # methods over safe-search verticals (for example, adult, spoof, medical,
8493
- # violence).
8494
- class GoogleCloudVisionV1p4beta1SafeSearchAnnotation
8495
- include Google::Apis::Core::Hashable
8496
-
8497
- # Represents the adult content likelihood for the image. Adult content may
8498
- # contain elements such as nudity, pornographic images or cartoons, or
8499
- # sexual activities.
8500
- # Corresponds to the JSON property `adult`
8501
- # @return [String]
8502
- attr_accessor :adult
8503
-
8504
- # Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
8505
- # very confident.
8506
- # Corresponds to the JSON property `adultConfidence`
8507
- # @return [Float]
8508
- attr_accessor :adult_confidence
8509
-
8510
- # Likelihood that this is a medical image.
8511
- # Corresponds to the JSON property `medical`
8512
- # @return [String]
8513
- attr_accessor :medical
8514
-
8515
- # Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
8516
- # very confident.
8517
- # Corresponds to the JSON property `medicalConfidence`
8518
- # @return [Float]
8519
- attr_accessor :medical_confidence
8520
-
8521
- # Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
8522
- # confident.
8523
- # Corresponds to the JSON property `nsfwConfidence`
8524
- # @return [Float]
8525
- attr_accessor :nsfw_confidence
8526
-
8527
- # Likelihood that the request image contains racy content. Racy content may
8528
- # include (but is not limited to) skimpy or sheer clothing, strategically
8529
- # covered nudity, lewd or provocative poses, or close-ups of sensitive
8530
- # body areas.
8531
- # Corresponds to the JSON property `racy`
8532
- # @return [String]
8533
- attr_accessor :racy
8534
-
8535
- # Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
8536
- # confident.
8537
- # Corresponds to the JSON property `racyConfidence`
8538
- # @return [Float]
8539
- attr_accessor :racy_confidence
8540
-
8541
- # Spoof likelihood. The likelihood that an modification
8542
- # was made to the image's canonical version to make it appear
8543
- # funny or offensive.
8544
- # Corresponds to the JSON property `spoof`
8545
- # @return [String]
8546
- attr_accessor :spoof
8547
-
8548
- # Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
8549
- # very confident.
8550
- # Corresponds to the JSON property `spoofConfidence`
8551
- # @return [Float]
8552
- attr_accessor :spoof_confidence
8553
-
8554
- # Likelihood that this image contains violent content.
8555
- # Corresponds to the JSON property `violence`
8556
- # @return [String]
8557
- attr_accessor :violence
8558
-
8559
- # Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
8560
- # very confident.
8561
- # Corresponds to the JSON property `violenceConfidence`
8562
- # @return [Float]
8563
- attr_accessor :violence_confidence
8564
-
8565
- def initialize(**args)
8566
- update!(**args)
8567
- end
8568
-
8569
- # Update properties of this object
8570
- def update!(**args)
8571
- @adult = args[:adult] if args.key?(:adult)
8572
- @adult_confidence = args[:adult_confidence] if args.key?(:adult_confidence)
8573
- @medical = args[:medical] if args.key?(:medical)
8574
- @medical_confidence = args[:medical_confidence] if args.key?(:medical_confidence)
8575
- @nsfw_confidence = args[:nsfw_confidence] if args.key?(:nsfw_confidence)
8576
- @racy = args[:racy] if args.key?(:racy)
8577
- @racy_confidence = args[:racy_confidence] if args.key?(:racy_confidence)
8578
- @spoof = args[:spoof] if args.key?(:spoof)
8579
- @spoof_confidence = args[:spoof_confidence] if args.key?(:spoof_confidence)
8580
- @violence = args[:violence] if args.key?(:violence)
8581
- @violence_confidence = args[:violence_confidence] if args.key?(:violence_confidence)
8582
- end
8583
- end
8584
-
8585
- # A single symbol representation.
8586
- class GoogleCloudVisionV1p4beta1Symbol
8587
- include Google::Apis::Core::Hashable
8588
-
8589
- # A bounding polygon for the detected image annotation.
8590
- # Corresponds to the JSON property `boundingBox`
8591
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
8592
- attr_accessor :bounding_box
8593
-
8594
- # Confidence of the OCR results for the symbol. Range [0, 1].
8595
- # Corresponds to the JSON property `confidence`
8596
- # @return [Float]
8597
- attr_accessor :confidence
8598
-
8599
- # Additional information detected on the structural component.
8600
- # Corresponds to the JSON property `property`
8601
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
8602
- attr_accessor :property
8603
-
8604
- # The actual UTF-8 representation of the symbol.
8605
- # Corresponds to the JSON property `text`
8606
- # @return [String]
8607
- attr_accessor :text
8608
-
8609
- def initialize(**args)
8610
- update!(**args)
8611
- end
8612
-
8613
- # Update properties of this object
8614
- def update!(**args)
8615
- @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
8616
- @confidence = args[:confidence] if args.key?(:confidence)
8617
- @property = args[:property] if args.key?(:property)
8618
- @text = args[:text] if args.key?(:text)
8619
- end
8620
- end
8621
-
8622
- # TextAnnotation contains a structured representation of OCR extracted text.
8623
- # The hierarchy of an OCR extracted text structure is like this:
8624
- # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
8625
- # Each structural component, starting from Page, may further have their own
8626
- # properties. Properties describe detected languages, breaks etc.. Please refer
8627
- # to the TextAnnotation.TextProperty message definition below for more
8628
- # detail.
8629
- class GoogleCloudVisionV1p4beta1TextAnnotation
8630
- include Google::Apis::Core::Hashable
8631
-
8632
- # List of pages detected by OCR.
8633
- # Corresponds to the JSON property `pages`
8634
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Page>]
8635
- attr_accessor :pages
8636
-
8637
- # UTF-8 text detected on the pages.
8638
- # Corresponds to the JSON property `text`
8639
- # @return [String]
8640
- attr_accessor :text
8641
-
8642
- def initialize(**args)
8643
- update!(**args)
8644
- end
8645
-
8646
- # Update properties of this object
8647
- def update!(**args)
8648
- @pages = args[:pages] if args.key?(:pages)
8649
- @text = args[:text] if args.key?(:text)
8650
- end
8651
- end
8652
-
8653
- # Detected start or end of a structural component.
8654
- class GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak
8655
- include Google::Apis::Core::Hashable
8656
-
8657
- # True if break prepends the element.
8658
- # Corresponds to the JSON property `isPrefix`
8659
- # @return [Boolean]
8660
- attr_accessor :is_prefix
8661
- alias_method :is_prefix?, :is_prefix
8662
-
8663
- # Detected break type.
8664
- # Corresponds to the JSON property `type`
8665
- # @return [String]
8666
- attr_accessor :type
8667
-
8668
- def initialize(**args)
8669
- update!(**args)
8670
- end
8671
-
8672
- # Update properties of this object
8673
- def update!(**args)
8674
- @is_prefix = args[:is_prefix] if args.key?(:is_prefix)
8675
- @type = args[:type] if args.key?(:type)
8676
- end
8677
- end
8678
-
8679
- # Detected language for a structural component.
8680
- class GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage
8681
- include Google::Apis::Core::Hashable
8682
-
8683
- # Confidence of detected language. Range [0, 1].
8684
- # Corresponds to the JSON property `confidence`
8685
- # @return [Float]
8686
- attr_accessor :confidence
8687
-
8688
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
8689
- # information, see
8690
- # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
8691
- # Corresponds to the JSON property `languageCode`
8692
- # @return [String]
8693
- attr_accessor :language_code
8694
-
8695
- def initialize(**args)
8696
- update!(**args)
8697
- end
8698
-
8699
- # Update properties of this object
8700
- def update!(**args)
8701
- @confidence = args[:confidence] if args.key?(:confidence)
8702
- @language_code = args[:language_code] if args.key?(:language_code)
8703
- end
8704
- end
8705
-
8706
- # Additional information detected on the structural component.
8707
- class GoogleCloudVisionV1p4beta1TextAnnotationTextProperty
8708
- include Google::Apis::Core::Hashable
8709
-
8710
- # Detected start or end of a structural component.
8711
- # Corresponds to the JSON property `detectedBreak`
8712
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak]
8713
- attr_accessor :detected_break
8714
-
8715
- # A list of detected languages together with confidence.
8716
- # Corresponds to the JSON property `detectedLanguages`
8717
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage>]
8718
- attr_accessor :detected_languages
8719
-
8720
- def initialize(**args)
8721
- update!(**args)
8722
- end
8723
-
8724
- # Update properties of this object
8725
- def update!(**args)
8726
- @detected_break = args[:detected_break] if args.key?(:detected_break)
8727
- @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
8728
- end
8729
- end
8730
-
8731
- # A vertex represents a 2D point in the image.
8732
- # NOTE: the vertex coordinates are in the same scale as the original image.
8733
- class GoogleCloudVisionV1p4beta1Vertex
8734
- include Google::Apis::Core::Hashable
8735
-
8736
- # X coordinate.
8737
- # Corresponds to the JSON property `x`
8738
- # @return [Fixnum]
8739
- attr_accessor :x
8740
-
8741
- # Y coordinate.
8742
- # Corresponds to the JSON property `y`
8743
- # @return [Fixnum]
8744
- attr_accessor :y
8745
-
8746
- def initialize(**args)
8747
- update!(**args)
8748
- end
8749
-
8750
- # Update properties of this object
8751
- def update!(**args)
8752
- @x = args[:x] if args.key?(:x)
8753
- @y = args[:y] if args.key?(:y)
8754
- end
8755
- end
8756
-
8757
- # Relevant information for the image from the Internet.
8758
- class GoogleCloudVisionV1p4beta1WebDetection
8759
- include Google::Apis::Core::Hashable
8760
-
8761
- # The service's best guess as to the topic of the request image.
8762
- # Inferred from similar images on the open web.
8763
- # Corresponds to the JSON property `bestGuessLabels`
8764
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebLabel>]
8765
- attr_accessor :best_guess_labels
8766
-
8767
- # Fully matching images from the Internet.
8768
- # Can include resized copies of the query image.
8769
- # Corresponds to the JSON property `fullMatchingImages`
8770
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
8771
- attr_accessor :full_matching_images
8772
-
8773
- # Web pages containing the matching images from the Internet.
8774
- # Corresponds to the JSON property `pagesWithMatchingImages`
8775
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebPage>]
8776
- attr_accessor :pages_with_matching_images
8777
-
8778
- # Partial matching images from the Internet.
8779
- # Those images are similar enough to share some key-point features. For
8780
- # example an original image will likely have partial matching for its crops.
8781
- # Corresponds to the JSON property `partialMatchingImages`
8782
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
8783
- attr_accessor :partial_matching_images
8784
-
8785
- # The visually similar image results.
8786
- # Corresponds to the JSON property `visuallySimilarImages`
8787
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
8788
- attr_accessor :visually_similar_images
8789
-
8790
- # Deduced entities from similar images on the Internet.
8791
- # Corresponds to the JSON property `webEntities`
8792
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebEntity>]
8793
- attr_accessor :web_entities
8794
-
8795
- def initialize(**args)
8796
- update!(**args)
8797
- end
8798
-
8799
- # Update properties of this object
8800
- def update!(**args)
8801
- @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
8802
- @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
8803
- @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
8804
- @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
8805
- @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
8806
- @web_entities = args[:web_entities] if args.key?(:web_entities)
8807
- end
8808
- end
8809
-
8810
- # Entity deduced from similar images on the Internet.
8811
- class GoogleCloudVisionV1p4beta1WebDetectionWebEntity
8812
- include Google::Apis::Core::Hashable
8813
-
8814
- # Canonical description of the entity, in English.
8815
- # Corresponds to the JSON property `description`
8816
- # @return [String]
8817
- attr_accessor :description
8818
-
8819
- # Opaque entity ID.
8820
- # Corresponds to the JSON property `entityId`
8821
- # @return [String]
8822
- attr_accessor :entity_id
8823
-
8824
- # Overall relevancy score for the entity.
8825
- # Not normalized and not comparable across different image queries.
8826
- # Corresponds to the JSON property `score`
8827
- # @return [Float]
8828
- attr_accessor :score
8829
-
8830
- def initialize(**args)
8831
- update!(**args)
8832
- end
8833
-
8834
- # Update properties of this object
8835
- def update!(**args)
8836
- @description = args[:description] if args.key?(:description)
8837
- @entity_id = args[:entity_id] if args.key?(:entity_id)
8838
- @score = args[:score] if args.key?(:score)
8839
- end
8840
- end
8841
-
8842
- # Metadata for online images.
8843
- class GoogleCloudVisionV1p4beta1WebDetectionWebImage
8844
- include Google::Apis::Core::Hashable
8845
-
8846
- # (Deprecated) Overall relevancy score for the image.
8847
- # Corresponds to the JSON property `score`
8848
- # @return [Float]
8849
- attr_accessor :score
8850
-
8851
- # The result image URL.
8852
- # Corresponds to the JSON property `url`
8853
- # @return [String]
8854
- attr_accessor :url
8855
-
8856
- def initialize(**args)
8857
- update!(**args)
8858
- end
8859
-
8860
- # Update properties of this object
8861
- def update!(**args)
8862
- @score = args[:score] if args.key?(:score)
8863
- @url = args[:url] if args.key?(:url)
8864
- end
8865
- end
8866
-
8867
- # Label to provide extra metadata for the web detection.
8868
- class GoogleCloudVisionV1p4beta1WebDetectionWebLabel
8869
- include Google::Apis::Core::Hashable
8870
-
8871
- # Label for extra metadata.
8872
- # Corresponds to the JSON property `label`
8873
- # @return [String]
8874
- attr_accessor :label
8875
-
8876
- # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
8877
- # For more information, see
8878
- # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
8879
- # Corresponds to the JSON property `languageCode`
8880
- # @return [String]
8881
- attr_accessor :language_code
8882
-
8883
- def initialize(**args)
8884
- update!(**args)
8885
- end
8886
-
8887
- # Update properties of this object
8888
- def update!(**args)
8889
- @label = args[:label] if args.key?(:label)
8890
- @language_code = args[:language_code] if args.key?(:language_code)
8891
- end
8892
- end
8893
-
8894
- # Metadata for web pages.
8895
- class GoogleCloudVisionV1p4beta1WebDetectionWebPage
8896
- include Google::Apis::Core::Hashable
8897
-
8898
- # Fully matching images on the page.
8899
- # Can include resized copies of the query image.
8900
- # Corresponds to the JSON property `fullMatchingImages`
8901
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
8902
- attr_accessor :full_matching_images
8903
-
8904
- # Title for the web page, may contain HTML markups.
8905
- # Corresponds to the JSON property `pageTitle`
8906
- # @return [String]
8907
- attr_accessor :page_title
8908
-
8909
- # Partial matching images on the page.
8910
- # Those images are similar enough to share some key-point features. For
8911
- # example an original image will likely have partial matching for its
8912
- # crops.
8913
- # Corresponds to the JSON property `partialMatchingImages`
8914
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
8915
- attr_accessor :partial_matching_images
8916
-
8917
- # (Deprecated) Overall relevancy score for the web page.
8918
- # Corresponds to the JSON property `score`
8919
- # @return [Float]
8920
- attr_accessor :score
8921
-
8922
- # The result web page URL.
8923
- # Corresponds to the JSON property `url`
8924
- # @return [String]
8925
- attr_accessor :url
8926
-
8927
- def initialize(**args)
8928
- update!(**args)
8929
- end
8930
-
8931
- # Update properties of this object
8932
- def update!(**args)
8933
- @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
8934
- @page_title = args[:page_title] if args.key?(:page_title)
8935
- @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
8936
- @score = args[:score] if args.key?(:score)
8937
- @url = args[:url] if args.key?(:url)
8938
- end
8939
- end
8940
-
8941
- # A word representation.
8942
- class GoogleCloudVisionV1p4beta1Word
8943
- include Google::Apis::Core::Hashable
8944
-
8945
- # A bounding polygon for the detected image annotation.
8946
- # Corresponds to the JSON property `boundingBox`
8947
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
8948
- attr_accessor :bounding_box
8949
-
8950
- # Confidence of the OCR results for the word. Range [0, 1].
8951
- # Corresponds to the JSON property `confidence`
8952
- # @return [Float]
8953
- attr_accessor :confidence
8954
-
8955
- # Additional information detected on the structural component.
8956
- # Corresponds to the JSON property `property`
8957
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
8958
- attr_accessor :property
8959
-
8960
- # List of symbols in the word.
8961
- # The order of the symbols follows the natural reading order.
8962
- # Corresponds to the JSON property `symbols`
8963
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Symbol>]
8964
- attr_accessor :symbols
8965
-
8966
- def initialize(**args)
8967
- update!(**args)
8968
- end
8969
-
8970
- # Update properties of this object
8971
- def update!(**args)
8972
- @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
8973
- @confidence = args[:confidence] if args.key?(:confidence)
8974
- @property = args[:property] if args.key?(:property)
8975
- @symbols = args[:symbols] if args.key?(:symbols)
8976
- end
8977
- end
8978
-
8979
- # Response to a single file annotation request. A file may contain one or more
8980
- # images, which individually have their own responses.
8981
- class GoogleCloudVisionV1p5beta1AnnotateFileResponse
8982
- include Google::Apis::Core::Hashable
8983
-
8984
- # The `Status` type defines a logical error model that is suitable for
8985
- # different programming environments, including REST APIs and RPC APIs. It is
8986
- # used by [gRPC](https://github.com/grpc). Each `Status` message contains
8987
- # three pieces of data: error code, error message, and error details.
8988
- # You can find out more about this error model and how to work with it in the
8989
- # [API Design Guide](https://cloud.google.com/apis/design/errors).
8990
- # Corresponds to the JSON property `error`
8991
- # @return [Google::Apis::VisionV1::Status]
8992
- attr_accessor :error
8993
-
8994
- # The desired input location and metadata.
8995
- # Corresponds to the JSON property `inputConfig`
8996
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1InputConfig]
8997
- attr_accessor :input_config
8998
-
8999
- # Individual responses to images found within the file. This field will be
9000
- # empty if the `error` field is set.
9001
- # Corresponds to the JSON property `responses`
9002
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AnnotateImageResponse>]
9003
- attr_accessor :responses
9004
-
9005
- # This field gives the total number of pages in the file.
9006
- # Corresponds to the JSON property `totalPages`
9007
- # @return [Fixnum]
9008
- attr_accessor :total_pages
9009
-
9010
- def initialize(**args)
9011
- update!(**args)
9012
- end
9013
-
9014
- # Update properties of this object
9015
- def update!(**args)
9016
- @error = args[:error] if args.key?(:error)
9017
- @input_config = args[:input_config] if args.key?(:input_config)
9018
- @responses = args[:responses] if args.key?(:responses)
9019
- @total_pages = args[:total_pages] if args.key?(:total_pages)
9020
- end
9021
- end
9022
-
9023
- # Response to an image annotation request.
9024
- class GoogleCloudVisionV1p5beta1AnnotateImageResponse
9025
- include Google::Apis::Core::Hashable
9026
-
9027
- # If an image was produced from a file (e.g. a PDF), this message gives
9028
- # information about the source of that image.
9029
- # Corresponds to the JSON property `context`
9030
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ImageAnnotationContext]
9031
- attr_accessor :context
9032
-
9033
- # Set of crop hints that are used to generate new crops when serving images.
9034
- # Corresponds to the JSON property `cropHintsAnnotation`
9035
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1CropHintsAnnotation]
9036
- attr_accessor :crop_hints_annotation
9037
-
9038
- # The `Status` type defines a logical error model that is suitable for
9039
- # different programming environments, including REST APIs and RPC APIs. It is
9040
- # used by [gRPC](https://github.com/grpc). Each `Status` message contains
9041
- # three pieces of data: error code, error message, and error details.
9042
- # You can find out more about this error model and how to work with it in the
9043
- # [API Design Guide](https://cloud.google.com/apis/design/errors).
9044
- # Corresponds to the JSON property `error`
9045
- # @return [Google::Apis::VisionV1::Status]
9046
- attr_accessor :error
9047
-
9048
- # If present, face detection has completed successfully.
9049
- # Corresponds to the JSON property `faceAnnotations`
9050
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1FaceAnnotation>]
9051
- attr_accessor :face_annotations
9052
-
9053
- # TextAnnotation contains a structured representation of OCR extracted text.
9054
- # The hierarchy of an OCR extracted text structure is like this:
9055
- # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
9056
- # Each structural component, starting from Page, may further have their own
9057
- # properties. Properties describe detected languages, breaks etc.. Please refer
9058
- # to the TextAnnotation.TextProperty message definition below for more
9059
- # detail.
9060
- # Corresponds to the JSON property `fullTextAnnotation`
9061
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotation]
9062
- attr_accessor :full_text_annotation
9063
-
9064
- # Stores image properties, such as dominant colors.
9065
- # Corresponds to the JSON property `imagePropertiesAnnotation`
9066
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ImageProperties]
9067
- attr_accessor :image_properties_annotation
9068
-
7008
+ # Stores image quality scores, could be aesthetic quality or technical quality.
7009
+ # Corresponds to the JSON property `imageQualityAnnotation`
7010
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageQuality]
7011
+ attr_accessor :image_quality_annotation
7012
+
9069
7013
  # If present, label detection has completed successfully.
9070
7014
  # Corresponds to the JSON property `labelAnnotations`
9071
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
7015
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
9072
7016
  attr_accessor :label_annotations
9073
7017
 
9074
7018
  # If present, landmark detection has completed successfully.
9075
7019
  # Corresponds to the JSON property `landmarkAnnotations`
9076
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
7020
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
9077
7021
  attr_accessor :landmark_annotations
9078
7022
 
9079
7023
  # If present, localized object detection has completed successfully.
9080
7024
  # This will be sorted descending by confidence score.
9081
7025
  # Corresponds to the JSON property `localizedObjectAnnotations`
9082
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation>]
7026
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation>]
9083
7027
  attr_accessor :localized_object_annotations
9084
7028
 
9085
7029
  # If present, logo detection has completed successfully.
9086
7030
  # Corresponds to the JSON property `logoAnnotations`
9087
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
7031
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
9088
7032
  attr_accessor :logo_annotations
9089
7033
 
9090
7034
  # Results for a product search request.
9091
7035
  # Corresponds to the JSON property `productSearchResults`
9092
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResults]
7036
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResults]
9093
7037
  attr_accessor :product_search_results
9094
7038
 
7039
+ # Stores enhanced image bytes.
7040
+ # Corresponds to the JSON property `qualityOptimizationResult`
7041
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1QualityOptimizationResult]
7042
+ attr_accessor :quality_optimization_result
7043
+
9095
7044
  # Set of features pertaining to the image, computed by computer vision
9096
7045
  # methods over safe-search verticals (for example, adult, spoof, medical,
9097
7046
  # violence).
9098
7047
  # Corresponds to the JSON property `safeSearchAnnotation`
9099
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1SafeSearchAnnotation]
7048
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1SafeSearchAnnotation]
9100
7049
  attr_accessor :safe_search_annotation
9101
7050
 
9102
7051
  # If present, text (OCR) detection has completed successfully.
9103
7052
  # Corresponds to the JSON property `textAnnotations`
9104
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
7053
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
9105
7054
  attr_accessor :text_annotations
9106
7055
 
9107
7056
  # Relevant information for the image from the Internet.
9108
7057
  # Corresponds to the JSON property `webDetection`
9109
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetection]
7058
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetection]
9110
7059
  attr_accessor :web_detection
9111
7060
 
9112
7061
  def initialize(**args)
@@ -9121,11 +7070,13 @@ module Google
9121
7070
  @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
9122
7071
  @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
9123
7072
  @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
7073
+ @image_quality_annotation = args[:image_quality_annotation] if args.key?(:image_quality_annotation)
9124
7074
  @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
9125
7075
  @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
9126
7076
  @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
9127
7077
  @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
9128
7078
  @product_search_results = args[:product_search_results] if args.key?(:product_search_results)
7079
+ @quality_optimization_result = args[:quality_optimization_result] if args.key?(:quality_optimization_result)
9129
7080
  @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
9130
7081
  @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
9131
7082
  @web_detection = args[:web_detection] if args.key?(:web_detection)
@@ -9133,12 +7084,12 @@ module Google
9133
7084
  end
9134
7085
 
9135
7086
  # The response for a single offline file annotation request.
9136
- class GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse
7087
+ class GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse
9137
7088
  include Google::Apis::Core::Hashable
9138
7089
 
9139
7090
  # The desired output location and metadata.
9140
7091
  # Corresponds to the JSON property `outputConfig`
9141
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1OutputConfig]
7092
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1OutputConfig]
9142
7093
  attr_accessor :output_config
9143
7094
 
9144
7095
  def initialize(**args)
@@ -9152,13 +7103,13 @@ module Google
9152
7103
  end
9153
7104
 
9154
7105
  # Response to an async batch file annotation request.
9155
- class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateFilesResponse
7106
+ class GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse
9156
7107
  include Google::Apis::Core::Hashable
9157
7108
 
9158
7109
  # The list of file annotation responses, one for each request in
9159
7110
  # AsyncBatchAnnotateFilesRequest.
9160
7111
  # Corresponds to the JSON property `responses`
9161
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse>]
7112
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse>]
9162
7113
  attr_accessor :responses
9163
7114
 
9164
7115
  def initialize(**args)
@@ -9172,12 +7123,12 @@ module Google
9172
7123
  end
9173
7124
 
9174
7125
  # Response to an async batch image annotation request.
9175
- class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateImagesResponse
7126
+ class GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse
9176
7127
  include Google::Apis::Core::Hashable
9177
7128
 
9178
7129
  # The desired output location and metadata.
9179
7130
  # Corresponds to the JSON property `outputConfig`
9180
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1OutputConfig]
7131
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1OutputConfig]
9181
7132
  attr_accessor :output_config
9182
7133
 
9183
7134
  def initialize(**args)
@@ -9191,13 +7142,13 @@ module Google
9191
7142
  end
9192
7143
 
9193
7144
  # A list of file annotation responses.
9194
- class GoogleCloudVisionV1p5beta1BatchAnnotateFilesResponse
7145
+ class GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse
9195
7146
  include Google::Apis::Core::Hashable
9196
7147
 
9197
7148
  # The list of file annotation responses, each response corresponding to each
9198
7149
  # AnnotateFileRequest in BatchAnnotateFilesRequest.
9199
7150
  # Corresponds to the JSON property `responses`
9200
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AnnotateFileResponse>]
7151
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AnnotateFileResponse>]
9201
7152
  attr_accessor :responses
9202
7153
 
9203
7154
  def initialize(**args)
@@ -9213,7 +7164,7 @@ module Google
9213
7164
  # Metadata for the batch operations such as the current state.
9214
7165
  # This is included in the `metadata` field of the `Operation` returned by the
9215
7166
  # `GetOperation` call of the `google::longrunning::Operations` service.
9216
- class GoogleCloudVisionV1p5beta1BatchOperationMetadata
7167
+ class GoogleCloudVisionV1p4beta1BatchOperationMetadata
9217
7168
  include Google::Apis::Core::Hashable
9218
7169
 
9219
7170
  # The time when the batch request is finished and
@@ -9245,7 +7196,7 @@ module Google
9245
7196
  end
9246
7197
 
9247
7198
  # Logical element on the page.
9248
- class GoogleCloudVisionV1p5beta1Block
7199
+ class GoogleCloudVisionV1p4beta1Block
9249
7200
  include Google::Apis::Core::Hashable
9250
7201
 
9251
7202
  # Detected block type (text, image etc) for this block.
@@ -9255,7 +7206,7 @@ module Google
9255
7206
 
9256
7207
  # A bounding polygon for the detected image annotation.
9257
7208
  # Corresponds to the JSON property `boundingBox`
9258
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
7209
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
9259
7210
  attr_accessor :bounding_box
9260
7211
 
9261
7212
  # Confidence of the OCR results on the block. Range [0, 1].
@@ -9263,33 +7214,16 @@ module Google
9263
7214
  # @return [Float]
9264
7215
  attr_accessor :confidence
9265
7216
 
9266
- # Proto for a key value pair.
9267
- # Corresponds to the JSON property `keyValuePair`
9268
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1KeyValuePair]
9269
- attr_accessor :key_value_pair
9270
-
9271
- # All UTF-8 text detected in this block. This field is by default not
9272
- # returned unless specified in TextDetectionParams.block_filter or
9273
- # DocumentParsingParams.block_filter.
9274
- # Corresponds to the JSON property `mergedText`
9275
- # @return [String]
9276
- attr_accessor :merged_text
9277
-
9278
7217
  # List of paragraphs in this block (if this blocks is of type text).
9279
7218
  # Corresponds to the JSON property `paragraphs`
9280
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Paragraph>]
7219
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Paragraph>]
9281
7220
  attr_accessor :paragraphs
9282
7221
 
9283
7222
  # Additional information detected on the structural component.
9284
7223
  # Corresponds to the JSON property `property`
9285
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
7224
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
9286
7225
  attr_accessor :property
9287
7226
 
9288
- # A table representation similar to HTML table structure.
9289
- # Corresponds to the JSON property `table`
9290
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Table]
9291
- attr_accessor :table
9292
-
9293
7227
  def initialize(**args)
9294
7228
  update!(**args)
9295
7229
  end
@@ -9299,26 +7233,23 @@ module Google
9299
7233
  @block_type = args[:block_type] if args.key?(:block_type)
9300
7234
  @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
9301
7235
  @confidence = args[:confidence] if args.key?(:confidence)
9302
- @key_value_pair = args[:key_value_pair] if args.key?(:key_value_pair)
9303
- @merged_text = args[:merged_text] if args.key?(:merged_text)
9304
7236
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
9305
7237
  @property = args[:property] if args.key?(:property)
9306
- @table = args[:table] if args.key?(:table)
9307
7238
  end
9308
7239
  end
9309
7240
 
9310
7241
  # A bounding polygon for the detected image annotation.
9311
- class GoogleCloudVisionV1p5beta1BoundingPoly
7242
+ class GoogleCloudVisionV1p4beta1BoundingPoly
9312
7243
  include Google::Apis::Core::Hashable
9313
7244
 
9314
7245
  # The bounding polygon normalized vertices.
9315
7246
  # Corresponds to the JSON property `normalizedVertices`
9316
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1NormalizedVertex>]
7247
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1NormalizedVertex>]
9317
7248
  attr_accessor :normalized_vertices
9318
7249
 
9319
7250
  # The bounding polygon vertices.
9320
7251
  # Corresponds to the JSON property `vertices`
9321
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Vertex>]
7252
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Vertex>]
9322
7253
  attr_accessor :vertices
9323
7254
 
9324
7255
  def initialize(**args)
@@ -9334,7 +7265,7 @@ module Google
9334
7265
 
9335
7266
  # Color information consists of RGB channels, score, and the fraction of
9336
7267
  # the image that the color occupies in the image.
9337
- class GoogleCloudVisionV1p5beta1ColorInfo
7268
+ class GoogleCloudVisionV1p4beta1ColorInfo
9338
7269
  include Google::Apis::Core::Hashable
9339
7270
 
9340
7271
  # Represents a color in the RGBA color space. This representation is designed
@@ -9468,12 +7399,12 @@ module Google
9468
7399
  end
9469
7400
 
9470
7401
  # Single crop hint that is used to generate a new crop when serving an image.
9471
- class GoogleCloudVisionV1p5beta1CropHint
7402
+ class GoogleCloudVisionV1p4beta1CropHint
9472
7403
  include Google::Apis::Core::Hashable
9473
7404
 
9474
7405
  # A bounding polygon for the detected image annotation.
9475
7406
  # Corresponds to the JSON property `boundingPoly`
9476
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
7407
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
9477
7408
  attr_accessor :bounding_poly
9478
7409
 
9479
7410
  # Confidence of this being a salient region. Range [0, 1].
@@ -9500,12 +7431,12 @@ module Google
9500
7431
  end
9501
7432
 
9502
7433
  # Set of crop hints that are used to generate new crops when serving images.
9503
- class GoogleCloudVisionV1p5beta1CropHintsAnnotation
7434
+ class GoogleCloudVisionV1p4beta1CropHintsAnnotation
9504
7435
  include Google::Apis::Core::Hashable
9505
7436
 
9506
7437
  # Crop hint results.
9507
7438
  # Corresponds to the JSON property `cropHints`
9508
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1CropHint>]
7439
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1CropHint>]
9509
7440
  attr_accessor :crop_hints
9510
7441
 
9511
7442
  def initialize(**args)
@@ -9519,12 +7450,12 @@ module Google
9519
7450
  end
9520
7451
 
9521
7452
  # Set of dominant colors and their corresponding scores.
9522
- class GoogleCloudVisionV1p5beta1DominantColorsAnnotation
7453
+ class GoogleCloudVisionV1p4beta1DominantColorsAnnotation
9523
7454
  include Google::Apis::Core::Hashable
9524
7455
 
9525
7456
  # RGB color values with their score and pixel fraction.
9526
7457
  # Corresponds to the JSON property `colors`
9527
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ColorInfo>]
7458
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ColorInfo>]
9528
7459
  attr_accessor :colors
9529
7460
 
9530
7461
  def initialize(**args)
@@ -9538,12 +7469,12 @@ module Google
9538
7469
  end
9539
7470
 
9540
7471
  # Set of detected entity features.
9541
- class GoogleCloudVisionV1p5beta1EntityAnnotation
7472
+ class GoogleCloudVisionV1p4beta1EntityAnnotation
9542
7473
  include Google::Apis::Core::Hashable
9543
7474
 
9544
7475
  # A bounding polygon for the detected image annotation.
9545
7476
  # Corresponds to the JSON property `boundingPoly`
9546
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
7477
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
9547
7478
  attr_accessor :bounding_poly
9548
7479
 
9549
7480
  # **Deprecated. Use `score` instead.**
@@ -9572,7 +7503,7 @@ module Google
9572
7503
  # may indicate the location of the place where the image was taken.
9573
7504
  # Location information is usually present for landmarks.
9574
7505
  # Corresponds to the JSON property `locations`
9575
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1LocationInfo>]
7506
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1LocationInfo>]
9576
7507
  attr_accessor :locations
9577
7508
 
9578
7509
  # Opaque entity ID. Some IDs may be available in
@@ -9585,7 +7516,7 @@ module Google
9585
7516
  # Some entities may have optional user-supplied `Property` (name/value)
9586
7517
  # fields, such a score or string that qualifies the entity.
9587
7518
  # Corresponds to the JSON property `properties`
9588
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Property>]
7519
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Property>]
9589
7520
  attr_accessor :properties
9590
7521
 
9591
7522
  # Overall score of the result. Range [0, 1].
@@ -9621,7 +7552,7 @@ module Google
9621
7552
  end
9622
7553
 
9623
7554
  # A face annotation object contains the results of face detection.
9624
- class GoogleCloudVisionV1p5beta1FaceAnnotation
7555
+ class GoogleCloudVisionV1p4beta1FaceAnnotation
9625
7556
  include Google::Apis::Core::Hashable
9626
7557
 
9627
7558
  # Anger likelihood.
@@ -9636,7 +7567,7 @@ module Google
9636
7567
 
9637
7568
  # A bounding polygon for the detected image annotation.
9638
7569
  # Corresponds to the JSON property `boundingPoly`
9639
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
7570
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
9640
7571
  attr_accessor :bounding_poly
9641
7572
 
9642
7573
  # Detection confidence. Range [0, 1].
@@ -9646,7 +7577,7 @@ module Google
9646
7577
 
9647
7578
  # A bounding polygon for the detected image annotation.
9648
7579
  # Corresponds to the JSON property `fdBoundingPoly`
9649
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
7580
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
9650
7581
  attr_accessor :fd_bounding_poly
9651
7582
 
9652
7583
  # Headwear likelihood.
@@ -9666,7 +7597,7 @@ module Google
9666
7597
 
9667
7598
  # Detected face landmarks.
9668
7599
  # Corresponds to the JSON property `landmarks`
9669
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1FaceAnnotationLandmark>]
7600
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark>]
9670
7601
  attr_accessor :landmarks
9671
7602
 
9672
7603
  # Yaw angle, which indicates the leftward/rightward angle that the face is
@@ -9729,14 +7660,14 @@ module Google
9729
7660
  end
9730
7661
 
9731
7662
  # A face-specific landmark (for example, a face feature).
9732
- class GoogleCloudVisionV1p5beta1FaceAnnotationLandmark
7663
+ class GoogleCloudVisionV1p4beta1FaceAnnotationLandmark
9733
7664
  include Google::Apis::Core::Hashable
9734
7665
 
9735
7666
  # A 3D position in the image, used primarily for Face detection landmarks.
9736
7667
  # A valid Position must have both x and y coordinates.
9737
7668
  # The position coordinates are in the same scale as the original image.
9738
7669
  # Corresponds to the JSON property `position`
9739
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Position]
7670
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Position]
9740
7671
  attr_accessor :position
9741
7672
 
9742
7673
  # Face landmark type.
@@ -9756,7 +7687,7 @@ module Google
9756
7687
  end
9757
7688
 
9758
7689
  # The Google Cloud Storage location where the output will be written to.
9759
- class GoogleCloudVisionV1p5beta1GcsDestination
7690
+ class GoogleCloudVisionV1p4beta1GcsDestination
9760
7691
  include Google::Apis::Core::Hashable
9761
7692
 
9762
7693
  # Google Cloud Storage URI prefix where the results will be stored. Results
@@ -9792,7 +7723,7 @@ module Google
9792
7723
  end
9793
7724
 
9794
7725
  # The Google Cloud Storage location where the input will be read from.
9795
- class GoogleCloudVisionV1p5beta1GcsSource
7726
+ class GoogleCloudVisionV1p4beta1GcsSource
9796
7727
  include Google::Apis::Core::Hashable
9797
7728
 
9798
7729
  # Google Cloud Storage URI for the input file. This must only be a
@@ -9813,7 +7744,7 @@ module Google
9813
7744
 
9814
7745
  # If an image was produced from a file (e.g. a PDF), this message gives
9815
7746
  # information about the source of that image.
9816
- class GoogleCloudVisionV1p5beta1ImageAnnotationContext
7747
+ class GoogleCloudVisionV1p4beta1ImageAnnotationContext
9817
7748
  include Google::Apis::Core::Hashable
9818
7749
 
9819
7750
  # If the file was a PDF or TIFF, this field gives the page number within
@@ -9839,12 +7770,12 @@ module Google
9839
7770
  end
9840
7771
 
9841
7772
  # Stores image properties, such as dominant colors.
9842
- class GoogleCloudVisionV1p5beta1ImageProperties
7773
+ class GoogleCloudVisionV1p4beta1ImageProperties
9843
7774
  include Google::Apis::Core::Hashable
9844
7775
 
9845
7776
  # Set of dominant colors and their corresponding scores.
9846
7777
  # Corresponds to the JSON property `dominantColors`
9847
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation]
7778
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1DominantColorsAnnotation]
9848
7779
  attr_accessor :dominant_colors
9849
7780
 
9850
7781
  def initialize(**args)
@@ -9857,16 +7788,38 @@ module Google
9857
7788
  end
9858
7789
  end
9859
7790
 
7791
+ # Stores image quality scores, could be aesthetic quality or technical quality.
7792
+ class GoogleCloudVisionV1p4beta1ImageQuality
7793
+ include Google::Apis::Core::Hashable
7794
+
7795
+ # A score representing the aesthetic/technical quality of the image. The
7796
+ # score is in range [0, 1]. Higher value corresponds to more professional
7797
+ # looking photos. 0 means the image looks very bad, 1 means the image with
7798
+ # very high quality.
7799
+ # Corresponds to the JSON property `qualityScore`
7800
+ # @return [Float]
7801
+ attr_accessor :quality_score
7802
+
7803
+ def initialize(**args)
7804
+ update!(**args)
7805
+ end
7806
+
7807
+ # Update properties of this object
7808
+ def update!(**args)
7809
+ @quality_score = args[:quality_score] if args.key?(:quality_score)
7810
+ end
7811
+ end
7812
+
9860
7813
  # Response message for the `ImportProductSets` method.
9861
7814
  # This message is returned by the
9862
7815
  # google.longrunning.Operations.GetOperation method in the returned
9863
7816
  # google.longrunning.Operation.response field.
9864
- class GoogleCloudVisionV1p5beta1ImportProductSetsResponse
7817
+ class GoogleCloudVisionV1p4beta1ImportProductSetsResponse
9865
7818
  include Google::Apis::Core::Hashable
9866
7819
 
9867
7820
  # The list of reference_images that are imported successfully.
9868
7821
  # Corresponds to the JSON property `referenceImages`
9869
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ReferenceImage>]
7822
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ReferenceImage>]
9870
7823
  attr_accessor :reference_images
9871
7824
 
9872
7825
  # The rpc status for each ImportProductSet request, including both successes
@@ -9890,7 +7843,7 @@ module Google
9890
7843
  end
9891
7844
 
9892
7845
  # The desired input location and metadata.
9893
- class GoogleCloudVisionV1p5beta1InputConfig
7846
+ class GoogleCloudVisionV1p4beta1InputConfig
9894
7847
  include Google::Apis::Core::Hashable
9895
7848
 
9896
7849
  # File content, represented as a stream of bytes.
@@ -9905,7 +7858,7 @@ module Google
9905
7858
 
9906
7859
  # The Google Cloud Storage location where the input will be read from.
9907
7860
  # Corresponds to the JSON property `gcsSource`
9908
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1GcsSource]
7861
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1GcsSource]
9909
7862
  attr_accessor :gcs_source
9910
7863
 
9911
7864
  # The type of the file. Currently only "application/pdf", "image/tiff" and
@@ -9926,66 +7879,13 @@ module Google
9926
7879
  end
9927
7880
  end
9928
7881
 
9929
- # Proto for a key value pair.
9930
- class GoogleCloudVisionV1p5beta1KeyValuePair
9931
- include Google::Apis::Core::Hashable
9932
-
9933
- # The key string value.
9934
- # Corresponds to the JSON property `key`
9935
- # @return [String]
9936
- attr_accessor :key
9937
-
9938
- # Logical element on the page.
9939
- # Corresponds to the JSON property `keyBlock`
9940
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block]
9941
- attr_accessor :key_block
9942
-
9943
- # Optional. The translation of key text if the text is not in English.
9944
- # Corresponds to the JSON property `normalizedKey`
9945
- # @return [String]
9946
- attr_accessor :normalized_key
9947
-
9948
- # Logical element on the page.
9949
- # Corresponds to the JSON property `valueBlock`
9950
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block]
9951
- attr_accessor :value_block
9952
-
9953
- # Type of the value. Valid strings are the following:
9954
- # "generic" - For generic text that is mapped to a value.
9955
- # "number" - for numeric types
9956
- # "id" - for generic identifiers.
9957
- # "currency" - for currency values.
9958
- # "date" - for dates.
9959
- # "time" - for time and duration values.
9960
- # "date_range" - for date ranges.
9961
- # "address" - for address values (can be long).
9962
- # "person" - for names of people or other personal identifiers.
9963
- # "phone" - for phone numbers.
9964
- # Corresponds to the JSON property `valueType`
9965
- # @return [String]
9966
- attr_accessor :value_type
9967
-
9968
- def initialize(**args)
9969
- update!(**args)
9970
- end
9971
-
9972
- # Update properties of this object
9973
- def update!(**args)
9974
- @key = args[:key] if args.key?(:key)
9975
- @key_block = args[:key_block] if args.key?(:key_block)
9976
- @normalized_key = args[:normalized_key] if args.key?(:normalized_key)
9977
- @value_block = args[:value_block] if args.key?(:value_block)
9978
- @value_type = args[:value_type] if args.key?(:value_type)
9979
- end
9980
- end
9981
-
9982
7882
  # Set of detected objects with bounding boxes.
9983
- class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation
7883
+ class GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation
9984
7884
  include Google::Apis::Core::Hashable
9985
7885
 
9986
7886
  # A bounding polygon for the detected image annotation.
9987
7887
  # Corresponds to the JSON property `boundingPoly`
9988
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
7888
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
9989
7889
  attr_accessor :bounding_poly
9990
7890
 
9991
7891
  # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
@@ -10025,7 +7925,7 @@ module Google
10025
7925
  end
10026
7926
 
10027
7927
  # Detected entity location information.
10028
- class GoogleCloudVisionV1p5beta1LocationInfo
7928
+ class GoogleCloudVisionV1p4beta1LocationInfo
10029
7929
  include Google::Apis::Core::Hashable
10030
7930
 
10031
7931
  # An object representing a latitude/longitude pair. This is expressed as a pair
@@ -10050,7 +7950,7 @@ module Google
10050
7950
  # A vertex represents a 2D point in the image.
10051
7951
  # NOTE: the normalized vertex coordinates are relative to the original image
10052
7952
  # and range from 0 to 1.
10053
- class GoogleCloudVisionV1p5beta1NormalizedVertex
7953
+ class GoogleCloudVisionV1p4beta1NormalizedVertex
10054
7954
  include Google::Apis::Core::Hashable
10055
7955
 
10056
7956
  # X coordinate.
@@ -10075,7 +7975,7 @@ module Google
10075
7975
  end
10076
7976
 
10077
7977
  # Contains metadata for the BatchAnnotateImages operation.
10078
- class GoogleCloudVisionV1p5beta1OperationMetadata
7978
+ class GoogleCloudVisionV1p4beta1OperationMetadata
10079
7979
  include Google::Apis::Core::Hashable
10080
7980
 
10081
7981
  # The time when the batch request was received.
@@ -10106,7 +8006,7 @@ module Google
10106
8006
  end
10107
8007
 
10108
8008
  # The desired output location and metadata.
10109
- class GoogleCloudVisionV1p5beta1OutputConfig
8009
+ class GoogleCloudVisionV1p4beta1OutputConfig
10110
8010
  include Google::Apis::Core::Hashable
10111
8011
 
10112
8012
  # The max number of response protos to put into each output JSON file on
@@ -10124,7 +8024,7 @@ module Google
10124
8024
 
10125
8025
  # The Google Cloud Storage location where the output will be written to.
10126
8026
  # Corresponds to the JSON property `gcsDestination`
10127
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1GcsDestination]
8027
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1GcsDestination]
10128
8028
  attr_accessor :gcs_destination
10129
8029
 
10130
8030
  def initialize(**args)
@@ -10139,12 +8039,12 @@ module Google
10139
8039
  end
10140
8040
 
10141
8041
  # Detected page from OCR.
10142
- class GoogleCloudVisionV1p5beta1Page
8042
+ class GoogleCloudVisionV1p4beta1Page
10143
8043
  include Google::Apis::Core::Hashable
10144
8044
 
10145
8045
  # List of blocks of text, images etc on this page.
10146
8046
  # Corresponds to the JSON property `blocks`
10147
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block>]
8047
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Block>]
10148
8048
  attr_accessor :blocks
10149
8049
 
10150
8050
  # Confidence of the OCR results on the page. Range [0, 1].
@@ -10158,15 +8058,9 @@ module Google
10158
8058
  # @return [Fixnum]
10159
8059
  attr_accessor :height
10160
8060
 
10161
- # All UTF-8 text detected in this page. This field is by default not
10162
- # returned unless specified in TextDetectionParams.page_filter.
10163
- # Corresponds to the JSON property `mergedText`
10164
- # @return [String]
10165
- attr_accessor :merged_text
10166
-
10167
8061
  # Additional information detected on the structural component.
10168
8062
  # Corresponds to the JSON property `property`
10169
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
8063
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
10170
8064
  attr_accessor :property
10171
8065
 
10172
8066
  # Page width. For PDFs the unit is points. For images (including
@@ -10184,19 +8078,18 @@ module Google
10184
8078
  @blocks = args[:blocks] if args.key?(:blocks)
10185
8079
  @confidence = args[:confidence] if args.key?(:confidence)
10186
8080
  @height = args[:height] if args.key?(:height)
10187
- @merged_text = args[:merged_text] if args.key?(:merged_text)
10188
8081
  @property = args[:property] if args.key?(:property)
10189
8082
  @width = args[:width] if args.key?(:width)
10190
8083
  end
10191
8084
  end
10192
8085
 
10193
8086
  # Structural unit of text representing a number of words in certain order.
10194
- class GoogleCloudVisionV1p5beta1Paragraph
8087
+ class GoogleCloudVisionV1p4beta1Paragraph
10195
8088
  include Google::Apis::Core::Hashable
10196
8089
 
10197
8090
  # A bounding polygon for the detected image annotation.
10198
8091
  # Corresponds to the JSON property `boundingBox`
10199
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
8092
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
10200
8093
  attr_accessor :bounding_box
10201
8094
 
10202
8095
  # Confidence of the OCR results for the paragraph. Range [0, 1].
@@ -10204,20 +8097,14 @@ module Google
10204
8097
  # @return [Float]
10205
8098
  attr_accessor :confidence
10206
8099
 
10207
- # All UTF-8 text detected in this paragraph. This field is by default not
10208
- # returned unless specified in TextDetectionParams.paragraph_filter.
10209
- # Corresponds to the JSON property `mergedText`
10210
- # @return [String]
10211
- attr_accessor :merged_text
10212
-
10213
8100
  # Additional information detected on the structural component.
10214
8101
  # Corresponds to the JSON property `property`
10215
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
8102
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
10216
8103
  attr_accessor :property
10217
8104
 
10218
8105
  # List of all words in this paragraph.
10219
8106
  # Corresponds to the JSON property `words`
10220
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Word>]
8107
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Word>]
10221
8108
  attr_accessor :words
10222
8109
 
10223
8110
  def initialize(**args)
@@ -10228,7 +8115,6 @@ module Google
10228
8115
  def update!(**args)
10229
8116
  @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
10230
8117
  @confidence = args[:confidence] if args.key?(:confidence)
10231
- @merged_text = args[:merged_text] if args.key?(:merged_text)
10232
8118
  @property = args[:property] if args.key?(:property)
10233
8119
  @words = args[:words] if args.key?(:words)
10234
8120
  end
@@ -10237,7 +8123,7 @@ module Google
10237
8123
  # A 3D position in the image, used primarily for Face detection landmarks.
10238
8124
  # A valid Position must have both x and y coordinates.
10239
8125
  # The position coordinates are in the same scale as the original image.
10240
- class GoogleCloudVisionV1p5beta1Position
8126
+ class GoogleCloudVisionV1p4beta1Position
10241
8127
  include Google::Apis::Core::Hashable
10242
8128
 
10243
8129
  # X coordinate.
@@ -10268,7 +8154,7 @@ module Google
10268
8154
  end
10269
8155
 
10270
8156
  # A Product contains ReferenceImages.
10271
- class GoogleCloudVisionV1p5beta1Product
8157
+ class GoogleCloudVisionV1p4beta1Product
10272
8158
  include Google::Apis::Core::Hashable
10273
8159
 
10274
8160
  # User-provided metadata to be stored with this product. Must be at most 4096
@@ -10291,11 +8177,11 @@ module Google
10291
8177
  # @return [String]
10292
8178
  attr_accessor :name
10293
8179
 
10294
- # The category for the product identified by the reference image. This should
8180
+ # Immutable. The category for the product identified by the reference image.
8181
+ # This should
10295
8182
  # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
10296
8183
  # "homegoods", "apparel", and "toys" are still supported, but these should
10297
8184
  # not be used for new products.
10298
- # This field is immutable.
10299
8185
  # Corresponds to the JSON property `productCategory`
10300
8186
  # @return [String]
10301
8187
  attr_accessor :product_category
@@ -10311,7 +8197,7 @@ module Google
10311
8197
  # in one ProductSet cannot exceed 1M, otherwise the product search pipeline
10312
8198
  # will refuse to work for that ProductSet.
10313
8199
  # Corresponds to the JSON property `productLabels`
10314
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductKeyValue>]
8200
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductKeyValue>]
10315
8201
  attr_accessor :product_labels
10316
8202
 
10317
8203
  def initialize(**args)
@@ -10329,7 +8215,7 @@ module Google
10329
8215
  end
10330
8216
 
10331
8217
  # A product label represented as a key-value pair.
10332
- class GoogleCloudVisionV1p5beta1ProductKeyValue
8218
+ class GoogleCloudVisionV1p4beta1ProductKeyValue
10333
8219
  include Google::Apis::Core::Hashable
10334
8220
 
10335
8221
  # The key of the label attached to the product. Cannot be empty and cannot
@@ -10356,7 +8242,7 @@ module Google
10356
8242
  end
10357
8243
 
10358
8244
  # Results for a product search request.
10359
- class GoogleCloudVisionV1p5beta1ProductSearchResults
8245
+ class GoogleCloudVisionV1p4beta1ProductSearchResults
10360
8246
  include Google::Apis::Core::Hashable
10361
8247
 
10362
8248
  # Timestamp of the index which provided these results. Products added to the
@@ -10371,12 +8257,12 @@ module Google
10371
8257
  # matching products specific to that region. There may be duplicate product
10372
8258
  # matches in the union of all the per-product results.
10373
8259
  # Corresponds to the JSON property `productGroupedResults`
10374
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult>]
8260
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult>]
10375
8261
  attr_accessor :product_grouped_results
10376
8262
 
10377
8263
  # List of results, one for each product match.
10378
8264
  # Corresponds to the JSON property `results`
10379
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult>]
8265
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult>]
10380
8266
  attr_accessor :results
10381
8267
 
10382
8268
  def initialize(**args)
@@ -10393,22 +8279,22 @@ module Google
10393
8279
 
10394
8280
  # Information about the products similar to a single product in a query
10395
8281
  # image.
10396
- class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult
8282
+ class GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult
10397
8283
  include Google::Apis::Core::Hashable
10398
8284
 
10399
8285
  # A bounding polygon for the detected image annotation.
10400
8286
  # Corresponds to the JSON property `boundingPoly`
10401
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
8287
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
10402
8288
  attr_accessor :bounding_poly
10403
8289
 
10404
8290
  # List of generic predictions for the object in the bounding box.
10405
8291
  # Corresponds to the JSON property `objectAnnotations`
10406
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation>]
8292
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation>]
10407
8293
  attr_accessor :object_annotations
10408
8294
 
10409
8295
  # List of results, one for each product match.
10410
8296
  # Corresponds to the JSON property `results`
10411
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult>]
8297
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult>]
10412
8298
  attr_accessor :results
10413
8299
 
10414
8300
  def initialize(**args)
@@ -10424,7 +8310,7 @@ module Google
10424
8310
  end
10425
8311
 
10426
8312
  # Prediction for what the object in the bounding box is.
10427
- class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation
8313
+ class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
10428
8314
  include Google::Apis::Core::Hashable
10429
8315
 
10430
8316
  # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
@@ -10463,7 +8349,7 @@ module Google
10463
8349
  end
10464
8350
 
10465
8351
  # Information about a product.
10466
- class GoogleCloudVisionV1p5beta1ProductSearchResultsResult
8352
+ class GoogleCloudVisionV1p4beta1ProductSearchResultsResult
10467
8353
  include Google::Apis::Core::Hashable
10468
8354
 
10469
8355
  # The resource name of the image from the product that is the closest match
@@ -10474,7 +8360,7 @@ module Google
10474
8360
 
10475
8361
  # A Product contains ReferenceImages.
10476
8362
  # Corresponds to the JSON property `product`
10477
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Product]
8363
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Product]
10478
8364
  attr_accessor :product
10479
8365
 
10480
8366
  # A confidence level on the match, ranging from 0 (no confidence) to
@@ -10496,7 +8382,7 @@ module Google
10496
8382
  end
10497
8383
 
10498
8384
  # A `Property` consists of a user-supplied name/value pair.
10499
- class GoogleCloudVisionV1p5beta1Property
8385
+ class GoogleCloudVisionV1p4beta1Property
10500
8386
  include Google::Apis::Core::Hashable
10501
8387
 
10502
8388
  # Name of the property.
@@ -10526,20 +8412,53 @@ module Google
10526
8412
  end
10527
8413
  end
10528
8414
 
8415
+ # Stores enhanced image bytes.
8416
+ class GoogleCloudVisionV1p4beta1QualityOptimizationResult
8417
+ include Google::Apis::Core::Hashable
8418
+
8419
+ # Optimized image bytes.
8420
+ # Corresponds to the JSON property `image`
8421
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
8422
+ # @return [String]
8423
+ attr_accessor :image
8424
+
8425
+ # Mime type of the output image.
8426
+ # Corresponds to the JSON property `mimeType`
8427
+ # @return [String]
8428
+ attr_accessor :mime_type
8429
+
8430
+ # Required optimization type.
8431
+ # Corresponds to the JSON property `qualityOptimizationType`
8432
+ # @return [String]
8433
+ attr_accessor :quality_optimization_type
8434
+
8435
+ def initialize(**args)
8436
+ update!(**args)
8437
+ end
8438
+
8439
+ # Update properties of this object
8440
+ def update!(**args)
8441
+ @image = args[:image] if args.key?(:image)
8442
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
8443
+ @quality_optimization_type = args[:quality_optimization_type] if args.key?(:quality_optimization_type)
8444
+ end
8445
+ end
8446
+
10529
8447
  # A `ReferenceImage` represents a product image and its associated metadata,
10530
8448
  # such as bounding boxes.
10531
- class GoogleCloudVisionV1p5beta1ReferenceImage
8449
+ class GoogleCloudVisionV1p4beta1ReferenceImage
10532
8450
  include Google::Apis::Core::Hashable
10533
8451
 
10534
- # Bounding polygons around the areas of interest in the reference image.
10535
- # Optional. If this field is empty, the system will try to detect regions of
8452
+ # Optional. Bounding polygons around the areas of interest in the reference
8453
+ # image.
8454
+ # If this field is empty, the system will try to detect regions of
10536
8455
  # interest. At most 10 bounding polygons will be used.
10537
8456
  # The provided shape is converted into a non-rotated rectangle. Once
10538
8457
  # converted, the small edge of the rectangle must be greater than or equal
10539
8458
  # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
10540
8459
  # is not).
10541
8460
  # Corresponds to the JSON property `boundingPolys`
10542
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly>]
8461
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly>]
10543
8462
  attr_accessor :bounding_polys
10544
8463
 
10545
8464
  # The resource name of the reference image.
@@ -10551,9 +8470,8 @@ module Google
10551
8470
  # @return [String]
10552
8471
  attr_accessor :name
10553
8472
 
10554
- # The Google Cloud Storage URI of the reference image.
8473
+ # Required. The Google Cloud Storage URI of the reference image.
10555
8474
  # The URI must start with `gs://`.
10556
- # Required.
10557
8475
  # Corresponds to the JSON property `uri`
10558
8476
  # @return [String]
10559
8477
  attr_accessor :uri
@@ -10573,7 +8491,7 @@ module Google
10573
8491
  # Set of features pertaining to the image, computed by computer vision
10574
8492
  # methods over safe-search verticals (for example, adult, spoof, medical,
10575
8493
  # violence).
10576
- class GoogleCloudVisionV1p5beta1SafeSearchAnnotation
8494
+ class GoogleCloudVisionV1p4beta1SafeSearchAnnotation
10577
8495
  include Google::Apis::Core::Hashable
10578
8496
 
10579
8497
  # Represents the adult content likelihood for the image. Adult content may
@@ -10665,12 +8583,12 @@ module Google
10665
8583
  end
10666
8584
 
10667
8585
  # A single symbol representation.
10668
- class GoogleCloudVisionV1p5beta1Symbol
8586
+ class GoogleCloudVisionV1p4beta1Symbol
10669
8587
  include Google::Apis::Core::Hashable
10670
8588
 
10671
8589
  # A bounding polygon for the detected image annotation.
10672
8590
  # Corresponds to the JSON property `boundingBox`
10673
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
8591
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
10674
8592
  attr_accessor :bounding_box
10675
8593
 
10676
8594
  # Confidence of the OCR results for the symbol. Range [0, 1].
@@ -10680,7 +8598,7 @@ module Google
10680
8598
 
10681
8599
  # Additional information detected on the structural component.
10682
8600
  # Corresponds to the JSON property `property`
10683
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
8601
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
10684
8602
  attr_accessor :property
10685
8603
 
10686
8604
  # The actual UTF-8 representation of the symbol.
@@ -10701,88 +8619,6 @@ module Google
10701
8619
  end
10702
8620
  end
10703
8621
 
10704
- # A table representation similar to HTML table structure.
10705
- class GoogleCloudVisionV1p5beta1Table
10706
- include Google::Apis::Core::Hashable
10707
-
10708
- # Body rows of the table
10709
- # Corresponds to the JSON property `bodyRows`
10710
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TableTableRow>]
10711
- attr_accessor :body_rows
10712
-
10713
- # Header rows of the table
10714
- # Corresponds to the JSON property `headerRows`
10715
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TableTableRow>]
10716
- attr_accessor :header_rows
10717
-
10718
- def initialize(**args)
10719
- update!(**args)
10720
- end
10721
-
10722
- # Update properties of this object
10723
- def update!(**args)
10724
- @body_rows = args[:body_rows] if args.key?(:body_rows)
10725
- @header_rows = args[:header_rows] if args.key?(:header_rows)
10726
- end
10727
- end
10728
-
10729
- # A cell representation inside of tables.
10730
- class GoogleCloudVisionV1p5beta1TableTableCell
10731
- include Google::Apis::Core::Hashable
10732
-
10733
- # How many columns this cell spans.
10734
- # Corresponds to the JSON property `colSpan`
10735
- # @return [Fixnum]
10736
- attr_accessor :col_span
10737
-
10738
- # How many rows this cell spans.
10739
- # Corresponds to the JSON property `rowSpan`
10740
- # @return [Fixnum]
10741
- attr_accessor :row_span
10742
-
10743
- # The merged text value of this cell, omitting any deeper structural
10744
- # information unlike `text_block`. This is useful for simple cells.
10745
- # Corresponds to the JSON property `text`
10746
- # @return [String]
10747
- attr_accessor :text
10748
-
10749
- # Logical element on the page.
10750
- # Corresponds to the JSON property `textBlock`
10751
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block]
10752
- attr_accessor :text_block
10753
-
10754
- def initialize(**args)
10755
- update!(**args)
10756
- end
10757
-
10758
- # Update properties of this object
10759
- def update!(**args)
10760
- @col_span = args[:col_span] if args.key?(:col_span)
10761
- @row_span = args[:row_span] if args.key?(:row_span)
10762
- @text = args[:text] if args.key?(:text)
10763
- @text_block = args[:text_block] if args.key?(:text_block)
10764
- end
10765
- end
10766
-
10767
- # A row of table cells.
10768
- class GoogleCloudVisionV1p5beta1TableTableRow
10769
- include Google::Apis::Core::Hashable
10770
-
10771
- # Cells that make up this row.
10772
- # Corresponds to the JSON property `cells`
10773
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TableTableCell>]
10774
- attr_accessor :cells
10775
-
10776
- def initialize(**args)
10777
- update!(**args)
10778
- end
10779
-
10780
- # Update properties of this object
10781
- def update!(**args)
10782
- @cells = args[:cells] if args.key?(:cells)
10783
- end
10784
- end
10785
-
10786
8622
  # TextAnnotation contains a structured representation of OCR extracted text.
10787
8623
  # The hierarchy of an OCR extracted text structure is like this:
10788
8624
  # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
@@ -10790,12 +8626,12 @@ module Google
10790
8626
  # properties. Properties describe detected languages, breaks etc.. Please refer
10791
8627
  # to the TextAnnotation.TextProperty message definition below for more
10792
8628
  # detail.
10793
- class GoogleCloudVisionV1p5beta1TextAnnotation
8629
+ class GoogleCloudVisionV1p4beta1TextAnnotation
10794
8630
  include Google::Apis::Core::Hashable
10795
8631
 
10796
8632
  # List of pages detected by OCR.
10797
8633
  # Corresponds to the JSON property `pages`
10798
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Page>]
8634
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Page>]
10799
8635
  attr_accessor :pages
10800
8636
 
10801
8637
  # UTF-8 text detected on the pages.
@@ -10815,7 +8651,7 @@ module Google
10815
8651
  end
10816
8652
 
10817
8653
  # Detected start or end of a structural component.
10818
- class GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak
8654
+ class GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak
10819
8655
  include Google::Apis::Core::Hashable
10820
8656
 
10821
8657
  # True if break prepends the element.
@@ -10841,7 +8677,7 @@ module Google
10841
8677
  end
10842
8678
 
10843
8679
  # Detected language for a structural component.
10844
- class GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage
8680
+ class GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage
10845
8681
  include Google::Apis::Core::Hashable
10846
8682
 
10847
8683
  # Confidence of detected language. Range [0, 1].
@@ -10868,17 +8704,17 @@ module Google
10868
8704
  end
10869
8705
 
10870
8706
  # Additional information detected on the structural component.
10871
- class GoogleCloudVisionV1p5beta1TextAnnotationTextProperty
8707
+ class GoogleCloudVisionV1p4beta1TextAnnotationTextProperty
10872
8708
  include Google::Apis::Core::Hashable
10873
8709
 
10874
8710
  # Detected start or end of a structural component.
10875
8711
  # Corresponds to the JSON property `detectedBreak`
10876
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak]
8712
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak]
10877
8713
  attr_accessor :detected_break
10878
8714
 
10879
8715
  # A list of detected languages together with confidence.
10880
8716
  # Corresponds to the JSON property `detectedLanguages`
10881
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage>]
8717
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage>]
10882
8718
  attr_accessor :detected_languages
10883
8719
 
10884
8720
  def initialize(**args)
@@ -10894,7 +8730,7 @@ module Google
10894
8730
 
10895
8731
  # A vertex represents a 2D point in the image.
10896
8732
  # NOTE: the vertex coordinates are in the same scale as the original image.
10897
- class GoogleCloudVisionV1p5beta1Vertex
8733
+ class GoogleCloudVisionV1p4beta1Vertex
10898
8734
  include Google::Apis::Core::Hashable
10899
8735
 
10900
8736
  # X coordinate.
@@ -10919,41 +8755,41 @@ module Google
10919
8755
  end
10920
8756
 
10921
8757
  # Relevant information for the image from the Internet.
10922
- class GoogleCloudVisionV1p5beta1WebDetection
8758
+ class GoogleCloudVisionV1p4beta1WebDetection
10923
8759
  include Google::Apis::Core::Hashable
10924
8760
 
10925
8761
  # The service's best guess as to the topic of the request image.
10926
8762
  # Inferred from similar images on the open web.
10927
8763
  # Corresponds to the JSON property `bestGuessLabels`
10928
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebLabel>]
8764
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebLabel>]
10929
8765
  attr_accessor :best_guess_labels
10930
8766
 
10931
8767
  # Fully matching images from the Internet.
10932
8768
  # Can include resized copies of the query image.
10933
8769
  # Corresponds to the JSON property `fullMatchingImages`
10934
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
8770
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
10935
8771
  attr_accessor :full_matching_images
10936
8772
 
10937
8773
  # Web pages containing the matching images from the Internet.
10938
8774
  # Corresponds to the JSON property `pagesWithMatchingImages`
10939
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebPage>]
8775
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebPage>]
10940
8776
  attr_accessor :pages_with_matching_images
10941
8777
 
10942
8778
  # Partial matching images from the Internet.
10943
8779
  # Those images are similar enough to share some key-point features. For
10944
8780
  # example an original image will likely have partial matching for its crops.
10945
8781
  # Corresponds to the JSON property `partialMatchingImages`
10946
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
8782
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
10947
8783
  attr_accessor :partial_matching_images
10948
8784
 
10949
8785
  # The visually similar image results.
10950
8786
  # Corresponds to the JSON property `visuallySimilarImages`
10951
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
8787
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
10952
8788
  attr_accessor :visually_similar_images
10953
8789
 
10954
8790
  # Deduced entities from similar images on the Internet.
10955
8791
  # Corresponds to the JSON property `webEntities`
10956
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebEntity>]
8792
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebEntity>]
10957
8793
  attr_accessor :web_entities
10958
8794
 
10959
8795
  def initialize(**args)
@@ -10972,7 +8808,7 @@ module Google
10972
8808
  end
10973
8809
 
10974
8810
  # Entity deduced from similar images on the Internet.
10975
- class GoogleCloudVisionV1p5beta1WebDetectionWebEntity
8811
+ class GoogleCloudVisionV1p4beta1WebDetectionWebEntity
10976
8812
  include Google::Apis::Core::Hashable
10977
8813
 
10978
8814
  # Canonical description of the entity, in English.
@@ -11004,7 +8840,7 @@ module Google
11004
8840
  end
11005
8841
 
11006
8842
  # Metadata for online images.
11007
- class GoogleCloudVisionV1p5beta1WebDetectionWebImage
8843
+ class GoogleCloudVisionV1p4beta1WebDetectionWebImage
11008
8844
  include Google::Apis::Core::Hashable
11009
8845
 
11010
8846
  # (Deprecated) Overall relevancy score for the image.
@@ -11029,7 +8865,7 @@ module Google
11029
8865
  end
11030
8866
 
11031
8867
  # Label to provide extra metadata for the web detection.
11032
- class GoogleCloudVisionV1p5beta1WebDetectionWebLabel
8868
+ class GoogleCloudVisionV1p4beta1WebDetectionWebLabel
11033
8869
  include Google::Apis::Core::Hashable
11034
8870
 
11035
8871
  # Label for extra metadata.
@@ -11056,13 +8892,13 @@ module Google
11056
8892
  end
11057
8893
 
11058
8894
  # Metadata for web pages.
11059
- class GoogleCloudVisionV1p5beta1WebDetectionWebPage
8895
+ class GoogleCloudVisionV1p4beta1WebDetectionWebPage
11060
8896
  include Google::Apis::Core::Hashable
11061
8897
 
11062
8898
  # Fully matching images on the page.
11063
8899
  # Can include resized copies of the query image.
11064
8900
  # Corresponds to the JSON property `fullMatchingImages`
11065
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
8901
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
11066
8902
  attr_accessor :full_matching_images
11067
8903
 
11068
8904
  # Title for the web page, may contain HTML markups.
@@ -11075,7 +8911,7 @@ module Google
11075
8911
  # example an original image will likely have partial matching for its
11076
8912
  # crops.
11077
8913
  # Corresponds to the JSON property `partialMatchingImages`
11078
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
8914
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
11079
8915
  attr_accessor :partial_matching_images
11080
8916
 
11081
8917
  # (Deprecated) Overall relevancy score for the web page.
@@ -11103,12 +8939,12 @@ module Google
11103
8939
  end
11104
8940
 
11105
8941
  # A word representation.
11106
- class GoogleCloudVisionV1p5beta1Word
8942
+ class GoogleCloudVisionV1p4beta1Word
11107
8943
  include Google::Apis::Core::Hashable
11108
8944
 
11109
8945
  # A bounding polygon for the detected image annotation.
11110
8946
  # Corresponds to the JSON property `boundingBox`
11111
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
8947
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
11112
8948
  attr_accessor :bounding_box
11113
8949
 
11114
8950
  # Confidence of the OCR results for the word. Range [0, 1].
@@ -11116,21 +8952,15 @@ module Google
11116
8952
  # @return [Float]
11117
8953
  attr_accessor :confidence
11118
8954
 
11119
- # All UTF-8 text detected in this word. This field is by default not
11120
- # returned unless specified in TextDetectionParams.word_filter.
11121
- # Corresponds to the JSON property `mergedText`
11122
- # @return [String]
11123
- attr_accessor :merged_text
11124
-
11125
8955
  # Additional information detected on the structural component.
11126
8956
  # Corresponds to the JSON property `property`
11127
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
8957
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
11128
8958
  attr_accessor :property
11129
8959
 
11130
8960
  # List of symbols in the word.
11131
8961
  # The order of the symbols follows the natural reading order.
11132
8962
  # Corresponds to the JSON property `symbols`
11133
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Symbol>]
8963
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Symbol>]
11134
8964
  attr_accessor :symbols
11135
8965
 
11136
8966
  def initialize(**args)
@@ -11141,7 +8971,6 @@ module Google
11141
8971
  def update!(**args)
11142
8972
  @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
11143
8973
  @confidence = args[:confidence] if args.key?(:confidence)
11144
- @merged_text = args[:merged_text] if args.key?(:merged_text)
11145
8974
  @property = args[:property] if args.key?(:property)
11146
8975
  @symbols = args[:symbols] if args.key?(:symbols)
11147
8976
  end
@@ -12170,11 +9999,11 @@ module Google
12170
9999
  # @return [String]
12171
10000
  attr_accessor :name
12172
10001
 
12173
- # The category for the product identified by the reference image. This should
10002
+ # Immutable. The category for the product identified by the reference image.
10003
+ # This should
12174
10004
  # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
12175
10005
  # "homegoods", "apparel", and "toys" are still supported, but these should
12176
10006
  # not be used for new products.
12177
- # This field is immutable.
12178
10007
  # Corresponds to the JSON property `productCategory`
12179
10008
  # @return [String]
12180
10009
  attr_accessor :product_category
@@ -12438,8 +10267,9 @@ module Google
12438
10267
  class ReferenceImage
12439
10268
  include Google::Apis::Core::Hashable
12440
10269
 
12441
- # Bounding polygons around the areas of interest in the reference image.
12442
- # Optional. If this field is empty, the system will try to detect regions of
10270
+ # Optional. Bounding polygons around the areas of interest in the reference
10271
+ # image.
10272
+ # If this field is empty, the system will try to detect regions of
12443
10273
  # interest. At most 10 bounding polygons will be used.
12444
10274
  # The provided shape is converted into a non-rotated rectangle. Once
12445
10275
  # converted, the small edge of the rectangle must be greater than or equal
@@ -12458,9 +10288,8 @@ module Google
12458
10288
  # @return [String]
12459
10289
  attr_accessor :name
12460
10290
 
12461
- # The Google Cloud Storage URI of the reference image.
10291
+ # Required. The Google Cloud Storage URI of the reference image.
12462
10292
  # The URI must start with `gs://`.
12463
- # Required.
12464
10293
  # Corresponds to the JSON property `uri`
12465
10294
  # @return [String]
12466
10295
  attr_accessor :uri
@@ -12481,7 +10310,7 @@ module Google
12481
10310
  class RemoveProductFromProductSetRequest
12482
10311
  include Google::Apis::Core::Hashable
12483
10312
 
12484
- # The resource name for the Product to be removed from this ProductSet.
10313
+ # Required. The resource name for the Product to be removed from this ProductSet.
12485
10314
  # Format is:
12486
10315
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
12487
10316
  # Corresponds to the JSON property `product`