google-api-client 0.11.3 → 0.12.0

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