google-api-client 0.41.1 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (571) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +352 -0
  3. data/bin/generate-api +1 -3
  4. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
  5. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +8 -13
  6. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -3
  7. data/generated/google/apis/accessapproval_v1.rb +1 -1
  8. data/generated/google/apis/accessapproval_v1/classes.rb +9 -0
  9. data/generated/google/apis/accessapproval_v1/representations.rb +1 -0
  10. data/generated/google/apis/accessapproval_v1/service.rb +3 -0
  11. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  12. data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +523 -653
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +467 -631
  16. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  17. data/generated/google/apis/adexperiencereport_v1/classes.rb +11 -18
  18. data/generated/google/apis/adexperiencereport_v1/service.rb +2 -3
  19. data/generated/google/apis/admob_v1.rb +1 -1
  20. data/generated/google/apis/admob_v1/classes.rb +139 -268
  21. data/generated/google/apis/admob_v1/service.rb +11 -13
  22. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  23. data/generated/google/apis/alertcenter_v1beta1/classes.rb +107 -138
  24. data/generated/google/apis/alertcenter_v1beta1/service.rb +50 -55
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/analyticsreporting_v4/classes.rb +315 -399
  27. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  28. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +199 -220
  29. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +55 -61
  30. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  31. data/generated/google/apis/androidenterprise_v1/classes.rb +452 -557
  32. data/generated/google/apis/androidenterprise_v1/service.rb +181 -240
  33. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  34. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  35. data/generated/google/apis/androidpublisher_v3/classes.rb +356 -339
  36. data/generated/google/apis/androidpublisher_v3/representations.rb +44 -0
  37. data/generated/google/apis/androidpublisher_v3/service.rb +272 -152
  38. data/generated/google/apis/apigee_v1.rb +6 -7
  39. data/generated/google/apis/apigee_v1/classes.rb +1898 -1067
  40. data/generated/google/apis/apigee_v1/representations.rb +542 -0
  41. data/generated/google/apis/apigee_v1/service.rb +1895 -1090
  42. data/generated/google/apis/appengine_v1.rb +1 -1
  43. data/generated/google/apis/appengine_v1/service.rb +6 -3
  44. data/generated/google/apis/appengine_v1beta.rb +1 -1
  45. data/generated/google/apis/appengine_v1beta/service.rb +6 -2
  46. data/generated/google/apis/appsmarket_v2.rb +1 -1
  47. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +198 -3
  50. data/generated/google/apis/bigquery_v2/representations.rb +70 -0
  51. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  52. data/generated/google/apis/bigqueryreservation_v1/classes.rb +34 -0
  53. data/generated/google/apis/bigqueryreservation_v1/representations.rb +16 -0
  54. data/generated/google/apis/bigqueryreservation_v1/service.rb +60 -0
  55. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  56. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +8 -0
  57. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
  58. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  59. data/generated/google/apis/bigtableadmin_v1/classes.rb +267 -0
  60. data/generated/google/apis/bigtableadmin_v1/representations.rb +100 -0
  61. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  62. data/generated/google/apis/bigtableadmin_v2/classes.rb +361 -6
  63. data/generated/google/apis/bigtableadmin_v2/representations.rb +146 -0
  64. data/generated/google/apis/bigtableadmin_v2/service.rb +298 -0
  65. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  66. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +103 -109
  67. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  68. data/generated/google/apis/billingbudgets_v1beta1/service.rb +30 -33
  69. data/generated/google/apis/blogger_v2.rb +2 -3
  70. data/generated/google/apis/blogger_v2/classes.rb +1 -2
  71. data/generated/google/apis/blogger_v2/service.rb +1 -2
  72. data/generated/google/apis/blogger_v3.rb +2 -3
  73. data/generated/google/apis/blogger_v3/classes.rb +1 -2
  74. data/generated/google/apis/blogger_v3/service.rb +1 -2
  75. data/generated/google/apis/books_v1.rb +1 -1
  76. data/generated/google/apis/books_v1/classes.rb +140 -159
  77. data/generated/google/apis/books_v1/service.rb +47 -49
  78. data/generated/google/apis/chat_v1.rb +1 -1
  79. data/generated/google/apis/chat_v1/classes.rb +130 -0
  80. data/generated/google/apis/chat_v1/representations.rb +63 -0
  81. data/generated/google/apis/chat_v1/service.rb +71 -0
  82. data/generated/google/apis/chromeuxreport_v1.rb +1 -1
  83. data/generated/google/apis/chromeuxreport_v1/classes.rb +68 -57
  84. data/generated/google/apis/chromeuxreport_v1/representations.rb +2 -0
  85. data/generated/google/apis/civicinfo_v2.rb +1 -1
  86. data/generated/google/apis/civicinfo_v2/classes.rb +9 -1
  87. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  88. data/generated/google/apis/civicinfo_v2/service.rb +1 -1
  89. data/generated/google/apis/classroom_v1.rb +1 -1
  90. data/generated/google/apis/classroom_v1/classes.rb +250 -365
  91. data/generated/google/apis/classroom_v1/service.rb +645 -900
  92. data/generated/google/apis/cloudasset_v1.rb +1 -1
  93. data/generated/google/apis/cloudasset_v1/classes.rb +15 -11
  94. data/generated/google/apis/cloudasset_v1/service.rb +62 -45
  95. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  96. data/generated/google/apis/cloudasset_v1beta1/classes.rb +3 -1
  97. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  98. data/generated/google/apis/{androidpublisher_v1_1.rb → cloudasset_v1p5beta1.rb} +11 -11
  99. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +1539 -0
  100. data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +399 -0
  101. data/generated/google/apis/cloudasset_v1p5beta1/service.rb +129 -0
  102. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  103. data/generated/google/apis/cloudbuild_v1/classes.rb +272 -12
  104. data/generated/google/apis/cloudbuild_v1/representations.rb +130 -4
  105. data/generated/google/apis/cloudbuild_v1/service.rb +0 -94
  106. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  107. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +284 -24
  108. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +135 -9
  109. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -47
  110. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  111. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +284 -24
  112. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +135 -9
  113. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +0 -47
  114. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  115. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +7 -0
  116. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +1 -0
  117. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  118. data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -43
  119. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -17
  120. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  121. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +32 -1
  122. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +16 -0
  123. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  124. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +503 -754
  125. data/generated/google/apis/cloudresourcemanager_v1/service.rb +198 -249
  126. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  127. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +258 -429
  128. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +136 -178
  129. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  130. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +258 -414
  131. data/generated/google/apis/cloudresourcemanager_v2/service.rb +96 -129
  132. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  133. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +258 -414
  134. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +96 -129
  135. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  136. data/generated/google/apis/cloudscheduler_v1/classes.rb +16 -5
  137. data/generated/google/apis/cloudscheduler_v1/representations.rb +1 -0
  138. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  139. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +16 -5
  140. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +1 -0
  141. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  142. data/generated/google/apis/cloudsearch_v1/classes.rb +1 -2
  143. data/generated/google/apis/cloudshell_v1.rb +1 -1
  144. data/generated/google/apis/cloudshell_v1/classes.rb +2 -2
  145. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  146. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -5
  147. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  148. data/generated/google/apis/cloudtrace_v1/classes.rb +2 -3
  149. data/generated/google/apis/cloudtrace_v1/service.rb +1 -7
  150. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  151. data/generated/google/apis/cloudtrace_v2/classes.rb +6 -5
  152. data/generated/google/apis/cloudtrace_v2/service.rb +3 -6
  153. data/generated/google/apis/compute_alpha.rb +1 -1
  154. data/generated/google/apis/compute_alpha/classes.rb +402 -48
  155. data/generated/google/apis/compute_alpha/representations.rb +103 -0
  156. data/generated/google/apis/compute_alpha/service.rb +38 -36
  157. data/generated/google/apis/compute_beta.rb +1 -1
  158. data/generated/google/apis/compute_beta/classes.rb +371 -41
  159. data/generated/google/apis/compute_beta/representations.rb +94 -0
  160. data/generated/google/apis/compute_beta/service.rb +347 -36
  161. data/generated/google/apis/compute_v1.rb +1 -1
  162. data/generated/google/apis/compute_v1/classes.rb +397 -40
  163. data/generated/google/apis/compute_v1/representations.rb +110 -0
  164. data/generated/google/apis/compute_v1/service.rb +341 -48
  165. data/generated/google/apis/container_v1.rb +1 -1
  166. data/generated/google/apis/container_v1/classes.rb +129 -2
  167. data/generated/google/apis/container_v1/representations.rb +51 -0
  168. data/generated/google/apis/container_v1beta1.rb +1 -1
  169. data/generated/google/apis/container_v1beta1/classes.rb +136 -17
  170. data/generated/google/apis/container_v1beta1/representations.rb +39 -0
  171. data/generated/google/apis/content_v2.rb +1 -1
  172. data/generated/google/apis/content_v2/classes.rb +17 -2
  173. data/generated/google/apis/content_v2/representations.rb +1 -0
  174. data/generated/google/apis/content_v2_1.rb +1 -1
  175. data/generated/google/apis/content_v2_1/classes.rb +19 -4
  176. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  177. data/generated/google/apis/{androidpublisher_v1.rb → customsearch_v1.rb} +8 -8
  178. data/generated/google/apis/customsearch_v1/classes.rb +1421 -0
  179. data/generated/google/apis/customsearch_v1/representations.rb +372 -0
  180. data/generated/google/apis/customsearch_v1/service.rb +461 -0
  181. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  182. data/generated/google/apis/datacatalog_v1beta1/classes.rb +6 -3
  183. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  184. data/generated/google/apis/dataflow_v1b3/classes.rb +21 -1
  185. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  186. data/generated/google/apis/dataflow_v1b3/service.rb +2 -2
  187. data/generated/google/apis/datafusion_v1.rb +43 -0
  188. data/generated/google/apis/datafusion_v1/classes.rb +1154 -0
  189. data/generated/google/apis/{cloudfunctions_v1beta2 → datafusion_v1}/representations.rb +138 -93
  190. data/generated/google/apis/datafusion_v1/service.rb +680 -0
  191. data/generated/google/apis/dataproc_v1.rb +1 -1
  192. data/generated/google/apis/dataproc_v1/classes.rb +207 -330
  193. data/generated/google/apis/dataproc_v1/service.rb +134 -168
  194. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  195. data/generated/google/apis/dataproc_v1beta2/classes.rb +236 -325
  196. data/generated/google/apis/dataproc_v1beta2/representations.rb +4 -0
  197. data/generated/google/apis/dataproc_v1beta2/service.rb +137 -192
  198. data/generated/google/apis/datastore_v1.rb +1 -1
  199. data/generated/google/apis/datastore_v1/classes.rb +1 -1
  200. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  201. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  202. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  203. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  204. data/generated/google/apis/dfareporting_v3_4/classes.rb +421 -0
  205. data/generated/google/apis/dfareporting_v3_4/representations.rb +182 -0
  206. data/generated/google/apis/dialogflow_v2.rb +1 -1
  207. data/generated/google/apis/dialogflow_v2/classes.rb +1341 -1513
  208. data/generated/google/apis/dialogflow_v2/representations.rb +31 -0
  209. data/generated/google/apis/dialogflow_v2/service.rb +324 -444
  210. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  211. data/generated/google/apis/dialogflow_v2beta1/classes.rb +1419 -1591
  212. data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
  213. data/generated/google/apis/dialogflow_v2beta1/service.rb +780 -1022
  214. data/generated/google/apis/displayvideo_v1.rb +7 -1
  215. data/generated/google/apis/displayvideo_v1/classes.rb +1776 -1728
  216. data/generated/google/apis/displayvideo_v1/representations.rb +300 -0
  217. data/generated/google/apis/displayvideo_v1/service.rb +1277 -929
  218. data/generated/google/apis/dlp_v2.rb +1 -1
  219. data/generated/google/apis/dlp_v2/classes.rb +10 -6
  220. data/generated/google/apis/dns_v1.rb +4 -4
  221. data/generated/google/apis/dns_v1/classes.rb +313 -162
  222. data/generated/google/apis/dns_v1/service.rb +247 -180
  223. data/generated/google/apis/dns_v1beta2.rb +4 -4
  224. data/generated/google/apis/dns_v1beta2/classes.rb +325 -171
  225. data/generated/google/apis/dns_v1beta2/service.rb +247 -180
  226. data/generated/google/apis/dns_v2beta1.rb +4 -4
  227. data/generated/google/apis/dns_v2beta1/classes.rb +313 -162
  228. data/generated/google/apis/dns_v2beta1/service.rb +247 -180
  229. data/generated/google/apis/domainsrdap_v1.rb +1 -1
  230. data/generated/google/apis/domainsrdap_v1/classes.rb +42 -69
  231. data/generated/google/apis/domainsrdap_v1/service.rb +16 -16
  232. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  233. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  234. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +4 -2
  235. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  236. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +196 -1
  237. data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +107 -0
  238. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +4 -2
  239. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  240. data/generated/google/apis/doubleclicksearch_v2/classes.rb +109 -126
  241. data/generated/google/apis/doubleclicksearch_v2/service.rb +3 -4
  242. data/generated/google/apis/drive_v2.rb +1 -1
  243. data/generated/google/apis/drive_v2/classes.rb +77 -2
  244. data/generated/google/apis/drive_v2/representations.rb +23 -0
  245. data/generated/google/apis/drive_v2/service.rb +23 -10
  246. data/generated/google/apis/drive_v3.rb +1 -1
  247. data/generated/google/apis/drive_v3/classes.rb +82 -2
  248. data/generated/google/apis/drive_v3/representations.rb +24 -0
  249. data/generated/google/apis/drive_v3/service.rb +8 -5
  250. data/generated/google/apis/driveactivity_v2.rb +1 -1
  251. data/generated/google/apis/driveactivity_v2/classes.rb +55 -68
  252. data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
  253. data/generated/google/apis/factchecktools_v1alpha1/classes.rb +46 -56
  254. data/generated/google/apis/factchecktools_v1alpha1/service.rb +30 -33
  255. data/generated/google/apis/fcm_v1.rb +1 -1
  256. data/generated/google/apis/fcm_v1/classes.rb +245 -393
  257. data/generated/google/apis/fcm_v1/service.rb +5 -6
  258. data/generated/google/apis/file_v1.rb +1 -1
  259. data/generated/google/apis/file_v1beta1.rb +1 -1
  260. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  261. data/generated/google/apis/firebase_v1beta1/classes.rb +313 -351
  262. data/generated/google/apis/firebase_v1beta1/representations.rb +1 -0
  263. data/generated/google/apis/firebase_v1beta1/service.rb +356 -420
  264. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  265. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +89 -112
  266. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +18 -21
  267. data/generated/google/apis/{androidpublisher_v2.rb → firebasehosting_v1.rb} +11 -12
  268. data/generated/google/apis/firebasehosting_v1/classes.rb +182 -0
  269. data/generated/google/apis/{androidpublisher_v2 → firebasehosting_v1}/representations.rb +22 -32
  270. data/generated/google/apis/firebasehosting_v1/service.rb +180 -0
  271. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  272. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +148 -177
  273. data/generated/google/apis/firebasehosting_v1beta1/service.rb +112 -143
  274. data/generated/google/apis/firebaseml_v1.rb +1 -1
  275. data/generated/google/apis/firebaseml_v1/classes.rb +39 -44
  276. data/generated/google/apis/firebaseml_v1/service.rb +19 -22
  277. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  278. data/generated/google/apis/firebaseml_v1beta2/classes.rb +67 -68
  279. data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -0
  280. data/generated/google/apis/firebaseml_v1beta2/service.rb +16 -18
  281. data/generated/google/apis/firestore_v1.rb +1 -1
  282. data/generated/google/apis/firestore_v1/classes.rb +152 -0
  283. data/generated/google/apis/firestore_v1/representations.rb +63 -0
  284. data/generated/google/apis/firestore_v1/service.rb +78 -0
  285. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  286. data/generated/google/apis/firestore_v1beta1/classes.rb +152 -0
  287. data/generated/google/apis/firestore_v1beta1/representations.rb +63 -0
  288. data/generated/google/apis/firestore_v1beta1/service.rb +78 -0
  289. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  290. data/generated/google/apis/games_configuration_v1configuration/service.rb +2 -2
  291. data/generated/google/apis/games_management_v1management.rb +1 -1
  292. data/generated/google/apis/games_management_v1management/service.rb +2 -2
  293. data/generated/google/apis/games_v1.rb +6 -4
  294. data/generated/google/apis/games_v1/classes.rb +354 -2112
  295. data/generated/google/apis/games_v1/representations.rb +12 -647
  296. data/generated/google/apis/games_v1/service.rb +213 -1155
  297. data/generated/google/apis/{cloudfunctions_v1beta2.rb → gameservices_v1.rb} +9 -9
  298. data/generated/google/apis/gameservices_v1/classes.rb +2175 -0
  299. data/generated/google/apis/gameservices_v1/representations.rb +971 -0
  300. data/generated/google/apis/gameservices_v1/service.rb +1432 -0
  301. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  302. data/generated/google/apis/gameservices_v1beta/classes.rb +344 -523
  303. data/generated/google/apis/gameservices_v1beta/service.rb +167 -207
  304. data/generated/google/apis/genomics_v1.rb +1 -1
  305. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  306. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  307. data/generated/google/apis/genomics_v2alpha1/classes.rb +3 -75
  308. data/generated/google/apis/genomics_v2alpha1/representations.rb +0 -27
  309. data/generated/google/apis/genomics_v2alpha1/service.rb +0 -34
  310. data/generated/google/apis/gmail_v1.rb +3 -3
  311. data/generated/google/apis/gmail_v1/classes.rb +216 -269
  312. data/generated/google/apis/gmail_v1/service.rb +260 -288
  313. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +36 -0
  314. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +301 -0
  315. data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +141 -0
  316. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +230 -0
  317. data/generated/google/apis/groupssettings_v1.rb +1 -1
  318. data/generated/google/apis/groupssettings_v1/classes.rb +1 -1
  319. data/generated/google/apis/healthcare_v1.rb +1 -1
  320. data/generated/google/apis/healthcare_v1/service.rb +72 -13
  321. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  322. data/generated/google/apis/healthcare_v1beta1/classes.rb +85 -17
  323. data/generated/google/apis/healthcare_v1beta1/representations.rb +39 -0
  324. data/generated/google/apis/healthcare_v1beta1/service.rb +146 -16
  325. data/generated/google/apis/iam_v1.rb +1 -1
  326. data/generated/google/apis/iam_v1/classes.rb +22 -3
  327. data/generated/google/apis/iam_v1/service.rb +18 -6
  328. data/generated/google/apis/language_v1.rb +1 -1
  329. data/generated/google/apis/language_v1/classes.rb +93 -111
  330. data/generated/google/apis/language_v1/service.rb +4 -4
  331. data/generated/google/apis/language_v1beta1.rb +1 -1
  332. data/generated/google/apis/language_v1beta1/classes.rb +78 -90
  333. data/generated/google/apis/language_v1beta1/service.rb +2 -2
  334. data/generated/google/apis/language_v1beta2.rb +1 -1
  335. data/generated/google/apis/language_v1beta2/classes.rb +95 -112
  336. data/generated/google/apis/language_v1beta2/service.rb +4 -4
  337. data/generated/google/apis/libraryagent_v1.rb +1 -1
  338. data/generated/google/apis/libraryagent_v1/classes.rb +10 -16
  339. data/generated/google/apis/libraryagent_v1/service.rb +13 -16
  340. data/generated/google/apis/logging_v2.rb +1 -1
  341. data/generated/google/apis/logging_v2/classes.rb +6 -6
  342. data/generated/google/apis/managedidentities_v1.rb +1 -1
  343. data/generated/google/apis/managedidentities_v1/classes.rb +355 -437
  344. data/generated/google/apis/managedidentities_v1/representations.rb +15 -0
  345. data/generated/google/apis/managedidentities_v1/service.rb +78 -96
  346. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  347. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +365 -442
  348. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +15 -0
  349. data/generated/google/apis/managedidentities_v1alpha1/service.rb +88 -109
  350. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  351. data/generated/google/apis/managedidentities_v1beta1/classes.rb +361 -441
  352. data/generated/google/apis/managedidentities_v1beta1/representations.rb +15 -0
  353. data/generated/google/apis/managedidentities_v1beta1/service.rb +76 -93
  354. data/generated/google/apis/{groupsmigration_v1.rb → memcache_v1.rb} +11 -11
  355. data/generated/google/apis/memcache_v1/classes.rb +1157 -0
  356. data/generated/google/apis/memcache_v1/representations.rb +471 -0
  357. data/generated/google/apis/{cloudfunctions_v1beta2 → memcache_v1}/service.rb +268 -196
  358. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  359. data/generated/google/apis/memcache_v1beta2/classes.rb +42 -503
  360. data/generated/google/apis/memcache_v1beta2/representations.rb +9 -110
  361. data/generated/google/apis/memcache_v1beta2/service.rb +0 -119
  362. data/generated/google/apis/ml_v1.rb +1 -1
  363. data/generated/google/apis/ml_v1/classes.rb +23 -17
  364. data/generated/google/apis/monitoring_v1.rb +1 -1
  365. data/generated/google/apis/monitoring_v1/classes.rb +14 -12
  366. data/generated/google/apis/monitoring_v3.rb +1 -1
  367. data/generated/google/apis/monitoring_v3/classes.rb +97 -47
  368. data/generated/google/apis/monitoring_v3/representations.rb +3 -0
  369. data/generated/google/apis/monitoring_v3/service.rb +13 -9
  370. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  371. data/generated/google/apis/networkmanagement_v1/classes.rb +6 -6
  372. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  373. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +6 -6
  374. data/generated/google/apis/osconfig_v1.rb +1 -1
  375. data/generated/google/apis/osconfig_v1/classes.rb +798 -2
  376. data/generated/google/apis/osconfig_v1/representations.rb +372 -0
  377. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  378. data/generated/google/apis/osconfig_v1beta/classes.rb +77 -2
  379. data/generated/google/apis/osconfig_v1beta/representations.rb +35 -0
  380. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  381. data/generated/google/apis/people_v1.rb +1 -1
  382. data/generated/google/apis/people_v1/classes.rb +382 -401
  383. data/generated/google/apis/people_v1/representations.rb +57 -0
  384. data/generated/google/apis/people_v1/service.rb +169 -385
  385. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  386. data/generated/google/apis/playcustomapp_v1/classes.rb +2 -2
  387. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  388. data/generated/google/apis/policytroubleshooter_v1/classes.rb +232 -394
  389. data/generated/google/apis/policytroubleshooter_v1/service.rb +2 -2
  390. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  391. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +232 -393
  392. data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -2
  393. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  394. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +122 -146
  395. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +38 -49
  396. data/generated/google/apis/pubsub_v1.rb +1 -1
  397. data/generated/google/apis/pubsub_v1/classes.rb +45 -28
  398. data/generated/google/apis/pubsub_v1/representations.rb +2 -0
  399. data/generated/google/apis/pubsub_v1/service.rb +35 -44
  400. data/generated/google/apis/realtimebidding_v1.rb +1 -4
  401. data/generated/google/apis/realtimebidding_v1/classes.rb +198 -291
  402. data/generated/google/apis/realtimebidding_v1/service.rb +98 -135
  403. data/generated/google/apis/recommendationengine_v1beta1.rb +36 -0
  404. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +2017 -0
  405. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +848 -0
  406. data/generated/google/apis/recommendationengine_v1beta1/service.rb +990 -0
  407. data/generated/google/apis/recommender_v1.rb +1 -1
  408. data/generated/google/apis/recommender_v1/classes.rb +271 -84
  409. data/generated/google/apis/recommender_v1/representations.rb +96 -0
  410. data/generated/google/apis/recommender_v1/service.rb +143 -35
  411. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  412. data/generated/google/apis/recommender_v1beta1/classes.rb +75 -99
  413. data/generated/google/apis/recommender_v1beta1/service.rb +43 -58
  414. data/generated/google/apis/redis_v1.rb +1 -1
  415. data/generated/google/apis/redis_v1/classes.rb +397 -0
  416. data/generated/google/apis/redis_v1/representations.rb +139 -0
  417. data/generated/google/apis/redis_v1beta1.rb +1 -1
  418. data/generated/google/apis/redis_v1beta1/classes.rb +397 -0
  419. data/generated/google/apis/redis_v1beta1/representations.rb +139 -0
  420. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  421. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  422. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  423. data/generated/google/apis/reseller_v1.rb +4 -3
  424. data/generated/google/apis/reseller_v1/classes.rb +219 -160
  425. data/generated/google/apis/reseller_v1/service.rb +247 -252
  426. data/generated/google/apis/run_v1.rb +1 -1
  427. data/generated/google/apis/run_v1/classes.rb +835 -1248
  428. data/generated/google/apis/run_v1/service.rb +233 -247
  429. data/generated/google/apis/run_v1alpha1.rb +1 -1
  430. data/generated/google/apis/run_v1alpha1/classes.rb +934 -1331
  431. data/generated/google/apis/run_v1alpha1/service.rb +321 -377
  432. data/generated/google/apis/run_v1beta1.rb +1 -1
  433. data/generated/google/apis/run_v1beta1/classes.rb +209 -276
  434. data/generated/google/apis/run_v1beta1/service.rb +16 -18
  435. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  436. data/generated/google/apis/runtimeconfig_v1/classes.rb +36 -40
  437. data/generated/google/apis/runtimeconfig_v1/service.rb +19 -22
  438. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  439. data/generated/google/apis/sasportal_v1alpha1/classes.rb +122 -146
  440. data/generated/google/apis/sasportal_v1alpha1/service.rb +38 -49
  441. data/generated/google/apis/searchconsole_v1.rb +4 -3
  442. data/generated/google/apis/searchconsole_v1/classes.rb +2 -2
  443. data/generated/google/apis/searchconsole_v1/service.rb +3 -2
  444. data/generated/google/apis/securitycenter_v1.rb +1 -1
  445. data/generated/google/apis/securitycenter_v1/classes.rb +574 -826
  446. data/generated/google/apis/securitycenter_v1/service.rb +250 -332
  447. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  448. data/generated/google/apis/securitycenter_v1beta1/classes.rb +521 -746
  449. data/generated/google/apis/securitycenter_v1beta1/service.rb +160 -202
  450. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  451. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +176 -208
  452. data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +21 -25
  453. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  454. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +545 -791
  455. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +247 -330
  456. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  457. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1150 -1784
  458. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +114 -141
  459. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  460. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +1137 -1774
  461. data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +52 -66
  462. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  463. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -6
  464. data/generated/google/apis/servicecontrol_v2.rb +38 -0
  465. data/generated/google/apis/servicecontrol_v2/classes.rb +1121 -0
  466. data/generated/google/apis/servicecontrol_v2/representations.rb +405 -0
  467. data/generated/google/apis/servicecontrol_v2/service.rb +165 -0
  468. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  469. data/generated/google/apis/servicemanagement_v1/classes.rb +50 -2
  470. data/generated/google/apis/servicemanagement_v1/representations.rb +14 -0
  471. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  472. data/generated/google/apis/servicenetworking_v1/classes.rb +1119 -1758
  473. data/generated/google/apis/servicenetworking_v1/service.rb +94 -114
  474. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  475. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1065 -1684
  476. data/generated/google/apis/servicenetworking_v1beta/service.rb +52 -63
  477. data/generated/google/apis/serviceusage_v1.rb +1 -1
  478. data/generated/google/apis/serviceusage_v1/classes.rb +1140 -1823
  479. data/generated/google/apis/serviceusage_v1/service.rb +63 -80
  480. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  481. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1235 -1986
  482. data/generated/google/apis/serviceusage_v1beta1/service.rb +130 -162
  483. data/generated/google/apis/sheets_v4.rb +1 -1
  484. data/generated/google/apis/sheets_v4/classes.rb +28 -28
  485. data/generated/google/apis/spanner_v1.rb +1 -1
  486. data/generated/google/apis/spanner_v1/classes.rb +3 -2
  487. data/generated/google/apis/spanner_v1/service.rb +5 -0
  488. data/generated/google/apis/sql_v1beta4.rb +1 -1
  489. data/generated/google/apis/sql_v1beta4/classes.rb +207 -200
  490. data/generated/google/apis/sql_v1beta4/representations.rb +2 -1
  491. data/generated/google/apis/sql_v1beta4/service.rb +2 -2
  492. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  493. data/generated/google/apis/storagetransfer_v1/classes.rb +8 -10
  494. data/generated/google/apis/storagetransfer_v1/service.rb +26 -2
  495. data/generated/google/apis/tagmanager_v1.rb +2 -3
  496. data/generated/google/apis/tagmanager_v1/classes.rb +225 -288
  497. data/generated/google/apis/tagmanager_v1/service.rb +20 -21
  498. data/generated/google/apis/tagmanager_v2.rb +2 -3
  499. data/generated/google/apis/tagmanager_v2/classes.rb +240 -280
  500. data/generated/google/apis/tagmanager_v2/representations.rb +1 -0
  501. data/generated/google/apis/tagmanager_v2/service.rb +187 -283
  502. data/generated/google/apis/testing_v1.rb +1 -1
  503. data/generated/google/apis/testing_v1/classes.rb +80 -6
  504. data/generated/google/apis/testing_v1/representations.rb +33 -0
  505. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  506. data/generated/google/apis/toolresults_v1beta3/classes.rb +671 -928
  507. data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
  508. data/generated/google/apis/toolresults_v1beta3/service.rb +522 -640
  509. data/generated/google/apis/tpu_v1.rb +1 -1
  510. data/generated/google/apis/tpu_v1/classes.rb +68 -78
  511. data/generated/google/apis/tpu_v1/service.rb +21 -25
  512. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  513. data/generated/google/apis/tpu_v1alpha1/classes.rb +68 -78
  514. data/generated/google/apis/tpu_v1alpha1/service.rb +21 -25
  515. data/generated/google/apis/translate_v3.rb +1 -1
  516. data/generated/google/apis/translate_v3/service.rb +14 -1
  517. data/generated/google/apis/translate_v3beta1.rb +1 -1
  518. data/generated/google/apis/translate_v3beta1/service.rb +14 -1
  519. data/generated/google/apis/vision_v1.rb +1 -1
  520. data/generated/google/apis/vision_v1/classes.rb +1304 -1868
  521. data/generated/google/apis/vision_v1/service.rb +254 -340
  522. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  523. data/generated/google/apis/vision_v1p1beta1/classes.rb +1246 -1788
  524. data/generated/google/apis/vision_v1p1beta1/service.rb +91 -121
  525. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  526. data/generated/google/apis/vision_v1p2beta1/classes.rb +1246 -1788
  527. data/generated/google/apis/vision_v1p2beta1/service.rb +91 -121
  528. data/generated/google/apis/webfonts_v1.rb +1 -1
  529. data/generated/google/apis/webfonts_v1/service.rb +2 -2
  530. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  531. data/generated/google/apis/websecurityscanner_v1/classes.rb +71 -95
  532. data/generated/google/apis/websecurityscanner_v1/service.rb +46 -65
  533. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  534. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +55 -63
  535. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +46 -65
  536. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  537. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +77 -92
  538. data/generated/google/apis/websecurityscanner_v1beta/service.rb +46 -65
  539. data/generated/google/apis/youtube_analytics_v2.rb +1 -1
  540. data/generated/google/apis/youtube_analytics_v2/classes.rb +77 -104
  541. data/generated/google/apis/youtube_analytics_v2/service.rb +106 -126
  542. data/generated/google/apis/youtube_partner_v1.rb +4 -3
  543. data/generated/google/apis/youtube_partner_v1/classes.rb +1106 -690
  544. data/generated/google/apis/youtube_partner_v1/representations.rb +357 -256
  545. data/generated/google/apis/youtube_partner_v1/service.rb +519 -1079
  546. data/generated/google/apis/youtube_v3.rb +1 -1
  547. data/generated/google/apis/youtube_v3/classes.rb +1456 -1134
  548. data/generated/google/apis/youtube_v3/representations.rb +282 -0
  549. data/generated/google/apis/youtube_v3/service.rb +1225 -1274
  550. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  551. data/generated/google/apis/youtubereporting_v1/classes.rb +20 -29
  552. data/generated/google/apis/youtubereporting_v1/service.rb +40 -43
  553. data/lib/google/apis/core/base_service.rb +7 -1
  554. data/lib/google/apis/version.rb +1 -1
  555. metadata +39 -27
  556. data/generated/google/apis/androidpublisher_v1/classes.rb +0 -26
  557. data/generated/google/apis/androidpublisher_v1/representations.rb +0 -26
  558. data/generated/google/apis/androidpublisher_v1/service.rb +0 -64
  559. data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -94
  560. data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -45
  561. data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -104
  562. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -223
  563. data/generated/google/apis/androidpublisher_v2/service.rb +0 -160
  564. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +0 -841
  565. data/generated/google/apis/fitness_v1.rb +0 -85
  566. data/generated/google/apis/fitness_v1/classes.rb +0 -1020
  567. data/generated/google/apis/fitness_v1/representations.rb +0 -398
  568. data/generated/google/apis/fitness_v1/service.rb +0 -647
  569. data/generated/google/apis/groupsmigration_v1/classes.rb +0 -51
  570. data/generated/google/apis/groupsmigration_v1/representations.rb +0 -40
  571. data/generated/google/apis/groupsmigration_v1/service.rb +0 -100
@@ -52,44 +52,36 @@ module Google
52
52
 
53
53
  # Lists creatives.
54
54
  # @param [String] parent
55
- # Required. Name of the parent buyer that owns the creatives.
56
- # The pattern for this resource is either `buyers/`buyerAccountId`` or
57
- # `bidders/`bidderAccountId``.
58
- # For `buyers/`buyerAccountId``, the `buyerAccountId` can be one of the
59
- # following:
60
- # 1. The ID of the buyer that is accessing their own creatives.
61
- # 2. The ID of the child seat buyer under a bidder account.
62
- # So for listing creatives pertaining to the child seat buyer (`456`)
63
- # under bidder account (`123`), you would use the pattern: `buyers/456`.
64
- # 3. The ID of the bidder itself.
65
- # So for listing creatives pertaining to bidder (`123`),
66
- # you would use `buyers/123`.
67
- # If you want to access all creatives pertaining to both the bidder and all
68
- # of its child seat accounts, you would use `bidders/`bidderAccountId``,
69
- # e.g., for all creatives pertaining to bidder (`123`), use `bidders/123`.
55
+ # Required. Name of the parent buyer that owns the creatives. The pattern for
56
+ # this resource is either `buyers/`buyerAccountId`` or `bidders/`bidderAccountId`
57
+ # `. For `buyers/`buyerAccountId``, the `buyerAccountId` can be one of the
58
+ # following: 1. The ID of the buyer that is accessing their own creatives. 2.
59
+ # The ID of the child seat buyer under a bidder account. So for listing
60
+ # creatives pertaining to the child seat buyer (`456`) under bidder account (`
61
+ # 123`), you would use the pattern: `buyers/456`. 3. The ID of the bidder itself.
62
+ # So for listing creatives pertaining to bidder (`123`), you would use `buyers/
63
+ # 123`. If you want to access all creatives pertaining to both the bidder and
64
+ # all of its child seat accounts, you would use `bidders/`bidderAccountId``, e.g.
65
+ # , for all creatives pertaining to bidder (`123`), use `bidders/123`.
70
66
  # @param [String] filter
71
- # Query string to filter creatives. If no filter is specified,
72
- # all active creatives will be returned.
73
- # Example: 'accountId=12345 AND (dealsStatus:DISAPPROVED AND
74
- # disapprovalReason:UNACCEPTABLE_CONTENT) OR
75
- # declaredAttributes:IS_COOKIE_TARGETED'
67
+ # Query string to filter creatives. If no filter is specified, all active
68
+ # creatives will be returned. Example: 'accountId=12345 AND (dealsStatus:
69
+ # DISAPPROVED AND disapprovalReason:UNACCEPTABLE_CONTENT) OR declaredAttributes:
70
+ # IS_COOKIE_TARGETED'
76
71
  # @param [Fixnum] page_size
77
- # Requested page size. The server may return fewer creatives than requested
78
- # (due to timeout constraint) even if more are available via another call.
79
- # If unspecified, server will pick an appropriate default.
80
- # Acceptable values are 1 to 1000, inclusive.
72
+ # Requested page size. The server may return fewer creatives than requested (due
73
+ # to timeout constraint) even if more are available via another call. If
74
+ # unspecified, server will pick an appropriate default. Acceptable values are 1
75
+ # to 1000, inclusive.
81
76
  # @param [String] page_token
82
- # A token identifying a page of results the server should return.
83
- # Typically, this is the value of
84
- # ListCreativesResponse.nextPageToken
85
- # returned from the previous call to the 'ListCreatives' method.
77
+ # A token identifying a page of results the server should return. Typically,
78
+ # this is the value of ListCreativesResponse.nextPageToken returned from the
79
+ # previous call to the 'ListCreatives' method.
86
80
  # @param [String] view
87
- # Controls the amount of information included in the response.
88
- # By default only
89
- # creativeServingDecision
90
- # is included. To retrieve the entire creative
91
- # resource (including the declared
92
- # fields and the creative content) specify the view as "FULL".
81
+ # Controls the amount of information included in the response. By default only
82
+ # creativeServingDecision is included. To retrieve the entire creative resource (
83
+ # including the declared fields and the creative content) specify the view as "
84
+ # FULL".
93
85
  # @param [String] fields
94
86
  # Selector specifying which fields to include in a partial response.
95
87
  # @param [String] quota_user
@@ -121,17 +113,15 @@ module Google
121
113
  execute_or_queue_command(command, &block)
122
114
  end
123
115
 
124
- # Watches all creatives pertaining to a bidder. It is sufficient to invoke
125
- # this endpoint once per bidder. A Pub/Sub topic will be created and
126
- # notifications will be pushed to the topic when any of the bidder's
127
- # creatives change status. All of the bidder's service accounts will have
128
- # access to read from the topic.
129
- # Subsequent invocations of this method will return the existing
130
- # Pub/Sub configuration.
116
+ # Watches all creatives pertaining to a bidder. It is sufficient to invoke this
117
+ # endpoint once per bidder. A Pub/Sub topic will be created and notifications
118
+ # will be pushed to the topic when any of the bidder's creatives change status.
119
+ # All of the bidder's service accounts will have access to read from the topic.
120
+ # Subsequent invocations of this method will return the existing Pub/Sub
121
+ # configuration.
131
122
  # @param [String] parent
132
123
  # Required. To watch all creatives pertaining to the bidder and all its child
133
- # seat
134
- # accounts, the bidder must follow the pattern `bidders/`bidderAccountId``.
124
+ # seat accounts, the bidder must follow the pattern `bidders/`bidderAccountId``.
135
125
  # @param [Google::Apis::RealtimebiddingV1::WatchCreativesRequest] watch_creatives_request_object
136
126
  # @param [String] fields
137
127
  # Selector specifying which fields to include in a partial response.
@@ -162,21 +152,16 @@ module Google
162
152
  execute_or_queue_command(command, &block)
163
153
  end
164
154
 
165
- # Gets remarketing tag for a buyer. A remarketing tag is a piece of
166
- # JavaScript code that can be placed on a web page. When a user
167
- # visits a page containing a remarketing tag, Google adds the user to a user
168
- # list.
155
+ # Gets remarketing tag for a buyer. A remarketing tag is a piece of JavaScript
156
+ # code that can be placed on a web page. When a user visits a page containing a
157
+ # remarketing tag, Google adds the user to a user list.
169
158
  # @param [String] name
170
159
  # Required. To fetch remarketing tag for an account, name must follow the
171
- # pattern
172
- # `buyers/`accountId`` where ``accountId``
173
- # represents ID of a buyer that owns the remarketing tag. For a
174
- # bidder accessing remarketing tag on behalf of a child seat buyer,
175
- # ``accountId`` should represent the ID of the child seat buyer.
176
- # To fetch remarketing tag for a specific user list, name
177
- # must follow the pattern
178
- # `buyers/`accountId`/userLists/`userListId``. See
179
- # UserList.name.
160
+ # pattern `buyers/`accountId`` where ``accountId`` represents ID of a buyer that
161
+ # owns the remarketing tag. For a bidder accessing remarketing tag on behalf of
162
+ # a child seat buyer, ``accountId`` should represent the ID of the child seat
163
+ # buyer. To fetch remarketing tag for a specific user list, name must follow the
164
+ # pattern `buyers/`accountId`/userLists/`userListId``. See UserList.name.
180
165
  # @param [String] fields
181
166
  # Selector specifying which fields to include in a partial response.
182
167
  # @param [String] quota_user
@@ -207,11 +192,10 @@ module Google
207
192
  # Creates a creative.
208
193
  # @param [String] parent
209
194
  # Required. The name of the parent buyer that the new creative belongs to that
210
- # must
211
- # follow the pattern `buyers/`buyerAccountId``, where ``buyerAccountId``
195
+ # must follow the pattern `buyers/`buyerAccountId``, where ``buyerAccountId``
212
196
  # represents the account ID of the buyer who owns a creative. For a bidder
213
- # accessing creatives on behalf of a child seat buyer, ``buyerAccountId``
214
- # should represent the account ID of the child seat buyer.
197
+ # accessing creatives on behalf of a child seat buyer, ``buyerAccountId`` should
198
+ # represent the account ID of the child seat buyer.
215
199
  # @param [Google::Apis::RealtimebiddingV1::Creative] creative_object
216
200
  # @param [String] fields
217
201
  # Selector specifying which fields to include in a partial response.
@@ -244,15 +228,12 @@ module Google
244
228
 
245
229
  # Gets a creative.
246
230
  # @param [String] name
247
- # Required. Name of the creative to retrieve. See
248
- # creative.name.
231
+ # Required. Name of the creative to retrieve. See creative.name.
249
232
  # @param [String] view
250
- # Controls the amount of information included in the response.
251
- # By default only
252
- # creativeServingDecision
253
- # is included. To retrieve the entire creative
254
- # resource (including the declared
255
- # fields and the creative content) specify the view as "FULL".
233
+ # Controls the amount of information included in the response. By default only
234
+ # creativeServingDecision is included. To retrieve the entire creative resource (
235
+ # including the declared fields and the creative content) specify the view as "
236
+ # FULL".
256
237
  # @param [String] fields
257
238
  # Selector specifying which fields to include in a partial response.
258
239
  # @param [String] quota_user
@@ -283,44 +264,36 @@ module Google
283
264
 
284
265
  # Lists creatives.
285
266
  # @param [String] parent
286
- # Required. Name of the parent buyer that owns the creatives.
287
- # The pattern for this resource is either `buyers/`buyerAccountId`` or
288
- # `bidders/`bidderAccountId``.
289
- # For `buyers/`buyerAccountId``, the `buyerAccountId` can be one of the
290
- # following:
291
- # 1. The ID of the buyer that is accessing their own creatives.
292
- # 2. The ID of the child seat buyer under a bidder account.
293
- # So for listing creatives pertaining to the child seat buyer (`456`)
294
- # under bidder account (`123`), you would use the pattern: `buyers/456`.
295
- # 3. The ID of the bidder itself.
296
- # So for listing creatives pertaining to bidder (`123`),
297
- # you would use `buyers/123`.
298
- # If you want to access all creatives pertaining to both the bidder and all
299
- # of its child seat accounts, you would use `bidders/`bidderAccountId``,
300
- # e.g., for all creatives pertaining to bidder (`123`), use `bidders/123`.
267
+ # Required. Name of the parent buyer that owns the creatives. The pattern for
268
+ # this resource is either `buyers/`buyerAccountId`` or `bidders/`bidderAccountId`
269
+ # `. For `buyers/`buyerAccountId``, the `buyerAccountId` can be one of the
270
+ # following: 1. The ID of the buyer that is accessing their own creatives. 2.
271
+ # The ID of the child seat buyer under a bidder account. So for listing
272
+ # creatives pertaining to the child seat buyer (`456`) under bidder account (`
273
+ # 123`), you would use the pattern: `buyers/456`. 3. The ID of the bidder itself.
274
+ # So for listing creatives pertaining to bidder (`123`), you would use `buyers/
275
+ # 123`. If you want to access all creatives pertaining to both the bidder and
276
+ # all of its child seat accounts, you would use `bidders/`bidderAccountId``, e.g.
277
+ # , for all creatives pertaining to bidder (`123`), use `bidders/123`.
301
278
  # @param [String] filter
302
- # Query string to filter creatives. If no filter is specified,
303
- # all active creatives will be returned.
304
- # Example: 'accountId=12345 AND (dealsStatus:DISAPPROVED AND
305
- # disapprovalReason:UNACCEPTABLE_CONTENT) OR
306
- # declaredAttributes:IS_COOKIE_TARGETED'
279
+ # Query string to filter creatives. If no filter is specified, all active
280
+ # creatives will be returned. Example: 'accountId=12345 AND (dealsStatus:
281
+ # DISAPPROVED AND disapprovalReason:UNACCEPTABLE_CONTENT) OR declaredAttributes:
282
+ # IS_COOKIE_TARGETED'
307
283
  # @param [Fixnum] page_size
308
- # Requested page size. The server may return fewer creatives than requested
309
- # (due to timeout constraint) even if more are available via another call.
310
- # If unspecified, server will pick an appropriate default.
311
- # Acceptable values are 1 to 1000, inclusive.
284
+ # Requested page size. The server may return fewer creatives than requested (due
285
+ # to timeout constraint) even if more are available via another call. If
286
+ # unspecified, server will pick an appropriate default. Acceptable values are 1
287
+ # to 1000, inclusive.
312
288
  # @param [String] page_token
313
- # A token identifying a page of results the server should return.
314
- # Typically, this is the value of
315
- # ListCreativesResponse.nextPageToken
316
- # returned from the previous call to the 'ListCreatives' method.
289
+ # A token identifying a page of results the server should return. Typically,
290
+ # this is the value of ListCreativesResponse.nextPageToken returned from the
291
+ # previous call to the 'ListCreatives' method.
317
292
  # @param [String] view
318
- # Controls the amount of information included in the response.
319
- # By default only
320
- # creativeServingDecision
321
- # is included. To retrieve the entire creative
322
- # resource (including the declared
323
- # fields and the creative content) specify the view as "FULL".
293
+ # Controls the amount of information included in the response. By default only
294
+ # creativeServingDecision is included. To retrieve the entire creative resource (
295
+ # including the declared fields and the creative content) specify the view as "
296
+ # FULL".
324
297
  # @param [String] fields
325
298
  # Selector specifying which fields to include in a partial response.
326
299
  # @param [String] quota_user
@@ -354,8 +327,7 @@ module Google
354
327
 
355
328
  # Updates a creative.
356
329
  # @param [String] name
357
- # Name of the creative to update. See
358
- # creative.name.
330
+ # Name of the creative to update. See creative.name.
359
331
  # @param [Google::Apis::RealtimebiddingV1::Creative] creative_object
360
332
  # @param [String] update_mask
361
333
  # Field mask to use for partial in-place updates.
@@ -389,11 +361,10 @@ module Google
389
361
  execute_or_queue_command(command, &block)
390
362
  end
391
363
 
392
- # Change the status of a user list to CLOSED. This prevents new users from
393
- # being added to the user list.
364
+ # Change the status of a user list to CLOSED. This prevents new users from being
365
+ # added to the user list.
394
366
  # @param [String] name
395
- # Required. The name of the user list to close.
396
- # See UserList.name
367
+ # Required. The name of the user list to close. See UserList.name
397
368
  # @param [Google::Apis::RealtimebiddingV1::CloseUserListRequest] close_user_list_request_object
398
369
  # @param [String] fields
399
370
  # Selector specifying which fields to include in a partial response.
@@ -463,8 +434,7 @@ module Google
463
434
 
464
435
  # Gets a user list by its name.
465
436
  # @param [String] name
466
- # Required. The name of the user list to be retrieved. See
467
- # UserList.name.
437
+ # Required. The name of the user list to be retrieved. See UserList.name.
468
438
  # @param [String] fields
469
439
  # Selector specifying which fields to include in a partial response.
470
440
  # @param [String] quota_user
@@ -492,21 +462,16 @@ module Google
492
462
  execute_or_queue_command(command, &block)
493
463
  end
494
464
 
495
- # Gets remarketing tag for a buyer. A remarketing tag is a piece of
496
- # JavaScript code that can be placed on a web page. When a user
497
- # visits a page containing a remarketing tag, Google adds the user to a user
498
- # list.
465
+ # Gets remarketing tag for a buyer. A remarketing tag is a piece of JavaScript
466
+ # code that can be placed on a web page. When a user visits a page containing a
467
+ # remarketing tag, Google adds the user to a user list.
499
468
  # @param [String] name
500
469
  # Required. To fetch remarketing tag for an account, name must follow the
501
- # pattern
502
- # `buyers/`accountId`` where ``accountId``
503
- # represents ID of a buyer that owns the remarketing tag. For a
504
- # bidder accessing remarketing tag on behalf of a child seat buyer,
505
- # ``accountId`` should represent the ID of the child seat buyer.
506
- # To fetch remarketing tag for a specific user list, name
507
- # must follow the pattern
508
- # `buyers/`accountId`/userLists/`userListId``. See
509
- # UserList.name.
470
+ # pattern `buyers/`accountId`` where ``accountId`` represents ID of a buyer that
471
+ # owns the remarketing tag. For a bidder accessing remarketing tag on behalf of
472
+ # a child seat buyer, ``accountId`` should represent the ID of the child seat
473
+ # buyer. To fetch remarketing tag for a specific user list, name must follow the
474
+ # pattern `buyers/`accountId`/userLists/`userListId``. See UserList.name.
510
475
  # @param [String] fields
511
476
  # Selector specifying which fields to include in a partial response.
512
477
  # @param [String] quota_user
@@ -537,8 +502,7 @@ module Google
537
502
  # Lists the user lists visible to the current user.
538
503
  # @param [String] parent
539
504
  # Required. The name of the parent buyer for the user lists to be returned that
540
- # must
541
- # follow the pattern `buyers/`buyerAccountId``, where ``buyerAccountId``
505
+ # must follow the pattern `buyers/`buyerAccountId``, where ``buyerAccountId``
542
506
  # represents the account ID of the buyer who owns user lists. For a bidder
543
507
  # accessing user lists on behalf of a child seat buyer , ``buyerAccountId``
544
508
  # should represent the account ID of the child seat buyer.
@@ -575,11 +539,10 @@ module Google
575
539
  execute_or_queue_command(command, &block)
576
540
  end
577
541
 
578
- # Change the status of a user list to OPEN. This allows new users to be added
579
- # to the user list.
542
+ # Change the status of a user list to OPEN. This allows new users to be added to
543
+ # the user list.
580
544
  # @param [String] name
581
- # Required. The name of the user list to open.
582
- # See UserList.name
545
+ # Required. The name of the user list to open. See UserList.name
583
546
  # @param [Google::Apis::RealtimebiddingV1::OpenUserListRequest] open_user_list_request_object
584
547
  # @param [String] fields
585
548
  # Selector specifying which fields to include in a partial response.
@@ -613,12 +576,12 @@ module Google
613
576
  # Update the given user list. Only user lists with URLRestrictions can be
614
577
  # updated.
615
578
  # @param [String] name
616
- # Output only. Name of the user list that must follow the pattern
617
- # `buyers/`buyer`/userLists/`user_list``, where ``buyer`` represents
618
- # the account ID of the buyer who owns the user list. For a bidder accessing
619
- # user lists on behalf of a child seat buyer, ``buyer`` represents
620
- # the account ID of the child seat buyer. ``user_list`` is an int64
621
- # identifier assigned by Google to uniquely identify a user list.
579
+ # Output only. Name of the user list that must follow the pattern `buyers/`buyer`
580
+ # /userLists/`user_list``, where ``buyer`` represents the account ID of the
581
+ # buyer who owns the user list. For a bidder accessing user lists on behalf of a
582
+ # child seat buyer, ``buyer`` represents the account ID of the child seat buyer.
583
+ # ``user_list`` is an int64 identifier assigned by Google to uniquely identify a
584
+ # user list.
622
585
  # @param [Google::Apis::RealtimebiddingV1::UserList] user_list_object
623
586
  # @param [String] fields
624
587
  # Selector specifying which fields to include in a partial response.
@@ -0,0 +1,36 @@
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/recommendationengine_v1beta1/service.rb'
16
+ require 'google/apis/recommendationengine_v1beta1/classes.rb'
17
+ require 'google/apis/recommendationengine_v1beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Recommendations AI
22
+ #
23
+ # Recommendations AI service enables customers to build end-to-end personalized
24
+ # recommendation systems without requiring a high level of expertise in machine
25
+ # learning, recommendation system, or Google Cloud.
26
+ #
27
+ # @see https://cloud.google.com/recommendations-ai/docs
28
+ module RecommendationengineV1beta1
29
+ VERSION = 'V1beta1'
30
+ REVISION = '20200728'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,2017 @@
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 RecommendationengineV1beta1
24
+
25
+ # Message that represents an arbitrary HTTP body. It should only be used for
26
+ # payload formats that can't be represented as JSON, such as raw binary or
27
+ # an HTML page.
28
+ # This message can be used both in streaming and non-streaming API methods in
29
+ # the request as well as the response.
30
+ # It can be used as a top-level request field, which is convenient if one
31
+ # wants to extract parameters from either the URL or HTTP template into the
32
+ # request fields and also want access to the raw HTTP body.
33
+ # Example:
34
+ # message GetResourceRequest `
35
+ # // A unique request id.
36
+ # string request_id = 1;
37
+ # // The raw HTTP body is bound to this field.
38
+ # google.api.HttpBody http_body = 2;
39
+ # `
40
+ # service ResourceService `
41
+ # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
42
+ # rpc UpdateResource(google.api.HttpBody) returns
43
+ # (google.protobuf.Empty);
44
+ # `
45
+ # Example with streaming methods:
46
+ # service CaldavService `
47
+ # rpc GetCalendar(stream google.api.HttpBody)
48
+ # returns (stream google.api.HttpBody);
49
+ # rpc UpdateCalendar(stream google.api.HttpBody)
50
+ # returns (stream google.api.HttpBody);
51
+ # `
52
+ # Use of this type only changes how the request and response bodies are
53
+ # handled, all other features will continue to work unchanged.
54
+ class GoogleApiHttpBody
55
+ include Google::Apis::Core::Hashable
56
+
57
+ # The HTTP Content-Type header value specifying the content type of the body.
58
+ # Corresponds to the JSON property `contentType`
59
+ # @return [String]
60
+ attr_accessor :content_type
61
+
62
+ # The HTTP request/response body as raw binary.
63
+ # Corresponds to the JSON property `data`
64
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
65
+ # @return [String]
66
+ attr_accessor :data
67
+
68
+ # Application specific response metadata. Must be set in the first response
69
+ # for streaming APIs.
70
+ # Corresponds to the JSON property `extensions`
71
+ # @return [Array<Hash<String,Object>>]
72
+ attr_accessor :extensions
73
+
74
+ def initialize(**args)
75
+ update!(**args)
76
+ end
77
+
78
+ # Update properties of this object
79
+ def update!(**args)
80
+ @content_type = args[:content_type] if args.key?(:content_type)
81
+ @data = args[:data] if args.key?(:data)
82
+ @extensions = args[:extensions] if args.key?(:extensions)
83
+ end
84
+ end
85
+
86
+ # Metadata for TriggerCatalogRejoin method.
87
+ class GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata
88
+ include Google::Apis::Core::Hashable
89
+
90
+ def initialize(**args)
91
+ update!(**args)
92
+ end
93
+
94
+ # Update properties of this object
95
+ def update!(**args)
96
+ end
97
+ end
98
+
99
+ # Response message for TriggerCatalogRejoin method.
100
+ class GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse
101
+ include Google::Apis::Core::Hashable
102
+
103
+ # Number of user events that were joined with latest catalog items.
104
+ # Corresponds to the JSON property `rejoinedUserEventsCount`
105
+ # @return [Fixnum]
106
+ attr_accessor :rejoined_user_events_count
107
+
108
+ def initialize(**args)
109
+ update!(**args)
110
+ end
111
+
112
+ # Update properties of this object
113
+ def update!(**args)
114
+ @rejoined_user_events_count = args[:rejoined_user_events_count] if args.key?(:rejoined_user_events_count)
115
+ end
116
+ end
117
+
118
+ # Metadata associated with a tune operation.
119
+ class GoogleCloudRecommendationengineV1alphaTuningMetadata
120
+ include Google::Apis::Core::Hashable
121
+
122
+ # The resource name of the recommendation model that this tune applies to.
123
+ # Format:
124
+ # projects/`project_number`/locations/`location_id`/catalogs/`catalog_id`/
125
+ # eventStores/`event_store_id`/recommendationModels/`recommendation_model_id`
126
+ # Corresponds to the JSON property `recommendationModel`
127
+ # @return [String]
128
+ attr_accessor :recommendation_model
129
+
130
+ def initialize(**args)
131
+ update!(**args)
132
+ end
133
+
134
+ # Update properties of this object
135
+ def update!(**args)
136
+ @recommendation_model = args[:recommendation_model] if args.key?(:recommendation_model)
137
+ end
138
+ end
139
+
140
+ # Response associated with a tune operation.
141
+ class GoogleCloudRecommendationengineV1alphaTuningResponse
142
+ include Google::Apis::Core::Hashable
143
+
144
+ def initialize(**args)
145
+ update!(**args)
146
+ end
147
+
148
+ # Update properties of this object
149
+ def update!(**args)
150
+ end
151
+ end
152
+
153
+ # BigQuery source import data from.
154
+ class GoogleCloudRecommendationengineV1beta1BigQuerySource
155
+ include Google::Apis::Core::Hashable
156
+
157
+ # Optional. The schema to use when parsing the data from the source.
158
+ # Supported values for catalog imports:
159
+ # 1: "catalog_recommendations_ai" using
160
+ # https://cloud.google.com/recommendations-ai/docs/upload-catalog#json
161
+ # (Default for catalogItems.import)
162
+ # 2: "catalog_merchant_center" using
163
+ # https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc
164
+ # Supported values for user event imports:
165
+ # 1: "user_events_recommendations_ai" using
166
+ # https://cloud.google.com/recommendations-ai/docs/manage-user-events#import
167
+ # (Default for userEvents.import)
168
+ # Corresponds to the JSON property `dataSchema`
169
+ # @return [String]
170
+ attr_accessor :data_schema
171
+
172
+ # Required. The BigQuery data set to copy the data from.
173
+ # Corresponds to the JSON property `datasetId`
174
+ # @return [String]
175
+ attr_accessor :dataset_id
176
+
177
+ # Optional. Intermediate Cloud Storage directory used for the import. Can be
178
+ # specified
179
+ # if one wants to have the BigQuery export to a specific Cloud Storage
180
+ # directory.
181
+ # Corresponds to the JSON property `gcsStagingDir`
182
+ # @return [String]
183
+ attr_accessor :gcs_staging_dir
184
+
185
+ # Optional. The project id (can be project # or id) that the BigQuery source is
186
+ # in. If
187
+ # not specified, inherits the project id from the parent request.
188
+ # Corresponds to the JSON property `projectId`
189
+ # @return [String]
190
+ attr_accessor :project_id
191
+
192
+ # Required. The BigQuery table to copy the data from.
193
+ # Corresponds to the JSON property `tableId`
194
+ # @return [String]
195
+ attr_accessor :table_id
196
+
197
+ def initialize(**args)
198
+ update!(**args)
199
+ end
200
+
201
+ # Update properties of this object
202
+ def update!(**args)
203
+ @data_schema = args[:data_schema] if args.key?(:data_schema)
204
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
205
+ @gcs_staging_dir = args[:gcs_staging_dir] if args.key?(:gcs_staging_dir)
206
+ @project_id = args[:project_id] if args.key?(:project_id)
207
+ @table_id = args[:table_id] if args.key?(:table_id)
208
+ end
209
+ end
210
+
211
+ # The catalog configuration.
212
+ # Next ID: 5.
213
+ class GoogleCloudRecommendationengineV1beta1Catalog
214
+ include Google::Apis::Core::Hashable
215
+
216
+ # Configures what level the catalog should be uploaded with regards to
217
+ # how users will be send events and how predictions will be made.
218
+ # Corresponds to the JSON property `catalogItemLevelConfig`
219
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig]
220
+ attr_accessor :catalog_item_level_config
221
+
222
+ # Required. The id of the default event store.
223
+ # Corresponds to the JSON property `defaultEventStoreId`
224
+ # @return [String]
225
+ attr_accessor :default_event_store_id
226
+
227
+ # Required. The catalog display name.
228
+ # Corresponds to the JSON property `displayName`
229
+ # @return [String]
230
+ attr_accessor :display_name
231
+
232
+ # The fully qualified resource name of the catalog.
233
+ # Corresponds to the JSON property `name`
234
+ # @return [String]
235
+ attr_accessor :name
236
+
237
+ def initialize(**args)
238
+ update!(**args)
239
+ end
240
+
241
+ # Update properties of this object
242
+ def update!(**args)
243
+ @catalog_item_level_config = args[:catalog_item_level_config] if args.key?(:catalog_item_level_config)
244
+ @default_event_store_id = args[:default_event_store_id] if args.key?(:default_event_store_id)
245
+ @display_name = args[:display_name] if args.key?(:display_name)
246
+ @name = args[:name] if args.key?(:name)
247
+ end
248
+ end
249
+
250
+ # The inline source for the input config for ImportCatalogItems method.
251
+ class GoogleCloudRecommendationengineV1beta1CatalogInlineSource
252
+ include Google::Apis::Core::Hashable
253
+
254
+ # Optional. A list of catalog items to update/create. Recommended max of 10k
255
+ # items.
256
+ # Corresponds to the JSON property `catalogItems`
257
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem>]
258
+ attr_accessor :catalog_items
259
+
260
+ def initialize(**args)
261
+ update!(**args)
262
+ end
263
+
264
+ # Update properties of this object
265
+ def update!(**args)
266
+ @catalog_items = args[:catalog_items] if args.key?(:catalog_items)
267
+ end
268
+ end
269
+
270
+ # CatalogItem captures all metadata information of items to be recommended.
271
+ class GoogleCloudRecommendationengineV1beta1CatalogItem
272
+ include Google::Apis::Core::Hashable
273
+
274
+ # Required. Catalog item categories. This field is repeated for supporting
275
+ # one catalog item belonging to several parallel category hierarchies.
276
+ # For example, if a shoes product belongs to both
277
+ # ["Shoes & Accessories" -> "Shoes"] and
278
+ # ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be
279
+ # represented as:
280
+ # "categoryHierarchies": [
281
+ # ` "categories": ["Shoes & Accessories", "Shoes"]`,
282
+ # ` "categories": ["Sports & Fitness", "Athletic Clothing", "Shoes"] `
283
+ # ]
284
+ # Corresponds to the JSON property `categoryHierarchies`
285
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy>]
286
+ attr_accessor :category_hierarchies
287
+
288
+ # Optional. Catalog item description. UTF-8 encoded string with a length
289
+ # limit of 5 KiB.
290
+ # Corresponds to the JSON property `description`
291
+ # @return [String]
292
+ attr_accessor :description
293
+
294
+ # Required. Catalog item identifier. UTF-8 encoded string with a length limit
295
+ # of 128 bytes.
296
+ # This id must be unique among all catalog items within the same catalog. It
297
+ # should also be used when logging user events in order for the user events
298
+ # to be joined with the Catalog.
299
+ # Corresponds to the JSON property `id`
300
+ # @return [String]
301
+ attr_accessor :id
302
+
303
+ # FeatureMap represents extra features that customers want to include in the
304
+ # recommendation model for catalogs/user events as categorical/numerical
305
+ # features.
306
+ # Corresponds to the JSON property `itemAttributes`
307
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap]
308
+ attr_accessor :item_attributes
309
+
310
+ # Optional. Variant group identifier for prediction results. UTF-8 encoded
311
+ # string with a length limit of 128 bytes.
312
+ # This field must be enabled before it can be used. [Learn
313
+ # more](/recommendations-ai/docs/catalog#item-group-id).
314
+ # Corresponds to the JSON property `itemGroupId`
315
+ # @return [String]
316
+ attr_accessor :item_group_id
317
+
318
+ # Optional. Deprecated. The model automatically detects the text language. Your
319
+ # catalog can include text in different languages, but duplicating
320
+ # catalog items to provide text in multiple languages can result in
321
+ # degraded model performance.
322
+ # Corresponds to the JSON property `languageCode`
323
+ # @return [String]
324
+ attr_accessor :language_code
325
+
326
+ # ProductCatalogItem captures item metadata specific to retail products.
327
+ # Corresponds to the JSON property `productMetadata`
328
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItem]
329
+ attr_accessor :product_metadata
330
+
331
+ # Optional. Filtering tags associated with the catalog item. Each tag should
332
+ # be a UTF-8 encoded string with a length limit of 1 KiB.
333
+ # This tag can be used for filtering recommendation results by passing the
334
+ # tag as part of the predict request filter.
335
+ # Corresponds to the JSON property `tags`
336
+ # @return [Array<String>]
337
+ attr_accessor :tags
338
+
339
+ # Required. Catalog item title. UTF-8 encoded string with a length limit of 1
340
+ # KiB.
341
+ # Corresponds to the JSON property `title`
342
+ # @return [String]
343
+ attr_accessor :title
344
+
345
+ def initialize(**args)
346
+ update!(**args)
347
+ end
348
+
349
+ # Update properties of this object
350
+ def update!(**args)
351
+ @category_hierarchies = args[:category_hierarchies] if args.key?(:category_hierarchies)
352
+ @description = args[:description] if args.key?(:description)
353
+ @id = args[:id] if args.key?(:id)
354
+ @item_attributes = args[:item_attributes] if args.key?(:item_attributes)
355
+ @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
356
+ @language_code = args[:language_code] if args.key?(:language_code)
357
+ @product_metadata = args[:product_metadata] if args.key?(:product_metadata)
358
+ @tags = args[:tags] if args.key?(:tags)
359
+ @title = args[:title] if args.key?(:title)
360
+ end
361
+ end
362
+
363
+ # Category represents catalog item category hierarchy.
364
+ class GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy
365
+ include Google::Apis::Core::Hashable
366
+
367
+ # Required. Catalog item categories. Each category should be a UTF-8
368
+ # encoded string with a length limit of 2 KiB.
369
+ # Note that the order in the list denotes the specificity (from least to
370
+ # most specific).
371
+ # Corresponds to the JSON property `categories`
372
+ # @return [Array<String>]
373
+ attr_accessor :categories
374
+
375
+ def initialize(**args)
376
+ update!(**args)
377
+ end
378
+
379
+ # Update properties of this object
380
+ def update!(**args)
381
+ @categories = args[:categories] if args.key?(:categories)
382
+ end
383
+ end
384
+
385
+ # Configures what level the catalog should be uploaded with regards to
386
+ # how users will be send events and how predictions will be made.
387
+ class GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig
388
+ include Google::Apis::Core::Hashable
389
+
390
+ # Optional. What level of the catalog are events uploaded at.
391
+ # See https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels
392
+ # for more details.
393
+ # Corresponds to the JSON property `eventItemLevel`
394
+ # @return [String]
395
+ attr_accessor :event_item_level
396
+
397
+ # Optional. What level of the catalog are predictions made at.
398
+ # See https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels
399
+ # for more details.
400
+ # Corresponds to the JSON property `predictItemLevel`
401
+ # @return [String]
402
+ attr_accessor :predict_item_level
403
+
404
+ def initialize(**args)
405
+ update!(**args)
406
+ end
407
+
408
+ # Update properties of this object
409
+ def update!(**args)
410
+ @event_item_level = args[:event_item_level] if args.key?(:event_item_level)
411
+ @predict_item_level = args[:predict_item_level] if args.key?(:predict_item_level)
412
+ end
413
+ end
414
+
415
+ # Request message for the `CreatePredictionApiKeyRegistration` method.
416
+ class GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest
417
+ include Google::Apis::Core::Hashable
418
+
419
+ # Registered Api Key.
420
+ # Corresponds to the JSON property `predictionApiKeyRegistration`
421
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration]
422
+ attr_accessor :prediction_api_key_registration
423
+
424
+ def initialize(**args)
425
+ update!(**args)
426
+ end
427
+
428
+ # Update properties of this object
429
+ def update!(**args)
430
+ @prediction_api_key_registration = args[:prediction_api_key_registration] if args.key?(:prediction_api_key_registration)
431
+ end
432
+ end
433
+
434
+ # User event details shared by all recommendation types.
435
+ class GoogleCloudRecommendationengineV1beta1EventDetail
436
+ include Google::Apis::Core::Hashable
437
+
438
+ # FeatureMap represents extra features that customers want to include in the
439
+ # recommendation model for catalogs/user events as categorical/numerical
440
+ # features.
441
+ # Corresponds to the JSON property `eventAttributes`
442
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap]
443
+ attr_accessor :event_attributes
444
+
445
+ # Optional. A list of identifiers for the independent experiment groups
446
+ # this user event belongs to. This is used to distinguish between user events
447
+ # associated with different experiment setups (e.g. using Recommendation
448
+ # Engine system, using different recommendation models).
449
+ # Corresponds to the JSON property `experimentIds`
450
+ # @return [Array<String>]
451
+ attr_accessor :experiment_ids
452
+
453
+ # Optional. A unique id of a web page view.
454
+ # This should be kept the same for all user events triggered from the same
455
+ # pageview. For example, an item detail page view could trigger multiple
456
+ # events as the user is browsing the page.
457
+ # The `pageViewId` property should be kept the same for all these events so
458
+ # that they can be grouped together properly. This `pageViewId` will be
459
+ # automatically generated if using the JavaScript pixel.
460
+ # Corresponds to the JSON property `pageViewId`
461
+ # @return [String]
462
+ attr_accessor :page_view_id
463
+
464
+ # Optional. Recommendation token included in the recommendation prediction
465
+ # response.
466
+ # This field enables accurate attribution of recommendation model
467
+ # performance.
468
+ # This token enables us to accurately attribute page view or purchase back to
469
+ # the event and the particular predict response containing this
470
+ # clicked/purchased item. If user clicks on product K in the recommendation
471
+ # results, pass the `PredictResponse.recommendationToken` property as a url
472
+ # parameter to product K's page. When recording events on product K's page,
473
+ # log the PredictResponse.recommendation_token to this field.
474
+ # Optional, but highly encouraged for user events that are the result of a
475
+ # recommendation prediction query.
476
+ # Corresponds to the JSON property `recommendationToken`
477
+ # @return [String]
478
+ attr_accessor :recommendation_token
479
+
480
+ # Optional. The referrer url of the current page. When using
481
+ # the JavaScript pixel, this value is filled in automatically.
482
+ # Corresponds to the JSON property `referrerUri`
483
+ # @return [String]
484
+ attr_accessor :referrer_uri
485
+
486
+ # Optional. Complete url (window.location.href) of the user's current page.
487
+ # When using the JavaScript pixel, this value is filled in automatically.
488
+ # Maximum length 5KB.
489
+ # Corresponds to the JSON property `uri`
490
+ # @return [String]
491
+ attr_accessor :uri
492
+
493
+ def initialize(**args)
494
+ update!(**args)
495
+ end
496
+
497
+ # Update properties of this object
498
+ def update!(**args)
499
+ @event_attributes = args[:event_attributes] if args.key?(:event_attributes)
500
+ @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
501
+ @page_view_id = args[:page_view_id] if args.key?(:page_view_id)
502
+ @recommendation_token = args[:recommendation_token] if args.key?(:recommendation_token)
503
+ @referrer_uri = args[:referrer_uri] if args.key?(:referrer_uri)
504
+ @uri = args[:uri] if args.key?(:uri)
505
+ end
506
+ end
507
+
508
+ # FeatureMap represents extra features that customers want to include in the
509
+ # recommendation model for catalogs/user events as categorical/numerical
510
+ # features.
511
+ class GoogleCloudRecommendationengineV1beta1FeatureMap
512
+ include Google::Apis::Core::Hashable
513
+
514
+ # Categorical features that can take on one of a limited number of possible
515
+ # values. Some examples would be the brand/maker of a product, or country of
516
+ # a customer.
517
+ # Feature names and values must be UTF-8 encoded strings.
518
+ # For example: `` "colors": `"value": ["yellow", "green"]`,
519
+ # "sizes": `"value":["S", "M"]``
520
+ # Corresponds to the JSON property `categoricalFeatures`
521
+ # @return [Hash<String,Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapStringList>]
522
+ attr_accessor :categorical_features
523
+
524
+ # Numerical features. Some examples would be the height/weight of a product,
525
+ # or age of a customer.
526
+ # Feature names must be UTF-8 encoded strings.
527
+ # For example: `` "lengths_cm": `"value":[2.3, 15.4]`,
528
+ # "heights_cm": `"value":[8.1, 6.4]` ``
529
+ # Corresponds to the JSON property `numericalFeatures`
530
+ # @return [Hash<String,Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapFloatList>]
531
+ attr_accessor :numerical_features
532
+
533
+ def initialize(**args)
534
+ update!(**args)
535
+ end
536
+
537
+ # Update properties of this object
538
+ def update!(**args)
539
+ @categorical_features = args[:categorical_features] if args.key?(:categorical_features)
540
+ @numerical_features = args[:numerical_features] if args.key?(:numerical_features)
541
+ end
542
+ end
543
+
544
+ # A list of float features.
545
+ class GoogleCloudRecommendationengineV1beta1FeatureMapFloatList
546
+ include Google::Apis::Core::Hashable
547
+
548
+ # Float feature value.
549
+ # Corresponds to the JSON property `value`
550
+ # @return [Array<Float>]
551
+ attr_accessor :value
552
+
553
+ def initialize(**args)
554
+ update!(**args)
555
+ end
556
+
557
+ # Update properties of this object
558
+ def update!(**args)
559
+ @value = args[:value] if args.key?(:value)
560
+ end
561
+ end
562
+
563
+ # A list of string features.
564
+ class GoogleCloudRecommendationengineV1beta1FeatureMapStringList
565
+ include Google::Apis::Core::Hashable
566
+
567
+ # String feature value with a length limit of 128 bytes.
568
+ # Corresponds to the JSON property `value`
569
+ # @return [Array<String>]
570
+ attr_accessor :value
571
+
572
+ def initialize(**args)
573
+ update!(**args)
574
+ end
575
+
576
+ # Update properties of this object
577
+ def update!(**args)
578
+ @value = args[:value] if args.key?(:value)
579
+ end
580
+ end
581
+
582
+ # Google Cloud Storage location for input content.
583
+ # format.
584
+ class GoogleCloudRecommendationengineV1beta1GcsSource
585
+ include Google::Apis::Core::Hashable
586
+
587
+ # Required. Google Cloud Storage URIs to input files. URI can be up to
588
+ # 2000 characters long. URIs can match the full object path (for example,
589
+ # gs://bucket/directory/object.json) or a pattern matching one or more
590
+ # files, such as gs://bucket/directory/*.json. A request can
591
+ # contain at most 100 files, and each file can be up to 2 GB. See
592
+ # [Importing catalog information](/recommendations-ai/docs/upload-catalog)
593
+ # for the expected file format and setup instructions.
594
+ # Corresponds to the JSON property `inputUris`
595
+ # @return [Array<String>]
596
+ attr_accessor :input_uris
597
+
598
+ # Optional. The schema to use when parsing the data from the source.
599
+ # Supported values for catalog imports:
600
+ # 1: "catalog_recommendations_ai" using
601
+ # https://cloud.google.com/recommendations-ai/docs/upload-catalog#json
602
+ # (Default for catalogItems.import)
603
+ # 2: "catalog_merchant_center" using
604
+ # https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc
605
+ # Supported values for user events imports:
606
+ # 1: "user_events_recommendations_ai" using
607
+ # https://cloud.google.com/recommendations-ai/docs/manage-user-events#import
608
+ # (Default for userEvents.import)
609
+ # Corresponds to the JSON property `jsonSchema`
610
+ # @return [String]
611
+ attr_accessor :json_schema
612
+
613
+ def initialize(**args)
614
+ update!(**args)
615
+ end
616
+
617
+ # Update properties of this object
618
+ def update!(**args)
619
+ @input_uris = args[:input_uris] if args.key?(:input_uris)
620
+ @json_schema = args[:json_schema] if args.key?(:json_schema)
621
+ end
622
+ end
623
+
624
+ # Response message for GetCatalogItemsWithItemGroupId method.
625
+ class GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse
626
+ include Google::Apis::Core::Hashable
627
+
628
+ # CatalogItem captures all metadata information of items to be recommended.
629
+ # Corresponds to the JSON property `canonicalCatalogItem`
630
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem]
631
+ attr_accessor :canonical_catalog_item
632
+
633
+ # The list of catalog items associated with the item group id.
634
+ # Corresponds to the JSON property `catalogItems`
635
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem>]
636
+ attr_accessor :catalog_items
637
+
638
+ def initialize(**args)
639
+ update!(**args)
640
+ end
641
+
642
+ # Update properties of this object
643
+ def update!(**args)
644
+ @canonical_catalog_item = args[:canonical_catalog_item] if args.key?(:canonical_catalog_item)
645
+ @catalog_items = args[:catalog_items] if args.key?(:catalog_items)
646
+ end
647
+ end
648
+
649
+ # Catalog item thumbnail/detail image.
650
+ class GoogleCloudRecommendationengineV1beta1Image
651
+ include Google::Apis::Core::Hashable
652
+
653
+ # Optional. Height of the image in number of pixels.
654
+ # Corresponds to the JSON property `height`
655
+ # @return [Fixnum]
656
+ attr_accessor :height
657
+
658
+ # Required. URL of the image with a length limit of 5 KiB.
659
+ # Corresponds to the JSON property `uri`
660
+ # @return [String]
661
+ attr_accessor :uri
662
+
663
+ # Optional. Width of the image in number of pixels.
664
+ # Corresponds to the JSON property `width`
665
+ # @return [Fixnum]
666
+ attr_accessor :width
667
+
668
+ def initialize(**args)
669
+ update!(**args)
670
+ end
671
+
672
+ # Update properties of this object
673
+ def update!(**args)
674
+ @height = args[:height] if args.key?(:height)
675
+ @uri = args[:uri] if args.key?(:uri)
676
+ @width = args[:width] if args.key?(:width)
677
+ end
678
+ end
679
+
680
+ # Request message for Import methods.
681
+ class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest
682
+ include Google::Apis::Core::Hashable
683
+
684
+ # Configuration of destination for Import related errors.
685
+ # Corresponds to the JSON property `errorsConfig`
686
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig]
687
+ attr_accessor :errors_config
688
+
689
+ # The input config source.
690
+ # Corresponds to the JSON property `inputConfig`
691
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig]
692
+ attr_accessor :input_config
693
+
694
+ # Optional. Unique identifier provided by client, within the ancestor
695
+ # dataset scope. Ensures idempotency and used for request deduplication.
696
+ # Server-generated if unspecified. Up to 128 characters long. This is
697
+ # returned as google.longrunning.Operation.name in the response.
698
+ # Corresponds to the JSON property `requestId`
699
+ # @return [String]
700
+ attr_accessor :request_id
701
+
702
+ # Optional. Indicates which fields in the provided imported 'items' to update.
703
+ # If not
704
+ # set, will by default update all fields.
705
+ # Corresponds to the JSON property `updateMask`
706
+ # @return [String]
707
+ attr_accessor :update_mask
708
+
709
+ def initialize(**args)
710
+ update!(**args)
711
+ end
712
+
713
+ # Update properties of this object
714
+ def update!(**args)
715
+ @errors_config = args[:errors_config] if args.key?(:errors_config)
716
+ @input_config = args[:input_config] if args.key?(:input_config)
717
+ @request_id = args[:request_id] if args.key?(:request_id)
718
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
719
+ end
720
+ end
721
+
722
+ # Response of the ImportCatalogItemsRequest. If the long running
723
+ # operation is done, then this message is returned by the
724
+ # google.longrunning.Operations.response field if the operation was successful.
725
+ class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse
726
+ include Google::Apis::Core::Hashable
727
+
728
+ # A sample of errors encountered while processing the request.
729
+ # Corresponds to the JSON property `errorSamples`
730
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus>]
731
+ attr_accessor :error_samples
732
+
733
+ # Configuration of destination for Import related errors.
734
+ # Corresponds to the JSON property `errorsConfig`
735
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig]
736
+ attr_accessor :errors_config
737
+
738
+ def initialize(**args)
739
+ update!(**args)
740
+ end
741
+
742
+ # Update properties of this object
743
+ def update!(**args)
744
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
745
+ @errors_config = args[:errors_config] if args.key?(:errors_config)
746
+ end
747
+ end
748
+
749
+ # Configuration of destination for Import related errors.
750
+ class GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
751
+ include Google::Apis::Core::Hashable
752
+
753
+ # Google Cloud Storage path for import errors. This must be an empty,
754
+ # existing Cloud Storage bucket. Import errors will be written to a file in
755
+ # this bucket, one per line, as a JSON-encoded
756
+ # `google.rpc.Status` message.
757
+ # Corresponds to the JSON property `gcsPrefix`
758
+ # @return [String]
759
+ attr_accessor :gcs_prefix
760
+
761
+ def initialize(**args)
762
+ update!(**args)
763
+ end
764
+
765
+ # Update properties of this object
766
+ def update!(**args)
767
+ @gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
768
+ end
769
+ end
770
+
771
+ # Metadata related to the progress of the Import operation. This will be
772
+ # returned by the google.longrunning.Operation.metadata field.
773
+ class GoogleCloudRecommendationengineV1beta1ImportMetadata
774
+ include Google::Apis::Core::Hashable
775
+
776
+ # Operation create time.
777
+ # Corresponds to the JSON property `createTime`
778
+ # @return [String]
779
+ attr_accessor :create_time
780
+
781
+ # Count of entries that encountered errors while processing.
782
+ # Corresponds to the JSON property `failureCount`
783
+ # @return [Fixnum]
784
+ attr_accessor :failure_count
785
+
786
+ # Name of the operation.
787
+ # Corresponds to the JSON property `operationName`
788
+ # @return [String]
789
+ attr_accessor :operation_name
790
+
791
+ # Id of the request / operation. This is parroting back the requestId that
792
+ # was passed in the request.
793
+ # Corresponds to the JSON property `requestId`
794
+ # @return [String]
795
+ attr_accessor :request_id
796
+
797
+ # Count of entries that were processed successfully.
798
+ # Corresponds to the JSON property `successCount`
799
+ # @return [Fixnum]
800
+ attr_accessor :success_count
801
+
802
+ # Operation last update time. If the operation is done, this is also the
803
+ # finish time.
804
+ # Corresponds to the JSON property `updateTime`
805
+ # @return [String]
806
+ attr_accessor :update_time
807
+
808
+ def initialize(**args)
809
+ update!(**args)
810
+ end
811
+
812
+ # Update properties of this object
813
+ def update!(**args)
814
+ @create_time = args[:create_time] if args.key?(:create_time)
815
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
816
+ @operation_name = args[:operation_name] if args.key?(:operation_name)
817
+ @request_id = args[:request_id] if args.key?(:request_id)
818
+ @success_count = args[:success_count] if args.key?(:success_count)
819
+ @update_time = args[:update_time] if args.key?(:update_time)
820
+ end
821
+ end
822
+
823
+ # Request message for the ImportUserEvents request.
824
+ class GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest
825
+ include Google::Apis::Core::Hashable
826
+
827
+ # Configuration of destination for Import related errors.
828
+ # Corresponds to the JSON property `errorsConfig`
829
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig]
830
+ attr_accessor :errors_config
831
+
832
+ # The input config source.
833
+ # Corresponds to the JSON property `inputConfig`
834
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig]
835
+ attr_accessor :input_config
836
+
837
+ # Optional. Unique identifier provided by client, within the ancestor
838
+ # dataset scope. Ensures idempotency for expensive long running operations.
839
+ # Server-generated if unspecified. Up to 128 characters long. This is
840
+ # returned as google.longrunning.Operation.name in the response. Note that
841
+ # this field must not be set if the desired input config is
842
+ # catalog_inline_source.
843
+ # Corresponds to the JSON property `requestId`
844
+ # @return [String]
845
+ attr_accessor :request_id
846
+
847
+ def initialize(**args)
848
+ update!(**args)
849
+ end
850
+
851
+ # Update properties of this object
852
+ def update!(**args)
853
+ @errors_config = args[:errors_config] if args.key?(:errors_config)
854
+ @input_config = args[:input_config] if args.key?(:input_config)
855
+ @request_id = args[:request_id] if args.key?(:request_id)
856
+ end
857
+ end
858
+
859
+ # Response of the ImportUserEventsRequest. If the long running
860
+ # operation was successful, then this message is returned by the
861
+ # google.longrunning.Operations.response field if the operation was successful.
862
+ class GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse
863
+ include Google::Apis::Core::Hashable
864
+
865
+ # A sample of errors encountered while processing the request.
866
+ # Corresponds to the JSON property `errorSamples`
867
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus>]
868
+ attr_accessor :error_samples
869
+
870
+ # Configuration of destination for Import related errors.
871
+ # Corresponds to the JSON property `errorsConfig`
872
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig]
873
+ attr_accessor :errors_config
874
+
875
+ # A summary of import result. The UserEventImportSummary summarizes
876
+ # the import status for user events.
877
+ # Corresponds to the JSON property `importSummary`
878
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventImportSummary]
879
+ attr_accessor :import_summary
880
+
881
+ def initialize(**args)
882
+ update!(**args)
883
+ end
884
+
885
+ # Update properties of this object
886
+ def update!(**args)
887
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
888
+ @errors_config = args[:errors_config] if args.key?(:errors_config)
889
+ @import_summary = args[:import_summary] if args.key?(:import_summary)
890
+ end
891
+ end
892
+
893
+ # The input config source.
894
+ class GoogleCloudRecommendationengineV1beta1InputConfig
895
+ include Google::Apis::Core::Hashable
896
+
897
+ # BigQuery source import data from.
898
+ # Corresponds to the JSON property `bigQuerySource`
899
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1BigQuerySource]
900
+ attr_accessor :big_query_source
901
+
902
+ # The inline source for the input config for ImportCatalogItems method.
903
+ # Corresponds to the JSON property `catalogInlineSource`
904
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogInlineSource]
905
+ attr_accessor :catalog_inline_source
906
+
907
+ # Google Cloud Storage location for input content.
908
+ # format.
909
+ # Corresponds to the JSON property `gcsSource`
910
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GcsSource]
911
+ attr_accessor :gcs_source
912
+
913
+ # The inline source for the input config for ImportUserEvents method.
914
+ # Corresponds to the JSON property `userEventInlineSource`
915
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventInlineSource]
916
+ attr_accessor :user_event_inline_source
917
+
918
+ def initialize(**args)
919
+ update!(**args)
920
+ end
921
+
922
+ # Update properties of this object
923
+ def update!(**args)
924
+ @big_query_source = args[:big_query_source] if args.key?(:big_query_source)
925
+ @catalog_inline_source = args[:catalog_inline_source] if args.key?(:catalog_inline_source)
926
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
927
+ @user_event_inline_source = args[:user_event_inline_source] if args.key?(:user_event_inline_source)
928
+ end
929
+ end
930
+
931
+ # Response message for ListCatalogItems method.
932
+ class GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse
933
+ include Google::Apis::Core::Hashable
934
+
935
+ # The catalog items.
936
+ # Corresponds to the JSON property `catalogItems`
937
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem>]
938
+ attr_accessor :catalog_items
939
+
940
+ # If empty, the list is complete. If nonempty, the token to pass to the next
941
+ # request's ListCatalogItemRequest.page_token.
942
+ # Corresponds to the JSON property `nextPageToken`
943
+ # @return [String]
944
+ attr_accessor :next_page_token
945
+
946
+ def initialize(**args)
947
+ update!(**args)
948
+ end
949
+
950
+ # Update properties of this object
951
+ def update!(**args)
952
+ @catalog_items = args[:catalog_items] if args.key?(:catalog_items)
953
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
954
+ end
955
+ end
956
+
957
+ # Response for ListCatalogs method.
958
+ class GoogleCloudRecommendationengineV1beta1ListCatalogsResponse
959
+ include Google::Apis::Core::Hashable
960
+
961
+ # Output only. All the customer's catalogs.
962
+ # Corresponds to the JSON property `catalogs`
963
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog>]
964
+ attr_accessor :catalogs
965
+
966
+ # Pagination token, if not returned indicates the last page.
967
+ # Corresponds to the JSON property `nextPageToken`
968
+ # @return [String]
969
+ attr_accessor :next_page_token
970
+
971
+ def initialize(**args)
972
+ update!(**args)
973
+ end
974
+
975
+ # Update properties of this object
976
+ def update!(**args)
977
+ @catalogs = args[:catalogs] if args.key?(:catalogs)
978
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
979
+ end
980
+ end
981
+
982
+ # Response message for the `ListPredictionApiKeyRegistrations`.
983
+ class GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse
984
+ include Google::Apis::Core::Hashable
985
+
986
+ # If empty, the list is complete. If nonempty, pass the token to the next
987
+ # request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
988
+ # Corresponds to the JSON property `nextPageToken`
989
+ # @return [String]
990
+ attr_accessor :next_page_token
991
+
992
+ # The list of registered API keys.
993
+ # Corresponds to the JSON property `predictionApiKeyRegistrations`
994
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration>]
995
+ attr_accessor :prediction_api_key_registrations
996
+
997
+ def initialize(**args)
998
+ update!(**args)
999
+ end
1000
+
1001
+ # Update properties of this object
1002
+ def update!(**args)
1003
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1004
+ @prediction_api_key_registrations = args[:prediction_api_key_registrations] if args.key?(:prediction_api_key_registrations)
1005
+ end
1006
+ end
1007
+
1008
+ # Response message for ListUserEvents method.
1009
+ class GoogleCloudRecommendationengineV1beta1ListUserEventsResponse
1010
+ include Google::Apis::Core::Hashable
1011
+
1012
+ # If empty, the list is complete. If nonempty, the token to pass to the next
1013
+ # request's ListUserEvents.page_token.
1014
+ # Corresponds to the JSON property `nextPageToken`
1015
+ # @return [String]
1016
+ attr_accessor :next_page_token
1017
+
1018
+ # The user events.
1019
+ # Corresponds to the JSON property `userEvents`
1020
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent>]
1021
+ attr_accessor :user_events
1022
+
1023
+ def initialize(**args)
1024
+ update!(**args)
1025
+ end
1026
+
1027
+ # Update properties of this object
1028
+ def update!(**args)
1029
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1030
+ @user_events = args[:user_events] if args.key?(:user_events)
1031
+ end
1032
+ end
1033
+
1034
+ # Request message for Predict method.
1035
+ class GoogleCloudRecommendationengineV1beta1PredictRequest
1036
+ include Google::Apis::Core::Hashable
1037
+
1038
+ # Optional. Use dryRun mode for this prediction query. If set to true, a
1039
+ # dummy model will be used that returns arbitrary catalog items.
1040
+ # Note that the dryRun mode should only be used for testing the API, or if
1041
+ # the model is not ready.
1042
+ # Corresponds to the JSON property `dryRun`
1043
+ # @return [Boolean]
1044
+ attr_accessor :dry_run
1045
+ alias_method :dry_run?, :dry_run
1046
+
1047
+ # Optional. Filter for restricting prediction results. Accepts values for
1048
+ # tags and the `filterOutOfStockItems` flag.
1049
+ # * Tag expressions. Restricts predictions to items that match all of the
1050
+ # specified tags. Boolean operators `OR` and `NOT` are supported if the
1051
+ # expression is enclosed in parentheses, and must be separated from the
1052
+ # tag values by a space. `-"tagA"` is also supported and is equivalent to
1053
+ # `NOT "tagA"`. Tag values must be double quoted UTF-8 encoded strings
1054
+ # with a size limit of 1 KiB.
1055
+ # * filterOutOfStockItems. Restricts predictions to items that do not have a
1056
+ # stockState value of OUT_OF_STOCK.
1057
+ # Examples:
1058
+ # * tag=("Red" OR "Blue") tag="New-Arrival" tag=(NOT "promotional")
1059
+ # * filterOutOfStockItems tag=(-"promotional")
1060
+ # * filterOutOfStockItems
1061
+ # If your filter blocks all prediction results, nothing will be returned. If
1062
+ # you want generic (unfiltered) popular items to be returned instead, set
1063
+ # `strictFiltering` to false in `PredictRequest.params`.
1064
+ # Corresponds to the JSON property `filter`
1065
+ # @return [String]
1066
+ attr_accessor :filter
1067
+
1068
+ # Optional. The labels for the predict request.
1069
+ # * Label keys can contain lowercase letters, digits and hyphens, must start
1070
+ # with a letter, and must end with a letter or digit.
1071
+ # * Non-zero label values can contain lowercase letters, digits and hyphens,
1072
+ # must start with a letter, and must end with a letter or digit.
1073
+ # * No more than 64 labels can be associated with a given request.
1074
+ # See https://goo.gl/xmQnxf for more information on and examples of labels.
1075
+ # Corresponds to the JSON property `labels`
1076
+ # @return [Hash<String,String>]
1077
+ attr_accessor :labels
1078
+
1079
+ # Optional. Maximum number of results to return per page. Set this property
1080
+ # to the number of prediction results required. If zero, the service will
1081
+ # choose a reasonable default.
1082
+ # Corresponds to the JSON property `pageSize`
1083
+ # @return [Fixnum]
1084
+ attr_accessor :page_size
1085
+
1086
+ # Optional. The previous PredictResponse.next_page_token.
1087
+ # Corresponds to the JSON property `pageToken`
1088
+ # @return [String]
1089
+ attr_accessor :page_token
1090
+
1091
+ # Optional. Additional domain specific parameters for the predictions.
1092
+ # Allowed values:
1093
+ # * `returnCatalogItem`: Boolean. If set to true, the associated catalogItem
1094
+ # object will be returned in the
1095
+ # `PredictResponse.PredictionResult.itemMetadata` object in the method
1096
+ # response.
1097
+ # * `returnItemScore`: Boolean. If set to true, the prediction 'score'
1098
+ # corresponding to each returned item will be set in the `metadata`
1099
+ # field in the prediction response. The given 'score' indicates the
1100
+ # probability of an item being clicked/purchased given the user's context
1101
+ # and history.
1102
+ # * `strictFiltering`: Boolean. True by default. If set to false, the service
1103
+ # will return generic (unfiltered) popular items instead of empty if your
1104
+ # filter blocks all prediction results.
1105
+ # Corresponds to the JSON property `params`
1106
+ # @return [Hash<String,Object>]
1107
+ attr_accessor :params
1108
+
1109
+ # UserEvent captures all metadata information recommendation engine needs to
1110
+ # know about how end users interact with customers' website.
1111
+ # Corresponds to the JSON property `userEvent`
1112
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent]
1113
+ attr_accessor :user_event
1114
+
1115
+ def initialize(**args)
1116
+ update!(**args)
1117
+ end
1118
+
1119
+ # Update properties of this object
1120
+ def update!(**args)
1121
+ @dry_run = args[:dry_run] if args.key?(:dry_run)
1122
+ @filter = args[:filter] if args.key?(:filter)
1123
+ @labels = args[:labels] if args.key?(:labels)
1124
+ @page_size = args[:page_size] if args.key?(:page_size)
1125
+ @page_token = args[:page_token] if args.key?(:page_token)
1126
+ @params = args[:params] if args.key?(:params)
1127
+ @user_event = args[:user_event] if args.key?(:user_event)
1128
+ end
1129
+ end
1130
+
1131
+ # Response message for predict method.
1132
+ class GoogleCloudRecommendationengineV1beta1PredictResponse
1133
+ include Google::Apis::Core::Hashable
1134
+
1135
+ # True if the dryRun property was set in the request.
1136
+ # Corresponds to the JSON property `dryRun`
1137
+ # @return [Boolean]
1138
+ attr_accessor :dry_run
1139
+ alias_method :dry_run?, :dry_run
1140
+
1141
+ # IDs of items in the request that were missing from the catalog.
1142
+ # Corresponds to the JSON property `itemsMissingInCatalog`
1143
+ # @return [Array<String>]
1144
+ attr_accessor :items_missing_in_catalog
1145
+
1146
+ # Additional domain specific prediction response metadata.
1147
+ # Corresponds to the JSON property `metadata`
1148
+ # @return [Hash<String,Object>]
1149
+ attr_accessor :metadata
1150
+
1151
+ # If empty, the list is complete. If nonempty, the token to pass to the next
1152
+ # request's PredictRequest.page_token.
1153
+ # Corresponds to the JSON property `nextPageToken`
1154
+ # @return [String]
1155
+ attr_accessor :next_page_token
1156
+
1157
+ # A unique recommendation token. This should be included in the user event
1158
+ # logs resulting from this recommendation, which enables accurate attribution
1159
+ # of recommendation model performance.
1160
+ # Corresponds to the JSON property `recommendationToken`
1161
+ # @return [String]
1162
+ attr_accessor :recommendation_token
1163
+
1164
+ # A list of recommended items. The order represents the ranking (from the
1165
+ # most relevant item to the least).
1166
+ # Corresponds to the JSON property `results`
1167
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult>]
1168
+ attr_accessor :results
1169
+
1170
+ def initialize(**args)
1171
+ update!(**args)
1172
+ end
1173
+
1174
+ # Update properties of this object
1175
+ def update!(**args)
1176
+ @dry_run = args[:dry_run] if args.key?(:dry_run)
1177
+ @items_missing_in_catalog = args[:items_missing_in_catalog] if args.key?(:items_missing_in_catalog)
1178
+ @metadata = args[:metadata] if args.key?(:metadata)
1179
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1180
+ @recommendation_token = args[:recommendation_token] if args.key?(:recommendation_token)
1181
+ @results = args[:results] if args.key?(:results)
1182
+ end
1183
+ end
1184
+
1185
+ # PredictionResult represents the recommendation prediction results.
1186
+ class GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult
1187
+ include Google::Apis::Core::Hashable
1188
+
1189
+ # ID of the recommended catalog item
1190
+ # Corresponds to the JSON property `id`
1191
+ # @return [String]
1192
+ attr_accessor :id
1193
+
1194
+ # Additional item metadata / annotations.
1195
+ # Possible values:
1196
+ # * `catalogItem`: JSON representation of the catalogItem. Will be set if
1197
+ # `returnCatalogItem` is set to true in `PredictRequest.params`.
1198
+ # * `score`: Prediction score in double value. Will be set if
1199
+ # `returnItemScore` is set to true in `PredictRequest.params`.
1200
+ # Corresponds to the JSON property `itemMetadata`
1201
+ # @return [Hash<String,Object>]
1202
+ attr_accessor :item_metadata
1203
+
1204
+ def initialize(**args)
1205
+ update!(**args)
1206
+ end
1207
+
1208
+ # Update properties of this object
1209
+ def update!(**args)
1210
+ @id = args[:id] if args.key?(:id)
1211
+ @item_metadata = args[:item_metadata] if args.key?(:item_metadata)
1212
+ end
1213
+ end
1214
+
1215
+ # Registered Api Key.
1216
+ class GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration
1217
+ include Google::Apis::Core::Hashable
1218
+
1219
+ # The API key.
1220
+ # Corresponds to the JSON property `apiKey`
1221
+ # @return [String]
1222
+ attr_accessor :api_key
1223
+
1224
+ def initialize(**args)
1225
+ update!(**args)
1226
+ end
1227
+
1228
+ # Update properties of this object
1229
+ def update!(**args)
1230
+ @api_key = args[:api_key] if args.key?(:api_key)
1231
+ end
1232
+ end
1233
+
1234
+ # ProductCatalogItem captures item metadata specific to retail products.
1235
+ class GoogleCloudRecommendationengineV1beta1ProductCatalogItem
1236
+ include Google::Apis::Core::Hashable
1237
+
1238
+ # Optional. The available quantity of the item.
1239
+ # Corresponds to the JSON property `availableQuantity`
1240
+ # @return [Fixnum]
1241
+ attr_accessor :available_quantity
1242
+
1243
+ # Optional. Canonical URL directly linking to the item detail page with a
1244
+ # length limit of 5 KiB..
1245
+ # Corresponds to the JSON property `canonicalProductUri`
1246
+ # @return [String]
1247
+ attr_accessor :canonical_product_uri
1248
+
1249
+ # Optional. A map to pass the costs associated with the product.
1250
+ # For example:
1251
+ # `"manufacturing": 45.5` The profit of selling this item is computed like
1252
+ # so:
1253
+ # * If 'exactPrice' is provided, profit = displayPrice - sum(costs)
1254
+ # * If 'priceRange' is provided, profit = minPrice - sum(costs)
1255
+ # Corresponds to the JSON property `costs`
1256
+ # @return [Hash<String,Float>]
1257
+ attr_accessor :costs
1258
+
1259
+ # Optional. Only required if the price is set. Currency code for price/costs.
1260
+ # Use
1261
+ # three-character ISO-4217 code.
1262
+ # Corresponds to the JSON property `currencyCode`
1263
+ # @return [String]
1264
+ attr_accessor :currency_code
1265
+
1266
+ # Exact product price.
1267
+ # Corresponds to the JSON property `exactPrice`
1268
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice]
1269
+ attr_accessor :exact_price
1270
+
1271
+ # Optional. Product images for the catalog item.
1272
+ # Corresponds to the JSON property `images`
1273
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Image>]
1274
+ attr_accessor :images
1275
+
1276
+ # Product price range when there are a range of prices for different
1277
+ # variations of the same product.
1278
+ # Corresponds to the JSON property `priceRange`
1279
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange]
1280
+ attr_accessor :price_range
1281
+
1282
+ # Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
1283
+ # Corresponds to the JSON property `stockState`
1284
+ # @return [String]
1285
+ attr_accessor :stock_state
1286
+
1287
+ def initialize(**args)
1288
+ update!(**args)
1289
+ end
1290
+
1291
+ # Update properties of this object
1292
+ def update!(**args)
1293
+ @available_quantity = args[:available_quantity] if args.key?(:available_quantity)
1294
+ @canonical_product_uri = args[:canonical_product_uri] if args.key?(:canonical_product_uri)
1295
+ @costs = args[:costs] if args.key?(:costs)
1296
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1297
+ @exact_price = args[:exact_price] if args.key?(:exact_price)
1298
+ @images = args[:images] if args.key?(:images)
1299
+ @price_range = args[:price_range] if args.key?(:price_range)
1300
+ @stock_state = args[:stock_state] if args.key?(:stock_state)
1301
+ end
1302
+ end
1303
+
1304
+ # Exact product price.
1305
+ class GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice
1306
+ include Google::Apis::Core::Hashable
1307
+
1308
+ # Optional. Display price of the product.
1309
+ # Corresponds to the JSON property `displayPrice`
1310
+ # @return [Float]
1311
+ attr_accessor :display_price
1312
+
1313
+ # Optional. Price of the product without any discount. If zero, by default
1314
+ # set to be the 'displayPrice'.
1315
+ # Corresponds to the JSON property `originalPrice`
1316
+ # @return [Float]
1317
+ attr_accessor :original_price
1318
+
1319
+ def initialize(**args)
1320
+ update!(**args)
1321
+ end
1322
+
1323
+ # Update properties of this object
1324
+ def update!(**args)
1325
+ @display_price = args[:display_price] if args.key?(:display_price)
1326
+ @original_price = args[:original_price] if args.key?(:original_price)
1327
+ end
1328
+ end
1329
+
1330
+ # Product price range when there are a range of prices for different
1331
+ # variations of the same product.
1332
+ class GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange
1333
+ include Google::Apis::Core::Hashable
1334
+
1335
+ # Required. The maximum product price.
1336
+ # Corresponds to the JSON property `max`
1337
+ # @return [Float]
1338
+ attr_accessor :max
1339
+
1340
+ # Required. The minimum product price.
1341
+ # Corresponds to the JSON property `min`
1342
+ # @return [Float]
1343
+ attr_accessor :min
1344
+
1345
+ def initialize(**args)
1346
+ update!(**args)
1347
+ end
1348
+
1349
+ # Update properties of this object
1350
+ def update!(**args)
1351
+ @max = args[:max] if args.key?(:max)
1352
+ @min = args[:min] if args.key?(:min)
1353
+ end
1354
+ end
1355
+
1356
+ # Detailed product information associated with a user event.
1357
+ class GoogleCloudRecommendationengineV1beta1ProductDetail
1358
+ include Google::Apis::Core::Hashable
1359
+
1360
+ # Optional. Quantity of the products in stock when a user event happens.
1361
+ # Optional. If provided, this overrides the available quantity in Catalog for
1362
+ # this event. and can only be set if `stock_status` is set to `IN_STOCK`.
1363
+ # Note that if an item is out of stock, you must set the `stock_state` field
1364
+ # to be `OUT_OF_STOCK`. Leaving this field unspecified / as zero is not
1365
+ # sufficient to mark the item out of stock.
1366
+ # Corresponds to the JSON property `availableQuantity`
1367
+ # @return [Fixnum]
1368
+ attr_accessor :available_quantity
1369
+
1370
+ # Optional. Currency code for price/costs. Use three-character ISO-4217
1371
+ # code. Required only if originalPrice or displayPrice is set.
1372
+ # Corresponds to the JSON property `currencyCode`
1373
+ # @return [String]
1374
+ attr_accessor :currency_code
1375
+
1376
+ # Optional. Display price of the product (e.g. discounted price). If
1377
+ # provided, this will override the display price in Catalog for this product.
1378
+ # Corresponds to the JSON property `displayPrice`
1379
+ # @return [Float]
1380
+ attr_accessor :display_price
1381
+
1382
+ # Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
1383
+ # characters.
1384
+ # Corresponds to the JSON property `id`
1385
+ # @return [String]
1386
+ attr_accessor :id
1387
+
1388
+ # FeatureMap represents extra features that customers want to include in the
1389
+ # recommendation model for catalogs/user events as categorical/numerical
1390
+ # features.
1391
+ # Corresponds to the JSON property `itemAttributes`
1392
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap]
1393
+ attr_accessor :item_attributes
1394
+
1395
+ # Optional. Original price of the product. If provided, this will override
1396
+ # the original price in Catalog for this product.
1397
+ # Corresponds to the JSON property `originalPrice`
1398
+ # @return [Float]
1399
+ attr_accessor :original_price
1400
+
1401
+ # Optional. Quantity of the product associated with the user event. For
1402
+ # example, this field will be 2 if two products are added to the shopping
1403
+ # cart for `add-to-cart` event. Required for `add-to-cart`, `add-to-list`,
1404
+ # `remove-from-cart`, `checkout-start`, `purchase-complete`, `refund` event
1405
+ # types.
1406
+ # Corresponds to the JSON property `quantity`
1407
+ # @return [Fixnum]
1408
+ attr_accessor :quantity
1409
+
1410
+ # Optional. Item stock state. If provided, this overrides the stock state
1411
+ # in Catalog for items in this event.
1412
+ # Corresponds to the JSON property `stockState`
1413
+ # @return [String]
1414
+ attr_accessor :stock_state
1415
+
1416
+ def initialize(**args)
1417
+ update!(**args)
1418
+ end
1419
+
1420
+ # Update properties of this object
1421
+ def update!(**args)
1422
+ @available_quantity = args[:available_quantity] if args.key?(:available_quantity)
1423
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1424
+ @display_price = args[:display_price] if args.key?(:display_price)
1425
+ @id = args[:id] if args.key?(:id)
1426
+ @item_attributes = args[:item_attributes] if args.key?(:item_attributes)
1427
+ @original_price = args[:original_price] if args.key?(:original_price)
1428
+ @quantity = args[:quantity] if args.key?(:quantity)
1429
+ @stock_state = args[:stock_state] if args.key?(:stock_state)
1430
+ end
1431
+ end
1432
+
1433
+ # ProductEventDetail captures user event information specific to retail
1434
+ # products.
1435
+ class GoogleCloudRecommendationengineV1beta1ProductEventDetail
1436
+ include Google::Apis::Core::Hashable
1437
+
1438
+ # Optional. The id or name of the associated shopping cart. This id is used
1439
+ # to associate multiple items added or present in the cart before purchase.
1440
+ # This can only be set for `add-to-cart`, `remove-from-cart`,
1441
+ # `checkout-start`, `purchase-complete`, or `shopping-cart-page-view` events.
1442
+ # Corresponds to the JSON property `cartId`
1443
+ # @return [String]
1444
+ attr_accessor :cart_id
1445
+
1446
+ # Required for `add-to-list` and `remove-from-list` events. The id or name of
1447
+ # the list that the item is being added to or removed from. Other event types
1448
+ # should not set this field.
1449
+ # Corresponds to the JSON property `listId`
1450
+ # @return [String]
1451
+ attr_accessor :list_id
1452
+
1453
+ # Required for `category-page-view` events. Other event types should not set
1454
+ # this field.
1455
+ # The categories associated with a category page.
1456
+ # Category pages include special pages such as sales or promotions. For
1457
+ # instance, a special sale page may have the category hierarchy:
1458
+ # categories : ["Sales", "2017 Black Friday Deals"].
1459
+ # Corresponds to the JSON property `pageCategories`
1460
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy>]
1461
+ attr_accessor :page_categories
1462
+
1463
+ # The main product details related to the event.
1464
+ # This field is required for the following event types:
1465
+ # * `add-to-cart`
1466
+ # * `add-to-list`
1467
+ # * `checkout-start`
1468
+ # * `detail-page-view`
1469
+ # * `purchase-complete`
1470
+ # * `refund`
1471
+ # * `remove-from-cart`
1472
+ # * `remove-from-list`
1473
+ # This field is optional for the following event types:
1474
+ # * `page-visit`
1475
+ # * `shopping-cart-page-view` - note that 'product_details' should be set for
1476
+ # this unless the shopping cart is empty.
1477
+ # * `search` (highly encouraged)
1478
+ # In a `search` event, this field represents the products returned to the end
1479
+ # user on the current page (the end user may have not finished broswing the
1480
+ # whole page yet). When a new page is returned to the end user, after
1481
+ # pagination/filtering/ordering even for the same query, a new SEARCH event
1482
+ # with different product_details is desired. The end user may have not
1483
+ # finished broswing the whole page yet.
1484
+ # This field is not allowed for the following event types:
1485
+ # * `category-page-view`
1486
+ # * `home-page-view`
1487
+ # Corresponds to the JSON property `productDetails`
1488
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductDetail>]
1489
+ attr_accessor :product_details
1490
+
1491
+ # A transaction represents the entire purchase transaction.
1492
+ # Corresponds to the JSON property `purchaseTransaction`
1493
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PurchaseTransaction]
1494
+ attr_accessor :purchase_transaction
1495
+
1496
+ # Required for `search` events. Other event types should not set this field.
1497
+ # The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
1498
+ # Corresponds to the JSON property `searchQuery`
1499
+ # @return [String]
1500
+ attr_accessor :search_query
1501
+
1502
+ def initialize(**args)
1503
+ update!(**args)
1504
+ end
1505
+
1506
+ # Update properties of this object
1507
+ def update!(**args)
1508
+ @cart_id = args[:cart_id] if args.key?(:cart_id)
1509
+ @list_id = args[:list_id] if args.key?(:list_id)
1510
+ @page_categories = args[:page_categories] if args.key?(:page_categories)
1511
+ @product_details = args[:product_details] if args.key?(:product_details)
1512
+ @purchase_transaction = args[:purchase_transaction] if args.key?(:purchase_transaction)
1513
+ @search_query = args[:search_query] if args.key?(:search_query)
1514
+ end
1515
+ end
1516
+
1517
+ # A transaction represents the entire purchase transaction.
1518
+ class GoogleCloudRecommendationengineV1beta1PurchaseTransaction
1519
+ include Google::Apis::Core::Hashable
1520
+
1521
+ # Optional. All the costs associated with the product. These can be
1522
+ # manufacturing costs, shipping expenses not borne by the end user, or any
1523
+ # other costs.
1524
+ # Total product cost such that
1525
+ # profit = revenue - (sum(taxes) + sum(costs))
1526
+ # If product_cost is not set, then
1527
+ # profit = revenue - tax - shipping - sum(CatalogItem.costs).
1528
+ # If CatalogItem.cost is not specified for one of the items, CatalogItem.cost
1529
+ # based profit *cannot* be calculated for this Transaction.
1530
+ # Corresponds to the JSON property `costs`
1531
+ # @return [Hash<String,Float>]
1532
+ attr_accessor :costs
1533
+
1534
+ # Required. Currency code. Use three-character ISO-4217 code. This field
1535
+ # is not required if the event type is `refund`.
1536
+ # Corresponds to the JSON property `currencyCode`
1537
+ # @return [String]
1538
+ attr_accessor :currency_code
1539
+
1540
+ # Optional. The transaction ID with a length limit of 128 bytes.
1541
+ # Corresponds to the JSON property `id`
1542
+ # @return [String]
1543
+ attr_accessor :id
1544
+
1545
+ # Required. Total revenue or grand total associated with the transaction.
1546
+ # This value include shipping, tax, or other adjustments to total revenue
1547
+ # that you want to include as part of your revenue calculations. This field
1548
+ # is not required if the event type is `refund`.
1549
+ # Corresponds to the JSON property `revenue`
1550
+ # @return [Float]
1551
+ attr_accessor :revenue
1552
+
1553
+ # Optional. All the taxes associated with the transaction.
1554
+ # Corresponds to the JSON property `taxes`
1555
+ # @return [Hash<String,Float>]
1556
+ attr_accessor :taxes
1557
+
1558
+ def initialize(**args)
1559
+ update!(**args)
1560
+ end
1561
+
1562
+ # Update properties of this object
1563
+ def update!(**args)
1564
+ @costs = args[:costs] if args.key?(:costs)
1565
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1566
+ @id = args[:id] if args.key?(:id)
1567
+ @revenue = args[:revenue] if args.key?(:revenue)
1568
+ @taxes = args[:taxes] if args.key?(:taxes)
1569
+ end
1570
+ end
1571
+
1572
+ # Metadata related to the progress of the PurgeUserEvents operation.
1573
+ # This will be returned by the google.longrunning.Operation.metadata field.
1574
+ class GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata
1575
+ include Google::Apis::Core::Hashable
1576
+
1577
+ # Operation create time.
1578
+ # Corresponds to the JSON property `createTime`
1579
+ # @return [String]
1580
+ attr_accessor :create_time
1581
+
1582
+ # The ID of the request / operation.
1583
+ # Corresponds to the JSON property `operationName`
1584
+ # @return [String]
1585
+ attr_accessor :operation_name
1586
+
1587
+ def initialize(**args)
1588
+ update!(**args)
1589
+ end
1590
+
1591
+ # Update properties of this object
1592
+ def update!(**args)
1593
+ @create_time = args[:create_time] if args.key?(:create_time)
1594
+ @operation_name = args[:operation_name] if args.key?(:operation_name)
1595
+ end
1596
+ end
1597
+
1598
+ # Request message for PurgeUserEvents method.
1599
+ class GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest
1600
+ include Google::Apis::Core::Hashable
1601
+
1602
+ # Required. The filter string to specify the events to be deleted. Empty
1603
+ # string filter is not allowed. The eligible fields
1604
+ # for filtering are:
1605
+ # * `eventType`: UserEvent.eventType field of type string.
1606
+ # * `eventTime`: in ISO 8601 "zulu" format.
1607
+ # * `visitorId`: field of type string. Specifying this will delete all
1608
+ # events associated with a visitor.
1609
+ # * `userId`: field of type string. Specifying this will delete all events
1610
+ # associated with a user.
1611
+ # Examples:
1612
+ # * Deleting all events in a time range:
1613
+ # `eventTime > "2012-04-23T18:25:43.511Z"
1614
+ # eventTime < "2012-04-23T18:30:43.511Z"`
1615
+ # * Deleting specific eventType in time range:
1616
+ # `eventTime > "2012-04-23T18:25:43.511Z" eventType = "detail-page-view"`
1617
+ # * Deleting all events for a specific visitor:
1618
+ # `visitorId = "visitor1024"`
1619
+ # The filtering fields are assumed to have an implicit AND.
1620
+ # Corresponds to the JSON property `filter`
1621
+ # @return [String]
1622
+ attr_accessor :filter
1623
+
1624
+ # Optional. The default value is false. Override this flag to true to
1625
+ # actually perform the purge. If the field is not set to true, a sampling of
1626
+ # events to be deleted will be returned.
1627
+ # Corresponds to the JSON property `force`
1628
+ # @return [Boolean]
1629
+ attr_accessor :force
1630
+ alias_method :force?, :force
1631
+
1632
+ def initialize(**args)
1633
+ update!(**args)
1634
+ end
1635
+
1636
+ # Update properties of this object
1637
+ def update!(**args)
1638
+ @filter = args[:filter] if args.key?(:filter)
1639
+ @force = args[:force] if args.key?(:force)
1640
+ end
1641
+ end
1642
+
1643
+ # Response of the PurgeUserEventsRequest. If the long running operation is
1644
+ # successfully done, then this message is returned by the
1645
+ # google.longrunning.Operations.response field.
1646
+ class GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse
1647
+ include Google::Apis::Core::Hashable
1648
+
1649
+ # The total count of events purged as a result of the operation.
1650
+ # Corresponds to the JSON property `purgedEventsCount`
1651
+ # @return [Fixnum]
1652
+ attr_accessor :purged_events_count
1653
+
1654
+ # A sampling of events deleted (or will be deleted) depending on the `force`
1655
+ # property in the request. Max of 500 items will be returned.
1656
+ # Corresponds to the JSON property `userEventsSample`
1657
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent>]
1658
+ attr_accessor :user_events_sample
1659
+
1660
+ def initialize(**args)
1661
+ update!(**args)
1662
+ end
1663
+
1664
+ # Update properties of this object
1665
+ def update!(**args)
1666
+ @purged_events_count = args[:purged_events_count] if args.key?(:purged_events_count)
1667
+ @user_events_sample = args[:user_events_sample] if args.key?(:user_events_sample)
1668
+ end
1669
+ end
1670
+
1671
+ # Request message for CatalogRejoin method.
1672
+ class GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest
1673
+ include Google::Apis::Core::Hashable
1674
+
1675
+ # Required. The type of the catalog rejoin to define the scope and range of the
1676
+ # user
1677
+ # events to be rejoined with catalog items.
1678
+ # Corresponds to the JSON property `userEventRejoinScope`
1679
+ # @return [String]
1680
+ attr_accessor :user_event_rejoin_scope
1681
+
1682
+ def initialize(**args)
1683
+ update!(**args)
1684
+ end
1685
+
1686
+ # Update properties of this object
1687
+ def update!(**args)
1688
+ @user_event_rejoin_scope = args[:user_event_rejoin_scope] if args.key?(:user_event_rejoin_scope)
1689
+ end
1690
+ end
1691
+
1692
+ # UserEvent captures all metadata information recommendation engine needs to
1693
+ # know about how end users interact with customers' website.
1694
+ class GoogleCloudRecommendationengineV1beta1UserEvent
1695
+ include Google::Apis::Core::Hashable
1696
+
1697
+ # User event details shared by all recommendation types.
1698
+ # Corresponds to the JSON property `eventDetail`
1699
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1EventDetail]
1700
+ attr_accessor :event_detail
1701
+
1702
+ # Optional. This field should *not* be set when using JavaScript pixel
1703
+ # or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
1704
+ # Corresponds to the JSON property `eventSource`
1705
+ # @return [String]
1706
+ attr_accessor :event_source
1707
+
1708
+ # Optional. Only required for ImportUserEvents method. Timestamp of user
1709
+ # event created.
1710
+ # Corresponds to the JSON property `eventTime`
1711
+ # @return [String]
1712
+ attr_accessor :event_time
1713
+
1714
+ # Required. User event type. Allowed values are:
1715
+ # * `add-to-cart` Products being added to cart.
1716
+ # * `add-to-list` Items being added to a list (shopping list, favorites
1717
+ # etc).
1718
+ # * `category-page-view` Special pages such as sale or promotion pages
1719
+ # viewed.
1720
+ # * `checkout-start` User starting a checkout process.
1721
+ # * `detail-page-view` Products detail page viewed.
1722
+ # * `home-page-view` Homepage viewed.
1723
+ # * `page-visit` Generic page visits not included in the event types above.
1724
+ # * `purchase-complete` User finishing a purchase.
1725
+ # * `refund` Purchased items being refunded or returned.
1726
+ # * `remove-from-cart` Products being removed from cart.
1727
+ # * `remove-from-list` Items being removed from a list.
1728
+ # * `search` Product search.
1729
+ # * `shopping-cart-page-view` User viewing a shopping cart.
1730
+ # * `impression` List of items displayed. Used by Google Tag Manager.
1731
+ # Corresponds to the JSON property `eventType`
1732
+ # @return [String]
1733
+ attr_accessor :event_type
1734
+
1735
+ # ProductEventDetail captures user event information specific to retail
1736
+ # products.
1737
+ # Corresponds to the JSON property `productEventDetail`
1738
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductEventDetail]
1739
+ attr_accessor :product_event_detail
1740
+
1741
+ # Information of end users.
1742
+ # Corresponds to the JSON property `userInfo`
1743
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserInfo]
1744
+ attr_accessor :user_info
1745
+
1746
+ def initialize(**args)
1747
+ update!(**args)
1748
+ end
1749
+
1750
+ # Update properties of this object
1751
+ def update!(**args)
1752
+ @event_detail = args[:event_detail] if args.key?(:event_detail)
1753
+ @event_source = args[:event_source] if args.key?(:event_source)
1754
+ @event_time = args[:event_time] if args.key?(:event_time)
1755
+ @event_type = args[:event_type] if args.key?(:event_type)
1756
+ @product_event_detail = args[:product_event_detail] if args.key?(:product_event_detail)
1757
+ @user_info = args[:user_info] if args.key?(:user_info)
1758
+ end
1759
+ end
1760
+
1761
+ # A summary of import result. The UserEventImportSummary summarizes
1762
+ # the import status for user events.
1763
+ class GoogleCloudRecommendationengineV1beta1UserEventImportSummary
1764
+ include Google::Apis::Core::Hashable
1765
+
1766
+ # Count of user events imported with complete existing catalog information.
1767
+ # Corresponds to the JSON property `joinedEventsCount`
1768
+ # @return [Fixnum]
1769
+ attr_accessor :joined_events_count
1770
+
1771
+ # Count of user events imported, but with catalog information not found
1772
+ # in the imported catalog.
1773
+ # Corresponds to the JSON property `unjoinedEventsCount`
1774
+ # @return [Fixnum]
1775
+ attr_accessor :unjoined_events_count
1776
+
1777
+ def initialize(**args)
1778
+ update!(**args)
1779
+ end
1780
+
1781
+ # Update properties of this object
1782
+ def update!(**args)
1783
+ @joined_events_count = args[:joined_events_count] if args.key?(:joined_events_count)
1784
+ @unjoined_events_count = args[:unjoined_events_count] if args.key?(:unjoined_events_count)
1785
+ end
1786
+ end
1787
+
1788
+ # The inline source for the input config for ImportUserEvents method.
1789
+ class GoogleCloudRecommendationengineV1beta1UserEventInlineSource
1790
+ include Google::Apis::Core::Hashable
1791
+
1792
+ # Optional. A list of user events to import. Recommended max of 10k items.
1793
+ # Corresponds to the JSON property `userEvents`
1794
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent>]
1795
+ attr_accessor :user_events
1796
+
1797
+ def initialize(**args)
1798
+ update!(**args)
1799
+ end
1800
+
1801
+ # Update properties of this object
1802
+ def update!(**args)
1803
+ @user_events = args[:user_events] if args.key?(:user_events)
1804
+ end
1805
+ end
1806
+
1807
+ # Information of end users.
1808
+ class GoogleCloudRecommendationengineV1beta1UserInfo
1809
+ include Google::Apis::Core::Hashable
1810
+
1811
+ # Optional. Indicates if the request is made directly from the end user
1812
+ # in which case the user_agent and ip_address fields can be populated
1813
+ # from the HTTP request. This should *not* be set when using the javascript
1814
+ # pixel. This flag should be set only if the API request is made directly
1815
+ # from the end user such as a mobile app (and not if a gateway or a server is
1816
+ # processing and pushing the user events).
1817
+ # Corresponds to the JSON property `directUserRequest`
1818
+ # @return [Boolean]
1819
+ attr_accessor :direct_user_request
1820
+ alias_method :direct_user_request?, :direct_user_request
1821
+
1822
+ # Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80)
1823
+ # or
1824
+ # IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
1825
+ # set when using the javascript pixel or if `direct_user_request` is set.
1826
+ # Used to extract location information for personalization.
1827
+ # Corresponds to the JSON property `ipAddress`
1828
+ # @return [String]
1829
+ attr_accessor :ip_address
1830
+
1831
+ # Optional. User agent as included in the HTTP header. UTF-8 encoded string
1832
+ # with a length limit of 1 KiB.
1833
+ # This should *not* be set when using the JavaScript pixel or if
1834
+ # `directUserRequest` is set.
1835
+ # Corresponds to the JSON property `userAgent`
1836
+ # @return [String]
1837
+ attr_accessor :user_agent
1838
+
1839
+ # Optional. Unique identifier for logged-in user with a length limit of 128
1840
+ # bytes. Required only for logged-in users.
1841
+ # Corresponds to the JSON property `userId`
1842
+ # @return [String]
1843
+ attr_accessor :user_id
1844
+
1845
+ # Required. A unique identifier for tracking visitors with a length limit of
1846
+ # 128 bytes.
1847
+ # For example, this could be implemented with a http cookie, which should be
1848
+ # able to uniquely identify a visitor on a single device. This unique
1849
+ # identifier should not change if the visitor log in/out of the website.
1850
+ # Maximum length 128 bytes. Cannot be empty.
1851
+ # Corresponds to the JSON property `visitorId`
1852
+ # @return [String]
1853
+ attr_accessor :visitor_id
1854
+
1855
+ def initialize(**args)
1856
+ update!(**args)
1857
+ end
1858
+
1859
+ # Update properties of this object
1860
+ def update!(**args)
1861
+ @direct_user_request = args[:direct_user_request] if args.key?(:direct_user_request)
1862
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
1863
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
1864
+ @user_id = args[:user_id] if args.key?(:user_id)
1865
+ @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
1866
+ end
1867
+ end
1868
+
1869
+ # The response message for Operations.ListOperations.
1870
+ class GoogleLongrunningListOperationsResponse
1871
+ include Google::Apis::Core::Hashable
1872
+
1873
+ # The standard List next-page token.
1874
+ # Corresponds to the JSON property `nextPageToken`
1875
+ # @return [String]
1876
+ attr_accessor :next_page_token
1877
+
1878
+ # A list of operations that matches the specified filter in the request.
1879
+ # Corresponds to the JSON property `operations`
1880
+ # @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation>]
1881
+ attr_accessor :operations
1882
+
1883
+ def initialize(**args)
1884
+ update!(**args)
1885
+ end
1886
+
1887
+ # Update properties of this object
1888
+ def update!(**args)
1889
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1890
+ @operations = args[:operations] if args.key?(:operations)
1891
+ end
1892
+ end
1893
+
1894
+ # This resource represents a long-running operation that is the result of a
1895
+ # network API call.
1896
+ class GoogleLongrunningOperation
1897
+ include Google::Apis::Core::Hashable
1898
+
1899
+ # If the value is `false`, it means the operation is still in progress.
1900
+ # If `true`, the operation is completed, and either `error` or `response` is
1901
+ # available.
1902
+ # Corresponds to the JSON property `done`
1903
+ # @return [Boolean]
1904
+ attr_accessor :done
1905
+ alias_method :done?, :done
1906
+
1907
+ # The `Status` type defines a logical error model that is suitable for
1908
+ # different programming environments, including REST APIs and RPC APIs. It is
1909
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1910
+ # three pieces of data: error code, error message, and error details.
1911
+ # You can find out more about this error model and how to work with it in the
1912
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
1913
+ # Corresponds to the JSON property `error`
1914
+ # @return [Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus]
1915
+ attr_accessor :error
1916
+
1917
+ # Service-specific metadata associated with the operation. It typically
1918
+ # contains progress information and common metadata such as create time.
1919
+ # Some services might not provide such metadata. Any method that returns a
1920
+ # long-running operation should document the metadata type, if any.
1921
+ # Corresponds to the JSON property `metadata`
1922
+ # @return [Hash<String,Object>]
1923
+ attr_accessor :metadata
1924
+
1925
+ # The server-assigned name, which is only unique within the same service that
1926
+ # originally returns it. If you use the default HTTP mapping, the
1927
+ # `name` should be a resource name ending with `operations/`unique_id``.
1928
+ # Corresponds to the JSON property `name`
1929
+ # @return [String]
1930
+ attr_accessor :name
1931
+
1932
+ # The normal response of the operation in case of success. If the original
1933
+ # method returns no data on success, such as `Delete`, the response is
1934
+ # `google.protobuf.Empty`. If the original method is standard
1935
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
1936
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
1937
+ # is the original method name. For example, if the original method name
1938
+ # is `TakeSnapshot()`, the inferred response type is
1939
+ # `TakeSnapshotResponse`.
1940
+ # Corresponds to the JSON property `response`
1941
+ # @return [Hash<String,Object>]
1942
+ attr_accessor :response
1943
+
1944
+ def initialize(**args)
1945
+ update!(**args)
1946
+ end
1947
+
1948
+ # Update properties of this object
1949
+ def update!(**args)
1950
+ @done = args[:done] if args.key?(:done)
1951
+ @error = args[:error] if args.key?(:error)
1952
+ @metadata = args[:metadata] if args.key?(:metadata)
1953
+ @name = args[:name] if args.key?(:name)
1954
+ @response = args[:response] if args.key?(:response)
1955
+ end
1956
+ end
1957
+
1958
+ # A generic empty message that you can re-use to avoid defining duplicated
1959
+ # empty messages in your APIs. A typical example is to use it as the request
1960
+ # or the response type of an API method. For instance:
1961
+ # service Foo `
1962
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1963
+ # `
1964
+ # The JSON representation for `Empty` is empty JSON object ````.
1965
+ class GoogleProtobufEmpty
1966
+ include Google::Apis::Core::Hashable
1967
+
1968
+ def initialize(**args)
1969
+ update!(**args)
1970
+ end
1971
+
1972
+ # Update properties of this object
1973
+ def update!(**args)
1974
+ end
1975
+ end
1976
+
1977
+ # The `Status` type defines a logical error model that is suitable for
1978
+ # different programming environments, including REST APIs and RPC APIs. It is
1979
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1980
+ # three pieces of data: error code, error message, and error details.
1981
+ # You can find out more about this error model and how to work with it in the
1982
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
1983
+ class GoogleRpcStatus
1984
+ include Google::Apis::Core::Hashable
1985
+
1986
+ # The status code, which should be an enum value of google.rpc.Code.
1987
+ # Corresponds to the JSON property `code`
1988
+ # @return [Fixnum]
1989
+ attr_accessor :code
1990
+
1991
+ # A list of messages that carry the error details. There is a common set of
1992
+ # message types for APIs to use.
1993
+ # Corresponds to the JSON property `details`
1994
+ # @return [Array<Hash<String,Object>>]
1995
+ attr_accessor :details
1996
+
1997
+ # A developer-facing error message, which should be in English. Any
1998
+ # user-facing error message should be localized and sent in the
1999
+ # google.rpc.Status.details field, or localized by the client.
2000
+ # Corresponds to the JSON property `message`
2001
+ # @return [String]
2002
+ attr_accessor :message
2003
+
2004
+ def initialize(**args)
2005
+ update!(**args)
2006
+ end
2007
+
2008
+ # Update properties of this object
2009
+ def update!(**args)
2010
+ @code = args[:code] if args.key?(:code)
2011
+ @details = args[:details] if args.key?(:details)
2012
+ @message = args[:message] if args.key?(:message)
2013
+ end
2014
+ end
2015
+ end
2016
+ end
2017
+ end