google-api-client 0.19.8 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (355) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +106 -0
  4. data/MIGRATING.md +3 -3
  5. data/README.md +6 -9
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -7
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -8
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +84 -9
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
  13. data/generated/google/apis/admin_directory_v1.rb +1 -1
  14. data/generated/google/apis/admin_directory_v1/classes.rb +11 -10
  15. data/generated/google/apis/admin_directory_v1/service.rb +21 -7
  16. data/generated/google/apis/analytics_v3.rb +1 -1
  17. data/generated/google/apis/analytics_v3/service.rb +1 -1
  18. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  19. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +52 -35
  20. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +33 -20
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +44 -0
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +17 -0
  24. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  25. data/generated/google/apis/androidmanagement_v1/classes.rb +66 -0
  26. data/generated/google/apis/androidmanagement_v1/representations.rb +10 -0
  27. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  28. data/generated/google/apis/androidpublisher_v2/classes.rb +37 -72
  29. data/generated/google/apis/androidpublisher_v2/representations.rb +5 -34
  30. data/generated/google/apis/androidpublisher_v2/service.rb +6 -52
  31. data/generated/google/apis/appengine_v1.rb +2 -2
  32. data/generated/google/apis/appengine_v1/classes.rb +82 -7
  33. data/generated/google/apis/appengine_v1/representations.rb +32 -0
  34. data/generated/google/apis/appengine_v1/service.rb +2 -2
  35. data/generated/google/apis/appengine_v1alpha.rb +2 -2
  36. data/generated/google/apis/appengine_v1alpha/classes.rb +35 -0
  37. data/generated/google/apis/appengine_v1alpha/representations.rb +16 -0
  38. data/generated/google/apis/appengine_v1alpha/service.rb +2 -2
  39. data/generated/google/apis/appengine_v1beta.rb +2 -2
  40. data/generated/google/apis/appengine_v1beta/classes.rb +51 -7
  41. data/generated/google/apis/appengine_v1beta/representations.rb +17 -0
  42. data/generated/google/apis/appengine_v1beta/service.rb +2 -2
  43. data/generated/google/apis/appengine_v1beta4.rb +2 -2
  44. data/generated/google/apis/appengine_v1beta4/classes.rb +50 -6
  45. data/generated/google/apis/appengine_v1beta4/representations.rb +17 -0
  46. data/generated/google/apis/appengine_v1beta4/service.rb +2 -2
  47. data/generated/google/apis/appengine_v1beta5.rb +2 -2
  48. data/generated/google/apis/appengine_v1beta5/classes.rb +50 -6
  49. data/generated/google/apis/appengine_v1beta5/representations.rb +17 -0
  50. data/generated/google/apis/appengine_v1beta5/service.rb +2 -2
  51. data/generated/google/apis/bigquery_v2.rb +1 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +19 -11
  53. data/generated/google/apis/bigquery_v2/representations.rb +4 -3
  54. data/generated/google/apis/bigquery_v2/service.rb +9 -1
  55. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  56. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +9 -6
  57. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +1 -0
  58. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1 -1
  59. data/generated/google/apis/calendar_v3.rb +1 -1
  60. data/generated/google/apis/calendar_v3/classes.rb +3 -1
  61. data/generated/google/apis/{firebaseremoteconfig_v1.rb → chat_v1.rb} +8 -9
  62. data/generated/google/apis/chat_v1/classes.rb +890 -0
  63. data/generated/google/apis/chat_v1/representations.rb +445 -0
  64. data/generated/google/apis/chat_v1/service.rb +344 -0
  65. data/generated/google/apis/cloudbilling_v1.rb +2 -2
  66. data/generated/google/apis/cloudbilling_v1/classes.rb +341 -5
  67. data/generated/google/apis/cloudbilling_v1/representations.rb +103 -0
  68. data/generated/google/apis/cloudbilling_v1/service.rb +217 -10
  69. data/generated/google/apis/cloudbuild_v1.rb +2 -2
  70. data/generated/google/apis/cloudbuild_v1/classes.rb +180 -84
  71. data/generated/google/apis/cloudbuild_v1/representations.rb +35 -0
  72. data/generated/google/apis/cloudbuild_v1/service.rb +25 -25
  73. data/generated/google/apis/cloudiot_v1.rb +2 -2
  74. data/generated/google/apis/cloudiot_v1/classes.rb +13 -142
  75. data/generated/google/apis/cloudiot_v1/representations.rb +0 -32
  76. data/generated/google/apis/cloudiot_v1/service.rb +2 -2
  77. data/generated/google/apis/cloudkms_v1.rb +1 -1
  78. data/generated/google/apis/cloudkms_v1/classes.rb +7 -1
  79. data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
  80. data/generated/google/apis/cloudkms_v1/service.rb +1 -1
  81. data/generated/google/apis/cloudresourcemanager_v1.rb +2 -2
  82. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -2
  83. data/generated/google/apis/cloudresourcemanager_v1/service.rb +4 -5
  84. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +2 -2
  85. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
  86. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +6 -6
  87. data/generated/google/apis/{clouduseraccounts_beta.rb → cloudresourcemanager_v2.rb} +10 -16
  88. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +821 -0
  89. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +304 -0
  90. data/generated/google/apis/cloudresourcemanager_v2/service.rb +534 -0
  91. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +2 -2
  92. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
  93. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  94. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +7 -0
  95. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
  96. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  97. data/generated/google/apis/cloudtrace_v1/classes.rb +2 -0
  98. data/generated/google/apis/compute_alpha.rb +1 -1
  99. data/generated/google/apis/compute_alpha/classes.rb +216 -120
  100. data/generated/google/apis/compute_alpha/representations.rb +25 -1
  101. data/generated/google/apis/compute_alpha/service.rb +1354 -1621
  102. data/generated/google/apis/compute_beta.rb +1 -1
  103. data/generated/google/apis/compute_beta/classes.rb +548 -85
  104. data/generated/google/apis/compute_beta/representations.rb +159 -0
  105. data/generated/google/apis/compute_beta/service.rb +1971 -1460
  106. data/generated/google/apis/compute_v1.rb +1 -1
  107. data/generated/google/apis/compute_v1/classes.rb +206 -70
  108. data/generated/google/apis/compute_v1/representations.rb +32 -0
  109. data/generated/google/apis/compute_v1/service.rb +1184 -1278
  110. data/generated/google/apis/container_v1.rb +1 -1
  111. data/generated/google/apis/container_v1/classes.rb +742 -9
  112. data/generated/google/apis/container_v1/representations.rb +90 -0
  113. data/generated/google/apis/container_v1/service.rb +1380 -100
  114. data/generated/google/apis/container_v1beta1.rb +1 -1
  115. data/generated/google/apis/container_v1beta1/classes.rb +191 -138
  116. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  117. data/generated/google/apis/container_v1beta1/service.rb +236 -231
  118. data/generated/google/apis/content_v2.rb +1 -1
  119. data/generated/google/apis/content_v2/classes.rb +2690 -1540
  120. data/generated/google/apis/content_v2/representations.rb +491 -0
  121. data/generated/google/apis/content_v2/service.rb +684 -0
  122. data/generated/google/apis/content_v2sandbox.rb +1 -1
  123. data/generated/google/apis/content_v2sandbox/classes.rb +2 -1
  124. data/generated/google/apis/dataflow_v1b3.rb +2 -2
  125. data/generated/google/apis/dataflow_v1b3/classes.rb +95 -0
  126. data/generated/google/apis/dataflow_v1b3/representations.rb +36 -0
  127. data/generated/google/apis/dataflow_v1b3/service.rb +1 -1
  128. data/generated/google/apis/dataproc_v1.rb +1 -1
  129. data/generated/google/apis/dataproc_v1/classes.rb +56 -45
  130. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  131. data/generated/google/apis/dataproc_v1/service.rb +30 -3
  132. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  133. data/generated/google/apis/dataproc_v1beta2/classes.rb +77 -53
  134. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  135. data/generated/google/apis/dataproc_v1beta2/service.rb +484 -18
  136. data/generated/google/apis/datastore_v1.rb +1 -1
  137. data/generated/google/apis/datastore_v1/classes.rb +372 -0
  138. data/generated/google/apis/datastore_v1/representations.rb +132 -0
  139. data/generated/google/apis/datastore_v1/service.rb +77 -0
  140. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  141. data/generated/google/apis/datastore_v1beta1/classes.rb +255 -0
  142. data/generated/google/apis/datastore_v1beta1/representations.rb +100 -0
  143. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  144. data/generated/google/apis/datastore_v1beta3/classes.rb +255 -0
  145. data/generated/google/apis/datastore_v1beta3/representations.rb +100 -0
  146. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  147. data/generated/google/apis/deploymentmanager_alpha/classes.rb +6 -1
  148. data/generated/google/apis/deploymentmanager_alpha/service.rb +121 -145
  149. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  150. data/generated/google/apis/deploymentmanager_v2/service.rb +79 -91
  151. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  152. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -1
  153. data/generated/google/apis/deploymentmanager_v2beta/service.rb +121 -145
  154. data/generated/google/apis/dialogflow_v2.rb +35 -0
  155. data/generated/google/apis/dialogflow_v2/classes.rb +3994 -0
  156. data/generated/google/apis/dialogflow_v2/representations.rb +1670 -0
  157. data/generated/google/apis/dialogflow_v2/service.rb +1397 -0
  158. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  159. data/generated/google/apis/dialogflow_v2beta1/classes.rb +39 -11
  160. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
  161. data/generated/google/apis/dialogflow_v2beta1/service.rb +559 -16
  162. data/generated/google/apis/dlp_v2.rb +36 -0
  163. data/generated/google/apis/dlp_v2/classes.rb +6431 -0
  164. data/generated/google/apis/dlp_v2/representations.rb +3116 -0
  165. data/generated/google/apis/dlp_v2/service.rb +1300 -0
  166. data/generated/google/apis/dlp_v2beta1.rb +4 -4
  167. data/generated/google/apis/dlp_v2beta1/classes.rb +38 -0
  168. data/generated/google/apis/dlp_v2beta1/representations.rb +17 -0
  169. data/generated/google/apis/dlp_v2beta1/service.rb +3 -3
  170. data/generated/google/apis/dlp_v2beta2.rb +4 -4
  171. data/generated/google/apis/dlp_v2beta2/classes.rb +229 -1
  172. data/generated/google/apis/dlp_v2beta2/representations.rb +91 -0
  173. data/generated/google/apis/dlp_v2beta2/service.rb +3 -3
  174. data/generated/google/apis/dns_v1.rb +1 -1
  175. data/generated/google/apis/dns_v1/classes.rb +496 -0
  176. data/generated/google/apis/dns_v1/representations.rb +188 -0
  177. data/generated/google/apis/dns_v1/service.rb +319 -6
  178. data/generated/google/apis/dns_v1beta2.rb +1 -1
  179. data/generated/google/apis/dns_v1beta2/classes.rb +0 -19
  180. data/generated/google/apis/dns_v1beta2/representations.rb +0 -14
  181. data/generated/google/apis/dns_v1beta2/service.rb +2 -4
  182. data/generated/google/apis/dns_v2beta1.rb +1 -1
  183. data/generated/google/apis/dns_v2beta1/classes.rb +6 -19
  184. data/generated/google/apis/dns_v2beta1/representations.rb +1 -14
  185. data/generated/google/apis/dns_v2beta1/service.rb +2 -4
  186. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  187. data/generated/google/apis/doubleclicksearch_v2/classes.rb +4 -0
  188. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  189. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +2 -2
  190. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  191. data/generated/google/apis/firestore_v1beta1/classes.rb +1 -1
  192. data/generated/google/apis/genomics_v1.rb +1 -1
  193. data/generated/google/apis/genomics_v1/classes.rb +271 -1
  194. data/generated/google/apis/genomics_v1/representations.rb +140 -0
  195. data/generated/google/apis/genomics_v1/service.rb +9 -1
  196. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  197. data/generated/google/apis/genomics_v1alpha2/classes.rb +271 -1
  198. data/generated/google/apis/genomics_v1alpha2/representations.rb +140 -0
  199. data/generated/google/apis/genomics_v1alpha2/service.rb +9 -1
  200. data/generated/google/apis/genomics_v2alpha1.rb +37 -0
  201. data/generated/google/apis/genomics_v2alpha1/classes.rb +1306 -0
  202. data/generated/google/apis/genomics_v2alpha1/representations.rb +535 -0
  203. data/generated/google/apis/genomics_v2alpha1/service.rb +261 -0
  204. data/generated/google/apis/gmail_v1.rb +1 -1
  205. data/generated/google/apis/gmail_v1/classes.rb +2 -1
  206. data/generated/google/apis/iam_v1.rb +1 -1
  207. data/generated/google/apis/iam_v1/classes.rb +1 -1
  208. data/generated/google/apis/language_v1.rb +2 -2
  209. data/generated/google/apis/language_v1/classes.rb +2 -1
  210. data/generated/google/apis/language_v1/service.rb +1 -1
  211. data/generated/google/apis/language_v1beta1.rb +2 -2
  212. data/generated/google/apis/language_v1beta1/service.rb +1 -1
  213. data/generated/google/apis/language_v1beta2.rb +2 -2
  214. data/generated/google/apis/language_v1beta2/classes.rb +2 -1
  215. data/generated/google/apis/language_v1beta2/service.rb +1 -1
  216. data/generated/google/apis/logging_v2.rb +1 -1
  217. data/generated/google/apis/logging_v2beta1.rb +1 -1
  218. data/generated/google/apis/manufacturers_v1.rb +1 -1
  219. data/generated/google/apis/manufacturers_v1/service.rb +14 -11
  220. data/generated/google/apis/ml_v1.rb +2 -2
  221. data/generated/google/apis/ml_v1/classes.rb +180 -5
  222. data/generated/google/apis/ml_v1/representations.rb +49 -0
  223. data/generated/google/apis/ml_v1/service.rb +1 -1
  224. data/generated/google/apis/monitoring_v3.rb +1 -1
  225. data/generated/google/apis/monitoring_v3/classes.rb +797 -2
  226. data/generated/google/apis/monitoring_v3/representations.rb +279 -0
  227. data/generated/google/apis/monitoring_v3/service.rb +612 -0
  228. data/generated/google/apis/oslogin_v1.rb +2 -2
  229. data/generated/google/apis/oslogin_v1/service.rb +1 -1
  230. data/generated/google/apis/oslogin_v1alpha.rb +2 -2
  231. data/generated/google/apis/oslogin_v1alpha/service.rb +1 -1
  232. data/generated/google/apis/oslogin_v1beta.rb +2 -2
  233. data/generated/google/apis/oslogin_v1beta/service.rb +1 -1
  234. data/generated/google/apis/pagespeedonline_v4.rb +32 -0
  235. data/generated/google/apis/pagespeedonline_v4/classes.rb +795 -0
  236. data/generated/google/apis/pagespeedonline_v4/representations.rb +335 -0
  237. data/generated/google/apis/pagespeedonline_v4/service.rb +129 -0
  238. data/generated/google/apis/people_v1.rb +2 -2
  239. data/generated/google/apis/people_v1/classes.rb +5 -2
  240. data/generated/google/apis/people_v1/service.rb +9 -7
  241. data/generated/google/apis/poly_v1.rb +1 -1
  242. data/generated/google/apis/poly_v1/classes.rb +153 -0
  243. data/generated/google/apis/poly_v1/representations.rb +67 -0
  244. data/generated/google/apis/proximitybeacon_v1beta1.rb +2 -2
  245. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +1 -1
  246. data/generated/google/apis/pubsub_v1.rb +1 -1
  247. data/generated/google/apis/pubsub_v1/classes.rb +3 -0
  248. data/generated/google/apis/pubsub_v1/service.rb +7 -0
  249. data/generated/google/apis/script_v1.rb +2 -2
  250. data/generated/google/apis/script_v1/service.rb +1 -1
  251. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  252. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +21 -126
  253. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -30
  254. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +14 -13
  255. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  256. data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
  257. data/generated/google/apis/servicecontrol_v1/service.rb +9 -6
  258. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  259. data/generated/google/apis/servicemanagement_v1/classes.rb +44 -157
  260. data/generated/google/apis/servicemanagement_v1/representations.rb +2 -48
  261. data/generated/google/apis/servicemanagement_v1/service.rb +9 -0
  262. data/generated/google/apis/{serviceusage_v1.rb → serviceusage_v1beta1.rb} +6 -6
  263. data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/classes.rb +290 -325
  264. data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/representations.rb +105 -163
  265. data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/service.rb +105 -163
  266. data/generated/google/apis/serviceuser_v1.rb +2 -2
  267. data/generated/google/apis/serviceuser_v1/classes.rb +44 -101
  268. data/generated/google/apis/serviceuser_v1/representations.rb +2 -30
  269. data/generated/google/apis/serviceuser_v1/service.rb +1 -1
  270. data/generated/google/apis/sheets_v4.rb +1 -1
  271. data/generated/google/apis/sheets_v4/classes.rb +643 -10
  272. data/generated/google/apis/sheets_v4/representations.rb +53 -0
  273. data/generated/google/apis/slides_v1.rb +1 -1
  274. data/generated/google/apis/slides_v1/classes.rb +92 -9
  275. data/generated/google/apis/slides_v1/representations.rb +21 -0
  276. data/generated/google/apis/slides_v1/service.rb +3 -2
  277. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  278. data/generated/google/apis/sourcerepo_v1/classes.rb +4 -73
  279. data/generated/google/apis/sourcerepo_v1/representations.rb +0 -20
  280. data/generated/google/apis/spanner_v1.rb +1 -1
  281. data/generated/google/apis/spanner_v1/classes.rb +238 -2
  282. data/generated/google/apis/spanner_v1/representations.rb +86 -0
  283. data/generated/google/apis/spanner_v1/service.rb +80 -0
  284. data/generated/google/apis/speech_v1.rb +2 -2
  285. data/generated/google/apis/speech_v1/classes.rb +14 -19
  286. data/generated/google/apis/speech_v1/representations.rb +0 -1
  287. data/generated/google/apis/speech_v1/service.rb +1 -1
  288. data/generated/google/apis/speech_v1beta1.rb +2 -2
  289. data/generated/google/apis/speech_v1beta1/service.rb +1 -1
  290. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  291. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -6
  292. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  293. data/generated/google/apis/storage_v1.rb +1 -1
  294. data/generated/google/apis/storage_v1/service.rb +3 -6
  295. data/generated/google/apis/storagetransfer_v1.rb +2 -2
  296. data/generated/google/apis/storagetransfer_v1/service.rb +1 -1
  297. data/generated/google/apis/testing_v1.rb +1 -1
  298. data/generated/google/apis/testing_v1/classes.rb +107 -2
  299. data/generated/google/apis/testing_v1/representations.rb +38 -0
  300. data/generated/google/apis/texttospeech_v1beta1.rb +34 -0
  301. data/generated/google/apis/texttospeech_v1beta1/classes.rb +278 -0
  302. data/generated/google/apis/texttospeech_v1beta1/representations.rb +133 -0
  303. data/generated/google/apis/texttospeech_v1beta1/service.rb +128 -0
  304. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  305. data/generated/google/apis/toolresults_v1beta3/classes.rb +30 -16
  306. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  307. data/generated/google/apis/tpu_v1alpha1/classes.rb +57 -0
  308. data/generated/google/apis/tpu_v1alpha1/representations.rb +30 -0
  309. data/generated/google/apis/tpu_v1alpha1/service.rb +73 -1
  310. data/generated/google/apis/vault_v1.rb +1 -1
  311. data/generated/google/apis/vault_v1/classes.rb +29 -3
  312. data/generated/google/apis/vault_v1/representations.rb +15 -0
  313. data/generated/google/apis/vault_v1/service.rb +8 -2
  314. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  315. data/generated/google/apis/videointelligence_v1beta1/classes.rb +650 -0
  316. data/generated/google/apis/videointelligence_v1beta1/representations.rb +315 -0
  317. data/generated/google/apis/vision_v1.rb +2 -2
  318. data/generated/google/apis/vision_v1/classes.rb +290 -2
  319. data/generated/google/apis/vision_v1/representations.rb +128 -0
  320. data/generated/google/apis/vision_v1/service.rb +187 -1
  321. data/generated/google/apis/vision_v1p1beta1.rb +2 -2
  322. data/generated/google/apis/vision_v1p1beta1/classes.rb +136 -2
  323. data/generated/google/apis/vision_v1p1beta1/representations.rb +71 -0
  324. data/generated/google/apis/vision_v1p1beta1/service.rb +1 -1
  325. data/generated/google/apis/vision_v1p2beta1.rb +39 -0
  326. data/generated/google/apis/vision_v1p2beta1/classes.rb +2172 -0
  327. data/generated/google/apis/vision_v1p2beta1/representations.rb +895 -0
  328. data/generated/google/apis/vision_v1p2beta1/service.rb +126 -0
  329. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  330. data/generated/google/apis/youtube_v3.rb +1 -1
  331. data/generated/google/apis/youtube_v3/classes.rb +12 -0
  332. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  333. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  334. data/lib/google/apis/core/json_representation.rb +1 -1
  335. data/lib/google/apis/version.rb +3 -3
  336. data/samples/web/Gemfile +3 -0
  337. metadata +38 -26
  338. data/generated/google/apis/clouduseraccounts_alpha.rb +0 -44
  339. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +0 -1188
  340. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +0 -494
  341. data/generated/google/apis/clouduseraccounts_alpha/service.rb +0 -1152
  342. data/generated/google/apis/clouduseraccounts_beta/classes.rb +0 -845
  343. data/generated/google/apis/clouduseraccounts_beta/representations.rb +0 -352
  344. data/generated/google/apis/clouduseraccounts_beta/service.rb +0 -908
  345. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +0 -44
  346. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +0 -1188
  347. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +0 -494
  348. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +0 -1152
  349. data/generated/google/apis/clouduseraccounts_vm_beta.rb +0 -44
  350. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +0 -845
  351. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +0 -352
  352. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +0 -908
  353. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +0 -200
  354. data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +0 -89
  355. data/generated/google/apis/firebaseremoteconfig_v1/service.rb +0 -153
@@ -0,0 +1,35 @@
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/dialogflow_v2/service.rb'
16
+ require 'google/apis/dialogflow_v2/classes.rb'
17
+ require 'google/apis/dialogflow_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Dialogflow API
22
+ #
23
+ # An end-to-end development suite for conversational interfaces (e.g., chatbots,
24
+ # voice-powered apps and devices).
25
+ #
26
+ # @see https://cloud.google.com/dialogflow-enterprise/
27
+ module DialogflowV2
28
+ VERSION = 'V2'
29
+ REVISION = '20180326'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,3994 @@
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 DialogflowV2
24
+
25
+ # Represents a conversational agent.
26
+ class GoogleCloudDialogflowV2Agent
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Optional. The URI of the agent's avatar.
30
+ # Avatars are used throughout the Dialogflow console and in the self-hosted
31
+ # [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
32
+ # Corresponds to the JSON property `avatarUri`
33
+ # @return [String]
34
+ attr_accessor :avatar_uri
35
+
36
+ # Optional. To filter out false positive results and still get variety in
37
+ # matched natural language inputs for your agent, you can tune the machine
38
+ # learning classification threshold. If the returned score value is less than
39
+ # the threshold value, then a fallback intent is be triggered or, if there
40
+ # are no fallback intents defined, no intent will be triggered. The score
41
+ # values range from 0.0 (completely uncertain) to 1.0 (completely certain).
42
+ # If set to 0.0, the default of 0.3 is used.
43
+ # Corresponds to the JSON property `classificationThreshold`
44
+ # @return [Float]
45
+ attr_accessor :classification_threshold
46
+
47
+ # Required. The default language of the agent as a language tag. See
48
+ # [Language Support](https://dialogflow.com/docs/reference/language) for a
49
+ # list of the currently supported language codes.
50
+ # This field cannot be set by the `Update` method.
51
+ # Corresponds to the JSON property `defaultLanguageCode`
52
+ # @return [String]
53
+ attr_accessor :default_language_code
54
+
55
+ # Optional. The description of this agent.
56
+ # The maximum length is 500 characters. If exceeded, the request is rejected.
57
+ # Corresponds to the JSON property `description`
58
+ # @return [String]
59
+ attr_accessor :description
60
+
61
+ # Required. The name of this agent.
62
+ # Corresponds to the JSON property `displayName`
63
+ # @return [String]
64
+ attr_accessor :display_name
65
+
66
+ # Optional. Determines whether this agent should log conversation queries.
67
+ # Corresponds to the JSON property `enableLogging`
68
+ # @return [Boolean]
69
+ attr_accessor :enable_logging
70
+ alias_method :enable_logging?, :enable_logging
71
+
72
+ # Optional. Determines how intents are detected from user queries.
73
+ # Corresponds to the JSON property `matchMode`
74
+ # @return [String]
75
+ attr_accessor :match_mode
76
+
77
+ # Required. The project of this agent.
78
+ # Format: `projects/<Project ID>`.
79
+ # Corresponds to the JSON property `parent`
80
+ # @return [String]
81
+ attr_accessor :parent
82
+
83
+ # Optional. The list of all languages supported by this agent (except for the
84
+ # `default_language_code`).
85
+ # Corresponds to the JSON property `supportedLanguageCodes`
86
+ # @return [Array<String>]
87
+ attr_accessor :supported_language_codes
88
+
89
+ # Required. The time zone of this agent from the
90
+ # [time zone database](https://www.iana.org/time-zones), e.g.,
91
+ # America/New_York, Europe/Paris.
92
+ # Corresponds to the JSON property `timeZone`
93
+ # @return [String]
94
+ attr_accessor :time_zone
95
+
96
+ def initialize(**args)
97
+ update!(**args)
98
+ end
99
+
100
+ # Update properties of this object
101
+ def update!(**args)
102
+ @avatar_uri = args[:avatar_uri] if args.key?(:avatar_uri)
103
+ @classification_threshold = args[:classification_threshold] if args.key?(:classification_threshold)
104
+ @default_language_code = args[:default_language_code] if args.key?(:default_language_code)
105
+ @description = args[:description] if args.key?(:description)
106
+ @display_name = args[:display_name] if args.key?(:display_name)
107
+ @enable_logging = args[:enable_logging] if args.key?(:enable_logging)
108
+ @match_mode = args[:match_mode] if args.key?(:match_mode)
109
+ @parent = args[:parent] if args.key?(:parent)
110
+ @supported_language_codes = args[:supported_language_codes] if args.key?(:supported_language_codes)
111
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
112
+ end
113
+ end
114
+
115
+ # The request message for EntityTypes.BatchCreateEntities.
116
+ class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # Required. The collection of entities to create.
120
+ # Corresponds to the JSON property `entities`
121
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
122
+ attr_accessor :entities
123
+
124
+ # Optional. The language of entity synonyms defined in `entities`. If not
125
+ # specified, the agent's default language is used.
126
+ # [More than a dozen
127
+ # languages](https://dialogflow.com/docs/reference/language) are supported.
128
+ # Note: languages must be enabled in the agent, before they can be used.
129
+ # Corresponds to the JSON property `languageCode`
130
+ # @return [String]
131
+ attr_accessor :language_code
132
+
133
+ def initialize(**args)
134
+ update!(**args)
135
+ end
136
+
137
+ # Update properties of this object
138
+ def update!(**args)
139
+ @entities = args[:entities] if args.key?(:entities)
140
+ @language_code = args[:language_code] if args.key?(:language_code)
141
+ end
142
+ end
143
+
144
+ # The request message for EntityTypes.BatchDeleteEntities.
145
+ class GoogleCloudDialogflowV2BatchDeleteEntitiesRequest
146
+ include Google::Apis::Core::Hashable
147
+
148
+ # Required. The canonical `values` of the entities to delete. Note that
149
+ # these are not fully-qualified names, i.e. they don't start with
150
+ # `projects/<Project ID>`.
151
+ # Corresponds to the JSON property `entityValues`
152
+ # @return [Array<String>]
153
+ attr_accessor :entity_values
154
+
155
+ # Optional. The language of entity synonyms defined in `entities`. If not
156
+ # specified, the agent's default language is used.
157
+ # [More than a dozen
158
+ # languages](https://dialogflow.com/docs/reference/language) are supported.
159
+ # Note: languages must be enabled in the agent, before they can be used.
160
+ # Corresponds to the JSON property `languageCode`
161
+ # @return [String]
162
+ attr_accessor :language_code
163
+
164
+ def initialize(**args)
165
+ update!(**args)
166
+ end
167
+
168
+ # Update properties of this object
169
+ def update!(**args)
170
+ @entity_values = args[:entity_values] if args.key?(:entity_values)
171
+ @language_code = args[:language_code] if args.key?(:language_code)
172
+ end
173
+ end
174
+
175
+ # The request message for EntityTypes.BatchDeleteEntityTypes.
176
+ class GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest
177
+ include Google::Apis::Core::Hashable
178
+
179
+ # Required. The names entity types to delete. All names must point to the
180
+ # same agent as `parent`.
181
+ # Corresponds to the JSON property `entityTypeNames`
182
+ # @return [Array<String>]
183
+ attr_accessor :entity_type_names
184
+
185
+ def initialize(**args)
186
+ update!(**args)
187
+ end
188
+
189
+ # Update properties of this object
190
+ def update!(**args)
191
+ @entity_type_names = args[:entity_type_names] if args.key?(:entity_type_names)
192
+ end
193
+ end
194
+
195
+ # The request message for Intents.BatchDeleteIntents.
196
+ class GoogleCloudDialogflowV2BatchDeleteIntentsRequest
197
+ include Google::Apis::Core::Hashable
198
+
199
+ # Required. The collection of intents to delete. Only intent `name` must be
200
+ # filled in.
201
+ # Corresponds to the JSON property `intents`
202
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent>]
203
+ attr_accessor :intents
204
+
205
+ def initialize(**args)
206
+ update!(**args)
207
+ end
208
+
209
+ # Update properties of this object
210
+ def update!(**args)
211
+ @intents = args[:intents] if args.key?(:intents)
212
+ end
213
+ end
214
+
215
+ # The response message for EntityTypes.BatchCreateEntities.
216
+ class GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
217
+ include Google::Apis::Core::Hashable
218
+
219
+ # Required. The collection of new entities to replace the existing entities.
220
+ # Corresponds to the JSON property `entities`
221
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
222
+ attr_accessor :entities
223
+
224
+ # Optional. The language of entity synonyms defined in `entities`. If not
225
+ # specified, the agent's default language is used.
226
+ # [More than a dozen
227
+ # languages](https://dialogflow.com/docs/reference/language) are supported.
228
+ # Note: languages must be enabled in the agent, before they can be used.
229
+ # Corresponds to the JSON property `languageCode`
230
+ # @return [String]
231
+ attr_accessor :language_code
232
+
233
+ # Optional. The mask to control which fields get updated.
234
+ # Corresponds to the JSON property `updateMask`
235
+ # @return [String]
236
+ attr_accessor :update_mask
237
+
238
+ def initialize(**args)
239
+ update!(**args)
240
+ end
241
+
242
+ # Update properties of this object
243
+ def update!(**args)
244
+ @entities = args[:entities] if args.key?(:entities)
245
+ @language_code = args[:language_code] if args.key?(:language_code)
246
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
247
+ end
248
+ end
249
+
250
+ # The request message for EntityTypes.BatchUpdateEntityTypes.
251
+ class GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest
252
+ include Google::Apis::Core::Hashable
253
+
254
+ # This message is a wrapper around a collection of entity types.
255
+ # Corresponds to the JSON property `entityTypeBatchInline`
256
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeBatch]
257
+ attr_accessor :entity_type_batch_inline
258
+
259
+ # The URI to a Google Cloud Storage file containing entity types to update
260
+ # or create. The file format can either be a serialized proto (of
261
+ # EntityBatch type) or a JSON object. Note: The URI must start with
262
+ # "gs://".
263
+ # Corresponds to the JSON property `entityTypeBatchUri`
264
+ # @return [String]
265
+ attr_accessor :entity_type_batch_uri
266
+
267
+ # Optional. The language of entity synonyms defined in `entity_types`. If not
268
+ # specified, the agent's default language is used.
269
+ # [More than a dozen
270
+ # languages](https://dialogflow.com/docs/reference/language) are supported.
271
+ # Note: languages must be enabled in the agent, before they can be used.
272
+ # Corresponds to the JSON property `languageCode`
273
+ # @return [String]
274
+ attr_accessor :language_code
275
+
276
+ # Optional. The mask to control which fields get updated.
277
+ # Corresponds to the JSON property `updateMask`
278
+ # @return [String]
279
+ attr_accessor :update_mask
280
+
281
+ def initialize(**args)
282
+ update!(**args)
283
+ end
284
+
285
+ # Update properties of this object
286
+ def update!(**args)
287
+ @entity_type_batch_inline = args[:entity_type_batch_inline] if args.key?(:entity_type_batch_inline)
288
+ @entity_type_batch_uri = args[:entity_type_batch_uri] if args.key?(:entity_type_batch_uri)
289
+ @language_code = args[:language_code] if args.key?(:language_code)
290
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
291
+ end
292
+ end
293
+
294
+ # The response message for EntityTypes.BatchUpdateEntityTypes.
295
+ class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
296
+ include Google::Apis::Core::Hashable
297
+
298
+ # The collection of updated or created entity types.
299
+ # Corresponds to the JSON property `entityTypes`
300
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType>]
301
+ attr_accessor :entity_types
302
+
303
+ def initialize(**args)
304
+ update!(**args)
305
+ end
306
+
307
+ # Update properties of this object
308
+ def update!(**args)
309
+ @entity_types = args[:entity_types] if args.key?(:entity_types)
310
+ end
311
+ end
312
+
313
+ # The request message for Intents.BatchUpdateIntents.
314
+ class GoogleCloudDialogflowV2BatchUpdateIntentsRequest
315
+ include Google::Apis::Core::Hashable
316
+
317
+ # This message is a wrapper around a collection of intents.
318
+ # Corresponds to the JSON property `intentBatchInline`
319
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentBatch]
320
+ attr_accessor :intent_batch_inline
321
+
322
+ # The URI to a Google Cloud Storage file containing intents to update or
323
+ # create. The file format can either be a serialized proto (of IntentBatch
324
+ # type) or JSON object. Note: The URI must start with "gs://".
325
+ # Corresponds to the JSON property `intentBatchUri`
326
+ # @return [String]
327
+ attr_accessor :intent_batch_uri
328
+
329
+ # Optional. The resource view to apply to the returned intent.
330
+ # Corresponds to the JSON property `intentView`
331
+ # @return [String]
332
+ attr_accessor :intent_view
333
+
334
+ # Optional. The language of training phrases, parameters and rich messages
335
+ # defined in `intents`. If not specified, the agent's default language is
336
+ # used. [More than a dozen
337
+ # languages](https://dialogflow.com/docs/reference/language) are supported.
338
+ # Note: languages must be enabled in the agent, before they can be used.
339
+ # Corresponds to the JSON property `languageCode`
340
+ # @return [String]
341
+ attr_accessor :language_code
342
+
343
+ # Optional. The mask to control which fields get updated.
344
+ # Corresponds to the JSON property `updateMask`
345
+ # @return [String]
346
+ attr_accessor :update_mask
347
+
348
+ def initialize(**args)
349
+ update!(**args)
350
+ end
351
+
352
+ # Update properties of this object
353
+ def update!(**args)
354
+ @intent_batch_inline = args[:intent_batch_inline] if args.key?(:intent_batch_inline)
355
+ @intent_batch_uri = args[:intent_batch_uri] if args.key?(:intent_batch_uri)
356
+ @intent_view = args[:intent_view] if args.key?(:intent_view)
357
+ @language_code = args[:language_code] if args.key?(:language_code)
358
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
359
+ end
360
+ end
361
+
362
+ # The response message for Intents.BatchUpdateIntents.
363
+ class GoogleCloudDialogflowV2BatchUpdateIntentsResponse
364
+ include Google::Apis::Core::Hashable
365
+
366
+ # The collection of updated or created intents.
367
+ # Corresponds to the JSON property `intents`
368
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent>]
369
+ attr_accessor :intents
370
+
371
+ def initialize(**args)
372
+ update!(**args)
373
+ end
374
+
375
+ # Update properties of this object
376
+ def update!(**args)
377
+ @intents = args[:intents] if args.key?(:intents)
378
+ end
379
+ end
380
+
381
+ # Represents a context.
382
+ class GoogleCloudDialogflowV2Context
383
+ include Google::Apis::Core::Hashable
384
+
385
+ # Optional. The number of conversational query requests after which the
386
+ # context expires. If set to `0` (the default) the context expires
387
+ # immediately. Contexts expire automatically after 10 minutes even if there
388
+ # are no matching queries.
389
+ # Corresponds to the JSON property `lifespanCount`
390
+ # @return [Fixnum]
391
+ attr_accessor :lifespan_count
392
+
393
+ # Required. The unique identifier of the context. Format:
394
+ # `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
395
+ # Corresponds to the JSON property `name`
396
+ # @return [String]
397
+ attr_accessor :name
398
+
399
+ # Optional. The collection of parameters associated with this context.
400
+ # Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
401
+ # syntax.
402
+ # Corresponds to the JSON property `parameters`
403
+ # @return [Hash<String,Object>]
404
+ attr_accessor :parameters
405
+
406
+ def initialize(**args)
407
+ update!(**args)
408
+ end
409
+
410
+ # Update properties of this object
411
+ def update!(**args)
412
+ @lifespan_count = args[:lifespan_count] if args.key?(:lifespan_count)
413
+ @name = args[:name] if args.key?(:name)
414
+ @parameters = args[:parameters] if args.key?(:parameters)
415
+ end
416
+ end
417
+
418
+ # The request to detect user's intent.
419
+ class GoogleCloudDialogflowV2DetectIntentRequest
420
+ include Google::Apis::Core::Hashable
421
+
422
+ # Optional. The natural language speech audio to be processed. This field
423
+ # should be populated iff `query_input` is set to an input audio config.
424
+ # A single request can contain up to 1 minute of speech audio data.
425
+ # Corresponds to the JSON property `inputAudio`
426
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
427
+ # @return [String]
428
+ attr_accessor :input_audio
429
+
430
+ # Represents the query input. It can contain either:
431
+ # 1. An audio config which
432
+ # instructs the speech recognizer how to process the speech audio.
433
+ # 2. A conversational query in the form of text,.
434
+ # 3. An event that specifies which intent to trigger.
435
+ # Corresponds to the JSON property `queryInput`
436
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput]
437
+ attr_accessor :query_input
438
+
439
+ # Represents the parameters of the conversational query.
440
+ # Corresponds to the JSON property `queryParams`
441
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters]
442
+ attr_accessor :query_params
443
+
444
+ def initialize(**args)
445
+ update!(**args)
446
+ end
447
+
448
+ # Update properties of this object
449
+ def update!(**args)
450
+ @input_audio = args[:input_audio] if args.key?(:input_audio)
451
+ @query_input = args[:query_input] if args.key?(:query_input)
452
+ @query_params = args[:query_params] if args.key?(:query_params)
453
+ end
454
+ end
455
+
456
+ # The message returned from the DetectIntent method.
457
+ class GoogleCloudDialogflowV2DetectIntentResponse
458
+ include Google::Apis::Core::Hashable
459
+
460
+ # Represents the result of conversational query or event processing.
461
+ # Corresponds to the JSON property `queryResult`
462
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult]
463
+ attr_accessor :query_result
464
+
465
+ # The unique identifier of the response. It can be used to
466
+ # locate a response in the training example set or for reporting issues.
467
+ # Corresponds to the JSON property `responseId`
468
+ # @return [String]
469
+ attr_accessor :response_id
470
+
471
+ # The `Status` type defines a logical error model that is suitable for different
472
+ # programming environments, including REST APIs and RPC APIs. It is used by
473
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
474
+ # - Simple to use and understand for most users
475
+ # - Flexible enough to meet unexpected needs
476
+ # # Overview
477
+ # The `Status` message contains three pieces of data: error code, error message,
478
+ # and error details. The error code should be an enum value of
479
+ # google.rpc.Code, but it may accept additional error codes if needed. The
480
+ # error message should be a developer-facing English message that helps
481
+ # developers *understand* and *resolve* the error. If a localized user-facing
482
+ # error message is needed, put the localized message in the error details or
483
+ # localize it in the client. The optional error details may contain arbitrary
484
+ # information about the error. There is a predefined set of error detail types
485
+ # in the package `google.rpc` that can be used for common error conditions.
486
+ # # Language mapping
487
+ # The `Status` message is the logical representation of the error model, but it
488
+ # is not necessarily the actual wire format. When the `Status` message is
489
+ # exposed in different client libraries and different wire protocols, it can be
490
+ # mapped differently. For example, it will likely be mapped to some exceptions
491
+ # in Java, but more likely mapped to some error codes in C.
492
+ # # Other uses
493
+ # The error model and the `Status` message can be used in a variety of
494
+ # environments, either with or without APIs, to provide a
495
+ # consistent developer experience across different environments.
496
+ # Example uses of this error model include:
497
+ # - Partial errors. If a service needs to return partial errors to the client,
498
+ # it may embed the `Status` in the normal response to indicate the partial
499
+ # errors.
500
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
501
+ # have a `Status` message for error reporting.
502
+ # - Batch operations. If a client uses batch request and batch response, the
503
+ # `Status` message should be used directly inside batch response, one for
504
+ # each error sub-response.
505
+ # - Asynchronous operations. If an API call embeds asynchronous operation
506
+ # results in its response, the status of those operations should be
507
+ # represented directly using the `Status` message.
508
+ # - Logging. If some API errors are stored in logs, the message `Status` could
509
+ # be used directly after any stripping needed for security/privacy reasons.
510
+ # Corresponds to the JSON property `webhookStatus`
511
+ # @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
512
+ attr_accessor :webhook_status
513
+
514
+ def initialize(**args)
515
+ update!(**args)
516
+ end
517
+
518
+ # Update properties of this object
519
+ def update!(**args)
520
+ @query_result = args[:query_result] if args.key?(:query_result)
521
+ @response_id = args[:response_id] if args.key?(:response_id)
522
+ @webhook_status = args[:webhook_status] if args.key?(:webhook_status)
523
+ end
524
+ end
525
+
526
+ # Represents an entity type.
527
+ # Entity types serve as a tool for extracting parameter values from natural
528
+ # language queries.
529
+ class GoogleCloudDialogflowV2EntityType
530
+ include Google::Apis::Core::Hashable
531
+
532
+ # Optional. Indicates whether the entity type can be automatically
533
+ # expanded.
534
+ # Corresponds to the JSON property `autoExpansionMode`
535
+ # @return [String]
536
+ attr_accessor :auto_expansion_mode
537
+
538
+ # Required. The name of the entity.
539
+ # Corresponds to the JSON property `displayName`
540
+ # @return [String]
541
+ attr_accessor :display_name
542
+
543
+ # Optional. The collection of entities associated with the entity type.
544
+ # Corresponds to the JSON property `entities`
545
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
546
+ attr_accessor :entities
547
+
548
+ # Required. Indicates the kind of entity type.
549
+ # Corresponds to the JSON property `kind`
550
+ # @return [String]
551
+ attr_accessor :kind
552
+
553
+ # Required for all methods except `create` (`create` populates the name
554
+ # automatically.
555
+ # The unique identifier of the entity type. Format:
556
+ # `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
557
+ # Corresponds to the JSON property `name`
558
+ # @return [String]
559
+ attr_accessor :name
560
+
561
+ def initialize(**args)
562
+ update!(**args)
563
+ end
564
+
565
+ # Update properties of this object
566
+ def update!(**args)
567
+ @auto_expansion_mode = args[:auto_expansion_mode] if args.key?(:auto_expansion_mode)
568
+ @display_name = args[:display_name] if args.key?(:display_name)
569
+ @entities = args[:entities] if args.key?(:entities)
570
+ @kind = args[:kind] if args.key?(:kind)
571
+ @name = args[:name] if args.key?(:name)
572
+ end
573
+ end
574
+
575
+ # This message is a wrapper around a collection of entity types.
576
+ class GoogleCloudDialogflowV2EntityTypeBatch
577
+ include Google::Apis::Core::Hashable
578
+
579
+ # A collection of entity types.
580
+ # Corresponds to the JSON property `entityTypes`
581
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType>]
582
+ attr_accessor :entity_types
583
+
584
+ def initialize(**args)
585
+ update!(**args)
586
+ end
587
+
588
+ # Update properties of this object
589
+ def update!(**args)
590
+ @entity_types = args[:entity_types] if args.key?(:entity_types)
591
+ end
592
+ end
593
+
594
+ # Optional. Represents an entity.
595
+ class GoogleCloudDialogflowV2EntityTypeEntity
596
+ include Google::Apis::Core::Hashable
597
+
598
+ # Required. A collection of synonyms. For `KIND_LIST` entity types this
599
+ # must contain exactly one synonym equal to `value`.
600
+ # Corresponds to the JSON property `synonyms`
601
+ # @return [Array<String>]
602
+ attr_accessor :synonyms
603
+
604
+ # Required.
605
+ # For `KIND_MAP` entity types:
606
+ # A canonical name to be used in place of synonyms.
607
+ # For `KIND_LIST` entity types:
608
+ # A string that can contain references to other entity types (with or
609
+ # without aliases).
610
+ # Corresponds to the JSON property `value`
611
+ # @return [String]
612
+ attr_accessor :value
613
+
614
+ def initialize(**args)
615
+ update!(**args)
616
+ end
617
+
618
+ # Update properties of this object
619
+ def update!(**args)
620
+ @synonyms = args[:synonyms] if args.key?(:synonyms)
621
+ @value = args[:value] if args.key?(:value)
622
+ end
623
+ end
624
+
625
+ # Events allow for matching intents by event name instead of the natural
626
+ # language input. For instance, input `<event: ` name: “welcome_event”,
627
+ # parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
628
+ # The parameter `name` may be used by the agent in the response:
629
+ # `“Hello #welcome_event.name! What can I do for you today?”`.
630
+ class GoogleCloudDialogflowV2EventInput
631
+ include Google::Apis::Core::Hashable
632
+
633
+ # Required. The language of this query. See [Language
634
+ # Support](https://dialogflow.com/docs/languages) for a list of the
635
+ # currently supported language codes. Note that queries in the same session
636
+ # do not necessarily need to specify the same language.
637
+ # Corresponds to the JSON property `languageCode`
638
+ # @return [String]
639
+ attr_accessor :language_code
640
+
641
+ # Required. The unique identifier of the event.
642
+ # Corresponds to the JSON property `name`
643
+ # @return [String]
644
+ attr_accessor :name
645
+
646
+ # Optional. The collection of parameters associated with the event.
647
+ # Corresponds to the JSON property `parameters`
648
+ # @return [Hash<String,Object>]
649
+ attr_accessor :parameters
650
+
651
+ def initialize(**args)
652
+ update!(**args)
653
+ end
654
+
655
+ # Update properties of this object
656
+ def update!(**args)
657
+ @language_code = args[:language_code] if args.key?(:language_code)
658
+ @name = args[:name] if args.key?(:name)
659
+ @parameters = args[:parameters] if args.key?(:parameters)
660
+ end
661
+ end
662
+
663
+ # The request message for Agents.ExportAgent.
664
+ class GoogleCloudDialogflowV2ExportAgentRequest
665
+ include Google::Apis::Core::Hashable
666
+
667
+ # Optional. The Google Cloud Storage URI to export the agent to.
668
+ # Note: The URI must start with
669
+ # "gs://". If left unspecified, the serialized agent is returned inline.
670
+ # Corresponds to the JSON property `agentUri`
671
+ # @return [String]
672
+ attr_accessor :agent_uri
673
+
674
+ def initialize(**args)
675
+ update!(**args)
676
+ end
677
+
678
+ # Update properties of this object
679
+ def update!(**args)
680
+ @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
681
+ end
682
+ end
683
+
684
+ # The response message for Agents.ExportAgent.
685
+ class GoogleCloudDialogflowV2ExportAgentResponse
686
+ include Google::Apis::Core::Hashable
687
+
688
+ # The exported agent.
689
+ # Example for how to export an agent to a zip file via a command line:
690
+ # curl \
691
+ # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\
692
+ # -X POST \
693
+ # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
694
+ # -H 'Accept: application/json' \
695
+ # -H 'Content-Type: application/json' \
696
+ # --compressed \
697
+ # --data-binary '``' \
698
+ # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
699
+ # | base64 --decode > <agent zip file>
700
+ # Corresponds to the JSON property `agentContent`
701
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
702
+ # @return [String]
703
+ attr_accessor :agent_content
704
+
705
+ # The URI to a file containing the exported agent. This field is populated
706
+ # only if `agent_uri` is specified in `ExportAgentRequest`.
707
+ # Corresponds to the JSON property `agentUri`
708
+ # @return [String]
709
+ attr_accessor :agent_uri
710
+
711
+ def initialize(**args)
712
+ update!(**args)
713
+ end
714
+
715
+ # Update properties of this object
716
+ def update!(**args)
717
+ @agent_content = args[:agent_content] if args.key?(:agent_content)
718
+ @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
719
+ end
720
+ end
721
+
722
+ # The request message for Agents.ImportAgent.
723
+ class GoogleCloudDialogflowV2ImportAgentRequest
724
+ include Google::Apis::Core::Hashable
725
+
726
+ # The agent to import.
727
+ # Example for how to import an agent via the command line:
728
+ # curl \
729
+ # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
730
+ # -X POST \
731
+ # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
732
+ # -H 'Accept: application/json' \
733
+ # -H 'Content-Type: application/json' \
734
+ # --compressed \
735
+ # --data-binary "`
736
+ # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
737
+ # `"
738
+ # Corresponds to the JSON property `agentContent`
739
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
740
+ # @return [String]
741
+ attr_accessor :agent_content
742
+
743
+ # The URI to a Google Cloud Storage file containing the agent to import.
744
+ # Note: The URI must start with "gs://".
745
+ # Corresponds to the JSON property `agentUri`
746
+ # @return [String]
747
+ attr_accessor :agent_uri
748
+
749
+ def initialize(**args)
750
+ update!(**args)
751
+ end
752
+
753
+ # Update properties of this object
754
+ def update!(**args)
755
+ @agent_content = args[:agent_content] if args.key?(:agent_content)
756
+ @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
757
+ end
758
+ end
759
+
760
+ # Instructs the speech recognizer how to process the audio content.
761
+ class GoogleCloudDialogflowV2InputAudioConfig
762
+ include Google::Apis::Core::Hashable
763
+
764
+ # Required. Audio encoding of the audio content to process.
765
+ # Corresponds to the JSON property `audioEncoding`
766
+ # @return [String]
767
+ attr_accessor :audio_encoding
768
+
769
+ # Required. The language of the supplied audio. Dialogflow does not do
770
+ # translations. See [Language
771
+ # Support](https://dialogflow.com/docs/languages) for a list of the
772
+ # currently supported language codes. Note that queries in the same session
773
+ # do not necessarily need to specify the same language.
774
+ # Corresponds to the JSON property `languageCode`
775
+ # @return [String]
776
+ attr_accessor :language_code
777
+
778
+ # Optional. The collection of phrase hints which are used to boost accuracy
779
+ # of speech recognition.
780
+ # Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints)
781
+ # for more details.
782
+ # Corresponds to the JSON property `phraseHints`
783
+ # @return [Array<String>]
784
+ attr_accessor :phrase_hints
785
+
786
+ # Required. Sample rate (in Hertz) of the audio content sent in the query.
787
+ # Refer to [Cloud Speech API documentation](/speech/docs/basics) for more
788
+ # details.
789
+ # Corresponds to the JSON property `sampleRateHertz`
790
+ # @return [Fixnum]
791
+ attr_accessor :sample_rate_hertz
792
+
793
+ def initialize(**args)
794
+ update!(**args)
795
+ end
796
+
797
+ # Update properties of this object
798
+ def update!(**args)
799
+ @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
800
+ @language_code = args[:language_code] if args.key?(:language_code)
801
+ @phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints)
802
+ @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
803
+ end
804
+ end
805
+
806
+ # Represents an intent.
807
+ # Intents convert a number of user expressions or patterns into an action. An
808
+ # action is an extraction of a user command or sentence semantics.
809
+ class GoogleCloudDialogflowV2Intent
810
+ include Google::Apis::Core::Hashable
811
+
812
+ # Optional. The name of the action associated with the intent.
813
+ # Corresponds to the JSON property `action`
814
+ # @return [String]
815
+ attr_accessor :action
816
+
817
+ # Optional. The list of platforms for which the first response will be
818
+ # taken from among the messages assigned to the DEFAULT_PLATFORM.
819
+ # Corresponds to the JSON property `defaultResponsePlatforms`
820
+ # @return [Array<String>]
821
+ attr_accessor :default_response_platforms
822
+
823
+ # Required. The name of this intent.
824
+ # Corresponds to the JSON property `displayName`
825
+ # @return [String]
826
+ attr_accessor :display_name
827
+
828
+ # Optional. The collection of event names that trigger the intent.
829
+ # If the collection of input contexts is not empty, all of the contexts must
830
+ # be present in the active user session for an event to trigger this intent.
831
+ # Corresponds to the JSON property `events`
832
+ # @return [Array<String>]
833
+ attr_accessor :events
834
+
835
+ # Optional. Collection of information about all followup intents that have
836
+ # name of this intent as a root_name.
837
+ # Corresponds to the JSON property `followupIntentInfo`
838
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentFollowupIntentInfo>]
839
+ attr_accessor :followup_intent_info
840
+
841
+ # Optional. The list of context names required for this intent to be
842
+ # triggered.
843
+ # Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
844
+ # Corresponds to the JSON property `inputContextNames`
845
+ # @return [Array<String>]
846
+ attr_accessor :input_context_names
847
+
848
+ # Optional. Indicates whether this is a fallback intent.
849
+ # Corresponds to the JSON property `isFallback`
850
+ # @return [Boolean]
851
+ attr_accessor :is_fallback
852
+ alias_method :is_fallback?, :is_fallback
853
+
854
+ # Optional. The collection of rich messages corresponding to the
855
+ # `Response` field in the Dialogflow console.
856
+ # Corresponds to the JSON property `messages`
857
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage>]
858
+ attr_accessor :messages
859
+
860
+ # Optional. Indicates whether Machine Learning is disabled for the intent.
861
+ # Note: If `ml_diabled` setting is set to true, then this intent is not
862
+ # taken into account during inference in `ML ONLY` match mode. Also,
863
+ # auto-markup in the UI is turned off.
864
+ # Corresponds to the JSON property `mlDisabled`
865
+ # @return [Boolean]
866
+ attr_accessor :ml_disabled
867
+ alias_method :ml_disabled?, :ml_disabled
868
+
869
+ # Required for all methods except `create` (`create` populates the name
870
+ # automatically.
871
+ # The unique identifier of this intent.
872
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
873
+ # Corresponds to the JSON property `name`
874
+ # @return [String]
875
+ attr_accessor :name
876
+
877
+ # Optional. The collection of contexts that are activated when the intent
878
+ # is matched. Context messages in this collection should not set the
879
+ # parameters field. Setting the `lifespan_count` to 0 will reset the context
880
+ # when the intent is matched.
881
+ # Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
882
+ # Corresponds to the JSON property `outputContexts`
883
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>]
884
+ attr_accessor :output_contexts
885
+
886
+ # Optional. The collection of parameters associated with the intent.
887
+ # Corresponds to the JSON property `parameters`
888
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentParameter>]
889
+ attr_accessor :parameters
890
+
891
+ # The unique identifier of the parent intent in the chain of followup
892
+ # intents.
893
+ # It identifies the parent followup intent.
894
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
895
+ # Corresponds to the JSON property `parentFollowupIntentName`
896
+ # @return [String]
897
+ attr_accessor :parent_followup_intent_name
898
+
899
+ # Optional. The priority of this intent. Higher numbers represent higher
900
+ # priorities. Zero or negative numbers mean that the intent is disabled.
901
+ # Corresponds to the JSON property `priority`
902
+ # @return [Fixnum]
903
+ attr_accessor :priority
904
+
905
+ # Optional. Indicates whether to delete all contexts in the current
906
+ # session when this intent is matched.
907
+ # Corresponds to the JSON property `resetContexts`
908
+ # @return [Boolean]
909
+ attr_accessor :reset_contexts
910
+ alias_method :reset_contexts?, :reset_contexts
911
+
912
+ # The unique identifier of the root intent in the chain of followup intents.
913
+ # It identifies the correct followup intents chain for this intent.
914
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
915
+ # Corresponds to the JSON property `rootFollowupIntentName`
916
+ # @return [String]
917
+ attr_accessor :root_followup_intent_name
918
+
919
+ # Optional. The collection of examples/templates that the agent is
920
+ # trained on.
921
+ # Corresponds to the JSON property `trainingPhrases`
922
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrase>]
923
+ attr_accessor :training_phrases
924
+
925
+ # Required. Indicates whether webhooks are enabled for the intent.
926
+ # Corresponds to the JSON property `webhookState`
927
+ # @return [String]
928
+ attr_accessor :webhook_state
929
+
930
+ def initialize(**args)
931
+ update!(**args)
932
+ end
933
+
934
+ # Update properties of this object
935
+ def update!(**args)
936
+ @action = args[:action] if args.key?(:action)
937
+ @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms)
938
+ @display_name = args[:display_name] if args.key?(:display_name)
939
+ @events = args[:events] if args.key?(:events)
940
+ @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
941
+ @input_context_names = args[:input_context_names] if args.key?(:input_context_names)
942
+ @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
943
+ @messages = args[:messages] if args.key?(:messages)
944
+ @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
945
+ @name = args[:name] if args.key?(:name)
946
+ @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
947
+ @parameters = args[:parameters] if args.key?(:parameters)
948
+ @parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name)
949
+ @priority = args[:priority] if args.key?(:priority)
950
+ @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts)
951
+ @root_followup_intent_name = args[:root_followup_intent_name] if args.key?(:root_followup_intent_name)
952
+ @training_phrases = args[:training_phrases] if args.key?(:training_phrases)
953
+ @webhook_state = args[:webhook_state] if args.key?(:webhook_state)
954
+ end
955
+ end
956
+
957
+ # This message is a wrapper around a collection of intents.
958
+ class GoogleCloudDialogflowV2IntentBatch
959
+ include Google::Apis::Core::Hashable
960
+
961
+ # A collection of intents.
962
+ # Corresponds to the JSON property `intents`
963
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent>]
964
+ attr_accessor :intents
965
+
966
+ def initialize(**args)
967
+ update!(**args)
968
+ end
969
+
970
+ # Update properties of this object
971
+ def update!(**args)
972
+ @intents = args[:intents] if args.key?(:intents)
973
+ end
974
+ end
975
+
976
+ # Represents a single followup intent in the chain.
977
+ class GoogleCloudDialogflowV2IntentFollowupIntentInfo
978
+ include Google::Apis::Core::Hashable
979
+
980
+ # The unique identifier of the followup intent.
981
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
982
+ # Corresponds to the JSON property `followupIntentName`
983
+ # @return [String]
984
+ attr_accessor :followup_intent_name
985
+
986
+ # The unique identifier of the followup intent parent.
987
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
988
+ # Corresponds to the JSON property `parentFollowupIntentName`
989
+ # @return [String]
990
+ attr_accessor :parent_followup_intent_name
991
+
992
+ def initialize(**args)
993
+ update!(**args)
994
+ end
995
+
996
+ # Update properties of this object
997
+ def update!(**args)
998
+ @followup_intent_name = args[:followup_intent_name] if args.key?(:followup_intent_name)
999
+ @parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name)
1000
+ end
1001
+ end
1002
+
1003
+ # Corresponds to the `Response` field in the Dialogflow console.
1004
+ class GoogleCloudDialogflowV2IntentMessage
1005
+ include Google::Apis::Core::Hashable
1006
+
1007
+ # The basic card message. Useful for displaying information.
1008
+ # Corresponds to the JSON property `basicCard`
1009
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCard]
1010
+ attr_accessor :basic_card
1011
+
1012
+ # The card response message.
1013
+ # Corresponds to the JSON property `card`
1014
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCard]
1015
+ attr_accessor :card
1016
+
1017
+ # The card for presenting a carousel of options to select from.
1018
+ # Corresponds to the JSON property `carouselSelect`
1019
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCarouselSelect]
1020
+ attr_accessor :carousel_select
1021
+
1022
+ # The image response message.
1023
+ # Corresponds to the JSON property `image`
1024
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage]
1025
+ attr_accessor :image
1026
+
1027
+ # The suggestion chip message that allows the user to jump out to the app
1028
+ # or website associated with this agent.
1029
+ # Corresponds to the JSON property `linkOutSuggestion`
1030
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion]
1031
+ attr_accessor :link_out_suggestion
1032
+
1033
+ # The card for presenting a list of options to select from.
1034
+ # Corresponds to the JSON property `listSelect`
1035
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageListSelect]
1036
+ attr_accessor :list_select
1037
+
1038
+ # The response containing a custom payload.
1039
+ # Corresponds to the JSON property `payload`
1040
+ # @return [Hash<String,Object>]
1041
+ attr_accessor :payload
1042
+
1043
+ # Optional. The platform that this message is intended for.
1044
+ # Corresponds to the JSON property `platform`
1045
+ # @return [String]
1046
+ attr_accessor :platform
1047
+
1048
+ # The quick replies response message.
1049
+ # Corresponds to the JSON property `quickReplies`
1050
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageQuickReplies]
1051
+ attr_accessor :quick_replies
1052
+
1053
+ # The collection of simple response candidates.
1054
+ # This message in `QueryResult.fulfillment_messages` and
1055
+ # `WebhookResponse.fulfillment_messages` should contain only one
1056
+ # `SimpleResponse`.
1057
+ # Corresponds to the JSON property `simpleResponses`
1058
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSimpleResponses]
1059
+ attr_accessor :simple_responses
1060
+
1061
+ # The collection of suggestions.
1062
+ # Corresponds to the JSON property `suggestions`
1063
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSuggestions]
1064
+ attr_accessor :suggestions
1065
+
1066
+ # The text response message.
1067
+ # Corresponds to the JSON property `text`
1068
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageText]
1069
+ attr_accessor :text
1070
+
1071
+ def initialize(**args)
1072
+ update!(**args)
1073
+ end
1074
+
1075
+ # Update properties of this object
1076
+ def update!(**args)
1077
+ @basic_card = args[:basic_card] if args.key?(:basic_card)
1078
+ @card = args[:card] if args.key?(:card)
1079
+ @carousel_select = args[:carousel_select] if args.key?(:carousel_select)
1080
+ @image = args[:image] if args.key?(:image)
1081
+ @link_out_suggestion = args[:link_out_suggestion] if args.key?(:link_out_suggestion)
1082
+ @list_select = args[:list_select] if args.key?(:list_select)
1083
+ @payload = args[:payload] if args.key?(:payload)
1084
+ @platform = args[:platform] if args.key?(:platform)
1085
+ @quick_replies = args[:quick_replies] if args.key?(:quick_replies)
1086
+ @simple_responses = args[:simple_responses] if args.key?(:simple_responses)
1087
+ @suggestions = args[:suggestions] if args.key?(:suggestions)
1088
+ @text = args[:text] if args.key?(:text)
1089
+ end
1090
+ end
1091
+
1092
+ # The basic card message. Useful for displaying information.
1093
+ class GoogleCloudDialogflowV2IntentMessageBasicCard
1094
+ include Google::Apis::Core::Hashable
1095
+
1096
+ # Optional. The collection of card buttons.
1097
+ # Corresponds to the JSON property `buttons`
1098
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCardButton>]
1099
+ attr_accessor :buttons
1100
+
1101
+ # Required, unless image is present. The body text of the card.
1102
+ # Corresponds to the JSON property `formattedText`
1103
+ # @return [String]
1104
+ attr_accessor :formatted_text
1105
+
1106
+ # The image response message.
1107
+ # Corresponds to the JSON property `image`
1108
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage]
1109
+ attr_accessor :image
1110
+
1111
+ # Optional. The subtitle of the card.
1112
+ # Corresponds to the JSON property `subtitle`
1113
+ # @return [String]
1114
+ attr_accessor :subtitle
1115
+
1116
+ # Optional. The title of the card.
1117
+ # Corresponds to the JSON property `title`
1118
+ # @return [String]
1119
+ attr_accessor :title
1120
+
1121
+ def initialize(**args)
1122
+ update!(**args)
1123
+ end
1124
+
1125
+ # Update properties of this object
1126
+ def update!(**args)
1127
+ @buttons = args[:buttons] if args.key?(:buttons)
1128
+ @formatted_text = args[:formatted_text] if args.key?(:formatted_text)
1129
+ @image = args[:image] if args.key?(:image)
1130
+ @subtitle = args[:subtitle] if args.key?(:subtitle)
1131
+ @title = args[:title] if args.key?(:title)
1132
+ end
1133
+ end
1134
+
1135
+ # The button object that appears at the bottom of a card.
1136
+ class GoogleCloudDialogflowV2IntentMessageBasicCardButton
1137
+ include Google::Apis::Core::Hashable
1138
+
1139
+ # Opens the given URI.
1140
+ # Corresponds to the JSON property `openUriAction`
1141
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction]
1142
+ attr_accessor :open_uri_action
1143
+
1144
+ # Required. The title of the button.
1145
+ # Corresponds to the JSON property `title`
1146
+ # @return [String]
1147
+ attr_accessor :title
1148
+
1149
+ def initialize(**args)
1150
+ update!(**args)
1151
+ end
1152
+
1153
+ # Update properties of this object
1154
+ def update!(**args)
1155
+ @open_uri_action = args[:open_uri_action] if args.key?(:open_uri_action)
1156
+ @title = args[:title] if args.key?(:title)
1157
+ end
1158
+ end
1159
+
1160
+ # Opens the given URI.
1161
+ class GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
1162
+ include Google::Apis::Core::Hashable
1163
+
1164
+ # Required. The HTTP or HTTPS scheme URI.
1165
+ # Corresponds to the JSON property `uri`
1166
+ # @return [String]
1167
+ attr_accessor :uri
1168
+
1169
+ def initialize(**args)
1170
+ update!(**args)
1171
+ end
1172
+
1173
+ # Update properties of this object
1174
+ def update!(**args)
1175
+ @uri = args[:uri] if args.key?(:uri)
1176
+ end
1177
+ end
1178
+
1179
+ # The card response message.
1180
+ class GoogleCloudDialogflowV2IntentMessageCard
1181
+ include Google::Apis::Core::Hashable
1182
+
1183
+ # Optional. The collection of card buttons.
1184
+ # Corresponds to the JSON property `buttons`
1185
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCardButton>]
1186
+ attr_accessor :buttons
1187
+
1188
+ # Optional. The public URI to an image file for the card.
1189
+ # Corresponds to the JSON property `imageUri`
1190
+ # @return [String]
1191
+ attr_accessor :image_uri
1192
+
1193
+ # Optional. The subtitle of the card.
1194
+ # Corresponds to the JSON property `subtitle`
1195
+ # @return [String]
1196
+ attr_accessor :subtitle
1197
+
1198
+ # Optional. The title of the card.
1199
+ # Corresponds to the JSON property `title`
1200
+ # @return [String]
1201
+ attr_accessor :title
1202
+
1203
+ def initialize(**args)
1204
+ update!(**args)
1205
+ end
1206
+
1207
+ # Update properties of this object
1208
+ def update!(**args)
1209
+ @buttons = args[:buttons] if args.key?(:buttons)
1210
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
1211
+ @subtitle = args[:subtitle] if args.key?(:subtitle)
1212
+ @title = args[:title] if args.key?(:title)
1213
+ end
1214
+ end
1215
+
1216
+ # Optional. Contains information about a button.
1217
+ class GoogleCloudDialogflowV2IntentMessageCardButton
1218
+ include Google::Apis::Core::Hashable
1219
+
1220
+ # Optional. The text to send back to the Dialogflow API or a URI to
1221
+ # open.
1222
+ # Corresponds to the JSON property `postback`
1223
+ # @return [String]
1224
+ attr_accessor :postback
1225
+
1226
+ # Optional. The text to show on the button.
1227
+ # Corresponds to the JSON property `text`
1228
+ # @return [String]
1229
+ attr_accessor :text
1230
+
1231
+ def initialize(**args)
1232
+ update!(**args)
1233
+ end
1234
+
1235
+ # Update properties of this object
1236
+ def update!(**args)
1237
+ @postback = args[:postback] if args.key?(:postback)
1238
+ @text = args[:text] if args.key?(:text)
1239
+ end
1240
+ end
1241
+
1242
+ # The card for presenting a carousel of options to select from.
1243
+ class GoogleCloudDialogflowV2IntentMessageCarouselSelect
1244
+ include Google::Apis::Core::Hashable
1245
+
1246
+ # Required. Carousel items.
1247
+ # Corresponds to the JSON property `items`
1248
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCarouselSelectItem>]
1249
+ attr_accessor :items
1250
+
1251
+ def initialize(**args)
1252
+ update!(**args)
1253
+ end
1254
+
1255
+ # Update properties of this object
1256
+ def update!(**args)
1257
+ @items = args[:items] if args.key?(:items)
1258
+ end
1259
+ end
1260
+
1261
+ # An item in the carousel.
1262
+ class GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
1263
+ include Google::Apis::Core::Hashable
1264
+
1265
+ # Optional. The body text of the card.
1266
+ # Corresponds to the JSON property `description`
1267
+ # @return [String]
1268
+ attr_accessor :description
1269
+
1270
+ # The image response message.
1271
+ # Corresponds to the JSON property `image`
1272
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage]
1273
+ attr_accessor :image
1274
+
1275
+ # Additional info about the select item for when it is triggered in a
1276
+ # dialog.
1277
+ # Corresponds to the JSON property `info`
1278
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSelectItemInfo]
1279
+ attr_accessor :info
1280
+
1281
+ # Required. Title of the carousel item.
1282
+ # Corresponds to the JSON property `title`
1283
+ # @return [String]
1284
+ attr_accessor :title
1285
+
1286
+ def initialize(**args)
1287
+ update!(**args)
1288
+ end
1289
+
1290
+ # Update properties of this object
1291
+ def update!(**args)
1292
+ @description = args[:description] if args.key?(:description)
1293
+ @image = args[:image] if args.key?(:image)
1294
+ @info = args[:info] if args.key?(:info)
1295
+ @title = args[:title] if args.key?(:title)
1296
+ end
1297
+ end
1298
+
1299
+ # The image response message.
1300
+ class GoogleCloudDialogflowV2IntentMessageImage
1301
+ include Google::Apis::Core::Hashable
1302
+
1303
+ # Optional. A text description of the image to be used for accessibility,
1304
+ # e.g., screen readers.
1305
+ # Corresponds to the JSON property `accessibilityText`
1306
+ # @return [String]
1307
+ attr_accessor :accessibility_text
1308
+
1309
+ # Optional. The public URI to an image file.
1310
+ # Corresponds to the JSON property `imageUri`
1311
+ # @return [String]
1312
+ attr_accessor :image_uri
1313
+
1314
+ def initialize(**args)
1315
+ update!(**args)
1316
+ end
1317
+
1318
+ # Update properties of this object
1319
+ def update!(**args)
1320
+ @accessibility_text = args[:accessibility_text] if args.key?(:accessibility_text)
1321
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
1322
+ end
1323
+ end
1324
+
1325
+ # The suggestion chip message that allows the user to jump out to the app
1326
+ # or website associated with this agent.
1327
+ class GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
1328
+ include Google::Apis::Core::Hashable
1329
+
1330
+ # Required. The name of the app or site this chip is linking to.
1331
+ # Corresponds to the JSON property `destinationName`
1332
+ # @return [String]
1333
+ attr_accessor :destination_name
1334
+
1335
+ # Required. The URI of the app or site to open when the user taps the
1336
+ # suggestion chip.
1337
+ # Corresponds to the JSON property `uri`
1338
+ # @return [String]
1339
+ attr_accessor :uri
1340
+
1341
+ def initialize(**args)
1342
+ update!(**args)
1343
+ end
1344
+
1345
+ # Update properties of this object
1346
+ def update!(**args)
1347
+ @destination_name = args[:destination_name] if args.key?(:destination_name)
1348
+ @uri = args[:uri] if args.key?(:uri)
1349
+ end
1350
+ end
1351
+
1352
+ # The card for presenting a list of options to select from.
1353
+ class GoogleCloudDialogflowV2IntentMessageListSelect
1354
+ include Google::Apis::Core::Hashable
1355
+
1356
+ # Required. List items.
1357
+ # Corresponds to the JSON property `items`
1358
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageListSelectItem>]
1359
+ attr_accessor :items
1360
+
1361
+ # Optional. The overall title of the list.
1362
+ # Corresponds to the JSON property `title`
1363
+ # @return [String]
1364
+ attr_accessor :title
1365
+
1366
+ def initialize(**args)
1367
+ update!(**args)
1368
+ end
1369
+
1370
+ # Update properties of this object
1371
+ def update!(**args)
1372
+ @items = args[:items] if args.key?(:items)
1373
+ @title = args[:title] if args.key?(:title)
1374
+ end
1375
+ end
1376
+
1377
+ # An item in the list.
1378
+ class GoogleCloudDialogflowV2IntentMessageListSelectItem
1379
+ include Google::Apis::Core::Hashable
1380
+
1381
+ # Optional. The main text describing the item.
1382
+ # Corresponds to the JSON property `description`
1383
+ # @return [String]
1384
+ attr_accessor :description
1385
+
1386
+ # The image response message.
1387
+ # Corresponds to the JSON property `image`
1388
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage]
1389
+ attr_accessor :image
1390
+
1391
+ # Additional info about the select item for when it is triggered in a
1392
+ # dialog.
1393
+ # Corresponds to the JSON property `info`
1394
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSelectItemInfo]
1395
+ attr_accessor :info
1396
+
1397
+ # Required. The title of the list item.
1398
+ # Corresponds to the JSON property `title`
1399
+ # @return [String]
1400
+ attr_accessor :title
1401
+
1402
+ def initialize(**args)
1403
+ update!(**args)
1404
+ end
1405
+
1406
+ # Update properties of this object
1407
+ def update!(**args)
1408
+ @description = args[:description] if args.key?(:description)
1409
+ @image = args[:image] if args.key?(:image)
1410
+ @info = args[:info] if args.key?(:info)
1411
+ @title = args[:title] if args.key?(:title)
1412
+ end
1413
+ end
1414
+
1415
+ # The quick replies response message.
1416
+ class GoogleCloudDialogflowV2IntentMessageQuickReplies
1417
+ include Google::Apis::Core::Hashable
1418
+
1419
+ # Optional. The collection of quick replies.
1420
+ # Corresponds to the JSON property `quickReplies`
1421
+ # @return [Array<String>]
1422
+ attr_accessor :quick_replies
1423
+
1424
+ # Optional. The title of the collection of quick replies.
1425
+ # Corresponds to the JSON property `title`
1426
+ # @return [String]
1427
+ attr_accessor :title
1428
+
1429
+ def initialize(**args)
1430
+ update!(**args)
1431
+ end
1432
+
1433
+ # Update properties of this object
1434
+ def update!(**args)
1435
+ @quick_replies = args[:quick_replies] if args.key?(:quick_replies)
1436
+ @title = args[:title] if args.key?(:title)
1437
+ end
1438
+ end
1439
+
1440
+ # Additional info about the select item for when it is triggered in a
1441
+ # dialog.
1442
+ class GoogleCloudDialogflowV2IntentMessageSelectItemInfo
1443
+ include Google::Apis::Core::Hashable
1444
+
1445
+ # Required. A unique key that will be sent back to the agent if this
1446
+ # response is given.
1447
+ # Corresponds to the JSON property `key`
1448
+ # @return [String]
1449
+ attr_accessor :key
1450
+
1451
+ # Optional. A list of synonyms that can also be used to trigger this
1452
+ # item in dialog.
1453
+ # Corresponds to the JSON property `synonyms`
1454
+ # @return [Array<String>]
1455
+ attr_accessor :synonyms
1456
+
1457
+ def initialize(**args)
1458
+ update!(**args)
1459
+ end
1460
+
1461
+ # Update properties of this object
1462
+ def update!(**args)
1463
+ @key = args[:key] if args.key?(:key)
1464
+ @synonyms = args[:synonyms] if args.key?(:synonyms)
1465
+ end
1466
+ end
1467
+
1468
+ # The simple response message containing speech or text.
1469
+ class GoogleCloudDialogflowV2IntentMessageSimpleResponse
1470
+ include Google::Apis::Core::Hashable
1471
+
1472
+ # Optional. The text to display.
1473
+ # Corresponds to the JSON property `displayText`
1474
+ # @return [String]
1475
+ attr_accessor :display_text
1476
+
1477
+ # One of text_to_speech or ssml must be provided. Structured spoken
1478
+ # response to the user in the SSML format. Mutually exclusive with
1479
+ # text_to_speech.
1480
+ # Corresponds to the JSON property `ssml`
1481
+ # @return [String]
1482
+ attr_accessor :ssml
1483
+
1484
+ # One of text_to_speech or ssml must be provided. The plain text of the
1485
+ # speech output. Mutually exclusive with ssml.
1486
+ # Corresponds to the JSON property `textToSpeech`
1487
+ # @return [String]
1488
+ attr_accessor :text_to_speech
1489
+
1490
+ def initialize(**args)
1491
+ update!(**args)
1492
+ end
1493
+
1494
+ # Update properties of this object
1495
+ def update!(**args)
1496
+ @display_text = args[:display_text] if args.key?(:display_text)
1497
+ @ssml = args[:ssml] if args.key?(:ssml)
1498
+ @text_to_speech = args[:text_to_speech] if args.key?(:text_to_speech)
1499
+ end
1500
+ end
1501
+
1502
+ # The collection of simple response candidates.
1503
+ # This message in `QueryResult.fulfillment_messages` and
1504
+ # `WebhookResponse.fulfillment_messages` should contain only one
1505
+ # `SimpleResponse`.
1506
+ class GoogleCloudDialogflowV2IntentMessageSimpleResponses
1507
+ include Google::Apis::Core::Hashable
1508
+
1509
+ # Required. The list of simple responses.
1510
+ # Corresponds to the JSON property `simpleResponses`
1511
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSimpleResponse>]
1512
+ attr_accessor :simple_responses
1513
+
1514
+ def initialize(**args)
1515
+ update!(**args)
1516
+ end
1517
+
1518
+ # Update properties of this object
1519
+ def update!(**args)
1520
+ @simple_responses = args[:simple_responses] if args.key?(:simple_responses)
1521
+ end
1522
+ end
1523
+
1524
+ # The suggestion chip message that the user can tap to quickly post a reply
1525
+ # to the conversation.
1526
+ class GoogleCloudDialogflowV2IntentMessageSuggestion
1527
+ include Google::Apis::Core::Hashable
1528
+
1529
+ # Required. The text shown the in the suggestion chip.
1530
+ # Corresponds to the JSON property `title`
1531
+ # @return [String]
1532
+ attr_accessor :title
1533
+
1534
+ def initialize(**args)
1535
+ update!(**args)
1536
+ end
1537
+
1538
+ # Update properties of this object
1539
+ def update!(**args)
1540
+ @title = args[:title] if args.key?(:title)
1541
+ end
1542
+ end
1543
+
1544
+ # The collection of suggestions.
1545
+ class GoogleCloudDialogflowV2IntentMessageSuggestions
1546
+ include Google::Apis::Core::Hashable
1547
+
1548
+ # Required. The list of suggested replies.
1549
+ # Corresponds to the JSON property `suggestions`
1550
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSuggestion>]
1551
+ attr_accessor :suggestions
1552
+
1553
+ def initialize(**args)
1554
+ update!(**args)
1555
+ end
1556
+
1557
+ # Update properties of this object
1558
+ def update!(**args)
1559
+ @suggestions = args[:suggestions] if args.key?(:suggestions)
1560
+ end
1561
+ end
1562
+
1563
+ # The text response message.
1564
+ class GoogleCloudDialogflowV2IntentMessageText
1565
+ include Google::Apis::Core::Hashable
1566
+
1567
+ # Optional. The collection of the agent's responses.
1568
+ # Corresponds to the JSON property `text`
1569
+ # @return [Array<String>]
1570
+ attr_accessor :text
1571
+
1572
+ def initialize(**args)
1573
+ update!(**args)
1574
+ end
1575
+
1576
+ # Update properties of this object
1577
+ def update!(**args)
1578
+ @text = args[:text] if args.key?(:text)
1579
+ end
1580
+ end
1581
+
1582
+ # Represents intent parameters.
1583
+ class GoogleCloudDialogflowV2IntentParameter
1584
+ include Google::Apis::Core::Hashable
1585
+
1586
+ # Optional. The default value to use when the `value` yields an empty
1587
+ # result.
1588
+ # Default values can be extracted from contexts by using the following
1589
+ # syntax: `#context_name.parameter_name`.
1590
+ # Corresponds to the JSON property `defaultValue`
1591
+ # @return [String]
1592
+ attr_accessor :default_value
1593
+
1594
+ # Required. The name of the parameter.
1595
+ # Corresponds to the JSON property `displayName`
1596
+ # @return [String]
1597
+ attr_accessor :display_name
1598
+
1599
+ # Optional. The name of the entity type, prefixed with `@`, that
1600
+ # describes values of the parameter. If the parameter is
1601
+ # required, this must be provided.
1602
+ # Corresponds to the JSON property `entityTypeDisplayName`
1603
+ # @return [String]
1604
+ attr_accessor :entity_type_display_name
1605
+
1606
+ # Optional. Indicates whether the parameter represents a list of values.
1607
+ # Corresponds to the JSON property `isList`
1608
+ # @return [Boolean]
1609
+ attr_accessor :is_list
1610
+ alias_method :is_list?, :is_list
1611
+
1612
+ # Optional. Indicates whether the parameter is required. That is,
1613
+ # whether the intent cannot be completed without collecting the parameter
1614
+ # value.
1615
+ # Corresponds to the JSON property `mandatory`
1616
+ # @return [Boolean]
1617
+ attr_accessor :mandatory
1618
+ alias_method :mandatory?, :mandatory
1619
+
1620
+ # The unique identifier of this parameter.
1621
+ # Corresponds to the JSON property `name`
1622
+ # @return [String]
1623
+ attr_accessor :name
1624
+
1625
+ # Optional. The collection of prompts that the agent can present to the
1626
+ # user in order to collect value for the parameter.
1627
+ # Corresponds to the JSON property `prompts`
1628
+ # @return [Array<String>]
1629
+ attr_accessor :prompts
1630
+
1631
+ # Optional. The definition of the parameter value. It can be:
1632
+ # - a constant string,
1633
+ # - a parameter value defined as `$parameter_name`,
1634
+ # - an original parameter value defined as `$parameter_name.original`,
1635
+ # - a parameter value from some context defined as
1636
+ # `#context_name.parameter_name`.
1637
+ # Corresponds to the JSON property `value`
1638
+ # @return [String]
1639
+ attr_accessor :value
1640
+
1641
+ def initialize(**args)
1642
+ update!(**args)
1643
+ end
1644
+
1645
+ # Update properties of this object
1646
+ def update!(**args)
1647
+ @default_value = args[:default_value] if args.key?(:default_value)
1648
+ @display_name = args[:display_name] if args.key?(:display_name)
1649
+ @entity_type_display_name = args[:entity_type_display_name] if args.key?(:entity_type_display_name)
1650
+ @is_list = args[:is_list] if args.key?(:is_list)
1651
+ @mandatory = args[:mandatory] if args.key?(:mandatory)
1652
+ @name = args[:name] if args.key?(:name)
1653
+ @prompts = args[:prompts] if args.key?(:prompts)
1654
+ @value = args[:value] if args.key?(:value)
1655
+ end
1656
+ end
1657
+
1658
+ # Represents an example or template that the agent is trained on.
1659
+ class GoogleCloudDialogflowV2IntentTrainingPhrase
1660
+ include Google::Apis::Core::Hashable
1661
+
1662
+ # Required. The unique identifier of this training phrase.
1663
+ # Corresponds to the JSON property `name`
1664
+ # @return [String]
1665
+ attr_accessor :name
1666
+
1667
+ # Required. The collection of training phrase parts (can be annotated).
1668
+ # Fields: `entity_type`, `alias` and `user_defined` should be populated
1669
+ # only for the annotated parts of the training phrase.
1670
+ # Corresponds to the JSON property `parts`
1671
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrasePart>]
1672
+ attr_accessor :parts
1673
+
1674
+ # Optional. Indicates how many times this example or template was added to
1675
+ # the intent. Each time a developer adds an existing sample by editing an
1676
+ # intent or training, this counter is increased.
1677
+ # Corresponds to the JSON property `timesAddedCount`
1678
+ # @return [Fixnum]
1679
+ attr_accessor :times_added_count
1680
+
1681
+ # Required. The type of the training phrase.
1682
+ # Corresponds to the JSON property `type`
1683
+ # @return [String]
1684
+ attr_accessor :type
1685
+
1686
+ def initialize(**args)
1687
+ update!(**args)
1688
+ end
1689
+
1690
+ # Update properties of this object
1691
+ def update!(**args)
1692
+ @name = args[:name] if args.key?(:name)
1693
+ @parts = args[:parts] if args.key?(:parts)
1694
+ @times_added_count = args[:times_added_count] if args.key?(:times_added_count)
1695
+ @type = args[:type] if args.key?(:type)
1696
+ end
1697
+ end
1698
+
1699
+ # Represents a part of a training phrase.
1700
+ class GoogleCloudDialogflowV2IntentTrainingPhrasePart
1701
+ include Google::Apis::Core::Hashable
1702
+
1703
+ # Optional. The parameter name for the value extracted from the
1704
+ # annotated part of the example.
1705
+ # Corresponds to the JSON property `alias`
1706
+ # @return [String]
1707
+ attr_accessor :alias
1708
+
1709
+ # Optional. The entity type name prefixed with `@`. This field is
1710
+ # required for the annotated part of the text and applies only to
1711
+ # examples.
1712
+ # Corresponds to the JSON property `entityType`
1713
+ # @return [String]
1714
+ attr_accessor :entity_type
1715
+
1716
+ # Required. The text corresponding to the example or template,
1717
+ # if there are no annotations. For
1718
+ # annotated examples, it is the text for one of the example's parts.
1719
+ # Corresponds to the JSON property `text`
1720
+ # @return [String]
1721
+ attr_accessor :text
1722
+
1723
+ # Optional. Indicates whether the text was manually annotated by the
1724
+ # developer.
1725
+ # Corresponds to the JSON property `userDefined`
1726
+ # @return [Boolean]
1727
+ attr_accessor :user_defined
1728
+ alias_method :user_defined?, :user_defined
1729
+
1730
+ def initialize(**args)
1731
+ update!(**args)
1732
+ end
1733
+
1734
+ # Update properties of this object
1735
+ def update!(**args)
1736
+ @alias = args[:alias] if args.key?(:alias)
1737
+ @entity_type = args[:entity_type] if args.key?(:entity_type)
1738
+ @text = args[:text] if args.key?(:text)
1739
+ @user_defined = args[:user_defined] if args.key?(:user_defined)
1740
+ end
1741
+ end
1742
+
1743
+ # The response message for Contexts.ListContexts.
1744
+ class GoogleCloudDialogflowV2ListContextsResponse
1745
+ include Google::Apis::Core::Hashable
1746
+
1747
+ # The list of contexts. There will be a maximum number of items
1748
+ # returned based on the page_size field in the request.
1749
+ # Corresponds to the JSON property `contexts`
1750
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>]
1751
+ attr_accessor :contexts
1752
+
1753
+ # Token to retrieve the next page of results, or empty if there are no
1754
+ # more results in the list.
1755
+ # Corresponds to the JSON property `nextPageToken`
1756
+ # @return [String]
1757
+ attr_accessor :next_page_token
1758
+
1759
+ def initialize(**args)
1760
+ update!(**args)
1761
+ end
1762
+
1763
+ # Update properties of this object
1764
+ def update!(**args)
1765
+ @contexts = args[:contexts] if args.key?(:contexts)
1766
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1767
+ end
1768
+ end
1769
+
1770
+ # The response message for EntityTypes.ListEntityTypes.
1771
+ class GoogleCloudDialogflowV2ListEntityTypesResponse
1772
+ include Google::Apis::Core::Hashable
1773
+
1774
+ # The list of agent entity types. There will be a maximum number of items
1775
+ # returned based on the page_size field in the request.
1776
+ # Corresponds to the JSON property `entityTypes`
1777
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType>]
1778
+ attr_accessor :entity_types
1779
+
1780
+ # Token to retrieve the next page of results, or empty if there are no
1781
+ # more results in the list.
1782
+ # Corresponds to the JSON property `nextPageToken`
1783
+ # @return [String]
1784
+ attr_accessor :next_page_token
1785
+
1786
+ def initialize(**args)
1787
+ update!(**args)
1788
+ end
1789
+
1790
+ # Update properties of this object
1791
+ def update!(**args)
1792
+ @entity_types = args[:entity_types] if args.key?(:entity_types)
1793
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1794
+ end
1795
+ end
1796
+
1797
+ # The response message for Intents.ListIntents.
1798
+ class GoogleCloudDialogflowV2ListIntentsResponse
1799
+ include Google::Apis::Core::Hashable
1800
+
1801
+ # The list of agent intents. There will be a maximum number of items
1802
+ # returned based on the page_size field in the request.
1803
+ # Corresponds to the JSON property `intents`
1804
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent>]
1805
+ attr_accessor :intents
1806
+
1807
+ # Token to retrieve the next page of results, or empty if there are no
1808
+ # more results in the list.
1809
+ # Corresponds to the JSON property `nextPageToken`
1810
+ # @return [String]
1811
+ attr_accessor :next_page_token
1812
+
1813
+ def initialize(**args)
1814
+ update!(**args)
1815
+ end
1816
+
1817
+ # Update properties of this object
1818
+ def update!(**args)
1819
+ @intents = args[:intents] if args.key?(:intents)
1820
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1821
+ end
1822
+ end
1823
+
1824
+ # The response message for SessionEntityTypes.ListSessionEntityTypes.
1825
+ class GoogleCloudDialogflowV2ListSessionEntityTypesResponse
1826
+ include Google::Apis::Core::Hashable
1827
+
1828
+ # Token to retrieve the next page of results, or empty if there are no
1829
+ # more results in the list.
1830
+ # Corresponds to the JSON property `nextPageToken`
1831
+ # @return [String]
1832
+ attr_accessor :next_page_token
1833
+
1834
+ # The list of session entity types. There will be a maximum number of items
1835
+ # returned based on the page_size field in the request.
1836
+ # Corresponds to the JSON property `sessionEntityTypes`
1837
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType>]
1838
+ attr_accessor :session_entity_types
1839
+
1840
+ def initialize(**args)
1841
+ update!(**args)
1842
+ end
1843
+
1844
+ # Update properties of this object
1845
+ def update!(**args)
1846
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1847
+ @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types)
1848
+ end
1849
+ end
1850
+
1851
+ # Represents the contents of the original request that was passed to
1852
+ # the `[Streaming]DetectIntent` call.
1853
+ class GoogleCloudDialogflowV2OriginalDetectIntentRequest
1854
+ include Google::Apis::Core::Hashable
1855
+
1856
+ # Optional. This field is set to the value of `QueryParameters.payload` field
1857
+ # passed in the request.
1858
+ # Corresponds to the JSON property `payload`
1859
+ # @return [Hash<String,Object>]
1860
+ attr_accessor :payload
1861
+
1862
+ # The source of this request, e.g., `google`, `facebook`, `slack`. It is set
1863
+ # by Dialogflow-owned servers. Possible values of this field correspond to
1864
+ # Intent.Message.Platform.
1865
+ # Corresponds to the JSON property `source`
1866
+ # @return [String]
1867
+ attr_accessor :source
1868
+
1869
+ def initialize(**args)
1870
+ update!(**args)
1871
+ end
1872
+
1873
+ # Update properties of this object
1874
+ def update!(**args)
1875
+ @payload = args[:payload] if args.key?(:payload)
1876
+ @source = args[:source] if args.key?(:source)
1877
+ end
1878
+ end
1879
+
1880
+ # Represents the query input. It can contain either:
1881
+ # 1. An audio config which
1882
+ # instructs the speech recognizer how to process the speech audio.
1883
+ # 2. A conversational query in the form of text,.
1884
+ # 3. An event that specifies which intent to trigger.
1885
+ class GoogleCloudDialogflowV2QueryInput
1886
+ include Google::Apis::Core::Hashable
1887
+
1888
+ # Instructs the speech recognizer how to process the audio content.
1889
+ # Corresponds to the JSON property `audioConfig`
1890
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig]
1891
+ attr_accessor :audio_config
1892
+
1893
+ # Events allow for matching intents by event name instead of the natural
1894
+ # language input. For instance, input `<event: ` name: “welcome_event”,
1895
+ # parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
1896
+ # The parameter `name` may be used by the agent in the response:
1897
+ # `“Hello #welcome_event.name! What can I do for you today?”`.
1898
+ # Corresponds to the JSON property `event`
1899
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput]
1900
+ attr_accessor :event
1901
+
1902
+ # Represents the natural language text to be processed.
1903
+ # Corresponds to the JSON property `text`
1904
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput]
1905
+ attr_accessor :text
1906
+
1907
+ def initialize(**args)
1908
+ update!(**args)
1909
+ end
1910
+
1911
+ # Update properties of this object
1912
+ def update!(**args)
1913
+ @audio_config = args[:audio_config] if args.key?(:audio_config)
1914
+ @event = args[:event] if args.key?(:event)
1915
+ @text = args[:text] if args.key?(:text)
1916
+ end
1917
+ end
1918
+
1919
+ # Represents the parameters of the conversational query.
1920
+ class GoogleCloudDialogflowV2QueryParameters
1921
+ include Google::Apis::Core::Hashable
1922
+
1923
+ # Optional. The collection of contexts to be activated before this query is
1924
+ # executed.
1925
+ # Corresponds to the JSON property `contexts`
1926
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>]
1927
+ attr_accessor :contexts
1928
+
1929
+ # An object representing a latitude/longitude pair. This is expressed as a pair
1930
+ # of doubles representing degrees latitude and degrees longitude. Unless
1931
+ # specified otherwise, this must conform to the
1932
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1933
+ # standard</a>. Values must be within normalized ranges.
1934
+ # Corresponds to the JSON property `geoLocation`
1935
+ # @return [Google::Apis::DialogflowV2::GoogleTypeLatLng]
1936
+ attr_accessor :geo_location
1937
+
1938
+ # Optional. This field can be used to pass custom data into the webhook
1939
+ # associated with the agent. Arbitrary JSON objects are supported.
1940
+ # Corresponds to the JSON property `payload`
1941
+ # @return [Hash<String,Object>]
1942
+ attr_accessor :payload
1943
+
1944
+ # Optional. Specifies whether to delete all contexts in the current session
1945
+ # before the new ones are activated.
1946
+ # Corresponds to the JSON property `resetContexts`
1947
+ # @return [Boolean]
1948
+ attr_accessor :reset_contexts
1949
+ alias_method :reset_contexts?, :reset_contexts
1950
+
1951
+ # Optional. The collection of session entity types to replace or extend
1952
+ # developer entities with for this query only. The entity synonyms apply
1953
+ # to all languages.
1954
+ # Corresponds to the JSON property `sessionEntityTypes`
1955
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType>]
1956
+ attr_accessor :session_entity_types
1957
+
1958
+ # Optional. The time zone of this conversational query from the
1959
+ # [time zone database](https://www.iana.org/time-zones), e.g.,
1960
+ # America/New_York, Europe/Paris. If not provided, the time zone specified in
1961
+ # agent settings is used.
1962
+ # Corresponds to the JSON property `timeZone`
1963
+ # @return [String]
1964
+ attr_accessor :time_zone
1965
+
1966
+ def initialize(**args)
1967
+ update!(**args)
1968
+ end
1969
+
1970
+ # Update properties of this object
1971
+ def update!(**args)
1972
+ @contexts = args[:contexts] if args.key?(:contexts)
1973
+ @geo_location = args[:geo_location] if args.key?(:geo_location)
1974
+ @payload = args[:payload] if args.key?(:payload)
1975
+ @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts)
1976
+ @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types)
1977
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
1978
+ end
1979
+ end
1980
+
1981
+ # Represents the result of conversational query or event processing.
1982
+ class GoogleCloudDialogflowV2QueryResult
1983
+ include Google::Apis::Core::Hashable
1984
+
1985
+ # The action name from the matched intent.
1986
+ # Corresponds to the JSON property `action`
1987
+ # @return [String]
1988
+ attr_accessor :action
1989
+
1990
+ # This field is set to:
1991
+ # - `false` if the matched intent has required parameters and not all of
1992
+ # the required parameter values have been collected.
1993
+ # - `true` if all required parameter values have been collected, or if the
1994
+ # matched intent doesn't contain any required parameters.
1995
+ # Corresponds to the JSON property `allRequiredParamsPresent`
1996
+ # @return [Boolean]
1997
+ attr_accessor :all_required_params_present
1998
+ alias_method :all_required_params_present?, :all_required_params_present
1999
+
2000
+ # The free-form diagnostic info. For example, this field
2001
+ # could contain webhook call latency.
2002
+ # Corresponds to the JSON property `diagnosticInfo`
2003
+ # @return [Hash<String,Object>]
2004
+ attr_accessor :diagnostic_info
2005
+
2006
+ # The collection of rich messages to present to the user.
2007
+ # Corresponds to the JSON property `fulfillmentMessages`
2008
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage>]
2009
+ attr_accessor :fulfillment_messages
2010
+
2011
+ # The text to be pronounced to the user or shown on the screen.
2012
+ # Corresponds to the JSON property `fulfillmentText`
2013
+ # @return [String]
2014
+ attr_accessor :fulfillment_text
2015
+
2016
+ # Represents an intent.
2017
+ # Intents convert a number of user expressions or patterns into an action. An
2018
+ # action is an extraction of a user command or sentence semantics.
2019
+ # Corresponds to the JSON property `intent`
2020
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent]
2021
+ attr_accessor :intent
2022
+
2023
+ # The intent detection confidence. Values range from 0.0
2024
+ # (completely uncertain) to 1.0 (completely certain).
2025
+ # Corresponds to the JSON property `intentDetectionConfidence`
2026
+ # @return [Float]
2027
+ attr_accessor :intent_detection_confidence
2028
+
2029
+ # The language that was triggered during intent detection.
2030
+ # See [Language Support](https://dialogflow.com/docs/reference/language)
2031
+ # for a list of the currently supported language codes.
2032
+ # Corresponds to the JSON property `languageCode`
2033
+ # @return [String]
2034
+ attr_accessor :language_code
2035
+
2036
+ # The collection of output contexts. If applicable,
2037
+ # `output_contexts.parameters` contains entries with name
2038
+ # `<parameter name>.original` containing the original parameter values
2039
+ # before the query.
2040
+ # Corresponds to the JSON property `outputContexts`
2041
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>]
2042
+ attr_accessor :output_contexts
2043
+
2044
+ # The collection of extracted parameters.
2045
+ # Corresponds to the JSON property `parameters`
2046
+ # @return [Hash<String,Object>]
2047
+ attr_accessor :parameters
2048
+
2049
+ # The original conversational query text:
2050
+ # - If natural language text was provided as input, `query_text` contains
2051
+ # a copy of the input.
2052
+ # - If natural language speech audio was provided as input, `query_text`
2053
+ # contains the speech recognition result. If speech recognizer produced
2054
+ # multiple alternatives, a particular one is picked.
2055
+ # - If an event was provided as input, `query_text` is not set.
2056
+ # Corresponds to the JSON property `queryText`
2057
+ # @return [String]
2058
+ attr_accessor :query_text
2059
+
2060
+ # The Speech recognition confidence between 0.0 and 1.0. A higher number
2061
+ # indicates an estimated greater likelihood that the recognized words are
2062
+ # correct. The default of 0.0 is a sentinel value indicating that confidence
2063
+ # was not set.
2064
+ # You should not rely on this field as it isn't guaranteed to be accurate, or
2065
+ # even set. In particular this field isn't set in Webhook calls and for
2066
+ # StreamingDetectIntent since the streaming endpoint has separate confidence
2067
+ # estimates per portion of the audio in StreamingRecognitionResult.
2068
+ # Corresponds to the JSON property `speechRecognitionConfidence`
2069
+ # @return [Float]
2070
+ attr_accessor :speech_recognition_confidence
2071
+
2072
+ # If the query was fulfilled by a webhook call, this field is set to the
2073
+ # value of the `payload` field returned in the webhook response.
2074
+ # Corresponds to the JSON property `webhookPayload`
2075
+ # @return [Hash<String,Object>]
2076
+ attr_accessor :webhook_payload
2077
+
2078
+ # If the query was fulfilled by a webhook call, this field is set to the
2079
+ # value of the `source` field returned in the webhook response.
2080
+ # Corresponds to the JSON property `webhookSource`
2081
+ # @return [String]
2082
+ attr_accessor :webhook_source
2083
+
2084
+ def initialize(**args)
2085
+ update!(**args)
2086
+ end
2087
+
2088
+ # Update properties of this object
2089
+ def update!(**args)
2090
+ @action = args[:action] if args.key?(:action)
2091
+ @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
2092
+ @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
2093
+ @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
2094
+ @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
2095
+ @intent = args[:intent] if args.key?(:intent)
2096
+ @intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence)
2097
+ @language_code = args[:language_code] if args.key?(:language_code)
2098
+ @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
2099
+ @parameters = args[:parameters] if args.key?(:parameters)
2100
+ @query_text = args[:query_text] if args.key?(:query_text)
2101
+ @speech_recognition_confidence = args[:speech_recognition_confidence] if args.key?(:speech_recognition_confidence)
2102
+ @webhook_payload = args[:webhook_payload] if args.key?(:webhook_payload)
2103
+ @webhook_source = args[:webhook_source] if args.key?(:webhook_source)
2104
+ end
2105
+ end
2106
+
2107
+ # The request message for Agents.RestoreAgent.
2108
+ class GoogleCloudDialogflowV2RestoreAgentRequest
2109
+ include Google::Apis::Core::Hashable
2110
+
2111
+ # The agent to restore.
2112
+ # Example for how to restore an agent via the command line:
2113
+ # curl \
2114
+ # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
2115
+ # -X POST \
2116
+ # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
2117
+ # -H 'Accept: application/json' \
2118
+ # -H 'Content-Type: application/json' \
2119
+ # --compressed \
2120
+ # --data-binary "`
2121
+ # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
2122
+ # `" \
2123
+ # Corresponds to the JSON property `agentContent`
2124
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2125
+ # @return [String]
2126
+ attr_accessor :agent_content
2127
+
2128
+ # The URI to a Google Cloud Storage file containing the agent to restore.
2129
+ # Note: The URI must start with "gs://".
2130
+ # Corresponds to the JSON property `agentUri`
2131
+ # @return [String]
2132
+ attr_accessor :agent_uri
2133
+
2134
+ def initialize(**args)
2135
+ update!(**args)
2136
+ end
2137
+
2138
+ # Update properties of this object
2139
+ def update!(**args)
2140
+ @agent_content = args[:agent_content] if args.key?(:agent_content)
2141
+ @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
2142
+ end
2143
+ end
2144
+
2145
+ # The response message for Agents.SearchAgents.
2146
+ class GoogleCloudDialogflowV2SearchAgentsResponse
2147
+ include Google::Apis::Core::Hashable
2148
+
2149
+ # The list of agents. There will be a maximum number of items returned based
2150
+ # on the page_size field in the request.
2151
+ # Corresponds to the JSON property `agents`
2152
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent>]
2153
+ attr_accessor :agents
2154
+
2155
+ # Token to retrieve the next page of results, or empty if there are no
2156
+ # more results in the list.
2157
+ # Corresponds to the JSON property `nextPageToken`
2158
+ # @return [String]
2159
+ attr_accessor :next_page_token
2160
+
2161
+ def initialize(**args)
2162
+ update!(**args)
2163
+ end
2164
+
2165
+ # Update properties of this object
2166
+ def update!(**args)
2167
+ @agents = args[:agents] if args.key?(:agents)
2168
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2169
+ end
2170
+ end
2171
+
2172
+ # Represents a session entity type.
2173
+ # Extends or replaces a developer entity type at the user session level (we
2174
+ # refer to the entity types defined at the agent level as "developer entity
2175
+ # types").
2176
+ # Note: session entity types apply to all queries, regardless of the language.
2177
+ class GoogleCloudDialogflowV2SessionEntityType
2178
+ include Google::Apis::Core::Hashable
2179
+
2180
+ # Required. The collection of entities associated with this session entity
2181
+ # type.
2182
+ # Corresponds to the JSON property `entities`
2183
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
2184
+ attr_accessor :entities
2185
+
2186
+ # Required. Indicates whether the additional data should override or
2187
+ # supplement the developer entity type definition.
2188
+ # Corresponds to the JSON property `entityOverrideMode`
2189
+ # @return [String]
2190
+ attr_accessor :entity_override_mode
2191
+
2192
+ # Required. The unique identifier of this session entity type. Format:
2193
+ # `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
2194
+ # Display Name>`.
2195
+ # Corresponds to the JSON property `name`
2196
+ # @return [String]
2197
+ attr_accessor :name
2198
+
2199
+ def initialize(**args)
2200
+ update!(**args)
2201
+ end
2202
+
2203
+ # Update properties of this object
2204
+ def update!(**args)
2205
+ @entities = args[:entities] if args.key?(:entities)
2206
+ @entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode)
2207
+ @name = args[:name] if args.key?(:name)
2208
+ end
2209
+ end
2210
+
2211
+ # Represents the natural language text to be processed.
2212
+ class GoogleCloudDialogflowV2TextInput
2213
+ include Google::Apis::Core::Hashable
2214
+
2215
+ # Required. The language of this conversational query. See [Language
2216
+ # Support](https://dialogflow.com/docs/languages) for a list of the
2217
+ # currently supported language codes. Note that queries in the same session
2218
+ # do not necessarily need to specify the same language.
2219
+ # Corresponds to the JSON property `languageCode`
2220
+ # @return [String]
2221
+ attr_accessor :language_code
2222
+
2223
+ # Required. The UTF-8 encoded natural language text to be processed.
2224
+ # Text length must not exceed 256 bytes.
2225
+ # Corresponds to the JSON property `text`
2226
+ # @return [String]
2227
+ attr_accessor :text
2228
+
2229
+ def initialize(**args)
2230
+ update!(**args)
2231
+ end
2232
+
2233
+ # Update properties of this object
2234
+ def update!(**args)
2235
+ @language_code = args[:language_code] if args.key?(:language_code)
2236
+ @text = args[:text] if args.key?(:text)
2237
+ end
2238
+ end
2239
+
2240
+ # The request message for Agents.TrainAgent.
2241
+ class GoogleCloudDialogflowV2TrainAgentRequest
2242
+ include Google::Apis::Core::Hashable
2243
+
2244
+ def initialize(**args)
2245
+ update!(**args)
2246
+ end
2247
+
2248
+ # Update properties of this object
2249
+ def update!(**args)
2250
+ end
2251
+ end
2252
+
2253
+ # The request message for a webhook call.
2254
+ class GoogleCloudDialogflowV2WebhookRequest
2255
+ include Google::Apis::Core::Hashable
2256
+
2257
+ # Represents the contents of the original request that was passed to
2258
+ # the `[Streaming]DetectIntent` call.
2259
+ # Corresponds to the JSON property `originalDetectIntentRequest`
2260
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OriginalDetectIntentRequest]
2261
+ attr_accessor :original_detect_intent_request
2262
+
2263
+ # Represents the result of conversational query or event processing.
2264
+ # Corresponds to the JSON property `queryResult`
2265
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult]
2266
+ attr_accessor :query_result
2267
+
2268
+ # The unique identifier of the response. Contains the same value as
2269
+ # `[Streaming]DetectIntentResponse.response_id`.
2270
+ # Corresponds to the JSON property `responseId`
2271
+ # @return [String]
2272
+ attr_accessor :response_id
2273
+
2274
+ # The unique identifier of detectIntent request session.
2275
+ # Can be used to identify end-user inside webhook implementation.
2276
+ # Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
2277
+ # Corresponds to the JSON property `session`
2278
+ # @return [String]
2279
+ attr_accessor :session
2280
+
2281
+ def initialize(**args)
2282
+ update!(**args)
2283
+ end
2284
+
2285
+ # Update properties of this object
2286
+ def update!(**args)
2287
+ @original_detect_intent_request = args[:original_detect_intent_request] if args.key?(:original_detect_intent_request)
2288
+ @query_result = args[:query_result] if args.key?(:query_result)
2289
+ @response_id = args[:response_id] if args.key?(:response_id)
2290
+ @session = args[:session] if args.key?(:session)
2291
+ end
2292
+ end
2293
+
2294
+ # The response message for a webhook call.
2295
+ class GoogleCloudDialogflowV2WebhookResponse
2296
+ include Google::Apis::Core::Hashable
2297
+
2298
+ # Events allow for matching intents by event name instead of the natural
2299
+ # language input. For instance, input `<event: ` name: “welcome_event”,
2300
+ # parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
2301
+ # The parameter `name` may be used by the agent in the response:
2302
+ # `“Hello #welcome_event.name! What can I do for you today?”`.
2303
+ # Corresponds to the JSON property `followupEventInput`
2304
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput]
2305
+ attr_accessor :followup_event_input
2306
+
2307
+ # Optional. The collection of rich messages to present to the user. This
2308
+ # value is passed directly to `QueryResult.fulfillment_messages`.
2309
+ # Corresponds to the JSON property `fulfillmentMessages`
2310
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage>]
2311
+ attr_accessor :fulfillment_messages
2312
+
2313
+ # Optional. The text to be shown on the screen. This value is passed directly
2314
+ # to `QueryResult.fulfillment_text`.
2315
+ # Corresponds to the JSON property `fulfillmentText`
2316
+ # @return [String]
2317
+ attr_accessor :fulfillment_text
2318
+
2319
+ # Optional. The collection of output contexts. This value is passed directly
2320
+ # to `QueryResult.output_contexts`.
2321
+ # Corresponds to the JSON property `outputContexts`
2322
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>]
2323
+ attr_accessor :output_contexts
2324
+
2325
+ # Optional. This value is passed directly to `QueryResult.webhook_payload`.
2326
+ # Corresponds to the JSON property `payload`
2327
+ # @return [Hash<String,Object>]
2328
+ attr_accessor :payload
2329
+
2330
+ # Optional. This value is passed directly to `QueryResult.webhook_source`.
2331
+ # Corresponds to the JSON property `source`
2332
+ # @return [String]
2333
+ attr_accessor :source
2334
+
2335
+ def initialize(**args)
2336
+ update!(**args)
2337
+ end
2338
+
2339
+ # Update properties of this object
2340
+ def update!(**args)
2341
+ @followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input)
2342
+ @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
2343
+ @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
2344
+ @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
2345
+ @payload = args[:payload] if args.key?(:payload)
2346
+ @source = args[:source] if args.key?(:source)
2347
+ end
2348
+ end
2349
+
2350
+ # The response message for EntityTypes.BatchUpdateEntityTypes.
2351
+ class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
2352
+ include Google::Apis::Core::Hashable
2353
+
2354
+ # The collection of updated or created entity types.
2355
+ # Corresponds to the JSON property `entityTypes`
2356
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EntityType>]
2357
+ attr_accessor :entity_types
2358
+
2359
+ def initialize(**args)
2360
+ update!(**args)
2361
+ end
2362
+
2363
+ # Update properties of this object
2364
+ def update!(**args)
2365
+ @entity_types = args[:entity_types] if args.key?(:entity_types)
2366
+ end
2367
+ end
2368
+
2369
+ # The response message for Intents.BatchUpdateIntents.
2370
+ class GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
2371
+ include Google::Apis::Core::Hashable
2372
+
2373
+ # The collection of updated or created intents.
2374
+ # Corresponds to the JSON property `intents`
2375
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent>]
2376
+ attr_accessor :intents
2377
+
2378
+ def initialize(**args)
2379
+ update!(**args)
2380
+ end
2381
+
2382
+ # Update properties of this object
2383
+ def update!(**args)
2384
+ @intents = args[:intents] if args.key?(:intents)
2385
+ end
2386
+ end
2387
+
2388
+ # Represents a context.
2389
+ class GoogleCloudDialogflowV2beta1Context
2390
+ include Google::Apis::Core::Hashable
2391
+
2392
+ # Optional. The number of conversational query requests after which the
2393
+ # context expires. If set to `0` (the default) the context expires
2394
+ # immediately. Contexts expire automatically after 10 minutes even if there
2395
+ # are no matching queries.
2396
+ # Corresponds to the JSON property `lifespanCount`
2397
+ # @return [Fixnum]
2398
+ attr_accessor :lifespan_count
2399
+
2400
+ # Required. The unique identifier of the context. Format:
2401
+ # `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
2402
+ # or
2403
+ # `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
2404
+ # ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
2405
+ # users are under construction and will be available soon. The Context ID is
2406
+ # always converted to lowercase. If <Environment ID> is not specified, we
2407
+ # assume default 'draft' environment. If <User ID> is not specified, we
2408
+ # assume default '-' user.
2409
+ # Corresponds to the JSON property `name`
2410
+ # @return [String]
2411
+ attr_accessor :name
2412
+
2413
+ # Optional. The collection of parameters associated with this context.
2414
+ # Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
2415
+ # syntax.
2416
+ # Corresponds to the JSON property `parameters`
2417
+ # @return [Hash<String,Object>]
2418
+ attr_accessor :parameters
2419
+
2420
+ def initialize(**args)
2421
+ update!(**args)
2422
+ end
2423
+
2424
+ # Update properties of this object
2425
+ def update!(**args)
2426
+ @lifespan_count = args[:lifespan_count] if args.key?(:lifespan_count)
2427
+ @name = args[:name] if args.key?(:name)
2428
+ @parameters = args[:parameters] if args.key?(:parameters)
2429
+ end
2430
+ end
2431
+
2432
+ # Represents an entity type.
2433
+ # Entity types serve as a tool for extracting parameter values from natural
2434
+ # language queries.
2435
+ class GoogleCloudDialogflowV2beta1EntityType
2436
+ include Google::Apis::Core::Hashable
2437
+
2438
+ # Optional. Indicates whether the entity type can be automatically
2439
+ # expanded.
2440
+ # Corresponds to the JSON property `autoExpansionMode`
2441
+ # @return [String]
2442
+ attr_accessor :auto_expansion_mode
2443
+
2444
+ # Required. The name of the entity.
2445
+ # Corresponds to the JSON property `displayName`
2446
+ # @return [String]
2447
+ attr_accessor :display_name
2448
+
2449
+ # Optional. The collection of entities associated with the entity type.
2450
+ # Corresponds to the JSON property `entities`
2451
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EntityTypeEntity>]
2452
+ attr_accessor :entities
2453
+
2454
+ # Required. Indicates the kind of entity type.
2455
+ # Corresponds to the JSON property `kind`
2456
+ # @return [String]
2457
+ attr_accessor :kind
2458
+
2459
+ # Required for all methods except `create` (`create` populates the name
2460
+ # automatically.
2461
+ # The unique identifier of the entity type. Format:
2462
+ # `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
2463
+ # Corresponds to the JSON property `name`
2464
+ # @return [String]
2465
+ attr_accessor :name
2466
+
2467
+ def initialize(**args)
2468
+ update!(**args)
2469
+ end
2470
+
2471
+ # Update properties of this object
2472
+ def update!(**args)
2473
+ @auto_expansion_mode = args[:auto_expansion_mode] if args.key?(:auto_expansion_mode)
2474
+ @display_name = args[:display_name] if args.key?(:display_name)
2475
+ @entities = args[:entities] if args.key?(:entities)
2476
+ @kind = args[:kind] if args.key?(:kind)
2477
+ @name = args[:name] if args.key?(:name)
2478
+ end
2479
+ end
2480
+
2481
+ # Optional. Represents an entity.
2482
+ class GoogleCloudDialogflowV2beta1EntityTypeEntity
2483
+ include Google::Apis::Core::Hashable
2484
+
2485
+ # Required. A collection of synonyms. For `KIND_LIST` entity types this
2486
+ # must contain exactly one synonym equal to `value`.
2487
+ # Corresponds to the JSON property `synonyms`
2488
+ # @return [Array<String>]
2489
+ attr_accessor :synonyms
2490
+
2491
+ # Required.
2492
+ # For `KIND_MAP` entity types:
2493
+ # A canonical name to be used in place of synonyms.
2494
+ # For `KIND_LIST` entity types:
2495
+ # A string that can contain references to other entity types (with or
2496
+ # without aliases).
2497
+ # Corresponds to the JSON property `value`
2498
+ # @return [String]
2499
+ attr_accessor :value
2500
+
2501
+ def initialize(**args)
2502
+ update!(**args)
2503
+ end
2504
+
2505
+ # Update properties of this object
2506
+ def update!(**args)
2507
+ @synonyms = args[:synonyms] if args.key?(:synonyms)
2508
+ @value = args[:value] if args.key?(:value)
2509
+ end
2510
+ end
2511
+
2512
+ # Events allow for matching intents by event name instead of the natural
2513
+ # language input. For instance, input `<event: ` name: “welcome_event”,
2514
+ # parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
2515
+ # The parameter `name` may be used by the agent in the response:
2516
+ # `“Hello #welcome_event.name! What can I do for you today?”`.
2517
+ class GoogleCloudDialogflowV2beta1EventInput
2518
+ include Google::Apis::Core::Hashable
2519
+
2520
+ # Required. The language of this query. See [Language
2521
+ # Support](https://dialogflow.com/docs/languages) for a list of the
2522
+ # currently supported language codes. Note that queries in the same session
2523
+ # do not necessarily need to specify the same language.
2524
+ # Corresponds to the JSON property `languageCode`
2525
+ # @return [String]
2526
+ attr_accessor :language_code
2527
+
2528
+ # Required. The unique identifier of the event.
2529
+ # Corresponds to the JSON property `name`
2530
+ # @return [String]
2531
+ attr_accessor :name
2532
+
2533
+ # Optional. The collection of parameters associated with the event.
2534
+ # Corresponds to the JSON property `parameters`
2535
+ # @return [Hash<String,Object>]
2536
+ attr_accessor :parameters
2537
+
2538
+ def initialize(**args)
2539
+ update!(**args)
2540
+ end
2541
+
2542
+ # Update properties of this object
2543
+ def update!(**args)
2544
+ @language_code = args[:language_code] if args.key?(:language_code)
2545
+ @name = args[:name] if args.key?(:name)
2546
+ @parameters = args[:parameters] if args.key?(:parameters)
2547
+ end
2548
+ end
2549
+
2550
+ # The response message for Agents.ExportAgent.
2551
+ class GoogleCloudDialogflowV2beta1ExportAgentResponse
2552
+ include Google::Apis::Core::Hashable
2553
+
2554
+ # The exported agent.
2555
+ # Example for how to export an agent to a zip file via a command line:
2556
+ # curl \
2557
+ # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:
2558
+ # export'\
2559
+ # -X POST \
2560
+ # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
2561
+ # -H 'Accept: application/json' \
2562
+ # -H 'Content-Type: application/json' \
2563
+ # --compressed \
2564
+ # --data-binary '``' \
2565
+ # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
2566
+ # | base64 --decode > <agent zip file>
2567
+ # Corresponds to the JSON property `agentContent`
2568
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2569
+ # @return [String]
2570
+ attr_accessor :agent_content
2571
+
2572
+ # The URI to a file containing the exported agent. This field is populated
2573
+ # only if `agent_uri` is specified in `ExportAgentRequest`.
2574
+ # Corresponds to the JSON property `agentUri`
2575
+ # @return [String]
2576
+ attr_accessor :agent_uri
2577
+
2578
+ def initialize(**args)
2579
+ update!(**args)
2580
+ end
2581
+
2582
+ # Update properties of this object
2583
+ def update!(**args)
2584
+ @agent_content = args[:agent_content] if args.key?(:agent_content)
2585
+ @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
2586
+ end
2587
+ end
2588
+
2589
+ # Represents an intent.
2590
+ # Intents convert a number of user expressions or patterns into an action. An
2591
+ # action is an extraction of a user command or sentence semantics.
2592
+ class GoogleCloudDialogflowV2beta1Intent
2593
+ include Google::Apis::Core::Hashable
2594
+
2595
+ # Optional. The name of the action associated with the intent.
2596
+ # Corresponds to the JSON property `action`
2597
+ # @return [String]
2598
+ attr_accessor :action
2599
+
2600
+ # Optional. The list of platforms for which the first response will be
2601
+ # taken from among the messages assigned to the DEFAULT_PLATFORM.
2602
+ # Corresponds to the JSON property `defaultResponsePlatforms`
2603
+ # @return [Array<String>]
2604
+ attr_accessor :default_response_platforms
2605
+
2606
+ # Required. The name of this intent.
2607
+ # Corresponds to the JSON property `displayName`
2608
+ # @return [String]
2609
+ attr_accessor :display_name
2610
+
2611
+ # Optional. The collection of event names that trigger the intent.
2612
+ # If the collection of input contexts is not empty, all of the contexts must
2613
+ # be present in the active user session for an event to trigger this intent.
2614
+ # Corresponds to the JSON property `events`
2615
+ # @return [Array<String>]
2616
+ attr_accessor :events
2617
+
2618
+ # Optional. Collection of information about all followup intents that have
2619
+ # name of this intent as a root_name.
2620
+ # Corresponds to the JSON property `followupIntentInfo`
2621
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo>]
2622
+ attr_accessor :followup_intent_info
2623
+
2624
+ # Optional. The list of context names required for this intent to be
2625
+ # triggered.
2626
+ # Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
2627
+ # Corresponds to the JSON property `inputContextNames`
2628
+ # @return [Array<String>]
2629
+ attr_accessor :input_context_names
2630
+
2631
+ # Optional. Indicates whether this is a fallback intent.
2632
+ # Corresponds to the JSON property `isFallback`
2633
+ # @return [Boolean]
2634
+ attr_accessor :is_fallback
2635
+ alias_method :is_fallback?, :is_fallback
2636
+
2637
+ # Optional. The collection of rich messages corresponding to the
2638
+ # `Response` field in the Dialogflow console.
2639
+ # Corresponds to the JSON property `messages`
2640
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage>]
2641
+ attr_accessor :messages
2642
+
2643
+ # Optional. Indicates whether Machine Learning is disabled for the intent.
2644
+ # Note: If `ml_disabled` setting is set to true, then this intent is not
2645
+ # taken into account during inference in `ML ONLY` match mode. Also,
2646
+ # auto-markup in the UI is turned off.
2647
+ # Corresponds to the JSON property `mlDisabled`
2648
+ # @return [Boolean]
2649
+ attr_accessor :ml_disabled
2650
+ alias_method :ml_disabled?, :ml_disabled
2651
+
2652
+ # Optional. Indicates whether Machine Learning is enabled for the intent.
2653
+ # Note: If `ml_enabled` setting is set to false, then this intent is not
2654
+ # taken into account during inference in `ML ONLY` match mode. Also,
2655
+ # auto-markup in the UI is turned off.
2656
+ # DEPRECATED! Please use `ml_disabled` field instead.
2657
+ # NOTE: If neither `ml_enabled` nor `ml_disabled` field is set, then the
2658
+ # default value is determined as follows:
2659
+ # - Before April 15th, 2018 the default is:
2660
+ # ml_enabled = false / ml_disabled = true.
2661
+ # - After April 15th, 2018 the default is:
2662
+ # ml_enabled = true / ml_disabled = false.
2663
+ # Corresponds to the JSON property `mlEnabled`
2664
+ # @return [Boolean]
2665
+ attr_accessor :ml_enabled
2666
+ alias_method :ml_enabled?, :ml_enabled
2667
+
2668
+ # Required for all methods except `create` (`create` populates the name
2669
+ # automatically.
2670
+ # The unique identifier of this intent.
2671
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
2672
+ # Corresponds to the JSON property `name`
2673
+ # @return [String]
2674
+ attr_accessor :name
2675
+
2676
+ # Optional. The collection of contexts that are activated when the intent
2677
+ # is matched. Context messages in this collection should not set the
2678
+ # parameters field. Setting the `lifespan_count` to 0 will reset the context
2679
+ # when the intent is matched.
2680
+ # Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
2681
+ # Corresponds to the JSON property `outputContexts`
2682
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context>]
2683
+ attr_accessor :output_contexts
2684
+
2685
+ # Optional. The collection of parameters associated with the intent.
2686
+ # Corresponds to the JSON property `parameters`
2687
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentParameter>]
2688
+ attr_accessor :parameters
2689
+
2690
+ # The unique identifier of the parent intent in the chain of followup
2691
+ # intents.
2692
+ # It identifies the parent followup intent.
2693
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
2694
+ # Corresponds to the JSON property `parentFollowupIntentName`
2695
+ # @return [String]
2696
+ attr_accessor :parent_followup_intent_name
2697
+
2698
+ # Optional. The priority of this intent. Higher numbers represent higher
2699
+ # priorities. Zero or negative numbers mean that the intent is disabled.
2700
+ # Corresponds to the JSON property `priority`
2701
+ # @return [Fixnum]
2702
+ attr_accessor :priority
2703
+
2704
+ # Optional. Indicates whether to delete all contexts in the current
2705
+ # session when this intent is matched.
2706
+ # Corresponds to the JSON property `resetContexts`
2707
+ # @return [Boolean]
2708
+ attr_accessor :reset_contexts
2709
+ alias_method :reset_contexts?, :reset_contexts
2710
+
2711
+ # The unique identifier of the root intent in the chain of followup intents.
2712
+ # It identifies the correct followup intents chain for this intent.
2713
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
2714
+ # Corresponds to the JSON property `rootFollowupIntentName`
2715
+ # @return [String]
2716
+ attr_accessor :root_followup_intent_name
2717
+
2718
+ # Optional. The collection of examples/templates that the agent is
2719
+ # trained on.
2720
+ # Corresponds to the JSON property `trainingPhrases`
2721
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrase>]
2722
+ attr_accessor :training_phrases
2723
+
2724
+ # Required. Indicates whether webhooks are enabled for the intent.
2725
+ # Corresponds to the JSON property `webhookState`
2726
+ # @return [String]
2727
+ attr_accessor :webhook_state
2728
+
2729
+ def initialize(**args)
2730
+ update!(**args)
2731
+ end
2732
+
2733
+ # Update properties of this object
2734
+ def update!(**args)
2735
+ @action = args[:action] if args.key?(:action)
2736
+ @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms)
2737
+ @display_name = args[:display_name] if args.key?(:display_name)
2738
+ @events = args[:events] if args.key?(:events)
2739
+ @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
2740
+ @input_context_names = args[:input_context_names] if args.key?(:input_context_names)
2741
+ @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
2742
+ @messages = args[:messages] if args.key?(:messages)
2743
+ @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
2744
+ @ml_enabled = args[:ml_enabled] if args.key?(:ml_enabled)
2745
+ @name = args[:name] if args.key?(:name)
2746
+ @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
2747
+ @parameters = args[:parameters] if args.key?(:parameters)
2748
+ @parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name)
2749
+ @priority = args[:priority] if args.key?(:priority)
2750
+ @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts)
2751
+ @root_followup_intent_name = args[:root_followup_intent_name] if args.key?(:root_followup_intent_name)
2752
+ @training_phrases = args[:training_phrases] if args.key?(:training_phrases)
2753
+ @webhook_state = args[:webhook_state] if args.key?(:webhook_state)
2754
+ end
2755
+ end
2756
+
2757
+ # Represents a single followup intent in the chain.
2758
+ class GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
2759
+ include Google::Apis::Core::Hashable
2760
+
2761
+ # The unique identifier of the followup intent.
2762
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
2763
+ # Corresponds to the JSON property `followupIntentName`
2764
+ # @return [String]
2765
+ attr_accessor :followup_intent_name
2766
+
2767
+ # The unique identifier of the followup intent parent.
2768
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
2769
+ # Corresponds to the JSON property `parentFollowupIntentName`
2770
+ # @return [String]
2771
+ attr_accessor :parent_followup_intent_name
2772
+
2773
+ def initialize(**args)
2774
+ update!(**args)
2775
+ end
2776
+
2777
+ # Update properties of this object
2778
+ def update!(**args)
2779
+ @followup_intent_name = args[:followup_intent_name] if args.key?(:followup_intent_name)
2780
+ @parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name)
2781
+ end
2782
+ end
2783
+
2784
+ # Corresponds to the `Response` field in the Dialogflow console.
2785
+ class GoogleCloudDialogflowV2beta1IntentMessage
2786
+ include Google::Apis::Core::Hashable
2787
+
2788
+ # The basic card message. Useful for displaying information.
2789
+ # Corresponds to the JSON property `basicCard`
2790
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCard]
2791
+ attr_accessor :basic_card
2792
+
2793
+ # The card response message.
2794
+ # Corresponds to the JSON property `card`
2795
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCard]
2796
+ attr_accessor :card
2797
+
2798
+ # The card for presenting a carousel of options to select from.
2799
+ # Corresponds to the JSON property `carouselSelect`
2800
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect]
2801
+ attr_accessor :carousel_select
2802
+
2803
+ # The image response message.
2804
+ # Corresponds to the JSON property `image`
2805
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage]
2806
+ attr_accessor :image
2807
+
2808
+ # The suggestion chip message that allows the user to jump out to the app
2809
+ # or website associated with this agent.
2810
+ # Corresponds to the JSON property `linkOutSuggestion`
2811
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion]
2812
+ attr_accessor :link_out_suggestion
2813
+
2814
+ # The card for presenting a list of options to select from.
2815
+ # Corresponds to the JSON property `listSelect`
2816
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelect]
2817
+ attr_accessor :list_select
2818
+
2819
+ # Returns a response containing a custom payload.
2820
+ # Corresponds to the JSON property `payload`
2821
+ # @return [Hash<String,Object>]
2822
+ attr_accessor :payload
2823
+
2824
+ # Optional. The platform that this message is intended for.
2825
+ # Corresponds to the JSON property `platform`
2826
+ # @return [String]
2827
+ attr_accessor :platform
2828
+
2829
+ # The quick replies response message.
2830
+ # Corresponds to the JSON property `quickReplies`
2831
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies]
2832
+ attr_accessor :quick_replies
2833
+
2834
+ # The collection of simple response candidates.
2835
+ # This message in `QueryResult.fulfillment_messages` and
2836
+ # `WebhookResponse.fulfillment_messages` should contain only one
2837
+ # `SimpleResponse`.
2838
+ # Corresponds to the JSON property `simpleResponses`
2839
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses]
2840
+ attr_accessor :simple_responses
2841
+
2842
+ # The collection of suggestions.
2843
+ # Corresponds to the JSON property `suggestions`
2844
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions]
2845
+ attr_accessor :suggestions
2846
+
2847
+ # The text response message.
2848
+ # Corresponds to the JSON property `text`
2849
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageText]
2850
+ attr_accessor :text
2851
+
2852
+ def initialize(**args)
2853
+ update!(**args)
2854
+ end
2855
+
2856
+ # Update properties of this object
2857
+ def update!(**args)
2858
+ @basic_card = args[:basic_card] if args.key?(:basic_card)
2859
+ @card = args[:card] if args.key?(:card)
2860
+ @carousel_select = args[:carousel_select] if args.key?(:carousel_select)
2861
+ @image = args[:image] if args.key?(:image)
2862
+ @link_out_suggestion = args[:link_out_suggestion] if args.key?(:link_out_suggestion)
2863
+ @list_select = args[:list_select] if args.key?(:list_select)
2864
+ @payload = args[:payload] if args.key?(:payload)
2865
+ @platform = args[:platform] if args.key?(:platform)
2866
+ @quick_replies = args[:quick_replies] if args.key?(:quick_replies)
2867
+ @simple_responses = args[:simple_responses] if args.key?(:simple_responses)
2868
+ @suggestions = args[:suggestions] if args.key?(:suggestions)
2869
+ @text = args[:text] if args.key?(:text)
2870
+ end
2871
+ end
2872
+
2873
+ # The basic card message. Useful for displaying information.
2874
+ class GoogleCloudDialogflowV2beta1IntentMessageBasicCard
2875
+ include Google::Apis::Core::Hashable
2876
+
2877
+ # Optional. The collection of card buttons.
2878
+ # Corresponds to the JSON property `buttons`
2879
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton>]
2880
+ attr_accessor :buttons
2881
+
2882
+ # Required, unless image is present. The body text of the card.
2883
+ # Corresponds to the JSON property `formattedText`
2884
+ # @return [String]
2885
+ attr_accessor :formatted_text
2886
+
2887
+ # The image response message.
2888
+ # Corresponds to the JSON property `image`
2889
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage]
2890
+ attr_accessor :image
2891
+
2892
+ # Optional. The subtitle of the card.
2893
+ # Corresponds to the JSON property `subtitle`
2894
+ # @return [String]
2895
+ attr_accessor :subtitle
2896
+
2897
+ # Optional. The title of the card.
2898
+ # Corresponds to the JSON property `title`
2899
+ # @return [String]
2900
+ attr_accessor :title
2901
+
2902
+ def initialize(**args)
2903
+ update!(**args)
2904
+ end
2905
+
2906
+ # Update properties of this object
2907
+ def update!(**args)
2908
+ @buttons = args[:buttons] if args.key?(:buttons)
2909
+ @formatted_text = args[:formatted_text] if args.key?(:formatted_text)
2910
+ @image = args[:image] if args.key?(:image)
2911
+ @subtitle = args[:subtitle] if args.key?(:subtitle)
2912
+ @title = args[:title] if args.key?(:title)
2913
+ end
2914
+ end
2915
+
2916
+ # The button object that appears at the bottom of a card.
2917
+ class GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
2918
+ include Google::Apis::Core::Hashable
2919
+
2920
+ # Opens the given URI.
2921
+ # Corresponds to the JSON property `openUriAction`
2922
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction]
2923
+ attr_accessor :open_uri_action
2924
+
2925
+ # Required. The title of the button.
2926
+ # Corresponds to the JSON property `title`
2927
+ # @return [String]
2928
+ attr_accessor :title
2929
+
2930
+ def initialize(**args)
2931
+ update!(**args)
2932
+ end
2933
+
2934
+ # Update properties of this object
2935
+ def update!(**args)
2936
+ @open_uri_action = args[:open_uri_action] if args.key?(:open_uri_action)
2937
+ @title = args[:title] if args.key?(:title)
2938
+ end
2939
+ end
2940
+
2941
+ # Opens the given URI.
2942
+ class GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
2943
+ include Google::Apis::Core::Hashable
2944
+
2945
+ # Required. The HTTP or HTTPS scheme URI.
2946
+ # Corresponds to the JSON property `uri`
2947
+ # @return [String]
2948
+ attr_accessor :uri
2949
+
2950
+ def initialize(**args)
2951
+ update!(**args)
2952
+ end
2953
+
2954
+ # Update properties of this object
2955
+ def update!(**args)
2956
+ @uri = args[:uri] if args.key?(:uri)
2957
+ end
2958
+ end
2959
+
2960
+ # The card response message.
2961
+ class GoogleCloudDialogflowV2beta1IntentMessageCard
2962
+ include Google::Apis::Core::Hashable
2963
+
2964
+ # Optional. The collection of card buttons.
2965
+ # Corresponds to the JSON property `buttons`
2966
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCardButton>]
2967
+ attr_accessor :buttons
2968
+
2969
+ # Optional. The public URI to an image file for the card.
2970
+ # Corresponds to the JSON property `imageUri`
2971
+ # @return [String]
2972
+ attr_accessor :image_uri
2973
+
2974
+ # Optional. The subtitle of the card.
2975
+ # Corresponds to the JSON property `subtitle`
2976
+ # @return [String]
2977
+ attr_accessor :subtitle
2978
+
2979
+ # Optional. The title of the card.
2980
+ # Corresponds to the JSON property `title`
2981
+ # @return [String]
2982
+ attr_accessor :title
2983
+
2984
+ def initialize(**args)
2985
+ update!(**args)
2986
+ end
2987
+
2988
+ # Update properties of this object
2989
+ def update!(**args)
2990
+ @buttons = args[:buttons] if args.key?(:buttons)
2991
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
2992
+ @subtitle = args[:subtitle] if args.key?(:subtitle)
2993
+ @title = args[:title] if args.key?(:title)
2994
+ end
2995
+ end
2996
+
2997
+ # Optional. Contains information about a button.
2998
+ class GoogleCloudDialogflowV2beta1IntentMessageCardButton
2999
+ include Google::Apis::Core::Hashable
3000
+
3001
+ # Optional. The text to send back to the Dialogflow API or a URI to
3002
+ # open.
3003
+ # Corresponds to the JSON property `postback`
3004
+ # @return [String]
3005
+ attr_accessor :postback
3006
+
3007
+ # Optional. The text to show on the button.
3008
+ # Corresponds to the JSON property `text`
3009
+ # @return [String]
3010
+ attr_accessor :text
3011
+
3012
+ def initialize(**args)
3013
+ update!(**args)
3014
+ end
3015
+
3016
+ # Update properties of this object
3017
+ def update!(**args)
3018
+ @postback = args[:postback] if args.key?(:postback)
3019
+ @text = args[:text] if args.key?(:text)
3020
+ end
3021
+ end
3022
+
3023
+ # The card for presenting a carousel of options to select from.
3024
+ class GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
3025
+ include Google::Apis::Core::Hashable
3026
+
3027
+ # Required. Carousel items.
3028
+ # Corresponds to the JSON property `items`
3029
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem>]
3030
+ attr_accessor :items
3031
+
3032
+ def initialize(**args)
3033
+ update!(**args)
3034
+ end
3035
+
3036
+ # Update properties of this object
3037
+ def update!(**args)
3038
+ @items = args[:items] if args.key?(:items)
3039
+ end
3040
+ end
3041
+
3042
+ # An item in the carousel.
3043
+ class GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
3044
+ include Google::Apis::Core::Hashable
3045
+
3046
+ # Optional. The body text of the card.
3047
+ # Corresponds to the JSON property `description`
3048
+ # @return [String]
3049
+ attr_accessor :description
3050
+
3051
+ # The image response message.
3052
+ # Corresponds to the JSON property `image`
3053
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage]
3054
+ attr_accessor :image
3055
+
3056
+ # Additional info about the select item for when it is triggered in a
3057
+ # dialog.
3058
+ # Corresponds to the JSON property `info`
3059
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo]
3060
+ attr_accessor :info
3061
+
3062
+ # Required. Title of the carousel item.
3063
+ # Corresponds to the JSON property `title`
3064
+ # @return [String]
3065
+ attr_accessor :title
3066
+
3067
+ def initialize(**args)
3068
+ update!(**args)
3069
+ end
3070
+
3071
+ # Update properties of this object
3072
+ def update!(**args)
3073
+ @description = args[:description] if args.key?(:description)
3074
+ @image = args[:image] if args.key?(:image)
3075
+ @info = args[:info] if args.key?(:info)
3076
+ @title = args[:title] if args.key?(:title)
3077
+ end
3078
+ end
3079
+
3080
+ # The image response message.
3081
+ class GoogleCloudDialogflowV2beta1IntentMessageImage
3082
+ include Google::Apis::Core::Hashable
3083
+
3084
+ # Optional. A text description of the image to be used for accessibility,
3085
+ # e.g., screen readers.
3086
+ # Corresponds to the JSON property `accessibilityText`
3087
+ # @return [String]
3088
+ attr_accessor :accessibility_text
3089
+
3090
+ # Optional. The public URI to an image file.
3091
+ # Corresponds to the JSON property `imageUri`
3092
+ # @return [String]
3093
+ attr_accessor :image_uri
3094
+
3095
+ def initialize(**args)
3096
+ update!(**args)
3097
+ end
3098
+
3099
+ # Update properties of this object
3100
+ def update!(**args)
3101
+ @accessibility_text = args[:accessibility_text] if args.key?(:accessibility_text)
3102
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
3103
+ end
3104
+ end
3105
+
3106
+ # The suggestion chip message that allows the user to jump out to the app
3107
+ # or website associated with this agent.
3108
+ class GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
3109
+ include Google::Apis::Core::Hashable
3110
+
3111
+ # Required. The name of the app or site this chip is linking to.
3112
+ # Corresponds to the JSON property `destinationName`
3113
+ # @return [String]
3114
+ attr_accessor :destination_name
3115
+
3116
+ # Required. The URI of the app or site to open when the user taps the
3117
+ # suggestion chip.
3118
+ # Corresponds to the JSON property `uri`
3119
+ # @return [String]
3120
+ attr_accessor :uri
3121
+
3122
+ def initialize(**args)
3123
+ update!(**args)
3124
+ end
3125
+
3126
+ # Update properties of this object
3127
+ def update!(**args)
3128
+ @destination_name = args[:destination_name] if args.key?(:destination_name)
3129
+ @uri = args[:uri] if args.key?(:uri)
3130
+ end
3131
+ end
3132
+
3133
+ # The card for presenting a list of options to select from.
3134
+ class GoogleCloudDialogflowV2beta1IntentMessageListSelect
3135
+ include Google::Apis::Core::Hashable
3136
+
3137
+ # Required. List items.
3138
+ # Corresponds to the JSON property `items`
3139
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelectItem>]
3140
+ attr_accessor :items
3141
+
3142
+ # Optional. The overall title of the list.
3143
+ # Corresponds to the JSON property `title`
3144
+ # @return [String]
3145
+ attr_accessor :title
3146
+
3147
+ def initialize(**args)
3148
+ update!(**args)
3149
+ end
3150
+
3151
+ # Update properties of this object
3152
+ def update!(**args)
3153
+ @items = args[:items] if args.key?(:items)
3154
+ @title = args[:title] if args.key?(:title)
3155
+ end
3156
+ end
3157
+
3158
+ # An item in the list.
3159
+ class GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
3160
+ include Google::Apis::Core::Hashable
3161
+
3162
+ # Optional. The main text describing the item.
3163
+ # Corresponds to the JSON property `description`
3164
+ # @return [String]
3165
+ attr_accessor :description
3166
+
3167
+ # The image response message.
3168
+ # Corresponds to the JSON property `image`
3169
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage]
3170
+ attr_accessor :image
3171
+
3172
+ # Additional info about the select item for when it is triggered in a
3173
+ # dialog.
3174
+ # Corresponds to the JSON property `info`
3175
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo]
3176
+ attr_accessor :info
3177
+
3178
+ # Required. The title of the list item.
3179
+ # Corresponds to the JSON property `title`
3180
+ # @return [String]
3181
+ attr_accessor :title
3182
+
3183
+ def initialize(**args)
3184
+ update!(**args)
3185
+ end
3186
+
3187
+ # Update properties of this object
3188
+ def update!(**args)
3189
+ @description = args[:description] if args.key?(:description)
3190
+ @image = args[:image] if args.key?(:image)
3191
+ @info = args[:info] if args.key?(:info)
3192
+ @title = args[:title] if args.key?(:title)
3193
+ end
3194
+ end
3195
+
3196
+ # The quick replies response message.
3197
+ class GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
3198
+ include Google::Apis::Core::Hashable
3199
+
3200
+ # Optional. The collection of quick replies.
3201
+ # Corresponds to the JSON property `quickReplies`
3202
+ # @return [Array<String>]
3203
+ attr_accessor :quick_replies
3204
+
3205
+ # Optional. The title of the collection of quick replies.
3206
+ # Corresponds to the JSON property `title`
3207
+ # @return [String]
3208
+ attr_accessor :title
3209
+
3210
+ def initialize(**args)
3211
+ update!(**args)
3212
+ end
3213
+
3214
+ # Update properties of this object
3215
+ def update!(**args)
3216
+ @quick_replies = args[:quick_replies] if args.key?(:quick_replies)
3217
+ @title = args[:title] if args.key?(:title)
3218
+ end
3219
+ end
3220
+
3221
+ # Additional info about the select item for when it is triggered in a
3222
+ # dialog.
3223
+ class GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
3224
+ include Google::Apis::Core::Hashable
3225
+
3226
+ # Required. A unique key that will be sent back to the agent if this
3227
+ # response is given.
3228
+ # Corresponds to the JSON property `key`
3229
+ # @return [String]
3230
+ attr_accessor :key
3231
+
3232
+ # Optional. A list of synonyms that can also be used to trigger this
3233
+ # item in dialog.
3234
+ # Corresponds to the JSON property `synonyms`
3235
+ # @return [Array<String>]
3236
+ attr_accessor :synonyms
3237
+
3238
+ def initialize(**args)
3239
+ update!(**args)
3240
+ end
3241
+
3242
+ # Update properties of this object
3243
+ def update!(**args)
3244
+ @key = args[:key] if args.key?(:key)
3245
+ @synonyms = args[:synonyms] if args.key?(:synonyms)
3246
+ end
3247
+ end
3248
+
3249
+ # The simple response message containing speech or text.
3250
+ class GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
3251
+ include Google::Apis::Core::Hashable
3252
+
3253
+ # Optional. The text to display.
3254
+ # Corresponds to the JSON property `displayText`
3255
+ # @return [String]
3256
+ attr_accessor :display_text
3257
+
3258
+ # One of text_to_speech or ssml must be provided. Structured spoken
3259
+ # response to the user in the SSML format. Mutually exclusive with
3260
+ # text_to_speech.
3261
+ # Corresponds to the JSON property `ssml`
3262
+ # @return [String]
3263
+ attr_accessor :ssml
3264
+
3265
+ # One of text_to_speech or ssml must be provided. The plain text of the
3266
+ # speech output. Mutually exclusive with ssml.
3267
+ # Corresponds to the JSON property `textToSpeech`
3268
+ # @return [String]
3269
+ attr_accessor :text_to_speech
3270
+
3271
+ def initialize(**args)
3272
+ update!(**args)
3273
+ end
3274
+
3275
+ # Update properties of this object
3276
+ def update!(**args)
3277
+ @display_text = args[:display_text] if args.key?(:display_text)
3278
+ @ssml = args[:ssml] if args.key?(:ssml)
3279
+ @text_to_speech = args[:text_to_speech] if args.key?(:text_to_speech)
3280
+ end
3281
+ end
3282
+
3283
+ # The collection of simple response candidates.
3284
+ # This message in `QueryResult.fulfillment_messages` and
3285
+ # `WebhookResponse.fulfillment_messages` should contain only one
3286
+ # `SimpleResponse`.
3287
+ class GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
3288
+ include Google::Apis::Core::Hashable
3289
+
3290
+ # Required. The list of simple responses.
3291
+ # Corresponds to the JSON property `simpleResponses`
3292
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse>]
3293
+ attr_accessor :simple_responses
3294
+
3295
+ def initialize(**args)
3296
+ update!(**args)
3297
+ end
3298
+
3299
+ # Update properties of this object
3300
+ def update!(**args)
3301
+ @simple_responses = args[:simple_responses] if args.key?(:simple_responses)
3302
+ end
3303
+ end
3304
+
3305
+ # The suggestion chip message that the user can tap to quickly post a reply
3306
+ # to the conversation.
3307
+ class GoogleCloudDialogflowV2beta1IntentMessageSuggestion
3308
+ include Google::Apis::Core::Hashable
3309
+
3310
+ # Required. The text shown the in the suggestion chip.
3311
+ # Corresponds to the JSON property `title`
3312
+ # @return [String]
3313
+ attr_accessor :title
3314
+
3315
+ def initialize(**args)
3316
+ update!(**args)
3317
+ end
3318
+
3319
+ # Update properties of this object
3320
+ def update!(**args)
3321
+ @title = args[:title] if args.key?(:title)
3322
+ end
3323
+ end
3324
+
3325
+ # The collection of suggestions.
3326
+ class GoogleCloudDialogflowV2beta1IntentMessageSuggestions
3327
+ include Google::Apis::Core::Hashable
3328
+
3329
+ # Required. The list of suggested replies.
3330
+ # Corresponds to the JSON property `suggestions`
3331
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestion>]
3332
+ attr_accessor :suggestions
3333
+
3334
+ def initialize(**args)
3335
+ update!(**args)
3336
+ end
3337
+
3338
+ # Update properties of this object
3339
+ def update!(**args)
3340
+ @suggestions = args[:suggestions] if args.key?(:suggestions)
3341
+ end
3342
+ end
3343
+
3344
+ # The text response message.
3345
+ class GoogleCloudDialogflowV2beta1IntentMessageText
3346
+ include Google::Apis::Core::Hashable
3347
+
3348
+ # Optional. The collection of the agent's responses.
3349
+ # Corresponds to the JSON property `text`
3350
+ # @return [Array<String>]
3351
+ attr_accessor :text
3352
+
3353
+ def initialize(**args)
3354
+ update!(**args)
3355
+ end
3356
+
3357
+ # Update properties of this object
3358
+ def update!(**args)
3359
+ @text = args[:text] if args.key?(:text)
3360
+ end
3361
+ end
3362
+
3363
+ # Represents intent parameters.
3364
+ class GoogleCloudDialogflowV2beta1IntentParameter
3365
+ include Google::Apis::Core::Hashable
3366
+
3367
+ # Optional. The default value to use when the `value` yields an empty
3368
+ # result.
3369
+ # Default values can be extracted from contexts by using the following
3370
+ # syntax: `#context_name.parameter_name`.
3371
+ # Corresponds to the JSON property `defaultValue`
3372
+ # @return [String]
3373
+ attr_accessor :default_value
3374
+
3375
+ # Required. The name of the parameter.
3376
+ # Corresponds to the JSON property `displayName`
3377
+ # @return [String]
3378
+ attr_accessor :display_name
3379
+
3380
+ # Optional. The name of the entity type, prefixed with `@`, that
3381
+ # describes values of the parameter. If the parameter is
3382
+ # required, this must be provided.
3383
+ # Corresponds to the JSON property `entityTypeDisplayName`
3384
+ # @return [String]
3385
+ attr_accessor :entity_type_display_name
3386
+
3387
+ # Optional. Indicates whether the parameter represents a list of values.
3388
+ # Corresponds to the JSON property `isList`
3389
+ # @return [Boolean]
3390
+ attr_accessor :is_list
3391
+ alias_method :is_list?, :is_list
3392
+
3393
+ # Optional. Indicates whether the parameter is required. That is,
3394
+ # whether the intent cannot be completed without collecting the parameter
3395
+ # value.
3396
+ # Corresponds to the JSON property `mandatory`
3397
+ # @return [Boolean]
3398
+ attr_accessor :mandatory
3399
+ alias_method :mandatory?, :mandatory
3400
+
3401
+ # The unique identifier of this parameter.
3402
+ # Corresponds to the JSON property `name`
3403
+ # @return [String]
3404
+ attr_accessor :name
3405
+
3406
+ # Optional. The collection of prompts that the agent can present to the
3407
+ # user in order to collect value for the parameter.
3408
+ # Corresponds to the JSON property `prompts`
3409
+ # @return [Array<String>]
3410
+ attr_accessor :prompts
3411
+
3412
+ # Optional. The definition of the parameter value. It can be:
3413
+ # - a constant string,
3414
+ # - a parameter value defined as `$parameter_name`,
3415
+ # - an original parameter value defined as `$parameter_name.original`,
3416
+ # - a parameter value from some context defined as
3417
+ # `#context_name.parameter_name`.
3418
+ # Corresponds to the JSON property `value`
3419
+ # @return [String]
3420
+ attr_accessor :value
3421
+
3422
+ def initialize(**args)
3423
+ update!(**args)
3424
+ end
3425
+
3426
+ # Update properties of this object
3427
+ def update!(**args)
3428
+ @default_value = args[:default_value] if args.key?(:default_value)
3429
+ @display_name = args[:display_name] if args.key?(:display_name)
3430
+ @entity_type_display_name = args[:entity_type_display_name] if args.key?(:entity_type_display_name)
3431
+ @is_list = args[:is_list] if args.key?(:is_list)
3432
+ @mandatory = args[:mandatory] if args.key?(:mandatory)
3433
+ @name = args[:name] if args.key?(:name)
3434
+ @prompts = args[:prompts] if args.key?(:prompts)
3435
+ @value = args[:value] if args.key?(:value)
3436
+ end
3437
+ end
3438
+
3439
+ # Represents an example or template that the agent is trained on.
3440
+ class GoogleCloudDialogflowV2beta1IntentTrainingPhrase
3441
+ include Google::Apis::Core::Hashable
3442
+
3443
+ # Required. The unique identifier of this training phrase.
3444
+ # Corresponds to the JSON property `name`
3445
+ # @return [String]
3446
+ attr_accessor :name
3447
+
3448
+ # Required. The collection of training phrase parts (can be annotated).
3449
+ # Fields: `entity_type`, `alias` and `user_defined` should be populated
3450
+ # only for the annotated parts of the training phrase.
3451
+ # Corresponds to the JSON property `parts`
3452
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart>]
3453
+ attr_accessor :parts
3454
+
3455
+ # Optional. Indicates how many times this example or template was added to
3456
+ # the intent. Each time a developer adds an existing sample by editing an
3457
+ # intent or training, this counter is increased.
3458
+ # Corresponds to the JSON property `timesAddedCount`
3459
+ # @return [Fixnum]
3460
+ attr_accessor :times_added_count
3461
+
3462
+ # Required. The type of the training phrase.
3463
+ # Corresponds to the JSON property `type`
3464
+ # @return [String]
3465
+ attr_accessor :type
3466
+
3467
+ def initialize(**args)
3468
+ update!(**args)
3469
+ end
3470
+
3471
+ # Update properties of this object
3472
+ def update!(**args)
3473
+ @name = args[:name] if args.key?(:name)
3474
+ @parts = args[:parts] if args.key?(:parts)
3475
+ @times_added_count = args[:times_added_count] if args.key?(:times_added_count)
3476
+ @type = args[:type] if args.key?(:type)
3477
+ end
3478
+ end
3479
+
3480
+ # Represents a part of a training phrase.
3481
+ class GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
3482
+ include Google::Apis::Core::Hashable
3483
+
3484
+ # Optional. The parameter name for the value extracted from the
3485
+ # annotated part of the example.
3486
+ # Corresponds to the JSON property `alias`
3487
+ # @return [String]
3488
+ attr_accessor :alias
3489
+
3490
+ # Optional. The entity type name prefixed with `@`. This field is
3491
+ # required for the annotated part of the text and applies only to
3492
+ # examples.
3493
+ # Corresponds to the JSON property `entityType`
3494
+ # @return [String]
3495
+ attr_accessor :entity_type
3496
+
3497
+ # Required. The text corresponding to the example or template,
3498
+ # if there are no annotations. For
3499
+ # annotated examples, it is the text for one of the example's parts.
3500
+ # Corresponds to the JSON property `text`
3501
+ # @return [String]
3502
+ attr_accessor :text
3503
+
3504
+ # Optional. Indicates whether the text was manually annotated by the
3505
+ # developer.
3506
+ # Corresponds to the JSON property `userDefined`
3507
+ # @return [Boolean]
3508
+ attr_accessor :user_defined
3509
+ alias_method :user_defined?, :user_defined
3510
+
3511
+ def initialize(**args)
3512
+ update!(**args)
3513
+ end
3514
+
3515
+ # Update properties of this object
3516
+ def update!(**args)
3517
+ @alias = args[:alias] if args.key?(:alias)
3518
+ @entity_type = args[:entity_type] if args.key?(:entity_type)
3519
+ @text = args[:text] if args.key?(:text)
3520
+ @user_defined = args[:user_defined] if args.key?(:user_defined)
3521
+ end
3522
+ end
3523
+
3524
+ # Represents the contents of the original request that was passed to
3525
+ # the `[Streaming]DetectIntent` call.
3526
+ class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
3527
+ include Google::Apis::Core::Hashable
3528
+
3529
+ # Optional. This field is set to the value of `QueryParameters.payload` field
3530
+ # passed in the request.
3531
+ # Corresponds to the JSON property `payload`
3532
+ # @return [Hash<String,Object>]
3533
+ attr_accessor :payload
3534
+
3535
+ # The source of this request, e.g., `google`, `facebook`, `slack`. It is set
3536
+ # by Dialogflow-owned servers. Possible values of this field correspond to
3537
+ # Intent.Message.Platform.
3538
+ # Corresponds to the JSON property `source`
3539
+ # @return [String]
3540
+ attr_accessor :source
3541
+
3542
+ def initialize(**args)
3543
+ update!(**args)
3544
+ end
3545
+
3546
+ # Update properties of this object
3547
+ def update!(**args)
3548
+ @payload = args[:payload] if args.key?(:payload)
3549
+ @source = args[:source] if args.key?(:source)
3550
+ end
3551
+ end
3552
+
3553
+ # Represents the result of conversational query or event processing.
3554
+ class GoogleCloudDialogflowV2beta1QueryResult
3555
+ include Google::Apis::Core::Hashable
3556
+
3557
+ # The action name from the matched intent.
3558
+ # Corresponds to the JSON property `action`
3559
+ # @return [String]
3560
+ attr_accessor :action
3561
+
3562
+ # This field is set to:
3563
+ # - `false` if the matched intent has required parameters and not all of
3564
+ # the required parameter values have been collected.
3565
+ # - `true` if all required parameter values have been collected, or if the
3566
+ # matched intent doesn't contain any required parameters.
3567
+ # Corresponds to the JSON property `allRequiredParamsPresent`
3568
+ # @return [Boolean]
3569
+ attr_accessor :all_required_params_present
3570
+ alias_method :all_required_params_present?, :all_required_params_present
3571
+
3572
+ # The free-form diagnostic info. For example, this field
3573
+ # could contain webhook call latency.
3574
+ # Corresponds to the JSON property `diagnosticInfo`
3575
+ # @return [Hash<String,Object>]
3576
+ attr_accessor :diagnostic_info
3577
+
3578
+ # The collection of rich messages to present to the user.
3579
+ # Corresponds to the JSON property `fulfillmentMessages`
3580
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage>]
3581
+ attr_accessor :fulfillment_messages
3582
+
3583
+ # The text to be pronounced to the user or shown on the screen.
3584
+ # Corresponds to the JSON property `fulfillmentText`
3585
+ # @return [String]
3586
+ attr_accessor :fulfillment_text
3587
+
3588
+ # Represents an intent.
3589
+ # Intents convert a number of user expressions or patterns into an action. An
3590
+ # action is an extraction of a user command or sentence semantics.
3591
+ # Corresponds to the JSON property `intent`
3592
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent]
3593
+ attr_accessor :intent
3594
+
3595
+ # The intent detection confidence. Values range from 0.0
3596
+ # (completely uncertain) to 1.0 (completely certain).
3597
+ # Corresponds to the JSON property `intentDetectionConfidence`
3598
+ # @return [Float]
3599
+ attr_accessor :intent_detection_confidence
3600
+
3601
+ # The language that was triggered during intent detection.
3602
+ # See [Language Support](https://dialogflow.com/docs/reference/language)
3603
+ # for a list of the currently supported language codes.
3604
+ # Corresponds to the JSON property `languageCode`
3605
+ # @return [String]
3606
+ attr_accessor :language_code
3607
+
3608
+ # The collection of output contexts. If applicable,
3609
+ # `output_contexts.parameters` contains entries with name
3610
+ # `<parameter name>.original` containing the original parameter values
3611
+ # before the query.
3612
+ # Corresponds to the JSON property `outputContexts`
3613
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context>]
3614
+ attr_accessor :output_contexts
3615
+
3616
+ # The collection of extracted parameters.
3617
+ # Corresponds to the JSON property `parameters`
3618
+ # @return [Hash<String,Object>]
3619
+ attr_accessor :parameters
3620
+
3621
+ # The original conversational query text:
3622
+ # - If natural language text was provided as input, `query_text` contains
3623
+ # a copy of the input.
3624
+ # - If natural language speech audio was provided as input, `query_text`
3625
+ # contains the speech recognition result. If speech recognizer produced
3626
+ # multiple alternatives, a particular one is picked.
3627
+ # - If an event was provided as input, `query_text` is not set.
3628
+ # Corresponds to the JSON property `queryText`
3629
+ # @return [String]
3630
+ attr_accessor :query_text
3631
+
3632
+ # The Speech recognition confidence between 0.0 and 1.0. A higher number
3633
+ # indicates an estimated greater likelihood that the recognized words are
3634
+ # correct. The default of 0.0 is a sentinel value indicating that confidence
3635
+ # was not set.
3636
+ # You should not rely on this field as it isn't guaranteed to be accurate, or
3637
+ # even set. In particular this field isn't set in Webhook calls and for
3638
+ # StreamingDetectIntent since the streaming endpoint has separate confidence
3639
+ # estimates per portion of the audio in StreamingRecognitionResult.
3640
+ # Corresponds to the JSON property `speechRecognitionConfidence`
3641
+ # @return [Float]
3642
+ attr_accessor :speech_recognition_confidence
3643
+
3644
+ # If the query was fulfilled by a webhook call, this field is set to the
3645
+ # value of the `payload` field returned in the webhook response.
3646
+ # Corresponds to the JSON property `webhookPayload`
3647
+ # @return [Hash<String,Object>]
3648
+ attr_accessor :webhook_payload
3649
+
3650
+ # If the query was fulfilled by a webhook call, this field is set to the
3651
+ # value of the `source` field returned in the webhook response.
3652
+ # Corresponds to the JSON property `webhookSource`
3653
+ # @return [String]
3654
+ attr_accessor :webhook_source
3655
+
3656
+ def initialize(**args)
3657
+ update!(**args)
3658
+ end
3659
+
3660
+ # Update properties of this object
3661
+ def update!(**args)
3662
+ @action = args[:action] if args.key?(:action)
3663
+ @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
3664
+ @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
3665
+ @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
3666
+ @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
3667
+ @intent = args[:intent] if args.key?(:intent)
3668
+ @intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence)
3669
+ @language_code = args[:language_code] if args.key?(:language_code)
3670
+ @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
3671
+ @parameters = args[:parameters] if args.key?(:parameters)
3672
+ @query_text = args[:query_text] if args.key?(:query_text)
3673
+ @speech_recognition_confidence = args[:speech_recognition_confidence] if args.key?(:speech_recognition_confidence)
3674
+ @webhook_payload = args[:webhook_payload] if args.key?(:webhook_payload)
3675
+ @webhook_source = args[:webhook_source] if args.key?(:webhook_source)
3676
+ end
3677
+ end
3678
+
3679
+ # The request message for a webhook call.
3680
+ class GoogleCloudDialogflowV2beta1WebhookRequest
3681
+ include Google::Apis::Core::Hashable
3682
+
3683
+ # Represents the contents of the original request that was passed to
3684
+ # the `[Streaming]DetectIntent` call.
3685
+ # Corresponds to the JSON property `originalDetectIntentRequest`
3686
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest]
3687
+ attr_accessor :original_detect_intent_request
3688
+
3689
+ # Represents the result of conversational query or event processing.
3690
+ # Corresponds to the JSON property `queryResult`
3691
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult]
3692
+ attr_accessor :query_result
3693
+
3694
+ # The unique identifier of the response. Contains the same value as
3695
+ # `[Streaming]DetectIntentResponse.response_id`.
3696
+ # Corresponds to the JSON property `responseId`
3697
+ # @return [String]
3698
+ attr_accessor :response_id
3699
+
3700
+ # The unique identifier of detectIntent request session.
3701
+ # Can be used to identify end-user inside webhook implementation.
3702
+ # Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
3703
+ # Corresponds to the JSON property `session`
3704
+ # @return [String]
3705
+ attr_accessor :session
3706
+
3707
+ def initialize(**args)
3708
+ update!(**args)
3709
+ end
3710
+
3711
+ # Update properties of this object
3712
+ def update!(**args)
3713
+ @original_detect_intent_request = args[:original_detect_intent_request] if args.key?(:original_detect_intent_request)
3714
+ @query_result = args[:query_result] if args.key?(:query_result)
3715
+ @response_id = args[:response_id] if args.key?(:response_id)
3716
+ @session = args[:session] if args.key?(:session)
3717
+ end
3718
+ end
3719
+
3720
+ # The response message for a webhook call.
3721
+ class GoogleCloudDialogflowV2beta1WebhookResponse
3722
+ include Google::Apis::Core::Hashable
3723
+
3724
+ # Events allow for matching intents by event name instead of the natural
3725
+ # language input. For instance, input `<event: ` name: “welcome_event”,
3726
+ # parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
3727
+ # The parameter `name` may be used by the agent in the response:
3728
+ # `“Hello #welcome_event.name! What can I do for you today?”`.
3729
+ # Corresponds to the JSON property `followupEventInput`
3730
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EventInput]
3731
+ attr_accessor :followup_event_input
3732
+
3733
+ # Optional. The collection of rich messages to present to the user. This
3734
+ # value is passed directly to `QueryResult.fulfillment_messages`.
3735
+ # Corresponds to the JSON property `fulfillmentMessages`
3736
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage>]
3737
+ attr_accessor :fulfillment_messages
3738
+
3739
+ # Optional. The text to be shown on the screen. This value is passed directly
3740
+ # to `QueryResult.fulfillment_text`.
3741
+ # Corresponds to the JSON property `fulfillmentText`
3742
+ # @return [String]
3743
+ attr_accessor :fulfillment_text
3744
+
3745
+ # Optional. The collection of output contexts. This value is passed directly
3746
+ # to `QueryResult.output_contexts`.
3747
+ # Corresponds to the JSON property `outputContexts`
3748
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context>]
3749
+ attr_accessor :output_contexts
3750
+
3751
+ # Optional. This value is passed directly to `QueryResult.webhook_payload`.
3752
+ # Corresponds to the JSON property `payload`
3753
+ # @return [Hash<String,Object>]
3754
+ attr_accessor :payload
3755
+
3756
+ # Optional. This value is passed directly to `QueryResult.webhook_source`.
3757
+ # Corresponds to the JSON property `source`
3758
+ # @return [String]
3759
+ attr_accessor :source
3760
+
3761
+ def initialize(**args)
3762
+ update!(**args)
3763
+ end
3764
+
3765
+ # Update properties of this object
3766
+ def update!(**args)
3767
+ @followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input)
3768
+ @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
3769
+ @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
3770
+ @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
3771
+ @payload = args[:payload] if args.key?(:payload)
3772
+ @source = args[:source] if args.key?(:source)
3773
+ end
3774
+ end
3775
+
3776
+ # This resource represents a long-running operation that is the result of a
3777
+ # network API call.
3778
+ class GoogleLongrunningOperation
3779
+ include Google::Apis::Core::Hashable
3780
+
3781
+ # If the value is `false`, it means the operation is still in progress.
3782
+ # If `true`, the operation is completed, and either `error` or `response` is
3783
+ # available.
3784
+ # Corresponds to the JSON property `done`
3785
+ # @return [Boolean]
3786
+ attr_accessor :done
3787
+ alias_method :done?, :done
3788
+
3789
+ # The `Status` type defines a logical error model that is suitable for different
3790
+ # programming environments, including REST APIs and RPC APIs. It is used by
3791
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
3792
+ # - Simple to use and understand for most users
3793
+ # - Flexible enough to meet unexpected needs
3794
+ # # Overview
3795
+ # The `Status` message contains three pieces of data: error code, error message,
3796
+ # and error details. The error code should be an enum value of
3797
+ # google.rpc.Code, but it may accept additional error codes if needed. The
3798
+ # error message should be a developer-facing English message that helps
3799
+ # developers *understand* and *resolve* the error. If a localized user-facing
3800
+ # error message is needed, put the localized message in the error details or
3801
+ # localize it in the client. The optional error details may contain arbitrary
3802
+ # information about the error. There is a predefined set of error detail types
3803
+ # in the package `google.rpc` that can be used for common error conditions.
3804
+ # # Language mapping
3805
+ # The `Status` message is the logical representation of the error model, but it
3806
+ # is not necessarily the actual wire format. When the `Status` message is
3807
+ # exposed in different client libraries and different wire protocols, it can be
3808
+ # mapped differently. For example, it will likely be mapped to some exceptions
3809
+ # in Java, but more likely mapped to some error codes in C.
3810
+ # # Other uses
3811
+ # The error model and the `Status` message can be used in a variety of
3812
+ # environments, either with or without APIs, to provide a
3813
+ # consistent developer experience across different environments.
3814
+ # Example uses of this error model include:
3815
+ # - Partial errors. If a service needs to return partial errors to the client,
3816
+ # it may embed the `Status` in the normal response to indicate the partial
3817
+ # errors.
3818
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
3819
+ # have a `Status` message for error reporting.
3820
+ # - Batch operations. If a client uses batch request and batch response, the
3821
+ # `Status` message should be used directly inside batch response, one for
3822
+ # each error sub-response.
3823
+ # - Asynchronous operations. If an API call embeds asynchronous operation
3824
+ # results in its response, the status of those operations should be
3825
+ # represented directly using the `Status` message.
3826
+ # - Logging. If some API errors are stored in logs, the message `Status` could
3827
+ # be used directly after any stripping needed for security/privacy reasons.
3828
+ # Corresponds to the JSON property `error`
3829
+ # @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
3830
+ attr_accessor :error
3831
+
3832
+ # Service-specific metadata associated with the operation. It typically
3833
+ # contains progress information and common metadata such as create time.
3834
+ # Some services might not provide such metadata. Any method that returns a
3835
+ # long-running operation should document the metadata type, if any.
3836
+ # Corresponds to the JSON property `metadata`
3837
+ # @return [Hash<String,Object>]
3838
+ attr_accessor :metadata
3839
+
3840
+ # The server-assigned name, which is only unique within the same service that
3841
+ # originally returns it. If you use the default HTTP mapping, the
3842
+ # `name` should have the format of `operations/some/unique/name`.
3843
+ # Corresponds to the JSON property `name`
3844
+ # @return [String]
3845
+ attr_accessor :name
3846
+
3847
+ # The normal response of the operation in case of success. If the original
3848
+ # method returns no data on success, such as `Delete`, the response is
3849
+ # `google.protobuf.Empty`. If the original method is standard
3850
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
3851
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
3852
+ # is the original method name. For example, if the original method name
3853
+ # is `TakeSnapshot()`, the inferred response type is
3854
+ # `TakeSnapshotResponse`.
3855
+ # Corresponds to the JSON property `response`
3856
+ # @return [Hash<String,Object>]
3857
+ attr_accessor :response
3858
+
3859
+ def initialize(**args)
3860
+ update!(**args)
3861
+ end
3862
+
3863
+ # Update properties of this object
3864
+ def update!(**args)
3865
+ @done = args[:done] if args.key?(:done)
3866
+ @error = args[:error] if args.key?(:error)
3867
+ @metadata = args[:metadata] if args.key?(:metadata)
3868
+ @name = args[:name] if args.key?(:name)
3869
+ @response = args[:response] if args.key?(:response)
3870
+ end
3871
+ end
3872
+
3873
+ # A generic empty message that you can re-use to avoid defining duplicated
3874
+ # empty messages in your APIs. A typical example is to use it as the request
3875
+ # or the response type of an API method. For instance:
3876
+ # service Foo `
3877
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
3878
+ # `
3879
+ # The JSON representation for `Empty` is empty JSON object ````.
3880
+ class GoogleProtobufEmpty
3881
+ include Google::Apis::Core::Hashable
3882
+
3883
+ def initialize(**args)
3884
+ update!(**args)
3885
+ end
3886
+
3887
+ # Update properties of this object
3888
+ def update!(**args)
3889
+ end
3890
+ end
3891
+
3892
+ # The `Status` type defines a logical error model that is suitable for different
3893
+ # programming environments, including REST APIs and RPC APIs. It is used by
3894
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
3895
+ # - Simple to use and understand for most users
3896
+ # - Flexible enough to meet unexpected needs
3897
+ # # Overview
3898
+ # The `Status` message contains three pieces of data: error code, error message,
3899
+ # and error details. The error code should be an enum value of
3900
+ # google.rpc.Code, but it may accept additional error codes if needed. The
3901
+ # error message should be a developer-facing English message that helps
3902
+ # developers *understand* and *resolve* the error. If a localized user-facing
3903
+ # error message is needed, put the localized message in the error details or
3904
+ # localize it in the client. The optional error details may contain arbitrary
3905
+ # information about the error. There is a predefined set of error detail types
3906
+ # in the package `google.rpc` that can be used for common error conditions.
3907
+ # # Language mapping
3908
+ # The `Status` message is the logical representation of the error model, but it
3909
+ # is not necessarily the actual wire format. When the `Status` message is
3910
+ # exposed in different client libraries and different wire protocols, it can be
3911
+ # mapped differently. For example, it will likely be mapped to some exceptions
3912
+ # in Java, but more likely mapped to some error codes in C.
3913
+ # # Other uses
3914
+ # The error model and the `Status` message can be used in a variety of
3915
+ # environments, either with or without APIs, to provide a
3916
+ # consistent developer experience across different environments.
3917
+ # Example uses of this error model include:
3918
+ # - Partial errors. If a service needs to return partial errors to the client,
3919
+ # it may embed the `Status` in the normal response to indicate the partial
3920
+ # errors.
3921
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
3922
+ # have a `Status` message for error reporting.
3923
+ # - Batch operations. If a client uses batch request and batch response, the
3924
+ # `Status` message should be used directly inside batch response, one for
3925
+ # each error sub-response.
3926
+ # - Asynchronous operations. If an API call embeds asynchronous operation
3927
+ # results in its response, the status of those operations should be
3928
+ # represented directly using the `Status` message.
3929
+ # - Logging. If some API errors are stored in logs, the message `Status` could
3930
+ # be used directly after any stripping needed for security/privacy reasons.
3931
+ class GoogleRpcStatus
3932
+ include Google::Apis::Core::Hashable
3933
+
3934
+ # The status code, which should be an enum value of google.rpc.Code.
3935
+ # Corresponds to the JSON property `code`
3936
+ # @return [Fixnum]
3937
+ attr_accessor :code
3938
+
3939
+ # A list of messages that carry the error details. There is a common set of
3940
+ # message types for APIs to use.
3941
+ # Corresponds to the JSON property `details`
3942
+ # @return [Array<Hash<String,Object>>]
3943
+ attr_accessor :details
3944
+
3945
+ # A developer-facing error message, which should be in English. Any
3946
+ # user-facing error message should be localized and sent in the
3947
+ # google.rpc.Status.details field, or localized by the client.
3948
+ # Corresponds to the JSON property `message`
3949
+ # @return [String]
3950
+ attr_accessor :message
3951
+
3952
+ def initialize(**args)
3953
+ update!(**args)
3954
+ end
3955
+
3956
+ # Update properties of this object
3957
+ def update!(**args)
3958
+ @code = args[:code] if args.key?(:code)
3959
+ @details = args[:details] if args.key?(:details)
3960
+ @message = args[:message] if args.key?(:message)
3961
+ end
3962
+ end
3963
+
3964
+ # An object representing a latitude/longitude pair. This is expressed as a pair
3965
+ # of doubles representing degrees latitude and degrees longitude. Unless
3966
+ # specified otherwise, this must conform to the
3967
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
3968
+ # standard</a>. Values must be within normalized ranges.
3969
+ class GoogleTypeLatLng
3970
+ include Google::Apis::Core::Hashable
3971
+
3972
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
3973
+ # Corresponds to the JSON property `latitude`
3974
+ # @return [Float]
3975
+ attr_accessor :latitude
3976
+
3977
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
3978
+ # Corresponds to the JSON property `longitude`
3979
+ # @return [Float]
3980
+ attr_accessor :longitude
3981
+
3982
+ def initialize(**args)
3983
+ update!(**args)
3984
+ end
3985
+
3986
+ # Update properties of this object
3987
+ def update!(**args)
3988
+ @latitude = args[:latitude] if args.key?(:latitude)
3989
+ @longitude = args[:longitude] if args.key?(:longitude)
3990
+ end
3991
+ end
3992
+ end
3993
+ end
3994
+ end