google-api-client 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -27,7 +27,10 @@ module Google
27
27
  # @see https://cloud.google.com/natural-language/
28
28
  module LanguageV1beta1
29
29
  VERSION = 'V1beta1'
30
- REVISION = '20170619'
30
+ REVISION = '20170809'
31
+
32
+ # Apply machine learning models to reveal the structure and meaning of text
33
+ AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'
31
34
 
32
35
  # View and manage your data across Google Cloud Platform services
33
36
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,20 +22,20 @@ module Google
22
22
  module Apis
23
23
  module LanguageV1beta1
24
24
 
25
- # Represents an output piece of text.
26
- class TextSpan
25
+ # The entity analysis request message.
26
+ class AnalyzeEntitiesRequest
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # The API calculates the beginning offset of the content in the original
30
- # document according to the EncodingType specified in the API request.
31
- # Corresponds to the JSON property `beginOffset`
32
- # @return [Fixnum]
33
- attr_accessor :begin_offset
29
+ # ################################################################ #
30
+ # Represents the input to API methods.
31
+ # Corresponds to the JSON property `document`
32
+ # @return [Google::Apis::LanguageV1beta1::Document]
33
+ attr_accessor :document
34
34
 
35
- # The content of the output text.
36
- # Corresponds to the JSON property `content`
35
+ # The encoding type used by the API to calculate offsets.
36
+ # Corresponds to the JSON property `encodingType`
37
37
  # @return [String]
38
- attr_accessor :content
38
+ attr_accessor :encoding_type
39
39
 
40
40
  def initialize(**args)
41
41
  update!(**args)
@@ -43,34 +43,26 @@ module Google
43
43
 
44
44
  # Update properties of this object
45
45
  def update!(**args)
46
- @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
47
- @content = args[:content] if args.key?(:content)
46
+ @document = args[:document] if args.key?(:document)
47
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
48
48
  end
49
49
  end
50
50
 
51
- # Represents the smallest syntactic building block of the text.
52
- class Token
51
+ # The entity analysis response message.
52
+ class AnalyzeEntitiesResponse
53
53
  include Google::Apis::Core::Hashable
54
54
 
55
- # Represents dependency parse tree information for a token.
56
- # Corresponds to the JSON property `dependencyEdge`
57
- # @return [Google::Apis::LanguageV1beta1::DependencyEdge]
58
- attr_accessor :dependency_edge
59
-
60
- # Represents an output piece of text.
61
- # Corresponds to the JSON property `text`
62
- # @return [Google::Apis::LanguageV1beta1::TextSpan]
63
- attr_accessor :text
55
+ # The recognized entities in the input document.
56
+ # Corresponds to the JSON property `entities`
57
+ # @return [Array<Google::Apis::LanguageV1beta1::Entity>]
58
+ attr_accessor :entities
64
59
 
65
- # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
66
- # Corresponds to the JSON property `lemma`
60
+ # The language of the text, which will be the same as the language specified
61
+ # in the request or, if not specified, the automatically-detected language.
62
+ # See Document.language field for more details.
63
+ # Corresponds to the JSON property `language`
67
64
  # @return [String]
68
- attr_accessor :lemma
69
-
70
- # Represents part of speech information for a token.
71
- # Corresponds to the JSON property `partOfSpeech`
72
- # @return [Google::Apis::LanguageV1beta1::PartOfSpeech]
73
- attr_accessor :part_of_speech
65
+ attr_accessor :language
74
66
 
75
67
  def initialize(**args)
76
68
  update!(**args)
@@ -78,72 +70,26 @@ module Google
78
70
 
79
71
  # Update properties of this object
80
72
  def update!(**args)
81
- @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge)
82
- @text = args[:text] if args.key?(:text)
83
- @lemma = args[:lemma] if args.key?(:lemma)
84
- @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
73
+ @entities = args[:entities] if args.key?(:entities)
74
+ @language = args[:language] if args.key?(:language)
85
75
  end
86
76
  end
87
77
 
88
- # The `Status` type defines a logical error model that is suitable for different
89
- # programming environments, including REST APIs and RPC APIs. It is used by
90
- # [gRPC](https://github.com/grpc). The error model is designed to be:
91
- # - Simple to use and understand for most users
92
- # - Flexible enough to meet unexpected needs
93
- # # Overview
94
- # The `Status` message contains three pieces of data: error code, error message,
95
- # and error details. The error code should be an enum value of
96
- # google.rpc.Code, but it may accept additional error codes if needed. The
97
- # error message should be a developer-facing English message that helps
98
- # developers *understand* and *resolve* the error. If a localized user-facing
99
- # error message is needed, put the localized message in the error details or
100
- # localize it in the client. The optional error details may contain arbitrary
101
- # information about the error. There is a predefined set of error detail types
102
- # in the package `google.rpc` that can be used for common error conditions.
103
- # # Language mapping
104
- # The `Status` message is the logical representation of the error model, but it
105
- # is not necessarily the actual wire format. When the `Status` message is
106
- # exposed in different client libraries and different wire protocols, it can be
107
- # mapped differently. For example, it will likely be mapped to some exceptions
108
- # in Java, but more likely mapped to some error codes in C.
109
- # # Other uses
110
- # The error model and the `Status` message can be used in a variety of
111
- # environments, either with or without APIs, to provide a
112
- # consistent developer experience across different environments.
113
- # Example uses of this error model include:
114
- # - Partial errors. If a service needs to return partial errors to the client,
115
- # it may embed the `Status` in the normal response to indicate the partial
116
- # errors.
117
- # - Workflow errors. A typical workflow has multiple steps. Each step may
118
- # have a `Status` message for error reporting.
119
- # - Batch operations. If a client uses batch request and batch response, the
120
- # `Status` message should be used directly inside batch response, one for
121
- # each error sub-response.
122
- # - Asynchronous operations. If an API call embeds asynchronous operation
123
- # results in its response, the status of those operations should be
124
- # represented directly using the `Status` message.
125
- # - Logging. If some API errors are stored in logs, the message `Status` could
126
- # be used directly after any stripping needed for security/privacy reasons.
127
- class Status
78
+ # The sentiment analysis request message.
79
+ class AnalyzeSentimentRequest
128
80
  include Google::Apis::Core::Hashable
129
81
 
130
- # A list of messages that carry the error details. There will be a
131
- # common set of message types for APIs to use.
132
- # Corresponds to the JSON property `details`
133
- # @return [Array<Hash<String,Object>>]
134
- attr_accessor :details
135
-
136
- # The status code, which should be an enum value of google.rpc.Code.
137
- # Corresponds to the JSON property `code`
138
- # @return [Fixnum]
139
- attr_accessor :code
82
+ # ################################################################ #
83
+ # Represents the input to API methods.
84
+ # Corresponds to the JSON property `document`
85
+ # @return [Google::Apis::LanguageV1beta1::Document]
86
+ attr_accessor :document
140
87
 
141
- # A developer-facing error message, which should be in English. Any
142
- # user-facing error message should be localized and sent in the
143
- # google.rpc.Status.details field, or localized by the client.
144
- # Corresponds to the JSON property `message`
88
+ # The encoding type used by the API to calculate sentence offsets for the
89
+ # sentence sentiment.
90
+ # Corresponds to the JSON property `encodingType`
145
91
  # @return [String]
146
- attr_accessor :message
92
+ attr_accessor :encoding_type
147
93
 
148
94
  def initialize(**args)
149
95
  update!(**args)
@@ -151,26 +97,32 @@ module Google
151
97
 
152
98
  # Update properties of this object
153
99
  def update!(**args)
154
- @details = args[:details] if args.key?(:details)
155
- @code = args[:code] if args.key?(:code)
156
- @message = args[:message] if args.key?(:message)
100
+ @document = args[:document] if args.key?(:document)
101
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
157
102
  end
158
103
  end
159
104
 
160
- # Represents a mention for an entity in the text. Currently, proper noun
161
- # mentions are supported.
162
- class EntityMention
105
+ # The sentiment analysis response message.
106
+ class AnalyzeSentimentResponse
163
107
  include Google::Apis::Core::Hashable
164
108
 
165
- # The type of the entity mention.
166
- # Corresponds to the JSON property `type`
109
+ # Represents the feeling associated with the entire text or entities in
110
+ # the text.
111
+ # Corresponds to the JSON property `documentSentiment`
112
+ # @return [Google::Apis::LanguageV1beta1::Sentiment]
113
+ attr_accessor :document_sentiment
114
+
115
+ # The language of the text, which will be the same as the language specified
116
+ # in the request or, if not specified, the automatically-detected language.
117
+ # See Document.language field for more details.
118
+ # Corresponds to the JSON property `language`
167
119
  # @return [String]
168
- attr_accessor :type
120
+ attr_accessor :language
169
121
 
170
- # Represents an output piece of text.
171
- # Corresponds to the JSON property `text`
172
- # @return [Google::Apis::LanguageV1beta1::TextSpan]
173
- attr_accessor :text
122
+ # The sentiment for all the sentences in the document.
123
+ # Corresponds to the JSON property `sentences`
124
+ # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
125
+ attr_accessor :sentences
174
126
 
175
127
  def initialize(**args)
176
128
  update!(**args)
@@ -178,33 +130,26 @@ module Google
178
130
 
179
131
  # Update properties of this object
180
132
  def update!(**args)
181
- @type = args[:type] if args.key?(:type)
182
- @text = args[:text] if args.key?(:text)
133
+ @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
134
+ @language = args[:language] if args.key?(:language)
135
+ @sentences = args[:sentences] if args.key?(:sentences)
183
136
  end
184
137
  end
185
138
 
186
- # All available features for sentiment, syntax, and semantic analysis.
187
- # Setting each one to true will enable that specific analysis for the input.
188
- class Features
139
+ # The syntax analysis request message.
140
+ class AnalyzeSyntaxRequest
189
141
  include Google::Apis::Core::Hashable
190
142
 
191
- # Extract entities.
192
- # Corresponds to the JSON property `extractEntities`
193
- # @return [Boolean]
194
- attr_accessor :extract_entities
195
- alias_method :extract_entities?, :extract_entities
196
-
197
- # Extract document-level sentiment.
198
- # Corresponds to the JSON property `extractDocumentSentiment`
199
- # @return [Boolean]
200
- attr_accessor :extract_document_sentiment
201
- alias_method :extract_document_sentiment?, :extract_document_sentiment
143
+ # ################################################################ #
144
+ # Represents the input to API methods.
145
+ # Corresponds to the JSON property `document`
146
+ # @return [Google::Apis::LanguageV1beta1::Document]
147
+ attr_accessor :document
202
148
 
203
- # Extract syntax information.
204
- # Corresponds to the JSON property `extractSyntax`
205
- # @return [Boolean]
206
- attr_accessor :extract_syntax
207
- alias_method :extract_syntax?, :extract_syntax
149
+ # The encoding type used by the API to calculate offsets.
150
+ # Corresponds to the JSON property `encodingType`
151
+ # @return [String]
152
+ attr_accessor :encoding_type
208
153
 
209
154
  def initialize(**args)
210
155
  update!(**args)
@@ -212,47 +157,31 @@ module Google
212
157
 
213
158
  # Update properties of this object
214
159
  def update!(**args)
215
- @extract_entities = args[:extract_entities] if args.key?(:extract_entities)
216
- @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
217
- @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax)
160
+ @document = args[:document] if args.key?(:document)
161
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
218
162
  end
219
163
  end
220
164
 
221
- # ################################################################ #
222
- # Represents the input to API methods.
223
- class Document
165
+ # The syntax analysis response message.
166
+ class AnalyzeSyntaxResponse
224
167
  include Google::Apis::Core::Hashable
225
168
 
226
- # The Google Cloud Storage URI where the file content is located.
227
- # This URI must be of the form: gs://bucket_name/object_name. For more
228
- # details, see https://cloud.google.com/storage/docs/reference-uris.
229
- # NOTE: Cloud Storage object versioning is not supported.
230
- # Corresponds to the JSON property `gcsContentUri`
231
- # @return [String]
232
- attr_accessor :gcs_content_uri
233
-
234
- # The language of the document (if not specified, the language is
235
- # automatically detected). Both ISO and BCP-47 language codes are
236
- # accepted.<br>
237
- # [Language Support](/natural-language/docs/languages)
238
- # lists currently supported languages for each API method.
239
- # If the language (either specified by the caller or automatically detected)
240
- # is not supported by the called API method, an `INVALID_ARGUMENT` error
241
- # is returned.
169
+ # The language of the text, which will be the same as the language specified
170
+ # in the request or, if not specified, the automatically-detected language.
171
+ # See Document.language field for more details.
242
172
  # Corresponds to the JSON property `language`
243
173
  # @return [String]
244
174
  attr_accessor :language
245
175
 
246
- # The content of the input in string format.
247
- # Corresponds to the JSON property `content`
248
- # @return [String]
249
- attr_accessor :content
176
+ # Sentences in the input document.
177
+ # Corresponds to the JSON property `sentences`
178
+ # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
179
+ attr_accessor :sentences
250
180
 
251
- # Required. If the type is not set or is `TYPE_UNSPECIFIED`,
252
- # returns an `INVALID_ARGUMENT` error.
253
- # Corresponds to the JSON property `type`
254
- # @return [String]
255
- attr_accessor :type
181
+ # Tokens, along with their syntactic information, in the input document.
182
+ # Corresponds to the JSON property `tokens`
183
+ # @return [Array<Google::Apis::LanguageV1beta1::Token>]
184
+ attr_accessor :tokens
256
185
 
257
186
  def initialize(**args)
258
187
  update!(**args)
@@ -260,27 +189,33 @@ module Google
260
189
 
261
190
  # Update properties of this object
262
191
  def update!(**args)
263
- @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
264
192
  @language = args[:language] if args.key?(:language)
265
- @content = args[:content] if args.key?(:content)
266
- @type = args[:type] if args.key?(:type)
193
+ @sentences = args[:sentences] if args.key?(:sentences)
194
+ @tokens = args[:tokens] if args.key?(:tokens)
267
195
  end
268
196
  end
269
197
 
270
- # Represents a sentence in the input document.
271
- class Sentence
198
+ # The request message for the text annotation API, which can perform multiple
199
+ # analysis types (sentiment, entities, and syntax) in one call.
200
+ class AnnotateTextRequest
272
201
  include Google::Apis::Core::Hashable
273
202
 
274
- # Represents an output piece of text.
275
- # Corresponds to the JSON property `text`
276
- # @return [Google::Apis::LanguageV1beta1::TextSpan]
277
- attr_accessor :text
203
+ # ################################################################ #
204
+ # Represents the input to API methods.
205
+ # Corresponds to the JSON property `document`
206
+ # @return [Google::Apis::LanguageV1beta1::Document]
207
+ attr_accessor :document
278
208
 
279
- # Represents the feeling associated with the entire text or entities in
280
- # the text.
281
- # Corresponds to the JSON property `sentiment`
282
- # @return [Google::Apis::LanguageV1beta1::Sentiment]
283
- attr_accessor :sentiment
209
+ # The encoding type used by the API to calculate offsets.
210
+ # Corresponds to the JSON property `encodingType`
211
+ # @return [String]
212
+ attr_accessor :encoding_type
213
+
214
+ # All available features for sentiment, syntax, and semantic analysis.
215
+ # Setting each one to true will enable that specific analysis for the input.
216
+ # Corresponds to the JSON property `features`
217
+ # @return [Google::Apis::LanguageV1beta1::Features]
218
+ attr_accessor :features
284
219
 
285
220
  def initialize(**args)
286
221
  update!(**args)
@@ -288,25 +223,48 @@ module Google
288
223
 
289
224
  # Update properties of this object
290
225
  def update!(**args)
291
- @text = args[:text] if args.key?(:text)
292
- @sentiment = args[:sentiment] if args.key?(:sentiment)
226
+ @document = args[:document] if args.key?(:document)
227
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
228
+ @features = args[:features] if args.key?(:features)
293
229
  end
294
230
  end
295
231
 
296
- # The entity analysis request message.
297
- class AnalyzeEntitiesRequest
232
+ # The text annotations response message.
233
+ class AnnotateTextResponse
298
234
  include Google::Apis::Core::Hashable
299
235
 
300
- # ################################################################ #
301
- # Represents the input to API methods.
302
- # Corresponds to the JSON property `document`
303
- # @return [Google::Apis::LanguageV1beta1::Document]
304
- attr_accessor :document
236
+ # Represents the feeling associated with the entire text or entities in
237
+ # the text.
238
+ # Corresponds to the JSON property `documentSentiment`
239
+ # @return [Google::Apis::LanguageV1beta1::Sentiment]
240
+ attr_accessor :document_sentiment
305
241
 
306
- # The encoding type used by the API to calculate offsets.
307
- # Corresponds to the JSON property `encodingType`
242
+ # Entities, along with their semantic information, in the input document.
243
+ # Populated if the user enables
244
+ # AnnotateTextRequest.Features.extract_entities.
245
+ # Corresponds to the JSON property `entities`
246
+ # @return [Array<Google::Apis::LanguageV1beta1::Entity>]
247
+ attr_accessor :entities
248
+
249
+ # The language of the text, which will be the same as the language specified
250
+ # in the request or, if not specified, the automatically-detected language.
251
+ # See Document.language field for more details.
252
+ # Corresponds to the JSON property `language`
308
253
  # @return [String]
309
- attr_accessor :encoding_type
254
+ attr_accessor :language
255
+
256
+ # Sentences in the input document. Populated if the user enables
257
+ # AnnotateTextRequest.Features.extract_syntax.
258
+ # Corresponds to the JSON property `sentences`
259
+ # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
260
+ attr_accessor :sentences
261
+
262
+ # Tokens, along with their syntactic information, in the input document.
263
+ # Populated if the user enables
264
+ # AnnotateTextRequest.Features.extract_syntax.
265
+ # Corresponds to the JSON property `tokens`
266
+ # @return [Array<Google::Apis::LanguageV1beta1::Token>]
267
+ attr_accessor :tokens
310
268
 
311
269
  def initialize(**args)
312
270
  update!(**args)
@@ -314,35 +272,31 @@ module Google
314
272
 
315
273
  # Update properties of this object
316
274
  def update!(**args)
317
- @document = args[:document] if args.key?(:document)
318
- @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
275
+ @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
276
+ @entities = args[:entities] if args.key?(:entities)
277
+ @language = args[:language] if args.key?(:language)
278
+ @sentences = args[:sentences] if args.key?(:sentences)
279
+ @tokens = args[:tokens] if args.key?(:tokens)
319
280
  end
320
281
  end
321
282
 
322
- # Represents the feeling associated with the entire text or entities in
323
- # the text.
324
- class Sentiment
283
+ # Represents dependency parse tree information for a token.
284
+ class DependencyEdge
325
285
  include Google::Apis::Core::Hashable
326
286
 
327
- # Sentiment score between -1.0 (negative sentiment) and 1.0
328
- # (positive sentiment).
329
- # Corresponds to the JSON property `score`
330
- # @return [Float]
331
- attr_accessor :score
332
-
333
- # DEPRECATED FIELD - This field is being deprecated in
334
- # favor of score. Please refer to our documentation at
335
- # https://cloud.google.com/natural-language/docs for more information.
336
- # Corresponds to the JSON property `polarity`
337
- # @return [Float]
338
- attr_accessor :polarity
287
+ # Represents the head of this token in the dependency tree.
288
+ # This is the index of the token which has an arc going to this token.
289
+ # The index is the position of the token in the array of tokens returned
290
+ # by the API method. If this token is a root token, then the
291
+ # `head_token_index` is its own index.
292
+ # Corresponds to the JSON property `headTokenIndex`
293
+ # @return [Fixnum]
294
+ attr_accessor :head_token_index
339
295
 
340
- # A non-negative number in the [0, +inf) range, which represents
341
- # the absolute magnitude of sentiment regardless of score (positive or
342
- # negative).
343
- # Corresponds to the JSON property `magnitude`
344
- # @return [Float]
345
- attr_accessor :magnitude
296
+ # The parse label for the token.
297
+ # Corresponds to the JSON property `label`
298
+ # @return [String]
299
+ attr_accessor :label
346
300
 
347
301
  def initialize(**args)
348
302
  update!(**args)
@@ -350,75 +304,97 @@ module Google
350
304
 
351
305
  # Update properties of this object
352
306
  def update!(**args)
353
- @score = args[:score] if args.key?(:score)
354
- @polarity = args[:polarity] if args.key?(:polarity)
355
- @magnitude = args[:magnitude] if args.key?(:magnitude)
307
+ @head_token_index = args[:head_token_index] if args.key?(:head_token_index)
308
+ @label = args[:label] if args.key?(:label)
356
309
  end
357
310
  end
358
311
 
359
- # Represents part of speech information for a token.
360
- class PartOfSpeech
312
+ # ################################################################ #
313
+ # Represents the input to API methods.
314
+ class Document
361
315
  include Google::Apis::Core::Hashable
362
316
 
363
- # The grammatical form.
364
- # Corresponds to the JSON property `form`
317
+ # The content of the input in string format.
318
+ # Corresponds to the JSON property `content`
365
319
  # @return [String]
366
- attr_accessor :form
320
+ attr_accessor :content
367
321
 
368
- # The grammatical number.
369
- # Corresponds to the JSON property `number`
322
+ # The Google Cloud Storage URI where the file content is located.
323
+ # This URI must be of the form: gs://bucket_name/object_name. For more
324
+ # details, see https://cloud.google.com/storage/docs/reference-uris.
325
+ # NOTE: Cloud Storage object versioning is not supported.
326
+ # Corresponds to the JSON property `gcsContentUri`
370
327
  # @return [String]
371
- attr_accessor :number
328
+ attr_accessor :gcs_content_uri
372
329
 
373
- # The grammatical voice.
374
- # Corresponds to the JSON property `voice`
330
+ # The language of the document (if not specified, the language is
331
+ # automatically detected). Both ISO and BCP-47 language codes are
332
+ # accepted.<br>
333
+ # [Language Support](/natural-language/docs/languages)
334
+ # lists currently supported languages for each API method.
335
+ # If the language (either specified by the caller or automatically detected)
336
+ # is not supported by the called API method, an `INVALID_ARGUMENT` error
337
+ # is returned.
338
+ # Corresponds to the JSON property `language`
375
339
  # @return [String]
376
- attr_accessor :voice
340
+ attr_accessor :language
377
341
 
378
- # The grammatical aspect.
379
- # Corresponds to the JSON property `aspect`
342
+ # Required. If the type is not set or is `TYPE_UNSPECIFIED`,
343
+ # returns an `INVALID_ARGUMENT` error.
344
+ # Corresponds to the JSON property `type`
380
345
  # @return [String]
381
- attr_accessor :aspect
346
+ attr_accessor :type
382
347
 
383
- # The grammatical mood.
384
- # Corresponds to the JSON property `mood`
385
- # @return [String]
386
- attr_accessor :mood
348
+ def initialize(**args)
349
+ update!(**args)
350
+ end
387
351
 
388
- # The part of speech tag.
389
- # Corresponds to the JSON property `tag`
390
- # @return [String]
391
- attr_accessor :tag
352
+ # Update properties of this object
353
+ def update!(**args)
354
+ @content = args[:content] if args.key?(:content)
355
+ @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
356
+ @language = args[:language] if args.key?(:language)
357
+ @type = args[:type] if args.key?(:type)
358
+ end
359
+ end
392
360
 
393
- # The grammatical gender.
394
- # Corresponds to the JSON property `gender`
395
- # @return [String]
396
- attr_accessor :gender
361
+ # Represents a phrase in the text that is a known entity, such as
362
+ # a person, an organization, or location. The API associates information, such
363
+ # as salience and mentions, with entities.
364
+ class Entity
365
+ include Google::Apis::Core::Hashable
397
366
 
398
- # The grammatical person.
399
- # Corresponds to the JSON property `person`
400
- # @return [String]
401
- attr_accessor :person
367
+ # The mentions of this entity in the input document. The API currently
368
+ # supports proper noun mentions.
369
+ # Corresponds to the JSON property `mentions`
370
+ # @return [Array<Google::Apis::LanguageV1beta1::EntityMention>]
371
+ attr_accessor :mentions
402
372
 
403
- # The grammatical properness.
404
- # Corresponds to the JSON property `proper`
405
- # @return [String]
406
- attr_accessor :proper
373
+ # Metadata associated with the entity.
374
+ # Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if
375
+ # available. The associated keys are "wikipedia_url" and "mid", respectively.
376
+ # Corresponds to the JSON property `metadata`
377
+ # @return [Hash<String,String>]
378
+ attr_accessor :metadata
407
379
 
408
- # The grammatical case.
409
- # Corresponds to the JSON property `case`
380
+ # The representative name for the entity.
381
+ # Corresponds to the JSON property `name`
410
382
  # @return [String]
411
- attr_accessor :case
383
+ attr_accessor :name
412
384
 
413
- # The grammatical tense.
414
- # Corresponds to the JSON property `tense`
415
- # @return [String]
416
- attr_accessor :tense
385
+ # The salience score associated with the entity in the [0, 1.0] range.
386
+ # The salience score for an entity provides information about the
387
+ # importance or centrality of that entity to the entire document text.
388
+ # Scores closer to 0 are less salient, while scores closer to 1.0 are highly
389
+ # salient.
390
+ # Corresponds to the JSON property `salience`
391
+ # @return [Float]
392
+ attr_accessor :salience
417
393
 
418
- # The grammatical reciprocity.
419
- # Corresponds to the JSON property `reciprocity`
394
+ # The entity type.
395
+ # Corresponds to the JSON property `type`
420
396
  # @return [String]
421
- attr_accessor :reciprocity
397
+ attr_accessor :type
422
398
 
423
399
  def initialize(**args)
424
400
  update!(**args)
@@ -426,35 +402,28 @@ module Google
426
402
 
427
403
  # Update properties of this object
428
404
  def update!(**args)
429
- @form = args[:form] if args.key?(:form)
430
- @number = args[:number] if args.key?(:number)
431
- @voice = args[:voice] if args.key?(:voice)
432
- @aspect = args[:aspect] if args.key?(:aspect)
433
- @mood = args[:mood] if args.key?(:mood)
434
- @tag = args[:tag] if args.key?(:tag)
435
- @gender = args[:gender] if args.key?(:gender)
436
- @person = args[:person] if args.key?(:person)
437
- @proper = args[:proper] if args.key?(:proper)
438
- @case = args[:case] if args.key?(:case)
439
- @tense = args[:tense] if args.key?(:tense)
440
- @reciprocity = args[:reciprocity] if args.key?(:reciprocity)
405
+ @mentions = args[:mentions] if args.key?(:mentions)
406
+ @metadata = args[:metadata] if args.key?(:metadata)
407
+ @name = args[:name] if args.key?(:name)
408
+ @salience = args[:salience] if args.key?(:salience)
409
+ @type = args[:type] if args.key?(:type)
441
410
  end
442
411
  end
443
412
 
444
- # The syntax analysis request message.
445
- class AnalyzeSyntaxRequest
413
+ # Represents a mention for an entity in the text. Currently, proper noun
414
+ # mentions are supported.
415
+ class EntityMention
446
416
  include Google::Apis::Core::Hashable
447
417
 
448
- # ################################################################ #
449
- # Represents the input to API methods.
450
- # Corresponds to the JSON property `document`
451
- # @return [Google::Apis::LanguageV1beta1::Document]
452
- attr_accessor :document
418
+ # Represents an output piece of text.
419
+ # Corresponds to the JSON property `text`
420
+ # @return [Google::Apis::LanguageV1beta1::TextSpan]
421
+ attr_accessor :text
453
422
 
454
- # The encoding type used by the API to calculate offsets.
455
- # Corresponds to the JSON property `encodingType`
423
+ # The type of the entity mention.
424
+ # Corresponds to the JSON property `type`
456
425
  # @return [String]
457
- attr_accessor :encoding_type
426
+ attr_accessor :type
458
427
 
459
428
  def initialize(**args)
460
429
  update!(**args)
@@ -462,32 +431,33 @@ module Google
462
431
 
463
432
  # Update properties of this object
464
433
  def update!(**args)
465
- @document = args[:document] if args.key?(:document)
466
- @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
434
+ @text = args[:text] if args.key?(:text)
435
+ @type = args[:type] if args.key?(:type)
467
436
  end
468
437
  end
469
438
 
470
- # The sentiment analysis response message.
471
- class AnalyzeSentimentResponse
439
+ # All available features for sentiment, syntax, and semantic analysis.
440
+ # Setting each one to true will enable that specific analysis for the input.
441
+ class Features
472
442
  include Google::Apis::Core::Hashable
473
443
 
474
- # The language of the text, which will be the same as the language specified
475
- # in the request or, if not specified, the automatically-detected language.
476
- # See Document.language field for more details.
477
- # Corresponds to the JSON property `language`
478
- # @return [String]
479
- attr_accessor :language
444
+ # Extract document-level sentiment.
445
+ # Corresponds to the JSON property `extractDocumentSentiment`
446
+ # @return [Boolean]
447
+ attr_accessor :extract_document_sentiment
448
+ alias_method :extract_document_sentiment?, :extract_document_sentiment
480
449
 
481
- # The sentiment for all the sentences in the document.
482
- # Corresponds to the JSON property `sentences`
483
- # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
484
- attr_accessor :sentences
450
+ # Extract entities.
451
+ # Corresponds to the JSON property `extractEntities`
452
+ # @return [Boolean]
453
+ attr_accessor :extract_entities
454
+ alias_method :extract_entities?, :extract_entities
485
455
 
486
- # Represents the feeling associated with the entire text or entities in
487
- # the text.
488
- # Corresponds to the JSON property `documentSentiment`
489
- # @return [Google::Apis::LanguageV1beta1::Sentiment]
490
- attr_accessor :document_sentiment
456
+ # Extract syntax information.
457
+ # Corresponds to the JSON property `extractSyntax`
458
+ # @return [Boolean]
459
+ attr_accessor :extract_syntax
460
+ alias_method :extract_syntax?, :extract_syntax
491
461
 
492
462
  def initialize(**args)
493
463
  update!(**args)
@@ -495,59 +465,75 @@ module Google
495
465
 
496
466
  # Update properties of this object
497
467
  def update!(**args)
498
- @language = args[:language] if args.key?(:language)
499
- @sentences = args[:sentences] if args.key?(:sentences)
500
- @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
468
+ @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
469
+ @extract_entities = args[:extract_entities] if args.key?(:extract_entities)
470
+ @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax)
501
471
  end
502
472
  end
503
473
 
504
- # The entity analysis response message.
505
- class AnalyzeEntitiesResponse
474
+ # Represents part of speech information for a token.
475
+ class PartOfSpeech
506
476
  include Google::Apis::Core::Hashable
507
477
 
508
- # The language of the text, which will be the same as the language specified
509
- # in the request or, if not specified, the automatically-detected language.
510
- # See Document.language field for more details.
511
- # Corresponds to the JSON property `language`
478
+ # The grammatical aspect.
479
+ # Corresponds to the JSON property `aspect`
512
480
  # @return [String]
513
- attr_accessor :language
481
+ attr_accessor :aspect
514
482
 
515
- # The recognized entities in the input document.
516
- # Corresponds to the JSON property `entities`
517
- # @return [Array<Google::Apis::LanguageV1beta1::Entity>]
518
- attr_accessor :entities
483
+ # The grammatical case.
484
+ # Corresponds to the JSON property `case`
485
+ # @return [String]
486
+ attr_accessor :case
519
487
 
520
- def initialize(**args)
521
- update!(**args)
522
- end
488
+ # The grammatical form.
489
+ # Corresponds to the JSON property `form`
490
+ # @return [String]
491
+ attr_accessor :form
523
492
 
524
- # Update properties of this object
525
- def update!(**args)
526
- @language = args[:language] if args.key?(:language)
527
- @entities = args[:entities] if args.key?(:entities)
528
- end
529
- end
493
+ # The grammatical gender.
494
+ # Corresponds to the JSON property `gender`
495
+ # @return [String]
496
+ attr_accessor :gender
530
497
 
531
- # The syntax analysis response message.
532
- class AnalyzeSyntaxResponse
533
- include Google::Apis::Core::Hashable
498
+ # The grammatical mood.
499
+ # Corresponds to the JSON property `mood`
500
+ # @return [String]
501
+ attr_accessor :mood
534
502
 
535
- # The language of the text, which will be the same as the language specified
536
- # in the request or, if not specified, the automatically-detected language.
537
- # See Document.language field for more details.
538
- # Corresponds to the JSON property `language`
503
+ # The grammatical number.
504
+ # Corresponds to the JSON property `number`
539
505
  # @return [String]
540
- attr_accessor :language
506
+ attr_accessor :number
541
507
 
542
- # Sentences in the input document.
543
- # Corresponds to the JSON property `sentences`
544
- # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
545
- attr_accessor :sentences
508
+ # The grammatical person.
509
+ # Corresponds to the JSON property `person`
510
+ # @return [String]
511
+ attr_accessor :person
546
512
 
547
- # Tokens, along with their syntactic information, in the input document.
548
- # Corresponds to the JSON property `tokens`
549
- # @return [Array<Google::Apis::LanguageV1beta1::Token>]
550
- attr_accessor :tokens
513
+ # The grammatical properness.
514
+ # Corresponds to the JSON property `proper`
515
+ # @return [String]
516
+ attr_accessor :proper
517
+
518
+ # The grammatical reciprocity.
519
+ # Corresponds to the JSON property `reciprocity`
520
+ # @return [String]
521
+ attr_accessor :reciprocity
522
+
523
+ # The part of speech tag.
524
+ # Corresponds to the JSON property `tag`
525
+ # @return [String]
526
+ attr_accessor :tag
527
+
528
+ # The grammatical tense.
529
+ # Corresponds to the JSON property `tense`
530
+ # @return [String]
531
+ attr_accessor :tense
532
+
533
+ # The grammatical voice.
534
+ # Corresponds to the JSON property `voice`
535
+ # @return [String]
536
+ attr_accessor :voice
551
537
 
552
538
  def initialize(**args)
553
539
  update!(**args)
@@ -555,49 +541,35 @@ module Google
555
541
 
556
542
  # Update properties of this object
557
543
  def update!(**args)
558
- @language = args[:language] if args.key?(:language)
559
- @sentences = args[:sentences] if args.key?(:sentences)
560
- @tokens = args[:tokens] if args.key?(:tokens)
544
+ @aspect = args[:aspect] if args.key?(:aspect)
545
+ @case = args[:case] if args.key?(:case)
546
+ @form = args[:form] if args.key?(:form)
547
+ @gender = args[:gender] if args.key?(:gender)
548
+ @mood = args[:mood] if args.key?(:mood)
549
+ @number = args[:number] if args.key?(:number)
550
+ @person = args[:person] if args.key?(:person)
551
+ @proper = args[:proper] if args.key?(:proper)
552
+ @reciprocity = args[:reciprocity] if args.key?(:reciprocity)
553
+ @tag = args[:tag] if args.key?(:tag)
554
+ @tense = args[:tense] if args.key?(:tense)
555
+ @voice = args[:voice] if args.key?(:voice)
561
556
  end
562
557
  end
563
558
 
564
- # Represents a phrase in the text that is a known entity, such as
565
- # a person, an organization, or location. The API associates information, such
566
- # as salience and mentions, with entities.
567
- class Entity
559
+ # Represents a sentence in the input document.
560
+ class Sentence
568
561
  include Google::Apis::Core::Hashable
569
562
 
570
- # The representative name for the entity.
571
- # Corresponds to the JSON property `name`
572
- # @return [String]
573
- attr_accessor :name
574
-
575
- # The salience score associated with the entity in the [0, 1.0] range.
576
- # The salience score for an entity provides information about the
577
- # importance or centrality of that entity to the entire document text.
578
- # Scores closer to 0 are less salient, while scores closer to 1.0 are highly
579
- # salient.
580
- # Corresponds to the JSON property `salience`
581
- # @return [Float]
582
- attr_accessor :salience
583
-
584
- # Metadata associated with the entity.
585
- # Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if
586
- # available. The associated keys are "wikipedia_url" and "mid", respectively.
587
- # Corresponds to the JSON property `metadata`
588
- # @return [Hash<String,String>]
589
- attr_accessor :metadata
590
-
591
- # The entity type.
592
- # Corresponds to the JSON property `type`
593
- # @return [String]
594
- attr_accessor :type
563
+ # Represents the feeling associated with the entire text or entities in
564
+ # the text.
565
+ # Corresponds to the JSON property `sentiment`
566
+ # @return [Google::Apis::LanguageV1beta1::Sentiment]
567
+ attr_accessor :sentiment
595
568
 
596
- # The mentions of this entity in the input document. The API currently
597
- # supports proper noun mentions.
598
- # Corresponds to the JSON property `mentions`
599
- # @return [Array<Google::Apis::LanguageV1beta1::EntityMention>]
600
- attr_accessor :mentions
569
+ # Represents an output piece of text.
570
+ # Corresponds to the JSON property `text`
571
+ # @return [Google::Apis::LanguageV1beta1::TextSpan]
572
+ attr_accessor :text
601
573
 
602
574
  def initialize(**args)
603
575
  update!(**args)
@@ -605,35 +577,35 @@ module Google
605
577
 
606
578
  # Update properties of this object
607
579
  def update!(**args)
608
- @name = args[:name] if args.key?(:name)
609
- @salience = args[:salience] if args.key?(:salience)
610
- @metadata = args[:metadata] if args.key?(:metadata)
611
- @type = args[:type] if args.key?(:type)
612
- @mentions = args[:mentions] if args.key?(:mentions)
580
+ @sentiment = args[:sentiment] if args.key?(:sentiment)
581
+ @text = args[:text] if args.key?(:text)
613
582
  end
614
583
  end
615
584
 
616
- # The request message for the text annotation API, which can perform multiple
617
- # analysis types (sentiment, entities, and syntax) in one call.
618
- class AnnotateTextRequest
585
+ # Represents the feeling associated with the entire text or entities in
586
+ # the text.
587
+ class Sentiment
619
588
  include Google::Apis::Core::Hashable
620
589
 
621
- # All available features for sentiment, syntax, and semantic analysis.
622
- # Setting each one to true will enable that specific analysis for the input.
623
- # Corresponds to the JSON property `features`
624
- # @return [Google::Apis::LanguageV1beta1::Features]
625
- attr_accessor :features
590
+ # A non-negative number in the [0, +inf) range, which represents
591
+ # the absolute magnitude of sentiment regardless of score (positive or
592
+ # negative).
593
+ # Corresponds to the JSON property `magnitude`
594
+ # @return [Float]
595
+ attr_accessor :magnitude
626
596
 
627
- # The encoding type used by the API to calculate offsets.
628
- # Corresponds to the JSON property `encodingType`
629
- # @return [String]
630
- attr_accessor :encoding_type
597
+ # DEPRECATED FIELD - This field is being deprecated in
598
+ # favor of score. Please refer to our documentation at
599
+ # https://cloud.google.com/natural-language/docs for more information.
600
+ # Corresponds to the JSON property `polarity`
601
+ # @return [Float]
602
+ attr_accessor :polarity
631
603
 
632
- # ################################################################ #
633
- # Represents the input to API methods.
634
- # Corresponds to the JSON property `document`
635
- # @return [Google::Apis::LanguageV1beta1::Document]
636
- attr_accessor :document
604
+ # Sentiment score between -1.0 (negative sentiment) and 1.0
605
+ # (positive sentiment).
606
+ # Corresponds to the JSON property `score`
607
+ # @return [Float]
608
+ attr_accessor :score
637
609
 
638
610
  def initialize(**args)
639
611
  update!(**args)
@@ -641,48 +613,71 @@ module Google
641
613
 
642
614
  # Update properties of this object
643
615
  def update!(**args)
644
- @features = args[:features] if args.key?(:features)
645
- @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
646
- @document = args[:document] if args.key?(:document)
616
+ @magnitude = args[:magnitude] if args.key?(:magnitude)
617
+ @polarity = args[:polarity] if args.key?(:polarity)
618
+ @score = args[:score] if args.key?(:score)
647
619
  end
648
620
  end
649
621
 
650
- # The text annotations response message.
651
- class AnnotateTextResponse
622
+ # The `Status` type defines a logical error model that is suitable for different
623
+ # programming environments, including REST APIs and RPC APIs. It is used by
624
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
625
+ # - Simple to use and understand for most users
626
+ # - Flexible enough to meet unexpected needs
627
+ # # Overview
628
+ # The `Status` message contains three pieces of data: error code, error message,
629
+ # and error details. The error code should be an enum value of
630
+ # google.rpc.Code, but it may accept additional error codes if needed. The
631
+ # error message should be a developer-facing English message that helps
632
+ # developers *understand* and *resolve* the error. If a localized user-facing
633
+ # error message is needed, put the localized message in the error details or
634
+ # localize it in the client. The optional error details may contain arbitrary
635
+ # information about the error. There is a predefined set of error detail types
636
+ # in the package `google.rpc` that can be used for common error conditions.
637
+ # # Language mapping
638
+ # The `Status` message is the logical representation of the error model, but it
639
+ # is not necessarily the actual wire format. When the `Status` message is
640
+ # exposed in different client libraries and different wire protocols, it can be
641
+ # mapped differently. For example, it will likely be mapped to some exceptions
642
+ # in Java, but more likely mapped to some error codes in C.
643
+ # # Other uses
644
+ # The error model and the `Status` message can be used in a variety of
645
+ # environments, either with or without APIs, to provide a
646
+ # consistent developer experience across different environments.
647
+ # Example uses of this error model include:
648
+ # - Partial errors. If a service needs to return partial errors to the client,
649
+ # it may embed the `Status` in the normal response to indicate the partial
650
+ # errors.
651
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
652
+ # have a `Status` message for error reporting.
653
+ # - Batch operations. If a client uses batch request and batch response, the
654
+ # `Status` message should be used directly inside batch response, one for
655
+ # each error sub-response.
656
+ # - Asynchronous operations. If an API call embeds asynchronous operation
657
+ # results in its response, the status of those operations should be
658
+ # represented directly using the `Status` message.
659
+ # - Logging. If some API errors are stored in logs, the message `Status` could
660
+ # be used directly after any stripping needed for security/privacy reasons.
661
+ class Status
652
662
  include Google::Apis::Core::Hashable
653
663
 
654
- # Entities, along with their semantic information, in the input document.
655
- # Populated if the user enables
656
- # AnnotateTextRequest.Features.extract_entities.
657
- # Corresponds to the JSON property `entities`
658
- # @return [Array<Google::Apis::LanguageV1beta1::Entity>]
659
- attr_accessor :entities
664
+ # The status code, which should be an enum value of google.rpc.Code.
665
+ # Corresponds to the JSON property `code`
666
+ # @return [Fixnum]
667
+ attr_accessor :code
660
668
 
661
- # Represents the feeling associated with the entire text or entities in
662
- # the text.
663
- # Corresponds to the JSON property `documentSentiment`
664
- # @return [Google::Apis::LanguageV1beta1::Sentiment]
665
- attr_accessor :document_sentiment
669
+ # A list of messages that carry the error details. There is a common set of
670
+ # message types for APIs to use.
671
+ # Corresponds to the JSON property `details`
672
+ # @return [Array<Hash<String,Object>>]
673
+ attr_accessor :details
666
674
 
667
- # The language of the text, which will be the same as the language specified
668
- # in the request or, if not specified, the automatically-detected language.
669
- # See Document.language field for more details.
670
- # Corresponds to the JSON property `language`
675
+ # A developer-facing error message, which should be in English. Any
676
+ # user-facing error message should be localized and sent in the
677
+ # google.rpc.Status.details field, or localized by the client.
678
+ # Corresponds to the JSON property `message`
671
679
  # @return [String]
672
- attr_accessor :language
673
-
674
- # Sentences in the input document. Populated if the user enables
675
- # AnnotateTextRequest.Features.extract_syntax.
676
- # Corresponds to the JSON property `sentences`
677
- # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
678
- attr_accessor :sentences
679
-
680
- # Tokens, along with their syntactic information, in the input document.
681
- # Populated if the user enables
682
- # AnnotateTextRequest.Features.extract_syntax.
683
- # Corresponds to the JSON property `tokens`
684
- # @return [Array<Google::Apis::LanguageV1beta1::Token>]
685
- attr_accessor :tokens
680
+ attr_accessor :message
686
681
 
687
682
  def initialize(**args)
688
683
  update!(**args)
@@ -690,29 +685,26 @@ module Google
690
685
 
691
686
  # Update properties of this object
692
687
  def update!(**args)
693
- @entities = args[:entities] if args.key?(:entities)
694
- @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
695
- @language = args[:language] if args.key?(:language)
696
- @sentences = args[:sentences] if args.key?(:sentences)
697
- @tokens = args[:tokens] if args.key?(:tokens)
688
+ @code = args[:code] if args.key?(:code)
689
+ @details = args[:details] if args.key?(:details)
690
+ @message = args[:message] if args.key?(:message)
698
691
  end
699
692
  end
700
693
 
701
- # The sentiment analysis request message.
702
- class AnalyzeSentimentRequest
694
+ # Represents an output piece of text.
695
+ class TextSpan
703
696
  include Google::Apis::Core::Hashable
704
697
 
705
- # ################################################################ #
706
- # Represents the input to API methods.
707
- # Corresponds to the JSON property `document`
708
- # @return [Google::Apis::LanguageV1beta1::Document]
709
- attr_accessor :document
698
+ # The API calculates the beginning offset of the content in the original
699
+ # document according to the EncodingType specified in the API request.
700
+ # Corresponds to the JSON property `beginOffset`
701
+ # @return [Fixnum]
702
+ attr_accessor :begin_offset
710
703
 
711
- # The encoding type used by the API to calculate sentence offsets for the
712
- # sentence sentiment.
713
- # Corresponds to the JSON property `encodingType`
704
+ # The content of the output text.
705
+ # Corresponds to the JSON property `content`
714
706
  # @return [String]
715
- attr_accessor :encoding_type
707
+ attr_accessor :content
716
708
 
717
709
  def initialize(**args)
718
710
  update!(**args)
@@ -720,28 +712,34 @@ module Google
720
712
 
721
713
  # Update properties of this object
722
714
  def update!(**args)
723
- @document = args[:document] if args.key?(:document)
724
- @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
715
+ @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
716
+ @content = args[:content] if args.key?(:content)
725
717
  end
726
718
  end
727
719
 
728
- # Represents dependency parse tree information for a token.
729
- class DependencyEdge
720
+ # Represents the smallest syntactic building block of the text.
721
+ class Token
730
722
  include Google::Apis::Core::Hashable
731
723
 
732
- # The parse label for the token.
733
- # Corresponds to the JSON property `label`
724
+ # Represents dependency parse tree information for a token.
725
+ # Corresponds to the JSON property `dependencyEdge`
726
+ # @return [Google::Apis::LanguageV1beta1::DependencyEdge]
727
+ attr_accessor :dependency_edge
728
+
729
+ # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
730
+ # Corresponds to the JSON property `lemma`
734
731
  # @return [String]
735
- attr_accessor :label
732
+ attr_accessor :lemma
736
733
 
737
- # Represents the head of this token in the dependency tree.
738
- # This is the index of the token which has an arc going to this token.
739
- # The index is the position of the token in the array of tokens returned
740
- # by the API method. If this token is a root token, then the
741
- # `head_token_index` is its own index.
742
- # Corresponds to the JSON property `headTokenIndex`
743
- # @return [Fixnum]
744
- attr_accessor :head_token_index
734
+ # Represents part of speech information for a token.
735
+ # Corresponds to the JSON property `partOfSpeech`
736
+ # @return [Google::Apis::LanguageV1beta1::PartOfSpeech]
737
+ attr_accessor :part_of_speech
738
+
739
+ # Represents an output piece of text.
740
+ # Corresponds to the JSON property `text`
741
+ # @return [Google::Apis::LanguageV1beta1::TextSpan]
742
+ attr_accessor :text
745
743
 
746
744
  def initialize(**args)
747
745
  update!(**args)
@@ -749,8 +747,10 @@ module Google
749
747
 
750
748
  # Update properties of this object
751
749
  def update!(**args)
752
- @label = args[:label] if args.key?(:label)
753
- @head_token_index = args[:head_token_index] if args.key?(:head_token_index)
750
+ @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge)
751
+ @lemma = args[:lemma] if args.key?(:lemma)
752
+ @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
753
+ @text = args[:text] if args.key?(:text)
754
754
  end
755
755
  end
756
756
  end