google-api-client 0.23.4 → 0.23.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (403) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +171 -0
  4. data/Gemfile +1 -0
  5. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +7 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  9. data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangeseller_v1.rb +1 -1
  13. data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  16. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +7 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  20. data/generated/google/apis/admin_reports_v1.rb +1 -1
  21. data/generated/google/apis/adsense_v1_4.rb +1 -1
  22. data/generated/google/apis/adsense_v1_4/classes.rb +13 -1
  23. data/generated/google/apis/adsense_v1_4/representations.rb +2 -0
  24. data/generated/google/apis/adsense_v1_4/service.rb +36 -0
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/analytics_v2_4.rb +1 -1
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +68 -0
  29. data/generated/google/apis/analytics_v3/representations.rb +31 -0
  30. data/generated/google/apis/analytics_v3/service.rb +33 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  33. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +108 -28
  34. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +32 -0
  35. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +73 -0
  36. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  37. data/generated/google/apis/androidenterprise_v1/service.rb +0 -70
  38. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  39. data/generated/google/apis/androidmanagement_v1/classes.rb +2 -5
  40. data/generated/google/apis/androidpublisher_v1.rb +1 -1
  41. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  42. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  43. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  44. data/generated/google/apis/appengine_v1.rb +1 -1
  45. data/generated/google/apis/appengine_v1beta.rb +1 -1
  46. data/generated/google/apis/appengine_v1beta/classes.rb +3 -4
  47. data/generated/google/apis/appsactivity_v1.rb +2 -2
  48. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  49. data/generated/google/apis/appsmarket_v2.rb +1 -1
  50. data/generated/google/apis/appstate_v1.rb +1 -1
  51. data/generated/google/apis/bigquery_v2.rb +1 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +103 -61
  53. data/generated/google/apis/bigquery_v2/representations.rb +17 -0
  54. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  55. data/generated/google/apis/binaryauthorization_v1beta1.rb +35 -0
  56. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +597 -0
  57. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +238 -0
  58. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +523 -0
  59. data/generated/google/apis/blogger_v2.rb +1 -1
  60. data/generated/google/apis/blogger_v3.rb +1 -1
  61. data/generated/google/apis/books_v1.rb +1 -1
  62. data/generated/google/apis/books_v1/classes.rb +7 -0
  63. data/generated/google/apis/books_v1/representations.rb +1 -0
  64. data/generated/google/apis/calendar_v3.rb +1 -1
  65. data/generated/google/apis/calendar_v3/classes.rb +44 -12
  66. data/generated/google/apis/calendar_v3/service.rb +7 -7
  67. data/generated/google/apis/chat_v1.rb +1 -1
  68. data/generated/google/apis/civicinfo_v2.rb +1 -1
  69. data/generated/google/apis/civicinfo_v2/classes.rb +641 -0
  70. data/generated/google/apis/civicinfo_v2/representations.rb +215 -0
  71. data/generated/google/apis/classroom_v1.rb +1 -1
  72. data/generated/google/apis/classroom_v1/classes.rb +25 -0
  73. data/generated/google/apis/classroom_v1/representations.rb +15 -0
  74. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  75. data/generated/google/apis/cloudbilling_v1/classes.rb +85 -10
  76. data/generated/google/apis/cloudbilling_v1/representations.rb +18 -0
  77. data/generated/google/apis/cloudbilling_v1/service.rb +3 -13
  78. data/generated/google/apis/cloudbuild_v1.rb +4 -4
  79. data/generated/google/apis/cloudbuild_v1/classes.rb +37 -3
  80. data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
  81. data/generated/google/apis/cloudbuild_v1/service.rb +3 -3
  82. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  83. data/generated/google/apis/clouddebugger_v2/classes.rb +8 -0
  84. data/generated/google/apis/clouddebugger_v2/representations.rb +1 -0
  85. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  86. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +4 -5
  87. data/generated/google/apis/cloudiot_v1.rb +1 -1
  88. data/generated/google/apis/cloudiot_v1/classes.rb +56 -0
  89. data/generated/google/apis/cloudiot_v1/representations.rb +18 -0
  90. data/generated/google/apis/cloudiot_v1/service.rb +355 -0
  91. data/generated/google/apis/cloudkms_v1.rb +6 -3
  92. data/generated/google/apis/cloudkms_v1/classes.rb +340 -14
  93. data/generated/google/apis/cloudkms_v1/representations.rb +147 -0
  94. data/generated/google/apis/cloudkms_v1/service.rb +126 -6
  95. data/generated/google/apis/cloudprofiler_v2.rb +3 -3
  96. data/generated/google/apis/cloudprofiler_v2/classes.rb +0 -6
  97. data/generated/google/apis/cloudprofiler_v2/representations.rb +0 -2
  98. data/generated/google/apis/cloudprofiler_v2/service.rb +2 -2
  99. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  100. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +57 -1
  101. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +18 -0
  102. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  103. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +56 -0
  104. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +18 -0
  105. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  106. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +57 -1
  107. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +18 -0
  108. data/generated/google/apis/cloudresourcemanager_v2/service.rb +1 -1
  109. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  110. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +57 -1
  111. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +18 -0
  112. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
  113. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  114. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +28 -0
  115. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +14 -0
  116. data/generated/google/apis/cloudshell_v1alpha1/service.rb +37 -0
  117. data/generated/google/apis/cloudtasks_v2beta2.rb +2 -2
  118. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +167 -103
  119. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +18 -0
  120. data/generated/google/apis/cloudtasks_v2beta2/service.rb +28 -21
  121. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  122. data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
  123. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  124. data/generated/google/apis/{spectrum_v1explorer.rb → composer_v1.rb} +12 -9
  125. data/generated/google/apis/composer_v1/classes.rb +640 -0
  126. data/generated/google/apis/composer_v1/representations.rb +195 -0
  127. data/generated/google/apis/composer_v1/service.rb +462 -0
  128. data/generated/google/apis/composer_v1beta1.rb +1 -1
  129. data/generated/google/apis/composer_v1beta1/classes.rb +13 -10
  130. data/generated/google/apis/composer_v1beta1/service.rb +6 -6
  131. data/generated/google/apis/compute_alpha.rb +1 -1
  132. data/generated/google/apis/compute_alpha/classes.rb +5135 -4250
  133. data/generated/google/apis/compute_alpha/representations.rb +644 -216
  134. data/generated/google/apis/compute_alpha/service.rb +2308 -1655
  135. data/generated/google/apis/compute_beta.rb +1 -1
  136. data/generated/google/apis/compute_beta/classes.rb +1070 -62
  137. data/generated/google/apis/compute_beta/representations.rb +435 -0
  138. data/generated/google/apis/compute_beta/service.rb +1758 -321
  139. data/generated/google/apis/compute_v1.rb +1 -1
  140. data/generated/google/apis/compute_v1/classes.rb +1984 -210
  141. data/generated/google/apis/compute_v1/representations.rb +754 -9
  142. data/generated/google/apis/compute_v1/service.rb +1299 -12
  143. data/generated/google/apis/container_v1.rb +1 -1
  144. data/generated/google/apis/container_v1/classes.rb +43 -0
  145. data/generated/google/apis/container_v1/representations.rb +17 -0
  146. data/generated/google/apis/container_v1beta1.rb +1 -1
  147. data/generated/google/apis/container_v1beta1/classes.rb +193 -231
  148. data/generated/google/apis/container_v1beta1/representations.rb +72 -82
  149. data/generated/google/apis/container_v1beta1/service.rb +0 -112
  150. data/generated/google/apis/content_v2.rb +1 -1
  151. data/generated/google/apis/content_v2/classes.rb +199 -29
  152. data/generated/google/apis/content_v2/representations.rb +59 -0
  153. data/generated/google/apis/content_v2/service.rb +8 -3
  154. data/generated/google/apis/content_v2sandbox.rb +1 -1
  155. data/generated/google/apis/content_v2sandbox/classes.rb +32 -19
  156. data/generated/google/apis/content_v2sandbox/representations.rb +1 -0
  157. data/generated/google/apis/content_v2sandbox/service.rb +8 -3
  158. data/generated/google/apis/customsearch_v1.rb +1 -1
  159. data/generated/google/apis/customsearch_v1/service.rb +7 -7
  160. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  161. data/generated/google/apis/dataproc_v1beta2/classes.rb +112 -43
  162. data/generated/google/apis/dataproc_v1beta2/representations.rb +19 -0
  163. data/generated/google/apis/datastore_v1.rb +1 -1
  164. data/generated/google/apis/datastore_v1/classes.rb +140 -0
  165. data/generated/google/apis/datastore_v1/representations.rb +65 -0
  166. data/generated/google/apis/datastore_v1/service.rb +74 -0
  167. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  168. data/generated/google/apis/datastore_v1beta1/classes.rb +31 -0
  169. data/generated/google/apis/datastore_v1beta1/representations.rb +17 -0
  170. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  171. data/generated/google/apis/datastore_v1beta3/classes.rb +31 -0
  172. data/generated/google/apis/datastore_v1beta3/representations.rb +17 -0
  173. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  174. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  175. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  176. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  177. data/generated/google/apis/dfareporting_v3_0.rb +1 -1
  178. data/generated/google/apis/dfareporting_v3_1.rb +1 -1
  179. data/generated/google/apis/dfareporting_v3_2.rb +40 -0
  180. data/generated/google/apis/dfareporting_v3_2/classes.rb +12297 -0
  181. data/generated/google/apis/dfareporting_v3_2/representations.rb +4397 -0
  182. data/generated/google/apis/dfareporting_v3_2/service.rb +8790 -0
  183. data/generated/google/apis/dialogflow_v2.rb +1 -1
  184. data/generated/google/apis/dialogflow_v2/classes.rb +304 -12
  185. data/generated/google/apis/dialogflow_v2/representations.rb +113 -0
  186. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  187. data/generated/google/apis/dialogflow_v2beta1/classes.rb +656 -26
  188. data/generated/google/apis/dialogflow_v2beta1/representations.rb +248 -0
  189. data/generated/google/apis/dialogflow_v2beta1/service.rb +556 -0
  190. data/generated/google/apis/discovery_v1.rb +1 -1
  191. data/generated/google/apis/dlp_v2.rb +1 -1
  192. data/generated/google/apis/dlp_v2/classes.rb +357 -6
  193. data/generated/google/apis/dlp_v2/representations.rb +161 -0
  194. data/generated/google/apis/dlp_v2/service.rb +366 -0
  195. data/generated/google/apis/dns_v1.rb +1 -1
  196. data/generated/google/apis/dns_v1/classes.rb +0 -7
  197. data/generated/google/apis/dns_v1/representations.rb +0 -1
  198. data/generated/google/apis/dns_v1beta2.rb +1 -1
  199. data/generated/google/apis/dns_v1beta2/classes.rb +0 -7
  200. data/generated/google/apis/dns_v1beta2/representations.rb +0 -1
  201. data/generated/google/apis/dns_v2beta1.rb +1 -1
  202. data/generated/google/apis/dns_v2beta1/classes.rb +0 -7
  203. data/generated/google/apis/dns_v2beta1/representations.rb +0 -1
  204. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  205. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  206. data/generated/google/apis/drive_v2.rb +1 -1
  207. data/generated/google/apis/drive_v2/service.rb +3 -2
  208. data/generated/google/apis/drive_v3.rb +1 -1
  209. data/generated/google/apis/firestore_v1.rb +37 -0
  210. data/generated/google/apis/firestore_v1/classes.rb +324 -0
  211. data/generated/google/apis/firestore_v1/representations.rb +130 -0
  212. data/generated/google/apis/firestore_v1/service.rb +282 -0
  213. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  214. data/generated/google/apis/firestore_v1beta1/classes.rb +290 -0
  215. data/generated/google/apis/firestore_v1beta1/representations.rb +128 -0
  216. data/generated/google/apis/firestore_v1beta1/service.rb +79 -0
  217. data/generated/google/apis/firestore_v1beta2.rb +37 -0
  218. data/generated/google/apis/firestore_v1beta2/classes.rb +531 -0
  219. data/generated/google/apis/firestore_v1beta2/representations.rb +189 -0
  220. data/generated/google/apis/firestore_v1beta2/service.rb +213 -0
  221. data/generated/google/apis/fitness_v1.rb +1 -1
  222. data/generated/google/apis/fusiontables_v1.rb +1 -1
  223. data/generated/google/apis/fusiontables_v2.rb +1 -1
  224. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  225. data/generated/google/apis/games_management_v1management.rb +1 -1
  226. data/generated/google/apis/games_v1.rb +1 -1
  227. data/generated/google/apis/genomics_v1.rb +1 -1
  228. data/generated/google/apis/genomics_v1/classes.rb +113 -36
  229. data/generated/google/apis/genomics_v1/representations.rb +31 -0
  230. data/generated/google/apis/genomics_v1/service.rb +2 -0
  231. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  232. data/generated/google/apis/genomics_v1alpha2/classes.rb +57 -36
  233. data/generated/google/apis/genomics_v1alpha2/representations.rb +13 -0
  234. data/generated/google/apis/genomics_v1alpha2/service.rb +2 -0
  235. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  236. data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -137
  237. data/generated/google/apis/genomics_v2alpha1/representations.rb +50 -0
  238. data/generated/google/apis/genomics_v2alpha1/service.rb +7 -5
  239. data/generated/google/apis/gmail_v1.rb +1 -1
  240. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  241. data/generated/google/apis/groupssettings_v1.rb +1 -1
  242. data/generated/google/apis/iam_v1.rb +1 -1
  243. data/generated/google/apis/iam_v1/classes.rb +258 -3
  244. data/generated/google/apis/iam_v1/representations.rb +73 -0
  245. data/generated/google/apis/iam_v1/service.rb +50 -2
  246. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  247. data/generated/google/apis/iamcredentials_v1/classes.rb +2 -2
  248. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  249. data/generated/google/apis/iap_v1beta1.rb +34 -0
  250. data/generated/google/apis/iap_v1beta1/classes.rb +440 -0
  251. data/generated/google/apis/iap_v1beta1/representations.rb +158 -0
  252. data/generated/google/apis/iap_v1beta1/service.rb +398 -0
  253. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  254. data/generated/google/apis/jobs_v2.rb +3 -3
  255. data/generated/google/apis/jobs_v2/classes.rb +61 -5
  256. data/generated/google/apis/jobs_v2/representations.rb +18 -0
  257. data/generated/google/apis/jobs_v2/service.rb +3 -3
  258. data/generated/google/apis/licensing_v1.rb +1 -1
  259. data/generated/google/apis/logging_v2.rb +2 -2
  260. data/generated/google/apis/logging_v2/classes.rb +64 -58
  261. data/generated/google/apis/logging_v2/representations.rb +1 -0
  262. data/generated/google/apis/logging_v2/service.rb +39 -40
  263. data/generated/google/apis/logging_v2beta1.rb +2 -2
  264. data/generated/google/apis/logging_v2beta1/classes.rb +59 -53
  265. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  266. data/generated/google/apis/logging_v2beta1/service.rb +15 -16
  267. data/generated/google/apis/mirror_v1.rb +1 -1
  268. data/generated/google/apis/ml_v1.rb +1 -1
  269. data/generated/google/apis/ml_v1/classes.rb +87 -0
  270. data/generated/google/apis/ml_v1/representations.rb +34 -0
  271. data/generated/google/apis/ml_v1/service.rb +53 -0
  272. data/generated/google/apis/monitoring_v3.rb +1 -1
  273. data/generated/google/apis/monitoring_v3/classes.rb +68 -15
  274. data/generated/google/apis/monitoring_v3/representations.rb +26 -0
  275. data/generated/google/apis/mybusiness_v3/classes.rb +1 -1
  276. data/generated/google/apis/oauth2_v1.rb +1 -1
  277. data/generated/google/apis/oauth2_v2.rb +1 -1
  278. data/generated/google/apis/pagespeedonline_v1.rb +1 -1
  279. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  280. data/generated/google/apis/pagespeedonline_v4.rb +1 -1
  281. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  282. data/generated/google/apis/plus_domains_v1.rb +1 -1
  283. data/generated/google/apis/plus_v1.rb +1 -1
  284. data/generated/google/apis/poly_v1.rb +4 -3
  285. data/generated/google/apis/poly_v1/classes.rb +28 -0
  286. data/generated/google/apis/poly_v1/representations.rb +15 -0
  287. data/generated/google/apis/poly_v1/service.rb +3 -2
  288. data/generated/google/apis/pubsub_v1.rb +1 -1
  289. data/generated/google/apis/pubsub_v1/classes.rb +63 -8
  290. data/generated/google/apis/pubsub_v1/representations.rb +18 -0
  291. data/generated/google/apis/pubsub_v1/service.rb +7 -8
  292. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  293. data/generated/google/apis/pubsub_v1beta2/classes.rb +56 -0
  294. data/generated/google/apis/pubsub_v1beta2/representations.rb +18 -0
  295. data/generated/google/apis/redis_v1beta1.rb +2 -2
  296. data/generated/google/apis/redis_v1beta1/classes.rb +38 -119
  297. data/generated/google/apis/redis_v1beta1/representations.rb +10 -43
  298. data/generated/google/apis/redis_v1beta1/service.rb +73 -1
  299. data/generated/google/apis/replicapool_v1beta1.rb +1 -1
  300. data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
  301. data/generated/google/apis/reseller_v1.rb +1 -1
  302. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  303. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +57 -1
  304. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +18 -0
  305. data/generated/google/apis/script_v1.rb +1 -1
  306. data/generated/google/apis/script_v1/classes.rb +1 -57
  307. data/generated/google/apis/script_v1/representations.rb +0 -32
  308. data/generated/google/apis/servicebroker_v1.rb +1 -1
  309. data/generated/google/apis/servicebroker_v1/classes.rb +56 -1
  310. data/generated/google/apis/servicebroker_v1/representations.rb +18 -0
  311. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  312. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +56 -1
  313. data/generated/google/apis/servicebroker_v1alpha1/representations.rb +18 -0
  314. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  315. data/generated/google/apis/servicebroker_v1beta1/classes.rb +56 -1
  316. data/generated/google/apis/servicebroker_v1beta1/representations.rb +18 -0
  317. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  318. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +13 -4
  319. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  320. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  321. data/generated/google/apis/servicecontrol_v1/classes.rb +259 -0
  322. data/generated/google/apis/servicecontrol_v1/representations.rb +68 -0
  323. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  324. data/generated/google/apis/servicemanagement_v1/classes.rb +68 -4
  325. data/generated/google/apis/servicemanagement_v1/representations.rb +19 -0
  326. data/generated/google/apis/serviceusage_v1.rb +1 -1
  327. data/generated/google/apis/serviceusage_v1/classes.rb +13 -4
  328. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  329. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  330. data/generated/google/apis/serviceusage_v1beta1/classes.rb +13 -4
  331. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  332. data/generated/google/apis/serviceuser_v1.rb +1 -1
  333. data/generated/google/apis/serviceuser_v1/classes.rb +12 -3
  334. data/generated/google/apis/serviceuser_v1/representations.rb +1 -0
  335. data/generated/google/apis/sheets_v4.rb +1 -1
  336. data/generated/google/apis/sheets_v4/classes.rb +22 -22
  337. data/generated/google/apis/site_verification_v1.rb +1 -1
  338. data/generated/google/apis/slides_v1.rb +1 -1
  339. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  340. data/generated/google/apis/sourcerepo_v1/classes.rb +56 -1
  341. data/generated/google/apis/sourcerepo_v1/representations.rb +18 -0
  342. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  343. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1632 -0
  344. data/generated/google/apis/sqladmin_v1beta3/representations.rb +733 -0
  345. data/generated/google/apis/sqladmin_v1beta3/service.rb +995 -0
  346. data/generated/google/apis/sqladmin_v1beta4.rb +4 -4
  347. data/generated/google/apis/sqladmin_v1beta4/classes.rb +30 -14
  348. data/generated/google/apis/sqladmin_v1beta4/service.rb +7 -7
  349. data/generated/google/apis/storage_v1.rb +1 -1
  350. data/generated/google/apis/storage_v1beta1.rb +1 -1
  351. data/generated/google/apis/storage_v1beta2.rb +1 -1
  352. data/generated/google/apis/surveys_v2.rb +1 -1
  353. data/generated/google/apis/tagmanager_v1.rb +1 -1
  354. data/generated/google/apis/tagmanager_v2.rb +1 -1
  355. data/generated/google/apis/tasks_v1.rb +1 -1
  356. data/generated/google/apis/testing_v1.rb +1 -1
  357. data/generated/google/apis/testing_v1/classes.rb +2 -2
  358. data/generated/google/apis/texttospeech_v1.rb +34 -0
  359. data/generated/google/apis/texttospeech_v1/classes.rb +278 -0
  360. data/generated/google/apis/texttospeech_v1/representations.rb +133 -0
  361. data/generated/google/apis/texttospeech_v1/service.rb +127 -0
  362. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  363. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -2
  364. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  365. data/generated/google/apis/toolresults_v1beta3/classes.rb +0 -12
  366. data/generated/google/apis/toolresults_v1beta3/representations.rb +0 -2
  367. data/generated/google/apis/tpu_v1.rb +1 -1
  368. data/generated/google/apis/tpu_v1/classes.rb +0 -13
  369. data/generated/google/apis/tpu_v1/representations.rb +0 -12
  370. data/generated/google/apis/tpu_v1/service.rb +0 -33
  371. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  372. data/generated/google/apis/tpu_v1alpha1/classes.rb +0 -13
  373. data/generated/google/apis/tpu_v1alpha1/representations.rb +0 -12
  374. data/generated/google/apis/tpu_v1alpha1/service.rb +0 -33
  375. data/generated/google/apis/urlshortener_v1.rb +1 -1
  376. data/generated/google/apis/vault_v1.rb +1 -1
  377. data/generated/google/apis/vault_v1/classes.rb +803 -0
  378. data/generated/google/apis/vault_v1/representations.rb +384 -0
  379. data/generated/google/apis/vault_v1/service.rb +211 -0
  380. data/generated/google/apis/vision_v1.rb +1 -1
  381. data/generated/google/apis/vision_v1/classes.rb +3342 -227
  382. data/generated/google/apis/vision_v1/representations.rb +1696 -365
  383. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  384. data/generated/google/apis/vision_v1p1beta1/classes.rb +1826 -94
  385. data/generated/google/apis/vision_v1p1beta1/representations.rb +754 -1
  386. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  387. data/generated/google/apis/vision_v1p2beta1/classes.rb +3712 -597
  388. data/generated/google/apis/vision_v1p2beta1/representations.rb +1606 -275
  389. data/generated/google/apis/webfonts_v1.rb +1 -1
  390. data/generated/google/apis/webmasters_v3.rb +1 -1
  391. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  392. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +58 -2
  393. data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +32 -0
  394. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  395. data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
  396. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  397. data/generated/google/apis/youtube_v3.rb +1 -1
  398. data/lib/google/apis/core/http_command.rb +1 -1
  399. data/lib/google/apis/version.rb +1 -1
  400. metadata +34 -6
  401. data/generated/google/apis/spectrum_v1explorer/classes.rb +0 -1612
  402. data/generated/google/apis/spectrum_v1explorer/representations.rb +0 -611
  403. data/generated/google/apis/spectrum_v1explorer/service.rb +0 -271
@@ -550,6 +550,24 @@ module Google
550
550
  include Google::Apis::Core::JsonObjectSupport
551
551
  end
552
552
 
553
+ class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
554
+ class Representation < Google::Apis::Core::JsonRepresentation; end
555
+
556
+ include Google::Apis::Core::JsonObjectSupport
557
+ end
558
+
559
+ class GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
560
+ class Representation < Google::Apis::Core::JsonRepresentation; end
561
+
562
+ include Google::Apis::Core::JsonObjectSupport
563
+ end
564
+
565
+ class GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
566
+ class Representation < Google::Apis::Core::JsonRepresentation; end
567
+
568
+ include Google::Apis::Core::JsonObjectSupport
569
+ end
570
+
553
571
  class GoogleCloudDialogflowV2beta1IntentMessageText
554
572
  class Representation < Google::Apis::Core::JsonRepresentation; end
555
573
 
@@ -574,6 +592,18 @@ module Google
574
592
  include Google::Apis::Core::JsonObjectSupport
575
593
  end
576
594
 
595
+ class GoogleCloudDialogflowV2beta1KnowledgeAnswers
596
+ class Representation < Google::Apis::Core::JsonRepresentation; end
597
+
598
+ include Google::Apis::Core::JsonObjectSupport
599
+ end
600
+
601
+ class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
602
+ class Representation < Google::Apis::Core::JsonRepresentation; end
603
+
604
+ include Google::Apis::Core::JsonObjectSupport
605
+ end
606
+
577
607
  class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
578
608
  class Representation < Google::Apis::Core::JsonRepresentation; end
579
609
 
@@ -592,6 +622,18 @@ module Google
592
622
  include Google::Apis::Core::JsonObjectSupport
593
623
  end
594
624
 
625
+ class GoogleCloudDialogflowV2beta1Sentiment
626
+ class Representation < Google::Apis::Core::JsonRepresentation; end
627
+
628
+ include Google::Apis::Core::JsonObjectSupport
629
+ end
630
+
631
+ class GoogleCloudDialogflowV2beta1SentimentAnalysisResult
632
+ class Representation < Google::Apis::Core::JsonRepresentation; end
633
+
634
+ include Google::Apis::Core::JsonObjectSupport
635
+ end
636
+
595
637
  class GoogleCloudDialogflowV2beta1WebhookRequest
596
638
  class Representation < Google::Apis::Core::JsonRepresentation; end
597
639
 
@@ -1325,6 +1367,7 @@ module Google
1325
1367
  property :action, as: 'action'
1326
1368
  collection :default_response_platforms, as: 'defaultResponsePlatforms'
1327
1369
  property :display_name, as: 'displayName'
1370
+ property :end_interaction, as: 'endInteraction'
1328
1371
  collection :events, as: 'events'
1329
1372
  collection :followup_intent_info, as: 'followupIntentInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo::Representation
1330
1373
 
@@ -1380,6 +1423,12 @@ module Google
1380
1423
 
1381
1424
  property :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions::Representation
1382
1425
 
1426
+ property :telephony_play_audio, as: 'telephonyPlayAudio', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio::Representation
1427
+
1428
+ property :telephony_synthesize_speech, as: 'telephonySynthesizeSpeech', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech::Representation
1429
+
1430
+ property :telephony_transfer_call, as: 'telephonyTransferCall', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall::Representation
1431
+
1383
1432
  property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageText, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageText::Representation
1384
1433
 
1385
1434
  end
@@ -1538,6 +1587,28 @@ module Google
1538
1587
  end
1539
1588
  end
1540
1589
 
1590
+ class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
1591
+ # @private
1592
+ class Representation < Google::Apis::Core::JsonRepresentation
1593
+ property :audio_uri, as: 'audioUri'
1594
+ end
1595
+ end
1596
+
1597
+ class GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
1598
+ # @private
1599
+ class Representation < Google::Apis::Core::JsonRepresentation
1600
+ property :ssml, as: 'ssml'
1601
+ property :text, as: 'text'
1602
+ end
1603
+ end
1604
+
1605
+ class GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
1606
+ # @private
1607
+ class Representation < Google::Apis::Core::JsonRepresentation
1608
+ property :phone_number, as: 'phoneNumber'
1609
+ end
1610
+ end
1611
+
1541
1612
  class GoogleCloudDialogflowV2beta1IntentMessageText
1542
1613
  # @private
1543
1614
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1580,6 +1651,25 @@ module Google
1580
1651
  end
1581
1652
  end
1582
1653
 
1654
+ class GoogleCloudDialogflowV2beta1KnowledgeAnswers
1655
+ # @private
1656
+ class Representation < Google::Apis::Core::JsonRepresentation
1657
+ collection :answers, as: 'answers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer::Representation
1658
+
1659
+ end
1660
+ end
1661
+
1662
+ class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
1663
+ # @private
1664
+ class Representation < Google::Apis::Core::JsonRepresentation
1665
+ property :answer, as: 'answer'
1666
+ property :faq_question, as: 'faqQuestion'
1667
+ property :match_confidence, as: 'matchConfidence'
1668
+ property :match_confidence_level, as: 'matchConfidenceLevel'
1669
+ property :source, as: 'source'
1670
+ end
1671
+ end
1672
+
1583
1673
  class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
1584
1674
  # @private
1585
1675
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1608,20 +1698,42 @@ module Google
1608
1698
  property :intent, as: 'intent', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent::Representation
1609
1699
 
1610
1700
  property :intent_detection_confidence, as: 'intentDetectionConfidence'
1701
+ property :knowledge_answers, as: 'knowledgeAnswers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAnswers, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAnswers::Representation
1702
+
1611
1703
  property :language_code, as: 'languageCode'
1612
1704
  collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context::Representation
1613
1705
 
1614
1706
  hash :parameters, as: 'parameters'
1615
1707
  property :query_text, as: 'queryText'
1708
+ property :sentiment_analysis_result, as: 'sentimentAnalysisResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SentimentAnalysisResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SentimentAnalysisResult::Representation
1709
+
1616
1710
  property :speech_recognition_confidence, as: 'speechRecognitionConfidence'
1617
1711
  hash :webhook_payload, as: 'webhookPayload'
1618
1712
  property :webhook_source, as: 'webhookSource'
1619
1713
  end
1620
1714
  end
1621
1715
 
1716
+ class GoogleCloudDialogflowV2beta1Sentiment
1717
+ # @private
1718
+ class Representation < Google::Apis::Core::JsonRepresentation
1719
+ property :magnitude, as: 'magnitude'
1720
+ property :score, as: 'score'
1721
+ end
1722
+ end
1723
+
1724
+ class GoogleCloudDialogflowV2beta1SentimentAnalysisResult
1725
+ # @private
1726
+ class Representation < Google::Apis::Core::JsonRepresentation
1727
+ property :query_text_sentiment, as: 'queryTextSentiment', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Sentiment, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Sentiment::Representation
1728
+
1729
+ end
1730
+ end
1731
+
1622
1732
  class GoogleCloudDialogflowV2beta1WebhookRequest
1623
1733
  # @private
1624
1734
  class Representation < Google::Apis::Core::JsonRepresentation
1735
+ collection :alternative_query_results, as: 'alternativeQueryResults', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult::Representation
1736
+
1625
1737
  property :original_detect_intent_request, as: 'originalDetectIntentRequest', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest::Representation
1626
1738
 
1627
1739
  property :query_result, as: 'queryResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult::Representation
@@ -1634,6 +1746,7 @@ module Google
1634
1746
  class GoogleCloudDialogflowV2beta1WebhookResponse
1635
1747
  # @private
1636
1748
  class Representation < Google::Apis::Core::JsonRepresentation
1749
+ property :end_interaction, as: 'endInteraction'
1637
1750
  property :followup_event_input, as: 'followupEventInput', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EventInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EventInput::Representation
1638
1751
 
1639
1752
  collection :fulfillment_messages, as: 'fulfillmentMessages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage::Representation
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/dialogflow-enterprise/
27
27
  module DialogflowV2beta1
28
28
  VERSION = 'V2beta1'
29
- REVISION = '20180710'
29
+ REVISION = '20180814'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -225,7 +225,8 @@ module Google
225
225
  # 'https://dialogflow.googleapis.com/v2/projects/&lt;project_name&gt;/agent:
226
226
  # export'\
227
227
  # -X POST \
228
- # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
228
+ # -H 'Authorization: Bearer '$(gcloud auth application-default
229
+ # print-access-token) \
229
230
  # -H 'Accept: application/json' \
230
231
  # -H 'Content-Type: application/json' \
231
232
  # --compressed \
@@ -261,6 +262,7 @@ module Google
261
262
  include Google::Apis::Core::Hashable
262
263
 
263
264
  # Optional. The name of the action associated with the intent.
265
+ # Note: The action name must not contain whitespaces.
264
266
  # Corresponds to the JSON property `action`
265
267
  # @return [String]
266
268
  attr_accessor :action
@@ -373,7 +375,7 @@ module Google
373
375
  # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentTrainingPhrase>]
374
376
  attr_accessor :training_phrases
375
377
 
376
- # Required. Indicates whether webhooks are enabled for the intent.
378
+ # Optional. Indicates whether webhooks are enabled for the intent.
377
379
  # Corresponds to the JSON property `webhookState`
378
380
  # @return [String]
379
381
  attr_accessor :webhook_state
@@ -1093,7 +1095,7 @@ module Google
1093
1095
  class GoogleCloudDialogflowV2IntentTrainingPhrase
1094
1096
  include Google::Apis::Core::Hashable
1095
1097
 
1096
- # Required. The unique identifier of this training phrase.
1098
+ # Output only. The unique identifier of this training phrase.
1097
1099
  # Corresponds to the JSON property `name`
1098
1100
  # @return [String]
1099
1101
  attr_accessor :name
@@ -1179,19 +1181,18 @@ module Google
1179
1181
  class GoogleCloudDialogflowV2OriginalDetectIntentRequest
1180
1182
  include Google::Apis::Core::Hashable
1181
1183
 
1182
- # Optional. This field is set to the value of `QueryParameters.payload` field
1183
- # passed in the request.
1184
- # This field is used for the telephony gateway. It should have a
1185
- # structure similar to this JSON message:
1184
+ # Optional. This field is set to the value of the `QueryParameters.payload`
1185
+ # field passed in the request. Some integrations that query a Dialogflow
1186
+ # agent may provide additional information in the payload.
1187
+ # In particular for the Telephony Gateway this field has the form:
1186
1188
  # <pre>`
1187
1189
  # "telephony": `
1188
1190
  # "caller_id": "+18558363987"
1191
+ # `
1189
1192
  # `</pre>
1190
- # Note: The caller ID field (`caller_id`) will be in
1191
- # [E.164 format](https://en.wikipedia.org/wiki/E.164) and is not supported
1192
- # for standard tier agents. When the telephony gateway is used with a
1193
- # standard tier agent the `caller_id` field above will have a value of
1194
- # `REDACTED_IN_STANDARD_TIER_AGENT`.
1193
+ # Note: The caller ID field (`caller_id`) will be redacted for Standard
1194
+ # Edition agents and populated with the caller ID in [E.164
1195
+ # format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
1195
1196
  # Corresponds to the JSON property `payload`
1196
1197
  # @return [Hash<String,Object>]
1197
1198
  attr_accessor :payload
@@ -1876,6 +1877,11 @@ module Google
1876
1877
  # @return [String]
1877
1878
  attr_accessor :input_audio
1878
1879
 
1880
+ # Instructs the speech synthesizer how to generate the output audio content.
1881
+ # Corresponds to the JSON property `outputAudioConfig`
1882
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig]
1883
+ attr_accessor :output_audio_config
1884
+
1879
1885
  # Represents the query input. It can contain either:
1880
1886
  # 1. An audio config which
1881
1887
  # instructs the speech recognizer how to process the speech audio.
@@ -1897,6 +1903,7 @@ module Google
1897
1903
  # Update properties of this object
1898
1904
  def update!(**args)
1899
1905
  @input_audio = args[:input_audio] if args.key?(:input_audio)
1906
+ @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
1900
1907
  @query_input = args[:query_input] if args.key?(:query_input)
1901
1908
  @query_params = args[:query_params] if args.key?(:query_params)
1902
1909
  end
@@ -1906,6 +1913,29 @@ module Google
1906
1913
  class GoogleCloudDialogflowV2beta1DetectIntentResponse
1907
1914
  include Google::Apis::Core::Hashable
1908
1915
 
1916
+ # If Knowledge Connectors are enabled, there could be more than one result
1917
+ # returned for a given query or event, and this field will contain all
1918
+ # results except for the top one, which is captured in query_result. The
1919
+ # alternative results are ordered by decreasing
1920
+ # `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
1921
+ # disabled, this field will be empty until multiple responses for regular
1922
+ # intents are supported, at which point those additional results will be
1923
+ # surfaced here.
1924
+ # Corresponds to the JSON property `alternativeQueryResults`
1925
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult>]
1926
+ attr_accessor :alternative_query_results
1927
+
1928
+ # The audio data bytes encoded as specified in the request.
1929
+ # Corresponds to the JSON property `outputAudio`
1930
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1931
+ # @return [String]
1932
+ attr_accessor :output_audio
1933
+
1934
+ # Instructs the speech synthesizer how to generate the output audio content.
1935
+ # Corresponds to the JSON property `outputAudioConfig`
1936
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig]
1937
+ attr_accessor :output_audio_config
1938
+
1909
1939
  # Represents the result of conversational query or event processing.
1910
1940
  # Corresponds to the JSON property `queryResult`
1911
1941
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult]
@@ -1966,12 +1996,85 @@ module Google
1966
1996
 
1967
1997
  # Update properties of this object
1968
1998
  def update!(**args)
1999
+ @alternative_query_results = args[:alternative_query_results] if args.key?(:alternative_query_results)
2000
+ @output_audio = args[:output_audio] if args.key?(:output_audio)
2001
+ @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
1969
2002
  @query_result = args[:query_result] if args.key?(:query_result)
1970
2003
  @response_id = args[:response_id] if args.key?(:response_id)
1971
2004
  @webhook_status = args[:webhook_status] if args.key?(:webhook_status)
1972
2005
  end
1973
2006
  end
1974
2007
 
2008
+ # A document resource.
2009
+ class GoogleCloudDialogflowV2beta1Document
2010
+ include Google::Apis::Core::Hashable
2011
+
2012
+ # The raw content of the document. This field is only permitted for
2013
+ # EXTRACTIVE_QA and FAQ knowledge types.
2014
+ # Note: This field is in the process of being deprecated, please use
2015
+ # raw_content instead.
2016
+ # Corresponds to the JSON property `content`
2017
+ # @return [String]
2018
+ attr_accessor :content
2019
+
2020
+ # The URI where the file content is located.
2021
+ # For documents stored in Google Cloud Storage, these URIs must have
2022
+ # the form `gs://<bucket-name>/<object-name>`.
2023
+ # NOTE: External URLs must correspond to public webpages, i.e., they must
2024
+ # be indexed by Google Search. In particular, URLs for showing documents in
2025
+ # Google Cloud Storage (i.e. the URL in your browser) are not supported.
2026
+ # Instead use the `gs://` format URI described above.
2027
+ # Corresponds to the JSON property `contentUri`
2028
+ # @return [String]
2029
+ attr_accessor :content_uri
2030
+
2031
+ # Required. The display name of the document. The name must be 1024 bytes or
2032
+ # less; otherwise, the creation request fails.
2033
+ # Corresponds to the JSON property `displayName`
2034
+ # @return [String]
2035
+ attr_accessor :display_name
2036
+
2037
+ # Required. The knowledge type of document content.
2038
+ # Corresponds to the JSON property `knowledgeTypes`
2039
+ # @return [Array<String>]
2040
+ attr_accessor :knowledge_types
2041
+
2042
+ # Required. The MIME type of this document.
2043
+ # Corresponds to the JSON property `mimeType`
2044
+ # @return [String]
2045
+ attr_accessor :mime_type
2046
+
2047
+ # The document resource name.
2048
+ # The name must be empty when creating a document.
2049
+ # Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
2050
+ # ID>/documents/<Document ID>`.
2051
+ # Corresponds to the JSON property `name`
2052
+ # @return [String]
2053
+ attr_accessor :name
2054
+
2055
+ # The raw content of the document. This field is only permitted for
2056
+ # EXTRACTIVE_QA and FAQ knowledge types.
2057
+ # Corresponds to the JSON property `rawContent`
2058
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2059
+ # @return [String]
2060
+ attr_accessor :raw_content
2061
+
2062
+ def initialize(**args)
2063
+ update!(**args)
2064
+ end
2065
+
2066
+ # Update properties of this object
2067
+ def update!(**args)
2068
+ @content = args[:content] if args.key?(:content)
2069
+ @content_uri = args[:content_uri] if args.key?(:content_uri)
2070
+ @display_name = args[:display_name] if args.key?(:display_name)
2071
+ @knowledge_types = args[:knowledge_types] if args.key?(:knowledge_types)
2072
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2073
+ @name = args[:name] if args.key?(:name)
2074
+ @raw_content = args[:raw_content] if args.key?(:raw_content)
2075
+ end
2076
+ end
2077
+
1975
2078
  # Represents an entity type.
1976
2079
  # Entity types serve as a tool for extracting parameter values from natural
1977
2080
  # language queries.
@@ -2142,7 +2245,8 @@ module Google
2142
2245
  # 'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/
2143
2246
  # agent:export'\
2144
2247
  # -X POST \
2145
- # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
2248
+ # -H 'Authorization: Bearer '$(gcloud auth application-default
2249
+ # print-access-token) \
2146
2250
  # -H 'Accept: application/json' \
2147
2251
  # -H 'Content-Type: application/json' \
2148
2252
  # --compressed \
@@ -2181,7 +2285,8 @@ module Google
2181
2285
  # 'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/
2182
2286
  # agent:import\
2183
2287
  # -X POST \
2184
- # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
2288
+ # -H 'Authorization: Bearer '$(gcloud auth application-default
2289
+ # print-access-token) \
2185
2290
  # -H 'Accept: application/json' \
2186
2291
  # -H 'Content-Type: application/json' \
2187
2292
  # --compressed \
@@ -2228,6 +2333,22 @@ module Google
2228
2333
  # @return [String]
2229
2334
  attr_accessor :language_code
2230
2335
 
2336
+ # Optional. Which Speech model to select for the given request. Select the
2337
+ # model best suited to your domain to get best results. If a model is not
2338
+ # explicitly specified, then we auto-select a model based on the parameters
2339
+ # in the InputAudioConfig.
2340
+ # If enhanced speech model is enabled for the agent and an enhanced
2341
+ # version of the specified model for the language does not exist, then the
2342
+ # speech is recognized using the standard version of the specified model.
2343
+ # Refer to
2344
+ # [Cloud Speech API
2345
+ # documentation](https://cloud.google.com/speech-to-text/docs/basics#select-
2346
+ # model)
2347
+ # for more details.
2348
+ # Corresponds to the JSON property `model`
2349
+ # @return [String]
2350
+ attr_accessor :model
2351
+
2231
2352
  # Optional. The collection of phrase hints which are used to boost accuracy
2232
2353
  # of speech recognition.
2233
2354
  # Refer to
@@ -2256,6 +2377,7 @@ module Google
2256
2377
  def update!(**args)
2257
2378
  @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
2258
2379
  @language_code = args[:language_code] if args.key?(:language_code)
2380
+ @model = args[:model] if args.key?(:model)
2259
2381
  @phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints)
2260
2382
  @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
2261
2383
  end
@@ -2268,6 +2390,7 @@ module Google
2268
2390
  include Google::Apis::Core::Hashable
2269
2391
 
2270
2392
  # Optional. The name of the action associated with the intent.
2393
+ # Note: The action name must not contain whitespaces.
2271
2394
  # Corresponds to the JSON property `action`
2272
2395
  # @return [String]
2273
2396
  attr_accessor :action
@@ -2283,6 +2406,14 @@ module Google
2283
2406
  # @return [String]
2284
2407
  attr_accessor :display_name
2285
2408
 
2409
+ # Optional. Indicates that this intent ends an interaction. Some integrations
2410
+ # (e.g., Actions on Google or Dialogflow phone gateway) use this information
2411
+ # to close interaction with an end user. Default is false.
2412
+ # Corresponds to the JSON property `endInteraction`
2413
+ # @return [Boolean]
2414
+ attr_accessor :end_interaction
2415
+ alias_method :end_interaction?, :end_interaction
2416
+
2286
2417
  # Optional. The collection of event names that trigger the intent.
2287
2418
  # If the collection of input contexts is not empty, all of the contexts must
2288
2419
  # be present in the active user session for an event to trigger this intent.
@@ -2396,7 +2527,7 @@ module Google
2396
2527
  # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentTrainingPhrase>]
2397
2528
  attr_accessor :training_phrases
2398
2529
 
2399
- # Required. Indicates whether webhooks are enabled for the intent.
2530
+ # Optional. Indicates whether webhooks are enabled for the intent.
2400
2531
  # Corresponds to the JSON property `webhookState`
2401
2532
  # @return [String]
2402
2533
  attr_accessor :webhook_state
@@ -2410,6 +2541,7 @@ module Google
2410
2541
  @action = args[:action] if args.key?(:action)
2411
2542
  @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms)
2412
2543
  @display_name = args[:display_name] if args.key?(:display_name)
2544
+ @end_interaction = args[:end_interaction] if args.key?(:end_interaction)
2413
2545
  @events = args[:events] if args.key?(:events)
2414
2546
  @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
2415
2547
  @input_context_names = args[:input_context_names] if args.key?(:input_context_names)
@@ -2540,6 +2672,25 @@ module Google
2540
2672
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSuggestions]
2541
2673
  attr_accessor :suggestions
2542
2674
 
2675
+ # Plays audio from a file in Telephony Gateway.
2676
+ # Corresponds to the JSON property `telephonyPlayAudio`
2677
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio]
2678
+ attr_accessor :telephony_play_audio
2679
+
2680
+ # Synthesizes speech and plays back the synthesized audio to the caller in
2681
+ # Telephony Gateway.
2682
+ # Telephony Gateway takes the synthesizer settings from
2683
+ # `DetectIntentResponse.output_audio_config` which can either be set
2684
+ # at request-level or can come from the agent-level synthesizer config.
2685
+ # Corresponds to the JSON property `telephonySynthesizeSpeech`
2686
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech]
2687
+ attr_accessor :telephony_synthesize_speech
2688
+
2689
+ # Transfers the call in Telephony Gateway.
2690
+ # Corresponds to the JSON property `telephonyTransferCall`
2691
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall]
2692
+ attr_accessor :telephony_transfer_call
2693
+
2543
2694
  # The text response message.
2544
2695
  # Corresponds to the JSON property `text`
2545
2696
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageText]
@@ -2562,6 +2713,9 @@ module Google
2562
2713
  @quick_replies = args[:quick_replies] if args.key?(:quick_replies)
2563
2714
  @simple_responses = args[:simple_responses] if args.key?(:simple_responses)
2564
2715
  @suggestions = args[:suggestions] if args.key?(:suggestions)
2716
+ @telephony_play_audio = args[:telephony_play_audio] if args.key?(:telephony_play_audio)
2717
+ @telephony_synthesize_speech = args[:telephony_synthesize_speech] if args.key?(:telephony_synthesize_speech)
2718
+ @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
2565
2719
  @text = args[:text] if args.key?(:text)
2566
2720
  end
2567
2721
  end
@@ -3037,6 +3191,86 @@ module Google
3037
3191
  end
3038
3192
  end
3039
3193
 
3194
+ # Plays audio from a file in Telephony Gateway.
3195
+ class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
3196
+ include Google::Apis::Core::Hashable
3197
+
3198
+ # Required. URI to a Google Cloud Storage object containing the audio to
3199
+ # play, e.g., "gs://bucket/object". The object must contain a single
3200
+ # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
3201
+ # This object must be readable by the `service-<Project
3202
+ # Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
3203
+ # where <Project Number> is the number of the Telephony Gateway project
3204
+ # (usually the same as the Dialogflow agent project). If the Google Cloud
3205
+ # Storage bucket is in the Telephony Gateway project, this permission is
3206
+ # added by default when enabling the Dialogflow V2 API.
3207
+ # For audio from other sources, consider using the
3208
+ # `TelephonySynthesizeSpeech` message with SSML.
3209
+ # Corresponds to the JSON property `audioUri`
3210
+ # @return [String]
3211
+ attr_accessor :audio_uri
3212
+
3213
+ def initialize(**args)
3214
+ update!(**args)
3215
+ end
3216
+
3217
+ # Update properties of this object
3218
+ def update!(**args)
3219
+ @audio_uri = args[:audio_uri] if args.key?(:audio_uri)
3220
+ end
3221
+ end
3222
+
3223
+ # Synthesizes speech and plays back the synthesized audio to the caller in
3224
+ # Telephony Gateway.
3225
+ # Telephony Gateway takes the synthesizer settings from
3226
+ # `DetectIntentResponse.output_audio_config` which can either be set
3227
+ # at request-level or can come from the agent-level synthesizer config.
3228
+ class GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
3229
+ include Google::Apis::Core::Hashable
3230
+
3231
+ # The SSML to be synthesized. For more information, see
3232
+ # [SSML](https://developers.google.com/actions/reference/ssml).
3233
+ # Corresponds to the JSON property `ssml`
3234
+ # @return [String]
3235
+ attr_accessor :ssml
3236
+
3237
+ # The raw text to be synthesized.
3238
+ # Corresponds to the JSON property `text`
3239
+ # @return [String]
3240
+ attr_accessor :text
3241
+
3242
+ def initialize(**args)
3243
+ update!(**args)
3244
+ end
3245
+
3246
+ # Update properties of this object
3247
+ def update!(**args)
3248
+ @ssml = args[:ssml] if args.key?(:ssml)
3249
+ @text = args[:text] if args.key?(:text)
3250
+ end
3251
+ end
3252
+
3253
+ # Transfers the call in Telephony Gateway.
3254
+ class GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
3255
+ include Google::Apis::Core::Hashable
3256
+
3257
+ # Required. The phone number to transfer the call to
3258
+ # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
3259
+ # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
3260
+ # Corresponds to the JSON property `phoneNumber`
3261
+ # @return [String]
3262
+ attr_accessor :phone_number
3263
+
3264
+ def initialize(**args)
3265
+ update!(**args)
3266
+ end
3267
+
3268
+ # Update properties of this object
3269
+ def update!(**args)
3270
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
3271
+ end
3272
+ end
3273
+
3040
3274
  # The text response message.
3041
3275
  class GoogleCloudDialogflowV2beta1IntentMessageText
3042
3276
  include Google::Apis::Core::Hashable
@@ -3136,7 +3370,7 @@ module Google
3136
3370
  class GoogleCloudDialogflowV2beta1IntentTrainingPhrase
3137
3371
  include Google::Apis::Core::Hashable
3138
3372
 
3139
- # Required. The unique identifier of this training phrase.
3373
+ # Output only. The unique identifier of this training phrase.
3140
3374
  # Corresponds to the JSON property `name`
3141
3375
  # @return [String]
3142
3376
  attr_accessor :name
@@ -3217,6 +3451,112 @@ module Google
3217
3451
  end
3218
3452
  end
3219
3453
 
3454
+ # Represents the result of querying a Knowledge base.
3455
+ class GoogleCloudDialogflowV2beta1KnowledgeAnswers
3456
+ include Google::Apis::Core::Hashable
3457
+
3458
+ # A list of answers from Knowledge Connector.
3459
+ # Corresponds to the JSON property `answers`
3460
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer>]
3461
+ attr_accessor :answers
3462
+
3463
+ def initialize(**args)
3464
+ update!(**args)
3465
+ end
3466
+
3467
+ # Update properties of this object
3468
+ def update!(**args)
3469
+ @answers = args[:answers] if args.key?(:answers)
3470
+ end
3471
+ end
3472
+
3473
+ # An answer from Knowledge Connector.
3474
+ class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
3475
+ include Google::Apis::Core::Hashable
3476
+
3477
+ # The piece of text from the `source` knowledge base document that answers
3478
+ # this conversational query.
3479
+ # Corresponds to the JSON property `answer`
3480
+ # @return [String]
3481
+ attr_accessor :answer
3482
+
3483
+ # The corresponding FAQ question if the answer was extracted from a FAQ
3484
+ # Document, empty otherwise.
3485
+ # Corresponds to the JSON property `faqQuestion`
3486
+ # @return [String]
3487
+ attr_accessor :faq_question
3488
+
3489
+ # The system's confidence score that this Knowledge answer is a good match
3490
+ # for this converstational query, range from 0.0 (completely uncertain)
3491
+ # to 1.0 (completely certain).
3492
+ # Note: The confidence score is likely to vary somewhat (possibly even for
3493
+ # identical requests), as the underlying model is under constant
3494
+ # improvement, we may deprecate it in the future. We recommend using
3495
+ # `match_confidence_level` which should be generally more stable.
3496
+ # Corresponds to the JSON property `matchConfidence`
3497
+ # @return [Float]
3498
+ attr_accessor :match_confidence
3499
+
3500
+ # The system's confidence level that this knowledge answer is a good match
3501
+ # for this conversational query.
3502
+ # NOTE: The confidence level for a given `<query, answer>` pair may change
3503
+ # without notice, as it depends on models that are constantly being
3504
+ # improved. However, it will change less frequently than the confidence
3505
+ # score below, and should be preferred for referencing the quality of an
3506
+ # answer.
3507
+ # Corresponds to the JSON property `matchConfidenceLevel`
3508
+ # @return [String]
3509
+ attr_accessor :match_confidence_level
3510
+
3511
+ # Indicates which Knowledge Document this answer was extracted from.
3512
+ # Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
3513
+ # ID>/documents/<Document ID>`.
3514
+ # Corresponds to the JSON property `source`
3515
+ # @return [String]
3516
+ attr_accessor :source
3517
+
3518
+ def initialize(**args)
3519
+ update!(**args)
3520
+ end
3521
+
3522
+ # Update properties of this object
3523
+ def update!(**args)
3524
+ @answer = args[:answer] if args.key?(:answer)
3525
+ @faq_question = args[:faq_question] if args.key?(:faq_question)
3526
+ @match_confidence = args[:match_confidence] if args.key?(:match_confidence)
3527
+ @match_confidence_level = args[:match_confidence_level] if args.key?(:match_confidence_level)
3528
+ @source = args[:source] if args.key?(:source)
3529
+ end
3530
+ end
3531
+
3532
+ # Represents knowledge base resource.
3533
+ class GoogleCloudDialogflowV2beta1KnowledgeBase
3534
+ include Google::Apis::Core::Hashable
3535
+
3536
+ # Required. The display name of the knowledge base. The name must be 1024
3537
+ # bytes or less; otherwise, the creation request fails.
3538
+ # Corresponds to the JSON property `displayName`
3539
+ # @return [String]
3540
+ attr_accessor :display_name
3541
+
3542
+ # The knowledge base resource name.
3543
+ # The name must be empty when creating a knowledge base.
3544
+ # Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
3545
+ # Corresponds to the JSON property `name`
3546
+ # @return [String]
3547
+ attr_accessor :name
3548
+
3549
+ def initialize(**args)
3550
+ update!(**args)
3551
+ end
3552
+
3553
+ # Update properties of this object
3554
+ def update!(**args)
3555
+ @display_name = args[:display_name] if args.key?(:display_name)
3556
+ @name = args[:name] if args.key?(:name)
3557
+ end
3558
+ end
3559
+
3220
3560
  # Metadata in google::longrunning::Operation for Knowledge operations.
3221
3561
  class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
3222
3562
  include Google::Apis::Core::Hashable
@@ -3263,6 +3603,32 @@ module Google
3263
3603
  end
3264
3604
  end
3265
3605
 
3606
+ # Response message for Documents.ListDocuments.
3607
+ class GoogleCloudDialogflowV2beta1ListDocumentsResponse
3608
+ include Google::Apis::Core::Hashable
3609
+
3610
+ # The list of documents.
3611
+ # Corresponds to the JSON property `documents`
3612
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document>]
3613
+ attr_accessor :documents
3614
+
3615
+ # Token to retrieve the next page of results, or empty if there are no
3616
+ # more results in the list.
3617
+ # Corresponds to the JSON property `nextPageToken`
3618
+ # @return [String]
3619
+ attr_accessor :next_page_token
3620
+
3621
+ def initialize(**args)
3622
+ update!(**args)
3623
+ end
3624
+
3625
+ # Update properties of this object
3626
+ def update!(**args)
3627
+ @documents = args[:documents] if args.key?(:documents)
3628
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3629
+ end
3630
+ end
3631
+
3266
3632
  # The response message for EntityTypes.ListEntityTypes.
3267
3633
  class GoogleCloudDialogflowV2beta1ListEntityTypesResponse
3268
3634
  include Google::Apis::Core::Hashable
@@ -3317,6 +3683,32 @@ module Google
3317
3683
  end
3318
3684
  end
3319
3685
 
3686
+ # Response message for KnowledgeBases.ListKnowledgeBases.
3687
+ class GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse
3688
+ include Google::Apis::Core::Hashable
3689
+
3690
+ # The list of knowledge bases.
3691
+ # Corresponds to the JSON property `knowledgeBases`
3692
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase>]
3693
+ attr_accessor :knowledge_bases
3694
+
3695
+ # Token to retrieve the next page of results, or empty if there are no
3696
+ # more results in the list.
3697
+ # Corresponds to the JSON property `nextPageToken`
3698
+ # @return [String]
3699
+ attr_accessor :next_page_token
3700
+
3701
+ def initialize(**args)
3702
+ update!(**args)
3703
+ end
3704
+
3705
+ # Update properties of this object
3706
+ def update!(**args)
3707
+ @knowledge_bases = args[:knowledge_bases] if args.key?(:knowledge_bases)
3708
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3709
+ end
3710
+ end
3711
+
3320
3712
  # The response message for SessionEntityTypes.ListSessionEntityTypes.
3321
3713
  class GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse
3322
3714
  include Google::Apis::Core::Hashable
@@ -3349,19 +3741,18 @@ module Google
3349
3741
  class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
3350
3742
  include Google::Apis::Core::Hashable
3351
3743
 
3352
- # Optional. This field is set to the value of `QueryParameters.payload` field
3353
- # passed in the request.
3354
- # This field is used for the telephony gateway. It should have a
3355
- # structure similar to this JSON message:
3744
+ # Optional. This field is set to the value of the `QueryParameters.payload`
3745
+ # field passed in the request. Some integrations that query a Dialogflow
3746
+ # agent may provide additional information in the payload.
3747
+ # In particular for the Telephony Gateway this field has the form:
3356
3748
  # <pre>`
3357
3749
  # "telephony": `
3358
3750
  # "caller_id": "+18558363987"
3751
+ # `
3359
3752
  # `</pre>
3360
- # Note: The caller ID field (`caller_id`) will be in
3361
- # [E.164 format](https://en.wikipedia.org/wiki/E.164) and is not supported
3362
- # for standard tier agents. When the telephony gateway is used with a
3363
- # standard tier agent the `caller_id` field above will have a value of
3364
- # `REDACTED_IN_STANDARD_TIER_AGENT`.
3753
+ # Note: The caller ID field (`caller_id`) will be redacted for Standard
3754
+ # Edition agents and populated with the caller ID in [E.164
3755
+ # format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
3365
3756
  # Corresponds to the JSON property `payload`
3366
3757
  # @return [Hash<String,Object>]
3367
3758
  attr_accessor :payload
@@ -3390,6 +3781,41 @@ module Google
3390
3781
  end
3391
3782
  end
3392
3783
 
3784
+ # Instructs the speech synthesizer how to generate the output audio content.
3785
+ class GoogleCloudDialogflowV2beta1OutputAudioConfig
3786
+ include Google::Apis::Core::Hashable
3787
+
3788
+ # Required. Audio encoding of the synthesized audio content.
3789
+ # Corresponds to the JSON property `audioEncoding`
3790
+ # @return [String]
3791
+ attr_accessor :audio_encoding
3792
+
3793
+ # Optional. The synthesis sample rate (in hertz) for this audio. If not
3794
+ # provided, then the synthesizer will use the default sample rate based on
3795
+ # the audio encoding. If this is different from the voice's natural sample
3796
+ # rate, then the synthesizer will honor this request by converting to the
3797
+ # desired sample rate (which might result in worse audio quality).
3798
+ # Corresponds to the JSON property `sampleRateHertz`
3799
+ # @return [Fixnum]
3800
+ attr_accessor :sample_rate_hertz
3801
+
3802
+ # Configuration of how speech should be synthesized.
3803
+ # Corresponds to the JSON property `synthesizeSpeechConfig`
3804
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig]
3805
+ attr_accessor :synthesize_speech_config
3806
+
3807
+ def initialize(**args)
3808
+ update!(**args)
3809
+ end
3810
+
3811
+ # Update properties of this object
3812
+ def update!(**args)
3813
+ @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
3814
+ @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
3815
+ @synthesize_speech_config = args[:synthesize_speech_config] if args.key?(:synthesize_speech_config)
3816
+ end
3817
+ end
3818
+
3393
3819
  # Represents the query input. It can contain either:
3394
3820
  # 1. An audio config which
3395
3821
  # instructs the speech recognizer how to process the speech audio.
@@ -3448,6 +3874,16 @@ module Google
3448
3874
  # @return [Google::Apis::DialogflowV2beta1::GoogleTypeLatLng]
3449
3875
  attr_accessor :geo_location
3450
3876
 
3877
+ # Optional. KnowledgeBases to get alternative results from. If not set, the
3878
+ # KnowledgeBases enabled in the agent (through UI) will be used.
3879
+ # Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
3880
+ # Note: This field is `repeated` for forward compatibility, currently only
3881
+ # the first one is supported, we may return an error if multiple
3882
+ # KnowledgeBases are specified.
3883
+ # Corresponds to the JSON property `knowledgeBaseNames`
3884
+ # @return [Array<String>]
3885
+ attr_accessor :knowledge_base_names
3886
+
3451
3887
  # Optional. This field can be used to pass custom data into the webhook
3452
3888
  # associated with the agent. Arbitrary JSON objects are supported.
3453
3889
  # Corresponds to the JSON property `payload`
@@ -3461,6 +3897,11 @@ module Google
3461
3897
  attr_accessor :reset_contexts
3462
3898
  alias_method :reset_contexts?, :reset_contexts
3463
3899
 
3900
+ # Configures the types of sentiment analysis to perform.
3901
+ # Corresponds to the JSON property `sentimentAnalysisRequestConfig`
3902
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig]
3903
+ attr_accessor :sentiment_analysis_request_config
3904
+
3464
3905
  # Optional. The collection of session entity types to replace or extend
3465
3906
  # developer entities with for this query only. The entity synonyms apply
3466
3907
  # to all languages.
@@ -3484,8 +3925,10 @@ module Google
3484
3925
  def update!(**args)
3485
3926
  @contexts = args[:contexts] if args.key?(:contexts)
3486
3927
  @geo_location = args[:geo_location] if args.key?(:geo_location)
3928
+ @knowledge_base_names = args[:knowledge_base_names] if args.key?(:knowledge_base_names)
3487
3929
  @payload = args[:payload] if args.key?(:payload)
3488
3930
  @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts)
3931
+ @sentiment_analysis_request_config = args[:sentiment_analysis_request_config] if args.key?(:sentiment_analysis_request_config)
3489
3932
  @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types)
3490
3933
  @time_zone = args[:time_zone] if args.key?(:time_zone)
3491
3934
  end
@@ -3541,6 +3984,11 @@ module Google
3541
3984
  # @return [Float]
3542
3985
  attr_accessor :intent_detection_confidence
3543
3986
 
3987
+ # Represents the result of querying a Knowledge base.
3988
+ # Corresponds to the JSON property `knowledgeAnswers`
3989
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAnswers]
3990
+ attr_accessor :knowledge_answers
3991
+
3544
3992
  # The language that was triggered during intent detection.
3545
3993
  # See [Language Support](https://dialogflow.com/docs/reference/language)
3546
3994
  # for a list of the currently supported language codes.
@@ -3572,6 +4020,12 @@ module Google
3572
4020
  # @return [String]
3573
4021
  attr_accessor :query_text
3574
4022
 
4023
+ # The result of sentiment analysis as configured by
4024
+ # `sentiment_analysis_request_config`.
4025
+ # Corresponds to the JSON property `sentimentAnalysisResult`
4026
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisResult]
4027
+ attr_accessor :sentiment_analysis_result
4028
+
3575
4029
  # The Speech recognition confidence between 0.0 and 1.0. A higher number
3576
4030
  # indicates an estimated greater likelihood that the recognized words are
3577
4031
  # correct. The default of 0.0 is a sentinel value indicating that confidence
@@ -3609,10 +4063,12 @@ module Google
3609
4063
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
3610
4064
  @intent = args[:intent] if args.key?(:intent)
3611
4065
  @intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence)
4066
+ @knowledge_answers = args[:knowledge_answers] if args.key?(:knowledge_answers)
3612
4067
  @language_code = args[:language_code] if args.key?(:language_code)
3613
4068
  @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
3614
4069
  @parameters = args[:parameters] if args.key?(:parameters)
3615
4070
  @query_text = args[:query_text] if args.key?(:query_text)
4071
+ @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
3616
4072
  @speech_recognition_confidence = args[:speech_recognition_confidence] if args.key?(:speech_recognition_confidence)
3617
4073
  @webhook_payload = args[:webhook_payload] if args.key?(:webhook_payload)
3618
4074
  @webhook_source = args[:webhook_source] if args.key?(:webhook_source)
@@ -3629,7 +4085,8 @@ module Google
3629
4085
  # 'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/
3630
4086
  # agent:restore\
3631
4087
  # -X POST \
3632
- # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
4088
+ # -H 'Authorization: Bearer '$(gcloud auth application-default
4089
+ # print-access-token) \
3633
4090
  # -H 'Accept: application/json' \
3634
4091
  # -H 'Content-Type: application/json' \
3635
4092
  # --compressed \
@@ -3685,6 +4142,77 @@ module Google
3685
4142
  end
3686
4143
  end
3687
4144
 
4145
+ # The sentiment, such as positive/negative feeling or association, for a unit
4146
+ # of analysis, such as the query text.
4147
+ class GoogleCloudDialogflowV2beta1Sentiment
4148
+ include Google::Apis::Core::Hashable
4149
+
4150
+ # A non-negative number in the [0, +inf) range, which represents the absolute
4151
+ # magnitude of sentiment, regardless of score (positive or negative).
4152
+ # Corresponds to the JSON property `magnitude`
4153
+ # @return [Float]
4154
+ attr_accessor :magnitude
4155
+
4156
+ # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
4157
+ # sentiment).
4158
+ # Corresponds to the JSON property `score`
4159
+ # @return [Float]
4160
+ attr_accessor :score
4161
+
4162
+ def initialize(**args)
4163
+ update!(**args)
4164
+ end
4165
+
4166
+ # Update properties of this object
4167
+ def update!(**args)
4168
+ @magnitude = args[:magnitude] if args.key?(:magnitude)
4169
+ @score = args[:score] if args.key?(:score)
4170
+ end
4171
+ end
4172
+
4173
+ # Configures the types of sentiment analysis to perform.
4174
+ class GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig
4175
+ include Google::Apis::Core::Hashable
4176
+
4177
+ # Optional. Instructs the service to perform sentiment analysis on
4178
+ # `query_text`. If not provided, sentiment analysis is not performed on
4179
+ # `query_text`.
4180
+ # Corresponds to the JSON property `analyzeQueryTextSentiment`
4181
+ # @return [Boolean]
4182
+ attr_accessor :analyze_query_text_sentiment
4183
+ alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment
4184
+
4185
+ def initialize(**args)
4186
+ update!(**args)
4187
+ end
4188
+
4189
+ # Update properties of this object
4190
+ def update!(**args)
4191
+ @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
4192
+ end
4193
+ end
4194
+
4195
+ # The result of sentiment analysis as configured by
4196
+ # `sentiment_analysis_request_config`.
4197
+ class GoogleCloudDialogflowV2beta1SentimentAnalysisResult
4198
+ include Google::Apis::Core::Hashable
4199
+
4200
+ # The sentiment, such as positive/negative feeling or association, for a unit
4201
+ # of analysis, such as the query text.
4202
+ # Corresponds to the JSON property `queryTextSentiment`
4203
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Sentiment]
4204
+ attr_accessor :query_text_sentiment
4205
+
4206
+ def initialize(**args)
4207
+ update!(**args)
4208
+ end
4209
+
4210
+ # Update properties of this object
4211
+ def update!(**args)
4212
+ @query_text_sentiment = args[:query_text_sentiment] if args.key?(:query_text_sentiment)
4213
+ end
4214
+ end
4215
+
3688
4216
  # Represents a session entity type.
3689
4217
  # Extends or replaces a developer entity type at the user session level (we
3690
4218
  # refer to the entity types defined at the agent level as "developer entity
@@ -3728,6 +4256,63 @@ module Google
3728
4256
  end
3729
4257
  end
3730
4258
 
4259
+ # Configuration of how speech should be synthesized.
4260
+ class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
4261
+ include Google::Apis::Core::Hashable
4262
+
4263
+ # Optional. An identifier which selects 'audio effects' profiles that are
4264
+ # applied on (post synthesized) text to speech. Effects are applied on top of
4265
+ # each other in the order they are given.
4266
+ # Corresponds to the JSON property `effectsProfileId`
4267
+ # @return [Array<String>]
4268
+ attr_accessor :effects_profile_id
4269
+
4270
+ # Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
4271
+ # semitones from the original pitch. -20 means decrease 20 semitones from the
4272
+ # original pitch.
4273
+ # Corresponds to the JSON property `pitch`
4274
+ # @return [Float]
4275
+ attr_accessor :pitch
4276
+
4277
+ # Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
4278
+ # native speed supported by the specific voice. 2.0 is twice as fast, and
4279
+ # 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
4280
+ # other values < 0.25 or > 4.0 will return an error.
4281
+ # Corresponds to the JSON property `speakingRate`
4282
+ # @return [Float]
4283
+ attr_accessor :speaking_rate
4284
+
4285
+ # Description of which voice to use for speech synthesis.
4286
+ # Corresponds to the JSON property `voice`
4287
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1VoiceSelectionParams]
4288
+ attr_accessor :voice
4289
+
4290
+ # Optional. Volume gain (in dB) of the normal native volume supported by the
4291
+ # specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
4292
+ # 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
4293
+ # will play at approximately half the amplitude of the normal native signal
4294
+ # amplitude. A value of +6.0 (dB) will play at approximately twice the
4295
+ # amplitude of the normal native signal amplitude. We strongly recommend not
4296
+ # to exceed +10 (dB) as there's usually no effective increase in loudness for
4297
+ # any value greater than that.
4298
+ # Corresponds to the JSON property `volumeGainDb`
4299
+ # @return [Float]
4300
+ attr_accessor :volume_gain_db
4301
+
4302
+ def initialize(**args)
4303
+ update!(**args)
4304
+ end
4305
+
4306
+ # Update properties of this object
4307
+ def update!(**args)
4308
+ @effects_profile_id = args[:effects_profile_id] if args.key?(:effects_profile_id)
4309
+ @pitch = args[:pitch] if args.key?(:pitch)
4310
+ @speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate)
4311
+ @voice = args[:voice] if args.key?(:voice)
4312
+ @volume_gain_db = args[:volume_gain_db] if args.key?(:volume_gain_db)
4313
+ end
4314
+ end
4315
+
3731
4316
  # Represents the natural language text to be processed.
3732
4317
  class GoogleCloudDialogflowV2beta1TextInput
3733
4318
  include Google::Apis::Core::Hashable
@@ -3770,10 +4355,45 @@ module Google
3770
4355
  end
3771
4356
  end
3772
4357
 
4358
+ # Description of which voice to use for speech synthesis.
4359
+ class GoogleCloudDialogflowV2beta1VoiceSelectionParams
4360
+ include Google::Apis::Core::Hashable
4361
+
4362
+ # Optional. The name of the voice. If not set, the service will choose a
4363
+ # voice based on the other parameters such as language_code and gender.
4364
+ # Corresponds to the JSON property `name`
4365
+ # @return [String]
4366
+ attr_accessor :name
4367
+
4368
+ # Optional. The preferred gender of the voice. If not set, the service will
4369
+ # choose a voice based on the other parameters such as language_code and
4370
+ # name. Note that this is only a preference, not requirement. If a
4371
+ # voice of the appropriate gender is not available, the synthesizer should
4372
+ # substitute a voice with a different gender rather than failing the request.
4373
+ # Corresponds to the JSON property `ssmlGender`
4374
+ # @return [String]
4375
+ attr_accessor :ssml_gender
4376
+
4377
+ def initialize(**args)
4378
+ update!(**args)
4379
+ end
4380
+
4381
+ # Update properties of this object
4382
+ def update!(**args)
4383
+ @name = args[:name] if args.key?(:name)
4384
+ @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
4385
+ end
4386
+ end
4387
+
3773
4388
  # The request message for a webhook call.
3774
4389
  class GoogleCloudDialogflowV2beta1WebhookRequest
3775
4390
  include Google::Apis::Core::Hashable
3776
4391
 
4392
+ # Alternative query results from KnowledgeService.
4393
+ # Corresponds to the JSON property `alternativeQueryResults`
4394
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult>]
4395
+ attr_accessor :alternative_query_results
4396
+
3777
4397
  # Represents the contents of the original request that was passed to
3778
4398
  # the `[Streaming]DetectIntent` call.
3779
4399
  # Corresponds to the JSON property `originalDetectIntentRequest`
@@ -3804,6 +4424,7 @@ module Google
3804
4424
 
3805
4425
  # Update properties of this object
3806
4426
  def update!(**args)
4427
+ @alternative_query_results = args[:alternative_query_results] if args.key?(:alternative_query_results)
3807
4428
  @original_detect_intent_request = args[:original_detect_intent_request] if args.key?(:original_detect_intent_request)
3808
4429
  @query_result = args[:query_result] if args.key?(:query_result)
3809
4430
  @response_id = args[:response_id] if args.key?(:response_id)
@@ -3815,6 +4436,14 @@ module Google
3815
4436
  class GoogleCloudDialogflowV2beta1WebhookResponse
3816
4437
  include Google::Apis::Core::Hashable
3817
4438
 
4439
+ # Optional. Indicates that this intent ends an interaction. Some integrations
4440
+ # (e.g., Actions on Google or Dialogflow phone gateway) use this information
4441
+ # to close interaction with an end user. Default is false.
4442
+ # Corresponds to the JSON property `endInteraction`
4443
+ # @return [Boolean]
4444
+ attr_accessor :end_interaction
4445
+ alias_method :end_interaction?, :end_interaction
4446
+
3818
4447
  # Events allow for matching intents by event name instead of the natural
3819
4448
  # language input. For instance, input `<event: ` name: “welcome_event”,
3820
4449
  # parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
@@ -3879,6 +4508,7 @@ module Google
3879
4508
 
3880
4509
  # Update properties of this object
3881
4510
  def update!(**args)
4511
+ @end_interaction = args[:end_interaction] if args.key?(:end_interaction)
3882
4512
  @followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input)
3883
4513
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
3884
4514
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)