google-api-client 0.28.7 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (358) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/build.bat +9 -6
  3. data/.kokoro/build.sh +2 -32
  4. data/.kokoro/continuous/common.cfg +6 -1
  5. data/.kokoro/continuous/windows.cfg +17 -1
  6. data/.kokoro/osx.sh +2 -33
  7. data/.kokoro/presubmit/common.cfg +6 -1
  8. data/.kokoro/presubmit/windows.cfg +17 -1
  9. data/.kokoro/trampoline.bat +10 -0
  10. data/.kokoro/trampoline.sh +3 -23
  11. data/CHANGELOG.md +138 -0
  12. data/Rakefile +31 -0
  13. data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
  14. data/generated/google/apis/accessapproval_v1beta1/classes.rb +306 -0
  15. data/generated/google/apis/accessapproval_v1beta1/representations.rb +159 -0
  16. data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +96 -131
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -42
  20. data/generated/google/apis/admin_reports_v1.rb +1 -1
  21. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  22. data/generated/google/apis/alertcenter_v1beta1/classes.rb +98 -0
  23. data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
  24. data/generated/google/apis/alertcenter_v1beta1/service.rb +2 -1
  25. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  26. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +40 -0
  27. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  28. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  29. data/generated/google/apis/androidenterprise_v1/classes.rb +0 -26
  30. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -14
  31. data/generated/google/apis/androidenterprise_v1/service.rb +0 -36
  32. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  33. data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
  34. data/generated/google/apis/androidmanagement_v1/representations.rb +82 -0
  35. data/generated/google/apis/androidmanagement_v1/service.rb +170 -0
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/service.rb +6 -12
  38. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  39. data/generated/google/apis/androidpublisher_v3/service.rb +6 -12
  40. data/generated/google/apis/appengine_v1.rb +1 -1
  41. data/generated/google/apis/appengine_v1/service.rb +7 -1
  42. data/generated/google/apis/appengine_v1beta.rb +1 -1
  43. data/generated/google/apis/appengine_v1beta/classes.rb +2 -1
  44. data/generated/google/apis/appengine_v1beta/service.rb +7 -1
  45. data/generated/google/apis/appsactivity_v1.rb +1 -1
  46. data/generated/google/apis/appsactivity_v1/service.rb +4 -3
  47. data/generated/google/apis/bigquery_v2.rb +1 -1
  48. data/generated/google/apis/bigquery_v2/classes.rb +28 -4
  49. data/generated/google/apis/bigquery_v2/representations.rb +13 -0
  50. data/generated/google/apis/bigtableadmin_v1.rb +2 -2
  51. data/generated/google/apis/bigtableadmin_v1/service.rb +1 -1
  52. data/generated/google/apis/bigtableadmin_v2.rb +2 -2
  53. data/generated/google/apis/bigtableadmin_v2/classes.rb +10 -10
  54. data/generated/google/apis/bigtableadmin_v2/service.rb +111 -2
  55. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/calendar_v3/service.rb +16 -16
  58. data/generated/google/apis/classroom_v1.rb +7 -1
  59. data/generated/google/apis/classroom_v1/classes.rb +77 -0
  60. data/generated/google/apis/classroom_v1/representations.rb +32 -0
  61. data/generated/google/apis/classroom_v1/service.rb +224 -0
  62. data/generated/google/apis/cloudasset_v1.rb +1 -1
  63. data/generated/google/apis/cloudasset_v1/classes.rb +15 -2
  64. data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
  65. data/generated/google/apis/cloudasset_v1/service.rb +3 -2
  66. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  67. data/generated/google/apis/cloudasset_v1beta1/classes.rb +13 -0
  68. data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
  69. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  70. data/generated/google/apis/cloudbilling_v1/service.rb +2 -2
  71. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  72. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1 -1
  73. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  74. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
  75. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -5
  76. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  77. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -10
  78. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  79. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -4
  80. data/generated/google/apis/cloudiot_v1.rb +1 -1
  81. data/generated/google/apis/cloudkms_v1.rb +1 -1
  82. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  83. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  84. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
  85. data/generated/google/apis/cloudresourcemanager_v1/service.rb +30 -21
  86. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  87. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +37 -26
  88. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  89. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  90. data/generated/google/apis/cloudscheduler_v1.rb +34 -0
  91. data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
  92. data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
  93. data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
  94. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  95. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -2
  96. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  97. data/generated/google/apis/cloudsearch_v1/classes.rb +25 -11
  98. data/generated/google/apis/cloudsearch_v1/service.rb +36 -32
  99. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  100. data/generated/google/apis/cloudtasks_v2/service.rb +13 -13
  101. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  102. data/generated/google/apis/cloudtasks_v2beta2/service.rb +13 -13
  103. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  104. data/generated/google/apis/cloudtasks_v2beta3/service.rb +13 -13
  105. data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
  106. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
  107. data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
  108. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
  109. data/generated/google/apis/compute_alpha.rb +1 -1
  110. data/generated/google/apis/compute_alpha/classes.rb +328 -25
  111. data/generated/google/apis/compute_alpha/representations.rb +134 -0
  112. data/generated/google/apis/compute_alpha/service.rb +465 -0
  113. data/generated/google/apis/compute_beta.rb +1 -1
  114. data/generated/google/apis/compute_beta/classes.rb +86 -20
  115. data/generated/google/apis/compute_beta/representations.rb +7 -0
  116. data/generated/google/apis/compute_v1.rb +1 -1
  117. data/generated/google/apis/compute_v1/classes.rb +994 -103
  118. data/generated/google/apis/compute_v1/representations.rb +346 -0
  119. data/generated/google/apis/compute_v1/service.rb +533 -0
  120. data/generated/google/apis/container_v1.rb +1 -1
  121. data/generated/google/apis/container_v1/classes.rb +167 -21
  122. data/generated/google/apis/container_v1/representations.rb +66 -0
  123. data/generated/google/apis/container_v1/service.rb +85 -36
  124. data/generated/google/apis/container_v1beta1.rb +1 -1
  125. data/generated/google/apis/container_v1beta1/classes.rb +86 -21
  126. data/generated/google/apis/container_v1beta1/representations.rb +32 -0
  127. data/generated/google/apis/container_v1beta1/service.rb +38 -38
  128. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  129. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  130. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +95 -6
  131. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +25 -0
  132. data/generated/google/apis/content_v2.rb +1 -1
  133. data/generated/google/apis/content_v2/classes.rb +5 -5
  134. data/generated/google/apis/content_v2/service.rb +6 -6
  135. data/generated/google/apis/content_v2_1.rb +1 -1
  136. data/generated/google/apis/content_v2_1/classes.rb +18 -4
  137. data/generated/google/apis/content_v2_1/representations.rb +2 -0
  138. data/generated/google/apis/content_v2_1/service.rb +6 -6
  139. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  140. data/generated/google/apis/dataflow_v1b3/classes.rb +56 -1
  141. data/generated/google/apis/dataflow_v1b3/representations.rb +39 -0
  142. data/generated/google/apis/dataflow_v1b3/service.rb +251 -0
  143. data/generated/google/apis/datafusion_v1beta1.rb +43 -0
  144. data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
  145. data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
  146. data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
  147. data/generated/google/apis/dataproc_v1.rb +1 -1
  148. data/generated/google/apis/dataproc_v1/classes.rb +5 -5
  149. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  150. data/generated/google/apis/dataproc_v1beta2/classes.rb +37 -24
  151. data/generated/google/apis/datastore_v1.rb +1 -1
  152. data/generated/google/apis/datastore_v1/classes.rb +20 -16
  153. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  154. data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
  155. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  156. data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
  157. data/generated/google/apis/dialogflow_v2.rb +1 -1
  158. data/generated/google/apis/dialogflow_v2/classes.rb +236 -0
  159. data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
  160. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  161. data/generated/google/apis/dialogflow_v2beta1/classes.rb +64 -2
  162. data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
  163. data/generated/google/apis/dlp_v2.rb +1 -1
  164. data/generated/google/apis/dlp_v2/classes.rb +19 -2
  165. data/generated/google/apis/dns_v1.rb +1 -1
  166. data/generated/google/apis/dns_v1/classes.rb +202 -93
  167. data/generated/google/apis/dns_v1/service.rb +110 -15
  168. data/generated/google/apis/dns_v1beta2.rb +1 -1
  169. data/generated/google/apis/dns_v1beta2/classes.rb +262 -122
  170. data/generated/google/apis/dns_v1beta2/service.rb +141 -21
  171. data/generated/google/apis/dns_v2beta1.rb +1 -1
  172. data/generated/google/apis/dns_v2beta1/classes.rb +202 -93
  173. data/generated/google/apis/dns_v2beta1/service.rb +110 -15
  174. data/generated/google/apis/docs_v1.rb +1 -1
  175. data/generated/google/apis/docs_v1/classes.rb +10 -0
  176. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
  178. data/generated/google/apis/drive_v2.rb +1 -1
  179. data/generated/google/apis/drive_v2/classes.rb +601 -69
  180. data/generated/google/apis/drive_v2/representations.rb +152 -0
  181. data/generated/google/apis/drive_v2/service.rb +452 -96
  182. data/generated/google/apis/drive_v3.rb +1 -1
  183. data/generated/google/apis/drive_v3/classes.rb +591 -64
  184. data/generated/google/apis/drive_v3/representations.rb +151 -0
  185. data/generated/google/apis/drive_v3/service.rb +407 -77
  186. data/generated/google/apis/driveactivity_v2.rb +1 -1
  187. data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
  188. data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
  189. data/generated/google/apis/file_v1.rb +1 -1
  190. data/generated/google/apis/file_v1/classes.rb +399 -8
  191. data/generated/google/apis/file_v1/representations.rb +121 -0
  192. data/generated/google/apis/file_v1beta1.rb +1 -1
  193. data/generated/google/apis/file_v1beta1/classes.rb +399 -8
  194. data/generated/google/apis/file_v1beta1/representations.rb +121 -0
  195. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  196. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +28 -4
  197. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
  198. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  199. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
  200. data/generated/google/apis/firebaserules_v1.rb +1 -1
  201. data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
  202. data/generated/google/apis/firestore_v1.rb +1 -1
  203. data/generated/google/apis/firestore_v1/classes.rb +15 -15
  204. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  205. data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
  206. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  207. data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
  208. data/generated/google/apis/fitness_v1.rb +1 -1
  209. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  210. data/generated/google/apis/games_v1.rb +2 -2
  211. data/generated/google/apis/gmail_v1.rb +1 -1
  212. data/generated/google/apis/gmail_v1/classes.rb +29 -0
  213. data/generated/google/apis/gmail_v1/representations.rb +13 -0
  214. data/generated/google/apis/gmail_v1/service.rb +76 -0
  215. data/generated/google/apis/healthcare_v1beta1.rb +34 -0
  216. data/generated/google/apis/healthcare_v1beta1/classes.rb +2462 -0
  217. data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
  218. data/generated/google/apis/healthcare_v1beta1/service.rb +3403 -0
  219. data/generated/google/apis/iap_v1.rb +1 -1
  220. data/generated/google/apis/iap_v1beta1.rb +1 -1
  221. data/generated/google/apis/jobs_v2.rb +1 -1
  222. data/generated/google/apis/jobs_v2/classes.rb +9 -8
  223. data/generated/google/apis/jobs_v3.rb +1 -1
  224. data/generated/google/apis/jobs_v3/classes.rb +13 -7
  225. data/generated/google/apis/jobs_v3/service.rb +1 -2
  226. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  227. data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -7
  228. data/generated/google/apis/jobs_v3p1beta1/service.rb +1 -2
  229. data/generated/google/apis/language_v1.rb +1 -1
  230. data/generated/google/apis/language_v1/classes.rb +3 -2
  231. data/generated/google/apis/language_v1beta2.rb +1 -1
  232. data/generated/google/apis/language_v1beta2/classes.rb +3 -2
  233. data/generated/google/apis/ml_v1.rb +1 -1
  234. data/generated/google/apis/ml_v1/classes.rb +64 -16
  235. data/generated/google/apis/ml_v1/representations.rb +2 -0
  236. data/generated/google/apis/ml_v1/service.rb +5 -5
  237. data/generated/google/apis/monitoring_v3.rb +1 -1
  238. data/generated/google/apis/monitoring_v3/classes.rb +0 -10
  239. data/generated/google/apis/monitoring_v3/representations.rb +0 -1
  240. data/generated/google/apis/oauth2_v1.rb +1 -1
  241. data/generated/google/apis/oauth2_v2.rb +1 -1
  242. data/generated/google/apis/oslogin_v1.rb +3 -2
  243. data/generated/google/apis/oslogin_v1/service.rb +2 -1
  244. data/generated/google/apis/oslogin_v1alpha.rb +3 -2
  245. data/generated/google/apis/oslogin_v1alpha/service.rb +2 -1
  246. data/generated/google/apis/oslogin_v1beta.rb +3 -2
  247. data/generated/google/apis/oslogin_v1beta/service.rb +2 -1
  248. data/generated/google/apis/people_v1.rb +1 -4
  249. data/generated/google/apis/people_v1/classes.rb +19 -11
  250. data/generated/google/apis/people_v1/representations.rb +1 -0
  251. data/generated/google/apis/people_v1/service.rb +1 -0
  252. data/generated/google/apis/plus_domains_v1.rb +2 -5
  253. data/generated/google/apis/plus_domains_v1/service.rb +8 -90
  254. data/generated/google/apis/plus_v1.rb +2 -2
  255. data/generated/google/apis/plus_v1/service.rb +7 -7
  256. data/generated/google/apis/poly_v1.rb +1 -1
  257. data/generated/google/apis/poly_v1/classes.rb +3 -2
  258. data/generated/google/apis/poly_v1/service.rb +11 -8
  259. data/generated/google/apis/pubsub_v1.rb +1 -1
  260. data/generated/google/apis/pubsub_v1/classes.rb +2 -1
  261. data/generated/google/apis/pubsub_v1/service.rb +8 -8
  262. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  263. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  264. data/generated/google/apis/remotebuildexecution_v1/classes.rb +7 -6
  265. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  266. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -4
  267. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  268. data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -4
  269. data/generated/google/apis/run_v1alpha1.rb +1 -1
  270. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  271. data/generated/google/apis/securitycenter_v1.rb +35 -0
  272. data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
  273. data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
  274. data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
  275. data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
  276. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
  277. data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
  278. data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
  279. data/generated/google/apis/servicebroker_v1.rb +1 -1
  280. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  281. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  282. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  283. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +324 -13
  284. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +174 -0
  285. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -0
  286. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  287. data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
  288. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  289. data/generated/google/apis/servicemanagement_v1/classes.rb +101 -20
  290. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  291. data/generated/google/apis/servicenetworking_v1/classes.rb +16 -13
  292. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  293. data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -13
  294. data/generated/google/apis/serviceusage_v1.rb +1 -1
  295. data/generated/google/apis/serviceusage_v1/classes.rb +110 -13
  296. data/generated/google/apis/serviceusage_v1/representations.rb +43 -0
  297. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  298. data/generated/google/apis/serviceusage_v1beta1/classes.rb +110 -13
  299. data/generated/google/apis/serviceusage_v1beta1/representations.rb +43 -0
  300. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  301. data/generated/google/apis/sourcerepo_v1/classes.rb +182 -0
  302. data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
  303. data/generated/google/apis/sourcerepo_v1/service.rb +35 -0
  304. data/generated/google/apis/spanner_v1.rb +1 -1
  305. data/generated/google/apis/spanner_v1/classes.rb +20 -19
  306. data/generated/google/apis/spanner_v1/service.rb +1 -1
  307. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  308. data/generated/google/apis/sqladmin_v1beta4/classes.rb +9 -2
  309. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  310. data/generated/google/apis/storage_v1.rb +1 -1
  311. data/generated/google/apis/storage_v1/classes.rb +144 -0
  312. data/generated/google/apis/storage_v1/representations.rb +56 -0
  313. data/generated/google/apis/storage_v1/service.rb +441 -46
  314. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  315. data/generated/google/apis/storagetransfer_v1/classes.rb +3 -3
  316. data/generated/google/apis/testing_v1.rb +1 -1
  317. data/generated/google/apis/testing_v1/classes.rb +6 -0
  318. data/generated/google/apis/testing_v1/representations.rb +1 -0
  319. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  320. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  321. data/generated/google/apis/toolresults_v1beta3/classes.rb +240 -0
  322. data/generated/google/apis/toolresults_v1beta3/representations.rb +43 -0
  323. data/generated/google/apis/toolresults_v1beta3/service.rb +116 -0
  324. data/generated/google/apis/tpu_v1.rb +1 -1
  325. data/generated/google/apis/tpu_v1/classes.rb +10 -4
  326. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  327. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  328. data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -4
  329. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  330. data/generated/google/apis/vault_v1.rb +1 -1
  331. data/generated/google/apis/vault_v1/classes.rb +37 -18
  332. data/generated/google/apis/vault_v1/representations.rb +3 -0
  333. data/generated/google/apis/vision_v1.rb +1 -1
  334. data/generated/google/apis/vision_v1/classes.rb +84 -47
  335. data/generated/google/apis/vision_v1/service.rb +68 -4
  336. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  337. data/generated/google/apis/vision_v1p1beta1/classes.rb +84 -47
  338. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  339. data/generated/google/apis/vision_v1p2beta1/classes.rb +84 -47
  340. data/generated/google/apis/webmasters_v3.rb +1 -1
  341. data/generated/google/apis/webmasters_v3/classes.rb +0 -166
  342. data/generated/google/apis/webmasters_v3/representations.rb +0 -93
  343. data/generated/google/apis/webmasters_v3/service.rb +0 -171
  344. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  345. data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
  346. data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
  347. data/generated/google/apis/youtube_v3.rb +1 -1
  348. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  349. data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
  350. data/google-api-client.gemspec +1 -1
  351. data/lib/google/apis/version.rb +1 -1
  352. metadata +31 -9
  353. data/.kokoro/common.cfg +0 -22
  354. data/.kokoro/windows.sh +0 -32
  355. data/generated/google/apis/logging_v2beta1.rb +0 -46
  356. data/generated/google/apis/logging_v2beta1/classes.rb +0 -1764
  357. data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
  358. data/generated/google/apis/logging_v2beta1/service.rb +0 -570
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/tasks/
26
26
  module CloudtasksV2beta3
27
27
  VERSION = 'V2beta3'
28
- REVISION = '20190326'
28
+ REVISION = '20190412'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -124,9 +124,9 @@ module Google
124
124
  # WARNING: Using this method may have unintended side effects if you are
125
125
  # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
126
126
  # Read
127
- # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
128
- # docs/queue-yaml)
129
- # before using this method.
127
+ # [Overview of Queue Management and
128
+ # queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
129
+ # this method.
130
130
  # @param [String] parent
131
131
  # Required.
132
132
  # The location name in which the queue will be created.
@@ -171,9 +171,9 @@ module Google
171
171
  # WARNING: Using this method may have unintended side effects if you are
172
172
  # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
173
173
  # Read
174
- # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
175
- # docs/queue-yaml)
176
- # before using this method.
174
+ # [Overview of Queue Management and
175
+ # queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
176
+ # this method.
177
177
  # @param [String] name
178
178
  # Required.
179
179
  # The queue name. For example:
@@ -288,8 +288,8 @@ module Google
288
288
  # field can be used as a filter and several operators as supported.
289
289
  # For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
290
290
  # described in
291
- # [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/
292
- # view/advanced_filters).
291
+ # [Stackdriver's Advanced Logs
292
+ # Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
293
293
  # Sample filter "state: PAUSED".
294
294
  # Note that using filters might cause fewer queues than the
295
295
  # requested page_size to be returned.
@@ -348,9 +348,9 @@ module Google
348
348
  # WARNING: Using this method may have unintended side effects if you are
349
349
  # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
350
350
  # Read
351
- # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
352
- # docs/queue-yaml)
353
- # before using this method.
351
+ # [Overview of Queue Management and
352
+ # queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
353
+ # this method.
354
354
  # @param [String] name
355
355
  # Caller-specified and required in CreateQueue,
356
356
  # after which it becomes output only.
@@ -490,8 +490,8 @@ module Google
490
490
  # WARNING: Resuming many high-QPS queues at the same time can
491
491
  # lead to target overloading. If you are resuming high-QPS
492
492
  # queues, follow the 500/50/5 pattern described in
493
- # [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/
494
- # manage-cloud-task-scaling).
493
+ # [Managing Cloud Tasks Scaling
494
+ # Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
495
495
  # @param [String] name
496
496
  # Required.
497
497
  # The queue name. For example:
@@ -0,0 +1,39 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/commentanalyzer_v1alpha1/service.rb'
16
+ require 'google/apis/commentanalyzer_v1alpha1/classes.rb'
17
+ require 'google/apis/commentanalyzer_v1alpha1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Perspective Comment Analyzer API
22
+ #
23
+ # The Perspective Comment Analyzer API provides information about the potential
24
+ # impact of a comment on a conversation (e.g. it can provide a score for the "
25
+ # toxicity" of a comment). Users can leverage the "SuggestCommentScore" method
26
+ # to submit corrections to improve Perspective over time. Users can set the "
27
+ # doNotStore" flag to ensure that all submitted comments are automatically
28
+ # deleted after scores are returned.
29
+ #
30
+ # @see https://conversationai.github.io/
31
+ module CommentanalyzerV1alpha1
32
+ VERSION = 'V1alpha1'
33
+ REVISION = '20190414'
34
+
35
+ # View your email address
36
+ AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,484 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CommentanalyzerV1alpha1
24
+
25
+ # The comment analysis request message.
26
+ class AnalyzeCommentRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Opaque token that is echoed from the request to the response.
30
+ # Corresponds to the JSON property `clientToken`
31
+ # @return [String]
32
+ attr_accessor :client_token
33
+
34
+ # Represents a body of text.
35
+ # Corresponds to the JSON property `comment`
36
+ # @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
37
+ attr_accessor :comment
38
+
39
+ # Optional identifier associating this AnalyzeCommentRequest with a
40
+ # particular client's community. Different communities may have different
41
+ # norms and rules. Specifying this value enables us to explore building
42
+ # community-specific models for clients.
43
+ # Corresponds to the JSON property `communityId`
44
+ # @return [String]
45
+ attr_accessor :community_id
46
+
47
+ # Context is typically something that a Comment is referencing or replying to
48
+ # (such as an article, or previous comment).
49
+ # Note: Populate only ONE OF the following fields. The oneof syntax cannot be
50
+ # used because that would require nesting entries inside another message and
51
+ # breaking backwards compatibility. The server will return an error if more
52
+ # than one of the following fields is present.
53
+ # Corresponds to the JSON property `context`
54
+ # @return [Google::Apis::CommentanalyzerV1alpha1::Context]
55
+ attr_accessor :context
56
+
57
+ # Do not store the comment or context sent in this request. By default, the
58
+ # service may store comments/context for debugging purposes.
59
+ # Corresponds to the JSON property `doNotStore`
60
+ # @return [Boolean]
61
+ attr_accessor :do_not_store
62
+ alias_method :do_not_store?, :do_not_store
63
+
64
+ # The language(s) of the comment and context (if none are specified, the
65
+ # language is automatically detected). If multiple languages are specified,
66
+ # the text is checked in all of them that are supported. Both ISO and BCP-47
67
+ # language codes are accepted.
68
+ # Current Language Restrictions:
69
+ # * Only English text ("en") is supported.
70
+ # If none of the languages specified by the caller are supported, an
71
+ # `UNIMPLEMENTED` error is returned.
72
+ # Corresponds to the JSON property `languages`
73
+ # @return [Array<String>]
74
+ attr_accessor :languages
75
+
76
+ # Specification of requested attributes. The AttributeParameters serve as
77
+ # configuration for each associated attribute. The map keys are attribute
78
+ # names. The following attributes are available:
79
+ # "ATTACK_ON_AUTHOR" - Attack on author of original article or post.
80
+ # "ATTACK_ON_COMMENTER" - Attack on fellow commenter.
81
+ # "ATTACK_ON_PUBLISHER" - Attack on publisher of article/post.
82
+ # "INCOHERENT" - Difficult to understand, nonsensical.
83
+ # "INFLAMMATORY" - Intending to provoke or inflame.
84
+ # "OBSCENE" - Obscene, such as cursing.
85
+ # "OFF_TOPIC" - Not related to the original topic.
86
+ # "SPAM" - Commercial/advertising spam content.
87
+ # "UNSUBSTANTIAL" - Trivial.
88
+ # Corresponds to the JSON property `requestedAttributes`
89
+ # @return [Hash<String,Google::Apis::CommentanalyzerV1alpha1::AttributeParameters>]
90
+ attr_accessor :requested_attributes
91
+
92
+ # Session ID. Used to join related RPCs into a single session. For example,
93
+ # an interactive tool that calls both the AnalyzeComment and
94
+ # SuggestCommentScore RPCs should set all invocations of both RPCs to the
95
+ # same Session ID, typically a random 64-bit integer.
96
+ # Corresponds to the JSON property `sessionId`
97
+ # @return [String]
98
+ attr_accessor :session_id
99
+
100
+ # An advisory parameter that will return span annotations if the model
101
+ # is capable of providing scores with sub-comment resolution. This will
102
+ # likely increase the size of the returned message.
103
+ # Corresponds to the JSON property `spanAnnotations`
104
+ # @return [Boolean]
105
+ attr_accessor :span_annotations
106
+ alias_method :span_annotations?, :span_annotations
107
+
108
+ def initialize(**args)
109
+ update!(**args)
110
+ end
111
+
112
+ # Update properties of this object
113
+ def update!(**args)
114
+ @client_token = args[:client_token] if args.key?(:client_token)
115
+ @comment = args[:comment] if args.key?(:comment)
116
+ @community_id = args[:community_id] if args.key?(:community_id)
117
+ @context = args[:context] if args.key?(:context)
118
+ @do_not_store = args[:do_not_store] if args.key?(:do_not_store)
119
+ @languages = args[:languages] if args.key?(:languages)
120
+ @requested_attributes = args[:requested_attributes] if args.key?(:requested_attributes)
121
+ @session_id = args[:session_id] if args.key?(:session_id)
122
+ @span_annotations = args[:span_annotations] if args.key?(:span_annotations)
123
+ end
124
+ end
125
+
126
+ # The comment analysis response message.
127
+ class AnalyzeCommentResponse
128
+ include Google::Apis::Core::Hashable
129
+
130
+ # Scores for the requested attributes. The map keys are attribute names (same
131
+ # as the requested_attribute field in AnalyzeCommentRequest, for example
132
+ # "ATTACK_ON_AUTHOR", "INFLAMMATORY", etc).
133
+ # Corresponds to the JSON property `attributeScores`
134
+ # @return [Hash<String,Google::Apis::CommentanalyzerV1alpha1::AttributeScores>]
135
+ attr_accessor :attribute_scores
136
+
137
+ # Same token from the original AnalyzeCommentRequest.
138
+ # Corresponds to the JSON property `clientToken`
139
+ # @return [String]
140
+ attr_accessor :client_token
141
+
142
+ # Contains the language as detected from the text content. If no language
143
+ # was specified in the request, the first (the most likely) language is used
144
+ # to select an appropriate model. Sorted in order of likelihood.
145
+ # Corresponds to the JSON property `detectedLanguages`
146
+ # @return [Array<String>]
147
+ attr_accessor :detected_languages
148
+
149
+ # The language(s) requested by the client, as specified in the request. If
150
+ # the request did not specify any language, this will be empty and the
151
+ # detected_languages field will be populated.
152
+ # Corresponds to the JSON property `languages`
153
+ # @return [Array<String>]
154
+ attr_accessor :languages
155
+
156
+ def initialize(**args)
157
+ update!(**args)
158
+ end
159
+
160
+ # Update properties of this object
161
+ def update!(**args)
162
+ @attribute_scores = args[:attribute_scores] if args.key?(:attribute_scores)
163
+ @client_token = args[:client_token] if args.key?(:client_token)
164
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
165
+ @languages = args[:languages] if args.key?(:languages)
166
+ end
167
+ end
168
+
169
+ # A type of context specific to a comment left on a single-threaded comment
170
+ # message board, where comments are either a top level comment or the child of
171
+ # a top level comment.
172
+ class ArticleAndParentComment
173
+ include Google::Apis::Core::Hashable
174
+
175
+ # Represents a body of text.
176
+ # Corresponds to the JSON property `article`
177
+ # @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
178
+ attr_accessor :article
179
+
180
+ # Represents a body of text.
181
+ # Corresponds to the JSON property `parentComment`
182
+ # @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
183
+ attr_accessor :parent_comment
184
+
185
+ def initialize(**args)
186
+ update!(**args)
187
+ end
188
+
189
+ # Update properties of this object
190
+ def update!(**args)
191
+ @article = args[:article] if args.key?(:article)
192
+ @parent_comment = args[:parent_comment] if args.key?(:parent_comment)
193
+ end
194
+ end
195
+
196
+ # Configurable parameters for attribute scoring.
197
+ class AttributeParameters
198
+ include Google::Apis::Core::Hashable
199
+
200
+ # Don't return scores for this attribute that are below this threshold. If
201
+ # unset, a default threshold will be applied. A FloatValue wrapper is used to
202
+ # distinguish between 0 vs. default/unset.
203
+ # Corresponds to the JSON property `scoreThreshold`
204
+ # @return [Float]
205
+ attr_accessor :score_threshold
206
+
207
+ # What type of scores to return. If unset, defaults to probability scores.
208
+ # Corresponds to the JSON property `scoreType`
209
+ # @return [String]
210
+ attr_accessor :score_type
211
+
212
+ def initialize(**args)
213
+ update!(**args)
214
+ end
215
+
216
+ # Update properties of this object
217
+ def update!(**args)
218
+ @score_threshold = args[:score_threshold] if args.key?(:score_threshold)
219
+ @score_type = args[:score_type] if args.key?(:score_type)
220
+ end
221
+ end
222
+
223
+ # This holds score values for a single attribute. It contains both per-span
224
+ # scores as well as an overall summary score..
225
+ class AttributeScores
226
+ include Google::Apis::Core::Hashable
227
+
228
+ # Per-span scores.
229
+ # Corresponds to the JSON property `spanScores`
230
+ # @return [Array<Google::Apis::CommentanalyzerV1alpha1::SpanScore>]
231
+ attr_accessor :span_scores
232
+
233
+ # Analysis scores are described by a value and a ScoreType.
234
+ # Corresponds to the JSON property `summaryScore`
235
+ # @return [Google::Apis::CommentanalyzerV1alpha1::Score]
236
+ attr_accessor :summary_score
237
+
238
+ def initialize(**args)
239
+ update!(**args)
240
+ end
241
+
242
+ # Update properties of this object
243
+ def update!(**args)
244
+ @span_scores = args[:span_scores] if args.key?(:span_scores)
245
+ @summary_score = args[:summary_score] if args.key?(:summary_score)
246
+ end
247
+ end
248
+
249
+ # Context is typically something that a Comment is referencing or replying to
250
+ # (such as an article, or previous comment).
251
+ # Note: Populate only ONE OF the following fields. The oneof syntax cannot be
252
+ # used because that would require nesting entries inside another message and
253
+ # breaking backwards compatibility. The server will return an error if more
254
+ # than one of the following fields is present.
255
+ class Context
256
+ include Google::Apis::Core::Hashable
257
+
258
+ # A type of context specific to a comment left on a single-threaded comment
259
+ # message board, where comments are either a top level comment or the child of
260
+ # a top level comment.
261
+ # Corresponds to the JSON property `articleAndParentComment`
262
+ # @return [Google::Apis::CommentanalyzerV1alpha1::ArticleAndParentComment]
263
+ attr_accessor :article_and_parent_comment
264
+
265
+ # A list of messages. For example, a linear comments section or forum thread.
266
+ # Corresponds to the JSON property `entries`
267
+ # @return [Array<Google::Apis::CommentanalyzerV1alpha1::TextEntry>]
268
+ attr_accessor :entries
269
+
270
+ def initialize(**args)
271
+ update!(**args)
272
+ end
273
+
274
+ # Update properties of this object
275
+ def update!(**args)
276
+ @article_and_parent_comment = args[:article_and_parent_comment] if args.key?(:article_and_parent_comment)
277
+ @entries = args[:entries] if args.key?(:entries)
278
+ end
279
+ end
280
+
281
+ # Analysis scores are described by a value and a ScoreType.
282
+ class Score
283
+ include Google::Apis::Core::Hashable
284
+
285
+ # The type of the above value.
286
+ # Corresponds to the JSON property `type`
287
+ # @return [String]
288
+ attr_accessor :type
289
+
290
+ # Score value. Semantics described by type below.
291
+ # Corresponds to the JSON property `value`
292
+ # @return [Float]
293
+ attr_accessor :value
294
+
295
+ def initialize(**args)
296
+ update!(**args)
297
+ end
298
+
299
+ # Update properties of this object
300
+ def update!(**args)
301
+ @type = args[:type] if args.key?(:type)
302
+ @value = args[:value] if args.key?(:value)
303
+ end
304
+ end
305
+
306
+ # This is a single score for a given span of text.
307
+ class SpanScore
308
+ include Google::Apis::Core::Hashable
309
+
310
+ # "begin" and "end" describe the span of the original text that the attribute
311
+ # score applies to. The values are the UTF-16 codepoint range. "end" is
312
+ # exclusive. For example, with the text "Hi there", the begin/end pair (0,2)
313
+ # describes the text "Hi".
314
+ # If "begin" and "end" are unset, the score applies to the full text.
315
+ # Corresponds to the JSON property `begin`
316
+ # @return [Fixnum]
317
+ attr_accessor :begin
318
+
319
+ #
320
+ # Corresponds to the JSON property `end`
321
+ # @return [Fixnum]
322
+ attr_accessor :end
323
+
324
+ # Analysis scores are described by a value and a ScoreType.
325
+ # Corresponds to the JSON property `score`
326
+ # @return [Google::Apis::CommentanalyzerV1alpha1::Score]
327
+ attr_accessor :score
328
+
329
+ def initialize(**args)
330
+ update!(**args)
331
+ end
332
+
333
+ # Update properties of this object
334
+ def update!(**args)
335
+ @begin = args[:begin] if args.key?(:begin)
336
+ @end = args[:end] if args.key?(:end)
337
+ @score = args[:score] if args.key?(:score)
338
+ end
339
+ end
340
+
341
+ # The comment score suggestion request message.
342
+ class SuggestCommentScoreRequest
343
+ include Google::Apis::Core::Hashable
344
+
345
+ # Attribute scores for the comment. The map keys are attribute names, same as
346
+ # the requested_attribute field in AnalyzeCommentRequest (for example
347
+ # "ATTACK_ON_AUTHOR", "INFLAMMATORY", etc.). This field has the same type as
348
+ # the `attribute_scores` field in AnalyzeCommentResponse.
349
+ # To specify an overall attribute score for the entire comment as a whole,
350
+ # use the `summary_score` field of the mapped AttributeScores object. To
351
+ # specify scores on specific subparts of the comment, use the `span_scores`
352
+ # field. All SpanScore objects must have begin and end fields set.
353
+ # All Score objects must be explicitly set (for binary classification, use
354
+ # the score values 0 and 1). If Score objects don't include a ScoreType,
355
+ # `PROBABILITY` is assumed.
356
+ # `attribute_scores` must not be empty. The mapped AttributeScores objects
357
+ # also must not be empty. An `INVALID_ARGUMENT` error is returned for all
358
+ # malformed requests.
359
+ # Corresponds to the JSON property `attributeScores`
360
+ # @return [Hash<String,Google::Apis::CommentanalyzerV1alpha1::AttributeScores>]
361
+ attr_accessor :attribute_scores
362
+
363
+ # Opaque token that is echoed from the request to the response.
364
+ # Corresponds to the JSON property `clientToken`
365
+ # @return [String]
366
+ attr_accessor :client_token
367
+
368
+ # Represents a body of text.
369
+ # Corresponds to the JSON property `comment`
370
+ # @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
371
+ attr_accessor :comment
372
+
373
+ # Optional identifier associating this comment score suggestion with a
374
+ # particular sub-community. Different communities may have different norms
375
+ # and rules. Specifying this value enables training community-specific
376
+ # models.
377
+ # Corresponds to the JSON property `communityId`
378
+ # @return [String]
379
+ attr_accessor :community_id
380
+
381
+ # Context is typically something that a Comment is referencing or replying to
382
+ # (such as an article, or previous comment).
383
+ # Note: Populate only ONE OF the following fields. The oneof syntax cannot be
384
+ # used because that would require nesting entries inside another message and
385
+ # breaking backwards compatibility. The server will return an error if more
386
+ # than one of the following fields is present.
387
+ # Corresponds to the JSON property `context`
388
+ # @return [Google::Apis::CommentanalyzerV1alpha1::Context]
389
+ attr_accessor :context
390
+
391
+ # The language(s) of the comment and context (if none are specified, the
392
+ # language is automatically detected). If multiple languages are specified,
393
+ # the text is checked in all of them that are supported. Both ISO and BCP-47
394
+ # language codes are accepted.
395
+ # Current Language Restrictions:
396
+ # * Only English text ("en") is supported.
397
+ # If none of the languages specified by the caller are supported, an
398
+ # `UNIMPLEMENTED` error is returned.
399
+ # Corresponds to the JSON property `languages`
400
+ # @return [Array<String>]
401
+ attr_accessor :languages
402
+
403
+ # Session ID. Used to join related RPCs into a single session. For example,
404
+ # an interactive tool that calls both the AnalyzeComment and
405
+ # SuggestCommentScore RPCs should set all invocations of both RPCs to the
406
+ # same Session ID, typically a random 64-bit integer.
407
+ # Corresponds to the JSON property `sessionId`
408
+ # @return [String]
409
+ attr_accessor :session_id
410
+
411
+ def initialize(**args)
412
+ update!(**args)
413
+ end
414
+
415
+ # Update properties of this object
416
+ def update!(**args)
417
+ @attribute_scores = args[:attribute_scores] if args.key?(:attribute_scores)
418
+ @client_token = args[:client_token] if args.key?(:client_token)
419
+ @comment = args[:comment] if args.key?(:comment)
420
+ @community_id = args[:community_id] if args.key?(:community_id)
421
+ @context = args[:context] if args.key?(:context)
422
+ @languages = args[:languages] if args.key?(:languages)
423
+ @session_id = args[:session_id] if args.key?(:session_id)
424
+ end
425
+ end
426
+
427
+ # The comment score suggestion response message.
428
+ class SuggestCommentScoreResponse
429
+ include Google::Apis::Core::Hashable
430
+
431
+ # Same token from the original SuggestCommentScoreRequest.
432
+ # Corresponds to the JSON property `clientToken`
433
+ # @return [String]
434
+ attr_accessor :client_token
435
+
436
+ # The list of languages detected from the comment text.
437
+ # Corresponds to the JSON property `detectedLanguages`
438
+ # @return [Array<String>]
439
+ attr_accessor :detected_languages
440
+
441
+ # The list of languages provided in the request.
442
+ # Corresponds to the JSON property `requestedLanguages`
443
+ # @return [Array<String>]
444
+ attr_accessor :requested_languages
445
+
446
+ def initialize(**args)
447
+ update!(**args)
448
+ end
449
+
450
+ # Update properties of this object
451
+ def update!(**args)
452
+ @client_token = args[:client_token] if args.key?(:client_token)
453
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
454
+ @requested_languages = args[:requested_languages] if args.key?(:requested_languages)
455
+ end
456
+ end
457
+
458
+ # Represents a body of text.
459
+ class TextEntry
460
+ include Google::Apis::Core::Hashable
461
+
462
+ # UTF-8 encoded text.
463
+ # Corresponds to the JSON property `text`
464
+ # @return [String]
465
+ attr_accessor :text
466
+
467
+ # Type of the text field.
468
+ # Corresponds to the JSON property `type`
469
+ # @return [String]
470
+ attr_accessor :type
471
+
472
+ def initialize(**args)
473
+ update!(**args)
474
+ end
475
+
476
+ # Update properties of this object
477
+ def update!(**args)
478
+ @text = args[:text] if args.key?(:text)
479
+ @type = args[:type] if args.key?(:type)
480
+ end
481
+ end
482
+ end
483
+ end
484
+ end