google-api-client 0.20.1 → 0.21.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 (451) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +140 -0
  3. data/README.md +3 -12
  4. data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
  5. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +1 -0
  6. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  10. data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +24 -40
  12. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +66 -110
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +117 -195
  15. data/generated/google/apis/adexchangeseller_v1.rb +1 -1
  16. data/generated/google/apis/adexchangeseller_v1/service.rb +36 -60
  17. data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
  18. data/generated/google/apis/adexchangeseller_v1_1/service.rb +54 -90
  19. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  20. data/generated/google/apis/adexchangeseller_v2_0/service.rb +45 -75
  21. data/generated/google/apis/adexperiencereport_v1.rb +2 -2
  22. data/generated/google/apis/adexperiencereport_v1/classes.rb +1 -0
  23. data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
  24. data/generated/google/apis/admin_datatransfer_v1/service.rb +18 -30
  25. data/generated/google/apis/admin_directory_v1.rb +3 -3
  26. data/generated/google/apis/admin_directory_v1/classes.rb +18 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +3 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +363 -577
  29. data/generated/google/apis/admin_reports_v1.rb +1 -1
  30. data/generated/google/apis/admin_reports_v1/service.rb +21 -35
  31. data/generated/google/apis/adsense_v1_4.rb +1 -1
  32. data/generated/google/apis/adsense_v1_4/service.rb +117 -195
  33. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  34. data/generated/google/apis/adsensehost_v4_1/service.rb +81 -135
  35. data/generated/google/apis/analytics_v2_4.rb +1 -1
  36. data/generated/google/apis/analytics_v2_4/service.rb +21 -35
  37. data/generated/google/apis/analytics_v3.rb +1 -1
  38. data/generated/google/apis/analytics_v3/classes.rb +32 -60
  39. data/generated/google/apis/analytics_v3/representations.rb +8 -12
  40. data/generated/google/apis/analytics_v3/service.rb +261 -435
  41. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  42. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -1
  43. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  44. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -12
  45. data/generated/google/apis/androidenterprise_v1/service.rb +254 -425
  46. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  47. data/generated/google/apis/androidmanagement_v1/classes.rb +38 -6
  48. data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
  49. data/generated/google/apis/androidpublisher_v1.rb +1 -1
  50. data/generated/google/apis/androidpublisher_v1/service.rb +9 -15
  51. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  52. data/generated/google/apis/androidpublisher_v1_1/service.rb +12 -20
  53. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  54. data/generated/google/apis/androidpublisher_v2/classes.rb +102 -1
  55. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -0
  56. data/generated/google/apis/androidpublisher_v2/service.rb +255 -286
  57. data/generated/google/apis/androidpublisher_v3.rb +34 -0
  58. data/generated/google/apis/androidpublisher_v3/classes.rb +1899 -0
  59. data/generated/google/apis/androidpublisher_v3/representations.rb +882 -0
  60. data/generated/google/apis/androidpublisher_v3/service.rb +2208 -0
  61. data/generated/google/apis/appsactivity_v1.rb +1 -1
  62. data/generated/google/apis/appsactivity_v1/service.rb +6 -10
  63. data/generated/google/apis/appsmarket_v2/service.rb +12 -20
  64. data/generated/google/apis/appstate_v1.rb +1 -1
  65. data/generated/google/apis/appstate_v1/service.rb +18 -30
  66. data/generated/google/apis/bigquery_v2.rb +1 -1
  67. data/generated/google/apis/bigquery_v2/classes.rb +67 -9
  68. data/generated/google/apis/bigquery_v2/representations.rb +22 -0
  69. data/generated/google/apis/bigquery_v2/service.rb +69 -115
  70. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  71. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -2
  72. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
  73. data/generated/google/apis/blogger_v2/service.rb +30 -50
  74. data/generated/google/apis/blogger_v3/service.rb +102 -170
  75. data/generated/google/apis/books_v1.rb +1 -1
  76. data/generated/google/apis/books_v1/service.rb +156 -260
  77. data/generated/google/apis/calendar_v3.rb +1 -1
  78. data/generated/google/apis/calendar_v3/service.rb +114 -190
  79. data/generated/google/apis/chat_v1.rb +1 -1
  80. data/generated/google/apis/chat_v1/classes.rb +6 -0
  81. data/generated/google/apis/chat_v1/representations.rb +1 -0
  82. data/generated/google/apis/civicinfo_v2/service.rb +18 -30
  83. data/generated/google/apis/classroom_v1.rb +1 -1
  84. data/generated/google/apis/classroom_v1/classes.rb +0 -69
  85. data/generated/google/apis/classroom_v1/representations.rb +0 -31
  86. data/generated/google/apis/classroom_v1/service.rb +0 -88
  87. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  88. data/generated/google/apis/cloudbilling_v1/classes.rb +0 -1
  89. data/generated/google/apis/cloudbilling_v1/service.rb +2 -1
  90. data/generated/google/apis/cloudfunctions_v1.rb +3 -4
  91. data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
  92. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  93. data/generated/google/apis/cloudfunctions_v1/service.rb +3 -4
  94. data/generated/google/apis/cloudfunctions_v1beta2.rb +3 -4
  95. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +14 -0
  96. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
  97. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +3 -4
  98. data/generated/google/apis/cloudiot_v1.rb +1 -1
  99. data/generated/google/apis/cloudiot_v1/classes.rb +29 -7
  100. data/generated/google/apis/cloudiot_v1/service.rb +398 -1
  101. data/generated/google/apis/cloudkms_v1.rb +2 -2
  102. data/generated/google/apis/cloudkms_v1/classes.rb +29 -7
  103. data/generated/google/apis/cloudkms_v1/service.rb +1 -1
  104. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  105. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +30 -8
  106. data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -3
  107. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +29 -7
  109. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  110. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +29 -7
  111. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  112. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +29 -7
  113. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  114. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +39 -10
  115. data/generated/google/apis/cloudtasks_v2beta2/service.rb +9 -11
  116. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  117. data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
  118. data/generated/google/apis/{dlp_v2beta1.rb → composer_v1beta1.rb} +9 -11
  119. data/generated/google/apis/composer_v1beta1/classes.rb +643 -0
  120. data/generated/google/apis/composer_v1beta1/representations.rb +195 -0
  121. data/generated/google/apis/composer_v1beta1/service.rb +462 -0
  122. data/generated/google/apis/compute_alpha.rb +1 -1
  123. data/generated/google/apis/compute_alpha/classes.rb +3939 -2239
  124. data/generated/google/apis/compute_alpha/representations.rb +1063 -335
  125. data/generated/google/apis/compute_alpha/service.rb +3532 -3368
  126. data/generated/google/apis/compute_beta.rb +1 -1
  127. data/generated/google/apis/compute_beta/classes.rb +150 -53
  128. data/generated/google/apis/compute_beta/representations.rb +23 -0
  129. data/generated/google/apis/compute_beta/service.rb +1269 -2077
  130. data/generated/google/apis/compute_v1.rb +1 -1
  131. data/generated/google/apis/compute_v1/classes.rb +46 -43
  132. data/generated/google/apis/compute_v1/service.rb +1022 -1666
  133. data/generated/google/apis/container_v1.rb +2 -2
  134. data/generated/google/apis/container_v1/classes.rb +20 -15
  135. data/generated/google/apis/container_v1/representations.rb +1 -0
  136. data/generated/google/apis/container_v1/service.rb +33 -31
  137. data/generated/google/apis/container_v1beta1.rb +2 -2
  138. data/generated/google/apis/container_v1beta1/classes.rb +186 -14
  139. data/generated/google/apis/container_v1beta1/representations.rb +77 -0
  140. data/generated/google/apis/container_v1beta1/service.rb +111 -31
  141. data/generated/google/apis/content_v2.rb +1 -1
  142. data/generated/google/apis/content_v2/classes.rb +173 -8
  143. data/generated/google/apis/content_v2/representations.rb +71 -0
  144. data/generated/google/apis/content_v2/service.rb +246 -410
  145. data/generated/google/apis/content_v2sandbox.rb +1 -1
  146. data/generated/google/apis/content_v2sandbox/classes.rb +75 -8
  147. data/generated/google/apis/content_v2sandbox/representations.rb +33 -0
  148. data/generated/google/apis/content_v2sandbox/service.rb +63 -105
  149. data/generated/google/apis/customsearch_v1.rb +1 -1
  150. data/generated/google/apis/customsearch_v1/service.rb +9 -15
  151. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  152. data/generated/google/apis/dataflow_v1b3/classes.rb +15 -0
  153. data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
  154. data/generated/google/apis/dataproc_v1.rb +2 -2
  155. data/generated/google/apis/dataproc_v1/classes.rb +6 -6
  156. data/generated/google/apis/dataproc_v1/service.rb +1 -1
  157. data/generated/google/apis/dataproc_v1beta2.rb +2 -2
  158. data/generated/google/apis/dataproc_v1beta2/classes.rb +48 -13
  159. data/generated/google/apis/dataproc_v1beta2/representations.rb +12 -0
  160. data/generated/google/apis/dataproc_v1beta2/service.rb +1 -1
  161. data/generated/google/apis/datastore_v1.rb +2 -2
  162. data/generated/google/apis/datastore_v1/service.rb +1 -1
  163. data/generated/google/apis/datastore_v1beta1.rb +2 -2
  164. data/generated/google/apis/datastore_v1beta1/service.rb +1 -1
  165. data/generated/google/apis/datastore_v1beta3.rb +2 -2
  166. data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
  167. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  168. data/generated/google/apis/deploymentmanager_alpha/classes.rb +60 -5
  169. data/generated/google/apis/deploymentmanager_alpha/representations.rb +17 -0
  170. data/generated/google/apis/deploymentmanager_alpha/service.rb +118 -194
  171. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  172. data/generated/google/apis/deploymentmanager_v2/classes.rb +60 -5
  173. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -0
  174. data/generated/google/apis/deploymentmanager_v2/service.rb +61 -99
  175. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  176. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +60 -5
  177. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +17 -0
  178. data/generated/google/apis/deploymentmanager_v2beta/service.rb +103 -169
  179. data/generated/google/apis/dfareporting_v2_8/service.rb +618 -1030
  180. data/generated/google/apis/dfareporting_v3_0/service.rb +615 -1025
  181. data/generated/google/apis/dialogflow_v2.rb +1 -1
  182. data/generated/google/apis/dialogflow_v2/classes.rb +94 -24
  183. data/generated/google/apis/dialogflow_v2/representations.rb +13 -0
  184. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  185. data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -24
  186. data/generated/google/apis/dialogflow_v2beta1/representations.rb +13 -0
  187. data/generated/google/apis/discovery_v1/service.rb +9 -15
  188. data/generated/google/apis/dlp_v2.rb +1 -1
  189. data/generated/google/apis/dlp_v2/classes.rb +116 -1572
  190. data/generated/google/apis/dlp_v2/representations.rb +673 -1405
  191. data/generated/google/apis/dlp_v2/service.rb +24 -24
  192. data/generated/google/apis/dns_v1.rb +1 -1
  193. data/generated/google/apis/dns_v1/classes.rb +7 -0
  194. data/generated/google/apis/dns_v1/representations.rb +1 -0
  195. data/generated/google/apis/dns_v1/service.rb +49 -81
  196. data/generated/google/apis/dns_v1beta2.rb +1 -1
  197. data/generated/google/apis/dns_v1beta2/classes.rb +7 -0
  198. data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
  199. data/generated/google/apis/dns_v1beta2/service.rb +49 -81
  200. data/generated/google/apis/dns_v2beta1.rb +1 -1
  201. data/generated/google/apis/dns_v2beta1/classes.rb +7 -0
  202. data/generated/google/apis/dns_v2beta1/representations.rb +1 -0
  203. data/generated/google/apis/dns_v2beta1/service.rb +49 -81
  204. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +30 -50
  205. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  206. data/generated/google/apis/doubleclicksearch_v2/service.rb +33 -55
  207. data/generated/google/apis/drive_v2.rb +1 -1
  208. data/generated/google/apis/drive_v2/service.rb +205 -341
  209. data/generated/google/apis/drive_v3.rb +1 -1
  210. data/generated/google/apis/drive_v3/service.rb +120 -200
  211. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  212. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  213. data/generated/google/apis/firestore_v1beta1.rb +2 -2
  214. data/generated/google/apis/firestore_v1beta1/service.rb +1 -1
  215. data/generated/google/apis/fitness_v1/service.rb +45 -75
  216. data/generated/google/apis/fusiontables_v1.rb +1 -1
  217. data/generated/google/apis/fusiontables_v1/service.rb +99 -165
  218. data/generated/google/apis/fusiontables_v2/service.rb +105 -175
  219. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  220. data/generated/google/apis/games_configuration_v1configuration/service.rb +42 -70
  221. data/generated/google/apis/games_management_v1management.rb +1 -1
  222. data/generated/google/apis/games_management_v1management/service.rb +84 -140
  223. data/generated/google/apis/games_v1.rb +1 -1
  224. data/generated/google/apis/games_v1/service.rb +162 -270
  225. data/generated/google/apis/genomics_v1.rb +1 -1
  226. data/generated/google/apis/genomics_v1/classes.rb +41 -7
  227. data/generated/google/apis/genomics_v1/representations.rb +1 -0
  228. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  229. data/generated/google/apis/genomics_v1alpha2/classes.rb +12 -0
  230. data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
  231. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  232. data/generated/google/apis/genomics_v2alpha1/classes.rb +70 -0
  233. data/generated/google/apis/genomics_v2alpha1/representations.rb +20 -0
  234. data/generated/google/apis/gmail_v1/service.rb +189 -315
  235. data/generated/google/apis/groupsmigration_v1/service.rb +6 -10
  236. data/generated/google/apis/groupssettings_v1/service.rb +12 -20
  237. data/generated/google/apis/iam_v1.rb +2 -2
  238. data/generated/google/apis/iam_v1/classes.rb +29 -7
  239. data/generated/google/apis/iam_v1/service.rb +1 -1
  240. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  241. data/generated/google/apis/identitytoolkit_v3/service.rb +63 -105
  242. data/generated/google/apis/jobs_v2.rb +38 -0
  243. data/generated/google/apis/jobs_v2/classes.rb +3378 -0
  244. data/generated/google/apis/jobs_v2/representations.rb +1067 -0
  245. data/generated/google/apis/jobs_v2/service.rb +754 -0
  246. data/generated/google/apis/licensing_v1/service.rb +24 -40
  247. data/generated/google/apis/logging_v2.rb +1 -1
  248. data/generated/google/apis/logging_v2/classes.rb +55 -5
  249. data/generated/google/apis/logging_v2/representations.rb +16 -0
  250. data/generated/google/apis/logging_v2/service.rb +6 -4
  251. data/generated/google/apis/logging_v2beta1.rb +1 -1
  252. data/generated/google/apis/logging_v2beta1/classes.rb +55 -5
  253. data/generated/google/apis/logging_v2beta1/representations.rb +16 -0
  254. data/generated/google/apis/logging_v2beta1/service.rb +6 -4
  255. data/generated/google/apis/mirror_v1.rb +1 -1
  256. data/generated/google/apis/mirror_v1/service.rb +75 -125
  257. data/generated/google/apis/ml_v1.rb +1 -1
  258. data/generated/google/apis/ml_v1/classes.rb +65 -28
  259. data/generated/google/apis/ml_v1/representations.rb +1 -0
  260. data/generated/google/apis/ml_v1/service.rb +2 -2
  261. data/generated/google/apis/oauth2_v1.rb +1 -1
  262. data/generated/google/apis/oauth2_v1/service.rb +27 -45
  263. data/generated/google/apis/oauth2_v2.rb +1 -1
  264. data/generated/google/apis/oauth2_v2/service.rb +15 -25
  265. data/generated/google/apis/oslogin_v1.rb +1 -1
  266. data/generated/google/apis/oslogin_v1/classes.rb +6 -0
  267. data/generated/google/apis/oslogin_v1/representations.rb +1 -0
  268. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  269. data/generated/google/apis/oslogin_v1alpha/classes.rb +7 -1
  270. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  271. data/generated/google/apis/oslogin_v1alpha/service.rb +4 -1
  272. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  273. data/generated/google/apis/oslogin_v1beta/classes.rb +6 -0
  274. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  275. data/generated/google/apis/pagespeedonline_v1.rb +1 -1
  276. data/generated/google/apis/pagespeedonline_v1/service.rb +6 -10
  277. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  278. data/generated/google/apis/pagespeedonline_v2/service.rb +6 -10
  279. data/generated/google/apis/pagespeedonline_v4/service.rb +6 -10
  280. data/generated/google/apis/photoslibrary_v1.rb +49 -0
  281. data/generated/google/apis/photoslibrary_v1/classes.rb +1330 -0
  282. data/generated/google/apis/photoslibrary_v1/representations.rb +625 -0
  283. data/generated/google/apis/photoslibrary_v1/service.rb +399 -0
  284. data/generated/google/apis/playcustomapp_v1/service.rb +6 -10
  285. data/generated/google/apis/plus_domains_v1.rb +1 -1
  286. data/generated/google/apis/plus_domains_v1/service.rb +63 -105
  287. data/generated/google/apis/plus_v1.rb +1 -1
  288. data/generated/google/apis/plus_v1/service.rb +30 -50
  289. data/generated/google/apis/pubsub_v1.rb +2 -2
  290. data/generated/google/apis/pubsub_v1/classes.rb +29 -7
  291. data/generated/google/apis/pubsub_v1/service.rb +1 -1
  292. data/generated/google/apis/pubsub_v1beta1a.rb +2 -2
  293. data/generated/google/apis/pubsub_v1beta1a/service.rb +1 -1
  294. data/generated/google/apis/pubsub_v1beta2.rb +2 -2
  295. data/generated/google/apis/pubsub_v1beta2/classes.rb +29 -7
  296. data/generated/google/apis/pubsub_v1beta2/service.rb +1 -1
  297. data/generated/google/apis/{dlp_v2beta2.rb → redis_v1beta1.rb} +10 -11
  298. data/generated/google/apis/redis_v1beta1/classes.rb +681 -0
  299. data/generated/google/apis/redis_v1beta1/representations.rb +240 -0
  300. data/generated/google/apis/redis_v1beta1/service.rb +426 -0
  301. data/generated/google/apis/replicapool_v1beta1/service.rb +33 -55
  302. data/generated/google/apis/replicapool_v1beta2/service.rb +39 -65
  303. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +33 -55
  304. data/generated/google/apis/reseller_v1/service.rb +54 -90
  305. data/generated/google/apis/resourceviews_v1beta1/service.rb +45 -75
  306. data/generated/google/apis/resourceviews_v1beta2/service.rb +36 -60
  307. data/generated/google/apis/runtimeconfig_v1.rb +2 -2
  308. data/generated/google/apis/runtimeconfig_v1/service.rb +1 -1
  309. data/generated/google/apis/runtimeconfig_v1beta1.rb +2 -2
  310. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +28 -6
  311. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
  312. data/generated/google/apis/script_v1.rb +8 -2
  313. data/generated/google/apis/script_v1/classes.rb +3 -3
  314. data/generated/google/apis/script_v1/service.rb +8 -2
  315. data/generated/google/apis/servicebroker_v1.rb +36 -0
  316. data/generated/google/apis/servicebroker_v1/classes.rb +240 -0
  317. data/generated/google/apis/servicebroker_v1/representations.rb +96 -0
  318. data/generated/google/apis/servicebroker_v1/service.rb +168 -0
  319. data/generated/google/apis/servicebroker_v1alpha1.rb +36 -0
  320. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +939 -0
  321. data/generated/google/apis/servicebroker_v1alpha1/representations.rb +348 -0
  322. data/generated/google/apis/servicebroker_v1alpha1/service.rb +728 -0
  323. data/generated/google/apis/servicebroker_v1beta1.rb +36 -0
  324. data/generated/google/apis/servicebroker_v1beta1/classes.rb +1046 -0
  325. data/generated/google/apis/servicebroker_v1beta1/representations.rb +393 -0
  326. data/generated/google/apis/servicebroker_v1beta1/service.rb +917 -0
  327. data/generated/google/apis/servicecontrol_v1.rb +2 -2
  328. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
  329. data/generated/google/apis/servicecontrol_v1/service.rb +1 -1
  330. data/generated/google/apis/servicemanagement_v1.rb +2 -2
  331. data/generated/google/apis/servicemanagement_v1/classes.rb +29 -7
  332. data/generated/google/apis/servicemanagement_v1/service.rb +1 -1
  333. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  334. data/generated/google/apis/serviceusage_v1beta1/classes.rb +299 -0
  335. data/generated/google/apis/serviceusage_v1beta1/representations.rb +101 -0
  336. data/generated/google/apis/sheets_v4.rb +1 -1
  337. data/generated/google/apis/sheets_v4/classes.rb +421 -0
  338. data/generated/google/apis/sheets_v4/representations.rb +120 -0
  339. data/generated/google/apis/site_verification_v1/service.rb +24 -40
  340. data/generated/google/apis/slides_v1.rb +1 -1
  341. data/generated/google/apis/slides_v1/classes.rb +6 -2
  342. data/generated/google/apis/spanner_v1.rb +1 -1
  343. data/generated/google/apis/spanner_v1/classes.rb +39 -12
  344. data/generated/google/apis/spanner_v1/service.rb +2 -2
  345. data/generated/google/apis/spectrum_v1explorer.rb +1 -1
  346. data/generated/google/apis/spectrum_v1explorer/service.rb +21 -35
  347. data/generated/google/apis/speech_v1.rb +1 -1
  348. data/generated/google/apis/speech_v1/classes.rb +12 -0
  349. data/generated/google/apis/speech_v1/representations.rb +1 -0
  350. data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
  351. data/generated/google/apis/sqladmin_v1beta3/service.rb +75 -125
  352. data/generated/google/apis/sqladmin_v1beta4/service.rb +126 -210
  353. data/generated/google/apis/storage_v1.rb +1 -1
  354. data/generated/google/apis/storage_v1/classes.rb +3 -6
  355. data/generated/google/apis/storage_v1/service.rb +144 -240
  356. data/generated/google/apis/storage_v1beta1.rb +1 -1
  357. data/generated/google/apis/storage_v1beta1/service.rb +75 -125
  358. data/generated/google/apis/storage_v1beta2.rb +1 -1
  359. data/generated/google/apis/storage_v1beta2/service.rb +105 -175
  360. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  361. data/generated/google/apis/storagetransfer_v1/classes.rb +4 -3
  362. data/generated/google/apis/surveys_v2.rb +1 -1
  363. data/generated/google/apis/surveys_v2/classes.rb +19 -122
  364. data/generated/google/apis/surveys_v2/representations.rb +0 -38
  365. data/generated/google/apis/surveys_v2/service.rb +27 -157
  366. data/generated/google/apis/tagmanager_v1/service.rb +153 -255
  367. data/generated/google/apis/tagmanager_v2/service.rb +222 -370
  368. data/generated/google/apis/tasks_v1/service.rb +45 -75
  369. data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
  370. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
  371. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  372. data/generated/google/apis/toolresults_v1beta3/service.rb +75 -125
  373. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  374. data/generated/google/apis/urlshortener_v1/service.rb +12 -20
  375. data/generated/google/apis/vault_v1.rb +2 -2
  376. data/generated/google/apis/vault_v1/service.rb +1 -1
  377. data/generated/google/apis/videointelligence_v1.rb +34 -0
  378. data/generated/google/apis/videointelligence_v1/classes.rb +2149 -0
  379. data/generated/google/apis/videointelligence_v1/representations.rb +972 -0
  380. data/generated/google/apis/videointelligence_v1/service.rb +246 -0
  381. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  382. data/generated/google/apis/videointelligence_v1beta1/classes.rb +18 -18
  383. data/generated/google/apis/{taskqueue_v1beta2.rb → videointelligence_v1beta2.rb} +10 -13
  384. data/generated/google/apis/videointelligence_v1beta2/classes.rb +2092 -0
  385. data/generated/google/apis/videointelligence_v1beta2/representations.rb +933 -0
  386. data/generated/google/apis/videointelligence_v1beta2/service.rb +92 -0
  387. data/generated/google/apis/vision_v1.rb +1 -1
  388. data/generated/google/apis/vision_v1/classes.rb +1441 -62
  389. data/generated/google/apis/vision_v1/representations.rb +582 -0
  390. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  391. data/generated/google/apis/vision_v1p1beta1/classes.rb +1441 -62
  392. data/generated/google/apis/vision_v1p1beta1/representations.rb +582 -0
  393. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  394. data/generated/google/apis/vision_v1p2beta1/classes.rb +63 -3
  395. data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
  396. data/generated/google/apis/webfonts_v1/service.rb +6 -10
  397. data/generated/google/apis/webmasters_v3/service.rb +42 -70
  398. data/generated/google/apis/websecurityscanner_v1alpha.rb +34 -0
  399. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +760 -0
  400. data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +354 -0
  401. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +548 -0
  402. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  403. data/generated/google/apis/youtube_analytics_v1/service.rb +27 -45
  404. data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
  405. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +27 -45
  406. data/generated/google/apis/youtube_analytics_v2.rb +46 -0
  407. data/generated/google/apis/youtube_analytics_v2/classes.rb +532 -0
  408. data/generated/google/apis/youtube_analytics_v2/representations.rb +232 -0
  409. data/generated/google/apis/youtube_analytics_v2/service.rb +478 -0
  410. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  411. data/generated/google/apis/youtube_partner_v1/service.rb +225 -375
  412. data/generated/google/apis/youtube_v3.rb +1 -1
  413. data/generated/google/apis/youtube_v3/classes.rb +0 -168
  414. data/generated/google/apis/youtube_v3/representations.rb +0 -62
  415. data/generated/google/apis/youtube_v3/service.rb +216 -415
  416. data/lib/google/apis/generator/helpers.rb +3 -1
  417. data/lib/google/apis/version.rb +1 -1
  418. metadata +50 -38
  419. data/generated/google/apis/dlp_v2beta1/classes.rb +0 -3820
  420. data/generated/google/apis/dlp_v2beta1/representations.rb +0 -1879
  421. data/generated/google/apis/dlp_v2beta1/service.rb +0 -603
  422. data/generated/google/apis/dlp_v2beta2/classes.rb +0 -6386
  423. data/generated/google/apis/dlp_v2beta2/representations.rb +0 -3085
  424. data/generated/google/apis/dlp_v2beta2/service.rb +0 -1332
  425. data/generated/google/apis/prediction_v1_2.rb +0 -44
  426. data/generated/google/apis/prediction_v1_2/classes.rb +0 -237
  427. data/generated/google/apis/prediction_v1_2/representations.rb +0 -133
  428. data/generated/google/apis/prediction_v1_2/service.rb +0 -287
  429. data/generated/google/apis/prediction_v1_3.rb +0 -44
  430. data/generated/google/apis/prediction_v1_3/classes.rb +0 -286
  431. data/generated/google/apis/prediction_v1_3/representations.rb +0 -139
  432. data/generated/google/apis/prediction_v1_3/service.rb +0 -284
  433. data/generated/google/apis/prediction_v1_4.rb +0 -44
  434. data/generated/google/apis/prediction_v1_4/classes.rb +0 -336
  435. data/generated/google/apis/prediction_v1_4/representations.rb +0 -158
  436. data/generated/google/apis/prediction_v1_4/service.rb +0 -284
  437. data/generated/google/apis/prediction_v1_5.rb +0 -44
  438. data/generated/google/apis/prediction_v1_5/classes.rb +0 -708
  439. data/generated/google/apis/prediction_v1_5/representations.rb +0 -352
  440. data/generated/google/apis/prediction_v1_5/service.rb +0 -357
  441. data/generated/google/apis/prediction_v1_6.rb +0 -47
  442. data/generated/google/apis/prediction_v1_6/classes.rb +0 -751
  443. data/generated/google/apis/prediction_v1_6/representations.rb +0 -369
  444. data/generated/google/apis/prediction_v1_6/service.rb +0 -381
  445. data/generated/google/apis/taskqueue_v1beta1.rb +0 -37
  446. data/generated/google/apis/taskqueue_v1beta1/classes.rb +0 -242
  447. data/generated/google/apis/taskqueue_v1beta1/representations.rb +0 -124
  448. data/generated/google/apis/taskqueue_v1beta1/service.rb +0 -269
  449. data/generated/google/apis/taskqueue_v1beta2/classes.rb +0 -254
  450. data/generated/google/apis/taskqueue_v1beta2/representations.rb +0 -126
  451. data/generated/google/apis/taskqueue_v1beta2/service.rb +0 -409
@@ -0,0 +1,38 @@
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/jobs_v2/service.rb'
16
+ require 'google/apis/jobs_v2/classes.rb'
17
+ require 'google/apis/jobs_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Cloud Job Discovery
22
+ #
23
+ # Cloud Job Discovery provides the capability to create, read, update, and
24
+ # delete job postings, as well as search jobs based on keywords and filters.
25
+ #
26
+ # @see https://cloud.google.com/job-discovery/docs
27
+ module JobsV2
28
+ VERSION = 'V2'
29
+ REVISION = '20180509'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+
34
+ # Manage job postings
35
+ AUTH_JOBS = 'https://www.googleapis.com/auth/jobs'
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,3378 @@
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 JobsV2
24
+
25
+ # Input only.
26
+ # Batch delete jobs request.
27
+ class BatchDeleteJobsRequest
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Required.
31
+ # The filter string specifies the jobs to be deleted.
32
+ # Supported operator: =, AND
33
+ # The fields eligible for filtering are:
34
+ # * `companyName` (Required)
35
+ # * `requisitionId` (Required)
36
+ # Sample Query: companyName = "companies/123" AND requisitionId = "req-1"
37
+ # Corresponds to the JSON property `filter`
38
+ # @return [String]
39
+ attr_accessor :filter
40
+
41
+ def initialize(**args)
42
+ update!(**args)
43
+ end
44
+
45
+ # Update properties of this object
46
+ def update!(**args)
47
+ @filter = args[:filter] if args.key?(:filter)
48
+ end
49
+ end
50
+
51
+ # Represents starting and ending value of a range in double.
52
+ class BucketRange
53
+ include Google::Apis::Core::Hashable
54
+
55
+ # Starting value of the bucket range.
56
+ # Corresponds to the JSON property `from`
57
+ # @return [Float]
58
+ attr_accessor :from
59
+
60
+ # Ending value of the bucket range.
61
+ # Corresponds to the JSON property `to`
62
+ # @return [Float]
63
+ attr_accessor :to
64
+
65
+ def initialize(**args)
66
+ update!(**args)
67
+ end
68
+
69
+ # Update properties of this object
70
+ def update!(**args)
71
+ @from = args[:from] if args.key?(:from)
72
+ @to = args[:to] if args.key?(:to)
73
+ end
74
+ end
75
+
76
+ # Represents count of jobs within one bucket.
77
+ class BucketizedCount
78
+ include Google::Apis::Core::Hashable
79
+
80
+ # Number of jobs whose numeric field value fall into `range`.
81
+ # Corresponds to the JSON property `count`
82
+ # @return [Fixnum]
83
+ attr_accessor :count
84
+
85
+ # Represents starting and ending value of a range in double.
86
+ # Corresponds to the JSON property `range`
87
+ # @return [Google::Apis::JobsV2::BucketRange]
88
+ attr_accessor :range
89
+
90
+ def initialize(**args)
91
+ update!(**args)
92
+ end
93
+
94
+ # Update properties of this object
95
+ def update!(**args)
96
+ @count = args[:count] if args.key?(:count)
97
+ @range = args[:range] if args.key?(:range)
98
+ end
99
+ end
100
+
101
+ # Output only.
102
+ # Commute details related to this job.
103
+ class CommuteInfo
104
+ include Google::Apis::Core::Hashable
105
+
106
+ # Output only.
107
+ # A resource that represents a location with full geographic
108
+ # information.
109
+ # Corresponds to the JSON property `jobLocation`
110
+ # @return [Google::Apis::JobsV2::JobLocation]
111
+ attr_accessor :job_location
112
+
113
+ # Travel time to reach the job.
114
+ # Corresponds to the JSON property `travelDuration`
115
+ # @return [String]
116
+ attr_accessor :travel_duration
117
+
118
+ def initialize(**args)
119
+ update!(**args)
120
+ end
121
+
122
+ # Update properties of this object
123
+ def update!(**args)
124
+ @job_location = args[:job_location] if args.key?(:job_location)
125
+ @travel_duration = args[:travel_duration] if args.key?(:travel_duration)
126
+ end
127
+ end
128
+
129
+ # Input only.
130
+ # Parameters needed for commute search.
131
+ class CommutePreference
132
+ include Google::Apis::Core::Hashable
133
+
134
+ # Optional.
135
+ # If `true`, jobs without street level addresses may also be returned.
136
+ # For city level addresses, the city center is used. For state and coarser
137
+ # level addresses, text matching is used.
138
+ # If this field is set to `false` or is not specified, only jobs that include
139
+ # street level addresses will be returned by commute search.
140
+ # Corresponds to the JSON property `allowNonStreetLevelAddress`
141
+ # @return [Boolean]
142
+ attr_accessor :allow_non_street_level_address
143
+ alias_method :allow_non_street_level_address?, :allow_non_street_level_address
144
+
145
+ # Optional.
146
+ # The departure hour to use to calculate traffic impact. Accepts an
147
+ # integer between 0 and 23, representing the hour in the time zone of the
148
+ # start_location. Must not be present if road_traffic is specified.
149
+ # Corresponds to the JSON property `departureHourLocal`
150
+ # @return [Fixnum]
151
+ attr_accessor :departure_hour_local
152
+
153
+ # Required.
154
+ # The method of transportation for which to calculate the commute time.
155
+ # Corresponds to the JSON property `method`
156
+ # @return [String]
157
+ attr_accessor :method_prop
158
+
159
+ # Optional.
160
+ # Specifies the traffic density to use when caculating commute time.
161
+ # Must not be present if departure_hour_local is specified.
162
+ # Corresponds to the JSON property `roadTraffic`
163
+ # @return [String]
164
+ attr_accessor :road_traffic
165
+
166
+ # An object representing a latitude/longitude pair. This is expressed as a pair
167
+ # of doubles representing degrees latitude and degrees longitude. Unless
168
+ # specified otherwise, this must conform to the
169
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
170
+ # standard</a>. Values must be within normalized ranges.
171
+ # Corresponds to the JSON property `startLocation`
172
+ # @return [Google::Apis::JobsV2::LatLng]
173
+ attr_accessor :start_location
174
+
175
+ # Required.
176
+ # The maximum travel time in seconds. The maximum allowed value is `3600s`
177
+ # (one hour). Format is `123s`.
178
+ # Corresponds to the JSON property `travelTime`
179
+ # @return [String]
180
+ attr_accessor :travel_time
181
+
182
+ def initialize(**args)
183
+ update!(**args)
184
+ end
185
+
186
+ # Update properties of this object
187
+ def update!(**args)
188
+ @allow_non_street_level_address = args[:allow_non_street_level_address] if args.key?(:allow_non_street_level_address)
189
+ @departure_hour_local = args[:departure_hour_local] if args.key?(:departure_hour_local)
190
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
191
+ @road_traffic = args[:road_traffic] if args.key?(:road_traffic)
192
+ @start_location = args[:start_location] if args.key?(:start_location)
193
+ @travel_time = args[:travel_time] if args.key?(:travel_time)
194
+ end
195
+ end
196
+
197
+ # A Company resource represents a company in the service. A company is the
198
+ # entity that owns job listings, that is, the hiring entity responsible for
199
+ # employing applicants for the job position.
200
+ class Company
201
+ include Google::Apis::Core::Hashable
202
+
203
+ # Optional.
204
+ # The URL to employer's career site or careers page on the employer's web
205
+ # site.
206
+ # Corresponds to the JSON property `careerPageLink`
207
+ # @return [String]
208
+ attr_accessor :career_page_link
209
+
210
+ # Optional.
211
+ # Identifiers external to the application that help to further identify
212
+ # the employer.
213
+ # Corresponds to the JSON property `companyInfoSources`
214
+ # @return [Array<Google::Apis::JobsV2::CompanyInfoSource>]
215
+ attr_accessor :company_info_sources
216
+
217
+ # Optional.
218
+ # The employer's company size.
219
+ # Corresponds to the JSON property `companySize`
220
+ # @return [String]
221
+ attr_accessor :company_size
222
+
223
+ # Deprecated. Do not use this field.
224
+ # Optional.
225
+ # This field is no longer used. Any value set to it is ignored.
226
+ # Corresponds to the JSON property `disableLocationOptimization`
227
+ # @return [Boolean]
228
+ attr_accessor :disable_location_optimization
229
+ alias_method :disable_location_optimization?, :disable_location_optimization
230
+
231
+ # Required.
232
+ # The name of the employer to be displayed with the job,
233
+ # for example, "Google, LLC.".
234
+ # Corresponds to the JSON property `displayName`
235
+ # @return [String]
236
+ attr_accessor :display_name
237
+
238
+ # Optional.
239
+ # The unique company identifier provided by the client to identify an
240
+ # employer for billing purposes. Recommended practice is to use
241
+ # the distributor_company_id.
242
+ # Defaults to same value as distributor_company_id when a value
243
+ # is not provided.
244
+ # Corresponds to the JSON property `distributorBillingCompanyId`
245
+ # @return [String]
246
+ attr_accessor :distributor_billing_company_id
247
+
248
+ # Required.
249
+ # A client's company identifier, used to uniquely identify the
250
+ # company. If an employer has a subsidiary or sub-brand, such as "Alphabet"
251
+ # and "Google", which the client wishes to use as the company displayed on
252
+ # the job. Best practice is to create a distinct company identifier for each
253
+ # distinct brand displayed.
254
+ # Corresponds to the JSON property `distributorCompanyId`
255
+ # @return [String]
256
+ attr_accessor :distributor_company_id
257
+
258
+ # Optional.
259
+ # Equal Employment Opportunity legal disclaimer text to be
260
+ # associated with all jobs, and typically to be displayed in all
261
+ # roles.
262
+ # The maximum number of allowed characters is 500.
263
+ # Corresponds to the JSON property `eeoText`
264
+ # @return [String]
265
+ attr_accessor :eeo_text
266
+
267
+ # Optional.
268
+ # Set to true if it is the hiring agency that post jobs for other
269
+ # employers.
270
+ # Defaults to false if not provided.
271
+ # Corresponds to the JSON property `hiringAgency`
272
+ # @return [Boolean]
273
+ attr_accessor :hiring_agency
274
+ alias_method :hiring_agency?, :hiring_agency
275
+
276
+ # Optional.
277
+ # The street address of the company's main headquarters, which may be
278
+ # different from the job location. The service attempts
279
+ # to geolocate the provided address, and populates a more specific
280
+ # location wherever possible in structured_company_hq_location.
281
+ # Corresponds to the JSON property `hqLocation`
282
+ # @return [String]
283
+ attr_accessor :hq_location
284
+
285
+ # Optional.
286
+ # A URL that hosts the employer's company logo. If provided,
287
+ # the logo image should be squared at 80x80 pixels.
288
+ # The url must be a Google Photos or Google Album url.
289
+ # Only images in these Google sub-domains are accepted.
290
+ # Corresponds to the JSON property `imageUrl`
291
+ # @return [String]
292
+ attr_accessor :image_url
293
+
294
+ # Optional.
295
+ # A list of keys of filterable Job.custom_attributes, whose
296
+ # corresponding `string_values` are used in keyword search. Jobs with
297
+ # `string_values` under these specified field keys are returned if any
298
+ # of the values matches the search keyword.
299
+ # Corresponds to the JSON property `keywordSearchableCustomAttributes`
300
+ # @return [Array<String>]
301
+ attr_accessor :keyword_searchable_custom_attributes
302
+
303
+ # Deprecated. Use keyword_searchable_custom_attributes instead.
304
+ # Optional.
305
+ # A list of filterable custom fields that should be used in keyword
306
+ # search. The jobs of this company are returned if any of these custom
307
+ # fields matches the search keyword.
308
+ # Corresponds to the JSON property `keywordSearchableCustomFields`
309
+ # @return [Array<Fixnum>]
310
+ attr_accessor :keyword_searchable_custom_fields
311
+
312
+ # Required during company update.
313
+ # The resource name for a company. This is generated by the service when a
314
+ # company is created, for example,
315
+ # "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd".
316
+ # Corresponds to the JSON property `name`
317
+ # @return [String]
318
+ attr_accessor :name
319
+
320
+ # Output only.
321
+ # A resource that represents a location with full geographic
322
+ # information.
323
+ # Corresponds to the JSON property `structuredCompanyHqLocation`
324
+ # @return [Google::Apis::JobsV2::JobLocation]
325
+ attr_accessor :structured_company_hq_location
326
+
327
+ # Output only.
328
+ # Indicates whether a company is flagged to be suspended from public
329
+ # availability by the service when job content appears suspicious,
330
+ # abusive, or spammy.
331
+ # Corresponds to the JSON property `suspended`
332
+ # @return [Boolean]
333
+ attr_accessor :suspended
334
+ alias_method :suspended?, :suspended
335
+
336
+ # Deprecated. Use display_name instead.
337
+ # Required.
338
+ # The name of the employer to be displayed with the job,
339
+ # for example, "Google, LLC.".
340
+ # Corresponds to the JSON property `title`
341
+ # @return [String]
342
+ attr_accessor :title
343
+
344
+ # Optional.
345
+ # The URL representing the company's primary web site or home page,
346
+ # such as, "www.google.com".
347
+ # Corresponds to the JSON property `website`
348
+ # @return [String]
349
+ attr_accessor :website
350
+
351
+ def initialize(**args)
352
+ update!(**args)
353
+ end
354
+
355
+ # Update properties of this object
356
+ def update!(**args)
357
+ @career_page_link = args[:career_page_link] if args.key?(:career_page_link)
358
+ @company_info_sources = args[:company_info_sources] if args.key?(:company_info_sources)
359
+ @company_size = args[:company_size] if args.key?(:company_size)
360
+ @disable_location_optimization = args[:disable_location_optimization] if args.key?(:disable_location_optimization)
361
+ @display_name = args[:display_name] if args.key?(:display_name)
362
+ @distributor_billing_company_id = args[:distributor_billing_company_id] if args.key?(:distributor_billing_company_id)
363
+ @distributor_company_id = args[:distributor_company_id] if args.key?(:distributor_company_id)
364
+ @eeo_text = args[:eeo_text] if args.key?(:eeo_text)
365
+ @hiring_agency = args[:hiring_agency] if args.key?(:hiring_agency)
366
+ @hq_location = args[:hq_location] if args.key?(:hq_location)
367
+ @image_url = args[:image_url] if args.key?(:image_url)
368
+ @keyword_searchable_custom_attributes = args[:keyword_searchable_custom_attributes] if args.key?(:keyword_searchable_custom_attributes)
369
+ @keyword_searchable_custom_fields = args[:keyword_searchable_custom_fields] if args.key?(:keyword_searchable_custom_fields)
370
+ @name = args[:name] if args.key?(:name)
371
+ @structured_company_hq_location = args[:structured_company_hq_location] if args.key?(:structured_company_hq_location)
372
+ @suspended = args[:suspended] if args.key?(:suspended)
373
+ @title = args[:title] if args.key?(:title)
374
+ @website = args[:website] if args.key?(:website)
375
+ end
376
+ end
377
+
378
+ # A resource that represents an external Google identifier for a company,
379
+ # for example, a Google+ business page or a Google Maps business page.
380
+ # For unsupported types, use `unknown_type_id`.
381
+ class CompanyInfoSource
382
+ include Google::Apis::Core::Hashable
383
+
384
+ # Optional.
385
+ # The Google's Knowledge Graph value for the employer's company.
386
+ # Corresponds to the JSON property `freebaseMid`
387
+ # @return [String]
388
+ attr_accessor :freebase_mid
389
+
390
+ # Optional.
391
+ # The numeric identifier for the employer's Google+ business page.
392
+ # Corresponds to the JSON property `gplusId`
393
+ # @return [String]
394
+ attr_accessor :gplus_id
395
+
396
+ # Optional.
397
+ # The numeric identifier for the employer's headquarters on Google Maps,
398
+ # namely, the Google Maps CID (cell id).
399
+ # Corresponds to the JSON property `mapsCid`
400
+ # @return [String]
401
+ attr_accessor :maps_cid
402
+
403
+ # Optional.
404
+ # A Google identifier that does not match any of the other types.
405
+ # Corresponds to the JSON property `unknownTypeId`
406
+ # @return [String]
407
+ attr_accessor :unknown_type_id
408
+
409
+ def initialize(**args)
410
+ update!(**args)
411
+ end
412
+
413
+ # Update properties of this object
414
+ def update!(**args)
415
+ @freebase_mid = args[:freebase_mid] if args.key?(:freebase_mid)
416
+ @gplus_id = args[:gplus_id] if args.key?(:gplus_id)
417
+ @maps_cid = args[:maps_cid] if args.key?(:maps_cid)
418
+ @unknown_type_id = args[:unknown_type_id] if args.key?(:unknown_type_id)
419
+ end
420
+ end
421
+
422
+ # A compensation entry that represents one component of compensation, such
423
+ # as base pay, bonus, or other compensation type.
424
+ # Annualization: One compensation entry can be annualized if
425
+ # - it contains valid amount or range.
426
+ # - and its expected_units_per_year is set or can be derived.
427
+ # Its annualized range is determined as (amount or range) times
428
+ # expected_units_per_year.
429
+ class CompensationEntry
430
+ include Google::Apis::Core::Hashable
431
+
432
+ # Represents an amount of money with its currency type.
433
+ # Corresponds to the JSON property `amount`
434
+ # @return [Google::Apis::JobsV2::Money]
435
+ attr_accessor :amount
436
+
437
+ # Optional.
438
+ # Compensation description. For example, could
439
+ # indicate equity terms or provide additional context to an estimated
440
+ # bonus.
441
+ # Corresponds to the JSON property `description`
442
+ # @return [String]
443
+ attr_accessor :description
444
+
445
+ # Optional.
446
+ # Expected number of units paid each year. If not specified, when
447
+ # Job.employment_types is FULLTIME, a default value is inferred
448
+ # based on unit. Default values:
449
+ # - HOURLY: 2080
450
+ # - DAILY: 260
451
+ # - WEEKLY: 52
452
+ # - MONTHLY: 12
453
+ # - ANNUAL: 1
454
+ # Corresponds to the JSON property `expectedUnitsPerYear`
455
+ # @return [Float]
456
+ attr_accessor :expected_units_per_year
457
+
458
+ # Compensation range.
459
+ # Corresponds to the JSON property `range`
460
+ # @return [Google::Apis::JobsV2::CompensationRange]
461
+ attr_accessor :range
462
+
463
+ # Required.
464
+ # Compensation type.
465
+ # Corresponds to the JSON property `type`
466
+ # @return [String]
467
+ attr_accessor :type
468
+
469
+ # Optional.
470
+ # Frequency of the specified amount.
471
+ # Default is CompensationUnit.OTHER_COMPENSATION_UNIT.
472
+ # Corresponds to the JSON property `unit`
473
+ # @return [String]
474
+ attr_accessor :unit
475
+
476
+ def initialize(**args)
477
+ update!(**args)
478
+ end
479
+
480
+ # Update properties of this object
481
+ def update!(**args)
482
+ @amount = args[:amount] if args.key?(:amount)
483
+ @description = args[:description] if args.key?(:description)
484
+ @expected_units_per_year = args[:expected_units_per_year] if args.key?(:expected_units_per_year)
485
+ @range = args[:range] if args.key?(:range)
486
+ @type = args[:type] if args.key?(:type)
487
+ @unit = args[:unit] if args.key?(:unit)
488
+ end
489
+ end
490
+
491
+ # Input only.
492
+ # Filter on job compensation type and amount.
493
+ class CompensationFilter
494
+ include Google::Apis::Core::Hashable
495
+
496
+ # Optional.
497
+ # Whether to include jobs whose compensation range is unspecified.
498
+ # Corresponds to the JSON property `includeJobsWithUnspecifiedCompensationRange`
499
+ # @return [Boolean]
500
+ attr_accessor :include_jobs_with_unspecified_compensation_range
501
+ alias_method :include_jobs_with_unspecified_compensation_range?, :include_jobs_with_unspecified_compensation_range
502
+
503
+ # Compensation range.
504
+ # Corresponds to the JSON property `range`
505
+ # @return [Google::Apis::JobsV2::CompensationRange]
506
+ attr_accessor :range
507
+
508
+ # Required.
509
+ # Type of filter.
510
+ # Corresponds to the JSON property `type`
511
+ # @return [String]
512
+ attr_accessor :type
513
+
514
+ # Required.
515
+ # Specify desired ** base compensation entry's **
516
+ # CompensationInfo.CompensationUnit.
517
+ # Corresponds to the JSON property `units`
518
+ # @return [Array<String>]
519
+ attr_accessor :units
520
+
521
+ def initialize(**args)
522
+ update!(**args)
523
+ end
524
+
525
+ # Update properties of this object
526
+ def update!(**args)
527
+ @include_jobs_with_unspecified_compensation_range = args[:include_jobs_with_unspecified_compensation_range] if args.key?(:include_jobs_with_unspecified_compensation_range)
528
+ @range = args[:range] if args.key?(:range)
529
+ @type = args[:type] if args.key?(:type)
530
+ @units = args[:units] if args.key?(:units)
531
+ end
532
+ end
533
+
534
+ # Input only.
535
+ # Compensation based histogram request.
536
+ class CompensationHistogramRequest
537
+ include Google::Apis::Core::Hashable
538
+
539
+ # Input only.
540
+ # Use this field to specify bucketing option for the histogram search response.
541
+ # Corresponds to the JSON property `bucketingOption`
542
+ # @return [Google::Apis::JobsV2::NumericBucketingOption]
543
+ attr_accessor :bucketing_option
544
+
545
+ # Required.
546
+ # Type of the request, representing which field the histogramming should be
547
+ # performed over. A single request can only specify one histogram of each
548
+ # `CompensationHistogramRequestType`.
549
+ # Corresponds to the JSON property `type`
550
+ # @return [String]
551
+ attr_accessor :type
552
+
553
+ def initialize(**args)
554
+ update!(**args)
555
+ end
556
+
557
+ # Update properties of this object
558
+ def update!(**args)
559
+ @bucketing_option = args[:bucketing_option] if args.key?(:bucketing_option)
560
+ @type = args[:type] if args.key?(:type)
561
+ end
562
+ end
563
+
564
+ # Output only.
565
+ # Compensation based histogram result.
566
+ class CompensationHistogramResult
567
+ include Google::Apis::Core::Hashable
568
+
569
+ # Output only.
570
+ # Custom numeric bucketing result.
571
+ # Corresponds to the JSON property `result`
572
+ # @return [Google::Apis::JobsV2::NumericBucketingResult]
573
+ attr_accessor :result
574
+
575
+ # Type of the request, corresponding to
576
+ # CompensationHistogramRequest.type.
577
+ # Corresponds to the JSON property `type`
578
+ # @return [String]
579
+ attr_accessor :type
580
+
581
+ def initialize(**args)
582
+ update!(**args)
583
+ end
584
+
585
+ # Update properties of this object
586
+ def update!(**args)
587
+ @result = args[:result] if args.key?(:result)
588
+ @type = args[:type] if args.key?(:type)
589
+ end
590
+ end
591
+
592
+ # Job compensation details.
593
+ class CompensationInfo
594
+ include Google::Apis::Core::Hashable
595
+
596
+ # Represents an amount of money with its currency type.
597
+ # Corresponds to the JSON property `amount`
598
+ # @return [Google::Apis::JobsV2::Money]
599
+ attr_accessor :amount
600
+
601
+ # Compensation range.
602
+ # Corresponds to the JSON property `annualizedBaseCompensationRange`
603
+ # @return [Google::Apis::JobsV2::CompensationRange]
604
+ attr_accessor :annualized_base_compensation_range
605
+
606
+ # Compensation range.
607
+ # Corresponds to the JSON property `annualizedTotalCompensationRange`
608
+ # @return [Google::Apis::JobsV2::CompensationRange]
609
+ attr_accessor :annualized_total_compensation_range
610
+
611
+ # Optional.
612
+ # Job compensation information.
613
+ # At most one entry can be of type
614
+ # CompensationInfo.CompensationType.BASE, which is
615
+ # referred as ** base compensation entry ** for the job.
616
+ # Corresponds to the JSON property `entries`
617
+ # @return [Array<Google::Apis::JobsV2::CompensationEntry>]
618
+ attr_accessor :entries
619
+
620
+ # Represents an amount of money with its currency type.
621
+ # Corresponds to the JSON property `max`
622
+ # @return [Google::Apis::JobsV2::Money]
623
+ attr_accessor :max
624
+
625
+ # Represents an amount of money with its currency type.
626
+ # Corresponds to the JSON property `min`
627
+ # @return [Google::Apis::JobsV2::Money]
628
+ attr_accessor :min
629
+
630
+ # Deprecated. Use entries instead.
631
+ # Optional.
632
+ # Type of job compensation.
633
+ # Corresponds to the JSON property `type`
634
+ # @return [String]
635
+ attr_accessor :type
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @amount = args[:amount] if args.key?(:amount)
644
+ @annualized_base_compensation_range = args[:annualized_base_compensation_range] if args.key?(:annualized_base_compensation_range)
645
+ @annualized_total_compensation_range = args[:annualized_total_compensation_range] if args.key?(:annualized_total_compensation_range)
646
+ @entries = args[:entries] if args.key?(:entries)
647
+ @max = args[:max] if args.key?(:max)
648
+ @min = args[:min] if args.key?(:min)
649
+ @type = args[:type] if args.key?(:type)
650
+ end
651
+ end
652
+
653
+ # Compensation range.
654
+ class CompensationRange
655
+ include Google::Apis::Core::Hashable
656
+
657
+ # Represents an amount of money with its currency type.
658
+ # Corresponds to the JSON property `max`
659
+ # @return [Google::Apis::JobsV2::Money]
660
+ attr_accessor :max
661
+
662
+ # Represents an amount of money with its currency type.
663
+ # Corresponds to the JSON property `min`
664
+ # @return [Google::Apis::JobsV2::Money]
665
+ attr_accessor :min
666
+
667
+ def initialize(**args)
668
+ update!(**args)
669
+ end
670
+
671
+ # Update properties of this object
672
+ def update!(**args)
673
+ @max = args[:max] if args.key?(:max)
674
+ @min = args[:min] if args.key?(:min)
675
+ end
676
+ end
677
+
678
+ # Output only.
679
+ # Response of auto-complete query.
680
+ class CompleteQueryResponse
681
+ include Google::Apis::Core::Hashable
682
+
683
+ # Results of the matching job/company candidates.
684
+ # Corresponds to the JSON property `completionResults`
685
+ # @return [Array<Google::Apis::JobsV2::CompletionResult>]
686
+ attr_accessor :completion_results
687
+
688
+ # Output only.
689
+ # Additional information returned to client, such as debugging
690
+ # information.
691
+ # Corresponds to the JSON property `metadata`
692
+ # @return [Google::Apis::JobsV2::ResponseMetadata]
693
+ attr_accessor :metadata
694
+
695
+ def initialize(**args)
696
+ update!(**args)
697
+ end
698
+
699
+ # Update properties of this object
700
+ def update!(**args)
701
+ @completion_results = args[:completion_results] if args.key?(:completion_results)
702
+ @metadata = args[:metadata] if args.key?(:metadata)
703
+ end
704
+ end
705
+
706
+ # Output only.
707
+ # Resource that represents completion results.
708
+ class CompletionResult
709
+ include Google::Apis::Core::Hashable
710
+
711
+ # The URL for the company logo if `type=COMPANY_NAME`.
712
+ # Corresponds to the JSON property `imageUrl`
713
+ # @return [String]
714
+ attr_accessor :image_url
715
+
716
+ # The suggestion for the query.
717
+ # Corresponds to the JSON property `suggestion`
718
+ # @return [String]
719
+ attr_accessor :suggestion
720
+
721
+ # The completion topic.
722
+ # Corresponds to the JSON property `type`
723
+ # @return [String]
724
+ attr_accessor :type
725
+
726
+ def initialize(**args)
727
+ update!(**args)
728
+ end
729
+
730
+ # Update properties of this object
731
+ def update!(**args)
732
+ @image_url = args[:image_url] if args.key?(:image_url)
733
+ @suggestion = args[:suggestion] if args.key?(:suggestion)
734
+ @type = args[:type] if args.key?(:type)
735
+ end
736
+ end
737
+
738
+ # Input only.
739
+ # Create job request.
740
+ # The job typically becomes searchable within 10 seconds, but it may take
741
+ # up to 5 minutes for the job to become searchable.
742
+ class CreateJobRequest
743
+ include Google::Apis::Core::Hashable
744
+
745
+ # If set to `true`, the service will not attempt to resolve a
746
+ # more precise address for the job.
747
+ # Corresponds to the JSON property `disableStreetAddressResolution`
748
+ # @return [Boolean]
749
+ attr_accessor :disable_street_address_resolution
750
+ alias_method :disable_street_address_resolution?, :disable_street_address_resolution
751
+
752
+ # A Job resource represents a job posting (also referred to as a "job listing"
753
+ # or "job requisition"). A job belongs to a Company, which is the hiring
754
+ # entity responsible for the job.
755
+ # Corresponds to the JSON property `job`
756
+ # @return [Google::Apis::JobsV2::Job]
757
+ attr_accessor :job
758
+
759
+ def initialize(**args)
760
+ update!(**args)
761
+ end
762
+
763
+ # Update properties of this object
764
+ def update!(**args)
765
+ @disable_street_address_resolution = args[:disable_street_address_resolution] if args.key?(:disable_street_address_resolution)
766
+ @job = args[:job] if args.key?(:job)
767
+ end
768
+ end
769
+
770
+ # Custom attribute values that are either filterable or non-filterable.
771
+ class CustomAttribute
772
+ include Google::Apis::Core::Hashable
773
+
774
+ # Optional.
775
+ # If the `filterable` flag is true, custom field values are searchable.
776
+ # If false, values are not searchable.
777
+ # Default is false.
778
+ # Corresponds to the JSON property `filterable`
779
+ # @return [Boolean]
780
+ attr_accessor :filterable
781
+ alias_method :filterable?, :filterable
782
+
783
+ # Optional but at least one of string_values or long_value must
784
+ # be specified.
785
+ # This field is used to perform number range search.
786
+ # (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. For
787
+ # `long_value`, a value between Long.MIN and Long.MIN is allowed.
788
+ # Corresponds to the JSON property `longValue`
789
+ # @return [Fixnum]
790
+ attr_accessor :long_value
791
+
792
+ # Represents array of string values.
793
+ # Corresponds to the JSON property `stringValues`
794
+ # @return [Google::Apis::JobsV2::StringValues]
795
+ attr_accessor :string_values
796
+
797
+ def initialize(**args)
798
+ update!(**args)
799
+ end
800
+
801
+ # Update properties of this object
802
+ def update!(**args)
803
+ @filterable = args[:filterable] if args.key?(:filterable)
804
+ @long_value = args[:long_value] if args.key?(:long_value)
805
+ @string_values = args[:string_values] if args.key?(:string_values)
806
+ end
807
+ end
808
+
809
+ # Custom attributes histogram request. An error will be thrown if neither
810
+ # string_value_histogram or long_value_histogram_bucketing_option has
811
+ # been defined.
812
+ class CustomAttributeHistogramRequest
813
+ include Google::Apis::Core::Hashable
814
+
815
+ # Required.
816
+ # Specifies the custom field key to perform a histogram on. If
817
+ # specified without `long_value_buckets` or `long_value_min_max`, a
818
+ # histogram on string values of the given `key` is triggered,
819
+ # otherwise histogram is performed on long values.
820
+ # Corresponds to the JSON property `key`
821
+ # @return [String]
822
+ attr_accessor :key
823
+
824
+ # Input only.
825
+ # Use this field to specify bucketing option for the histogram search response.
826
+ # Corresponds to the JSON property `longValueHistogramBucketingOption`
827
+ # @return [Google::Apis::JobsV2::NumericBucketingOption]
828
+ attr_accessor :long_value_histogram_bucketing_option
829
+
830
+ # Optional. If set to true, the response will include the histogram value for
831
+ # each key as a string.
832
+ # Corresponds to the JSON property `stringValueHistogram`
833
+ # @return [Boolean]
834
+ attr_accessor :string_value_histogram
835
+ alias_method :string_value_histogram?, :string_value_histogram
836
+
837
+ def initialize(**args)
838
+ update!(**args)
839
+ end
840
+
841
+ # Update properties of this object
842
+ def update!(**args)
843
+ @key = args[:key] if args.key?(:key)
844
+ @long_value_histogram_bucketing_option = args[:long_value_histogram_bucketing_option] if args.key?(:long_value_histogram_bucketing_option)
845
+ @string_value_histogram = args[:string_value_histogram] if args.key?(:string_value_histogram)
846
+ end
847
+ end
848
+
849
+ # Output only.
850
+ # Custom attribute histogram result.
851
+ class CustomAttributeHistogramResult
852
+ include Google::Apis::Core::Hashable
853
+
854
+ # Stores the key of custom attribute the histogram is performed on.
855
+ # Corresponds to the JSON property `key`
856
+ # @return [String]
857
+ attr_accessor :key
858
+
859
+ # Output only.
860
+ # Custom numeric bucketing result.
861
+ # Corresponds to the JSON property `longValueHistogramResult`
862
+ # @return [Google::Apis::JobsV2::NumericBucketingResult]
863
+ attr_accessor :long_value_histogram_result
864
+
865
+ # Stores a map from the values of string custom field associated
866
+ # with `key` to the number of jobs with that value in this histogram result.
867
+ # Corresponds to the JSON property `stringValueHistogramResult`
868
+ # @return [Hash<String,Fixnum>]
869
+ attr_accessor :string_value_histogram_result
870
+
871
+ def initialize(**args)
872
+ update!(**args)
873
+ end
874
+
875
+ # Update properties of this object
876
+ def update!(**args)
877
+ @key = args[:key] if args.key?(:key)
878
+ @long_value_histogram_result = args[:long_value_histogram_result] if args.key?(:long_value_histogram_result)
879
+ @string_value_histogram_result = args[:string_value_histogram_result] if args.key?(:string_value_histogram_result)
880
+ end
881
+ end
882
+
883
+ # Resource that represents the custom data not captured by the standard fields.
884
+ class CustomField
885
+ include Google::Apis::Core::Hashable
886
+
887
+ # Optional.
888
+ # The values of the custom data.
889
+ # Corresponds to the JSON property `values`
890
+ # @return [Array<String>]
891
+ attr_accessor :values
892
+
893
+ def initialize(**args)
894
+ update!(**args)
895
+ end
896
+
897
+ # Update properties of this object
898
+ def update!(**args)
899
+ @values = args[:values] if args.key?(:values)
900
+ end
901
+ end
902
+
903
+ # Input only.
904
+ # Custom field filter of the search.
905
+ class CustomFieldFilter
906
+ include Google::Apis::Core::Hashable
907
+
908
+ # Required.
909
+ # The query strings for the filter.
910
+ # Corresponds to the JSON property `queries`
911
+ # @return [Array<String>]
912
+ attr_accessor :queries
913
+
914
+ # Optional.
915
+ # The type of filter.
916
+ # Defaults to FilterType.OR.
917
+ # Corresponds to the JSON property `type`
918
+ # @return [String]
919
+ attr_accessor :type
920
+
921
+ def initialize(**args)
922
+ update!(**args)
923
+ end
924
+
925
+ # Update properties of this object
926
+ def update!(**args)
927
+ @queries = args[:queries] if args.key?(:queries)
928
+ @type = args[:type] if args.key?(:type)
929
+ end
930
+ end
931
+
932
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
933
+ # time zone are either specified elsewhere or are not significant. The date
934
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
935
+ # represent a year and month where the day is not significant, e.g. credit card
936
+ # expiration date. The year may be 0 to represent a month and day independent
937
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
938
+ # and `google.protobuf.Timestamp`.
939
+ class Date
940
+ include Google::Apis::Core::Hashable
941
+
942
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
943
+ # if specifying a year/month where the day is not significant.
944
+ # Corresponds to the JSON property `day`
945
+ # @return [Fixnum]
946
+ attr_accessor :day
947
+
948
+ # Month of year. Must be from 1 to 12, or 0 if specifying a date without a
949
+ # month.
950
+ # Corresponds to the JSON property `month`
951
+ # @return [Fixnum]
952
+ attr_accessor :month
953
+
954
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
955
+ # a year.
956
+ # Corresponds to the JSON property `year`
957
+ # @return [Fixnum]
958
+ attr_accessor :year
959
+
960
+ def initialize(**args)
961
+ update!(**args)
962
+ end
963
+
964
+ # Update properties of this object
965
+ def update!(**args)
966
+ @day = args[:day] if args.key?(:day)
967
+ @month = args[:month] if args.key?(:month)
968
+ @year = args[:year] if args.key?(:year)
969
+ end
970
+ end
971
+
972
+ # Deprecated. Use BatchDeleteJobsRequest instead.
973
+ # Input only.
974
+ # Delete job by filter request.
975
+ # The job typically becomes unsearchable within 10 seconds, but it may take
976
+ # up to 5 minutes for the job to become unsearchable.
977
+ class DeleteJobsByFilterRequest
978
+ include Google::Apis::Core::Hashable
979
+
980
+ # Optional.
981
+ # If set to true, this call waits for all processing steps to complete
982
+ # before the job is cleaned up. Otherwise, the call returns while some
983
+ # steps are still taking place asynchronously, hence faster.
984
+ # Corresponds to the JSON property `disableFastProcess`
985
+ # @return [Boolean]
986
+ attr_accessor :disable_fast_process
987
+ alias_method :disable_fast_process?, :disable_fast_process
988
+
989
+ # Deprecated. Use BatchDeleteJobsRequest instead.
990
+ # Input only.
991
+ # Filter for jobs to be deleted.
992
+ # Corresponds to the JSON property `filter`
993
+ # @return [Google::Apis::JobsV2::Filter]
994
+ attr_accessor :filter
995
+
996
+ def initialize(**args)
997
+ update!(**args)
998
+ end
999
+
1000
+ # Update properties of this object
1001
+ def update!(**args)
1002
+ @disable_fast_process = args[:disable_fast_process] if args.key?(:disable_fast_process)
1003
+ @filter = args[:filter] if args.key?(:filter)
1004
+ end
1005
+ end
1006
+
1007
+ # Input only.
1008
+ # Device information collected from the job searcher, candidate, or
1009
+ # other entity conducting the job search. Providing this information improves
1010
+ # the quality of the search results across devices.
1011
+ class DeviceInfo
1012
+ include Google::Apis::Core::Hashable
1013
+
1014
+ # Optional.
1015
+ # Type of the device.
1016
+ # Corresponds to the JSON property `deviceType`
1017
+ # @return [String]
1018
+ attr_accessor :device_type
1019
+
1020
+ # Optional.
1021
+ # A device-specific ID. It must be a unique identifier, which distinguishes
1022
+ # the device from other devices.
1023
+ # Corresponds to the JSON property `id`
1024
+ # @return [String]
1025
+ attr_accessor :id
1026
+
1027
+ def initialize(**args)
1028
+ update!(**args)
1029
+ end
1030
+
1031
+ # Update properties of this object
1032
+ def update!(**args)
1033
+ @device_type = args[:device_type] if args.key?(:device_type)
1034
+ @id = args[:id] if args.key?(:id)
1035
+ end
1036
+ end
1037
+
1038
+ # A generic empty message that you can re-use to avoid defining duplicated
1039
+ # empty messages in your APIs. A typical example is to use it as the request
1040
+ # or the response type of an API method. For instance:
1041
+ # service Foo `
1042
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1043
+ # `
1044
+ # The JSON representation for `Empty` is empty JSON object ````.
1045
+ class Empty
1046
+ include Google::Apis::Core::Hashable
1047
+
1048
+ def initialize(**args)
1049
+ update!(**args)
1050
+ end
1051
+
1052
+ # Update properties of this object
1053
+ def update!(**args)
1054
+ end
1055
+ end
1056
+
1057
+ # Deprecated. Always use CompensationFilter.
1058
+ # Input only.
1059
+ # Filter on job compensation type and amount.
1060
+ class ExtendedCompensationFilter
1061
+ include Google::Apis::Core::Hashable
1062
+
1063
+ # Deprecated. See CompensationInfo.
1064
+ # Compensation range.
1065
+ # Corresponds to the JSON property `compensationRange`
1066
+ # @return [Google::Apis::JobsV2::ExtendedCompensationInfoCompensationRange]
1067
+ attr_accessor :compensation_range
1068
+
1069
+ # Required.
1070
+ # Specify desired ** base compensation entry's **
1071
+ # ExtendedCompensationInfo.CompensationUnit.
1072
+ # Corresponds to the JSON property `compensationUnits`
1073
+ # @return [Array<String>]
1074
+ attr_accessor :compensation_units
1075
+
1076
+ # Optional.
1077
+ # Specify currency in 3-letter
1078
+ # [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) format. If
1079
+ # unspecified, jobs are returned regardless of currency.
1080
+ # Corresponds to the JSON property `currency`
1081
+ # @return [String]
1082
+ attr_accessor :currency
1083
+
1084
+ # Optional.
1085
+ # Whether to include jobs whose compensation range is unspecified.
1086
+ # Corresponds to the JSON property `includeJobWithUnspecifiedCompensationRange`
1087
+ # @return [Boolean]
1088
+ attr_accessor :include_job_with_unspecified_compensation_range
1089
+ alias_method :include_job_with_unspecified_compensation_range?, :include_job_with_unspecified_compensation_range
1090
+
1091
+ # Required.
1092
+ # Type of filter.
1093
+ # Corresponds to the JSON property `type`
1094
+ # @return [String]
1095
+ attr_accessor :type
1096
+
1097
+ def initialize(**args)
1098
+ update!(**args)
1099
+ end
1100
+
1101
+ # Update properties of this object
1102
+ def update!(**args)
1103
+ @compensation_range = args[:compensation_range] if args.key?(:compensation_range)
1104
+ @compensation_units = args[:compensation_units] if args.key?(:compensation_units)
1105
+ @currency = args[:currency] if args.key?(:currency)
1106
+ @include_job_with_unspecified_compensation_range = args[:include_job_with_unspecified_compensation_range] if args.key?(:include_job_with_unspecified_compensation_range)
1107
+ @type = args[:type] if args.key?(:type)
1108
+ end
1109
+ end
1110
+
1111
+ # Deprecated. Use CompensationInfo.
1112
+ # Describes job compensation.
1113
+ class ExtendedCompensationInfo
1114
+ include Google::Apis::Core::Hashable
1115
+
1116
+ # Deprecated. See CompensationInfo.
1117
+ # Compensation range.
1118
+ # Corresponds to the JSON property `annualizedBaseCompensationRange`
1119
+ # @return [Google::Apis::JobsV2::ExtendedCompensationInfoCompensationRange]
1120
+ attr_accessor :annualized_base_compensation_range
1121
+
1122
+ # Output only.
1123
+ # Indicates annualized base compensation range cannot be derived, due to
1124
+ # the job's base compensation entry cannot be annualized.
1125
+ # See CompensationEntry for explanation on annualization and base
1126
+ # compensation entry.
1127
+ # Corresponds to the JSON property `annualizedBaseCompensationUnspecified`
1128
+ # @return [Boolean]
1129
+ attr_accessor :annualized_base_compensation_unspecified
1130
+ alias_method :annualized_base_compensation_unspecified?, :annualized_base_compensation_unspecified
1131
+
1132
+ # Deprecated. See CompensationInfo.
1133
+ # Compensation range.
1134
+ # Corresponds to the JSON property `annualizedTotalCompensationRange`
1135
+ # @return [Google::Apis::JobsV2::ExtendedCompensationInfoCompensationRange]
1136
+ attr_accessor :annualized_total_compensation_range
1137
+
1138
+ # Output only.
1139
+ # Indicates annualized total compensation range cannot be derived, due to
1140
+ # the job's all CompensationEntry cannot be annualized.
1141
+ # See CompensationEntry for explanation on annualization and base
1142
+ # compensation entry.
1143
+ # Corresponds to the JSON property `annualizedTotalCompensationUnspecified`
1144
+ # @return [Boolean]
1145
+ attr_accessor :annualized_total_compensation_unspecified
1146
+ alias_method :annualized_total_compensation_unspecified?, :annualized_total_compensation_unspecified
1147
+
1148
+ # Optional.
1149
+ # A 3-letter [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html)
1150
+ # currency code.
1151
+ # Corresponds to the JSON property `currency`
1152
+ # @return [String]
1153
+ attr_accessor :currency
1154
+
1155
+ # Optional.
1156
+ # Job compensation information.
1157
+ # At most one entry can be of type
1158
+ # ExtendedCompensationInfo.CompensationType.BASE, which is
1159
+ # referred as ** base compensation entry ** for the job.
1160
+ # Corresponds to the JSON property `entries`
1161
+ # @return [Array<Google::Apis::JobsV2::ExtendedCompensationInfoCompensationEntry>]
1162
+ attr_accessor :entries
1163
+
1164
+ def initialize(**args)
1165
+ update!(**args)
1166
+ end
1167
+
1168
+ # Update properties of this object
1169
+ def update!(**args)
1170
+ @annualized_base_compensation_range = args[:annualized_base_compensation_range] if args.key?(:annualized_base_compensation_range)
1171
+ @annualized_base_compensation_unspecified = args[:annualized_base_compensation_unspecified] if args.key?(:annualized_base_compensation_unspecified)
1172
+ @annualized_total_compensation_range = args[:annualized_total_compensation_range] if args.key?(:annualized_total_compensation_range)
1173
+ @annualized_total_compensation_unspecified = args[:annualized_total_compensation_unspecified] if args.key?(:annualized_total_compensation_unspecified)
1174
+ @currency = args[:currency] if args.key?(:currency)
1175
+ @entries = args[:entries] if args.key?(:entries)
1176
+ end
1177
+ end
1178
+
1179
+ # Deprecated. See CompensationInfo.
1180
+ # A compensation entry that represents one component of compensation, such
1181
+ # as base pay, bonus, or other compensation type.
1182
+ # Annualization: One compensation entry can be annualized if
1183
+ # - it contains valid amount or range.
1184
+ # - and its expected_units_per_year is set or can be derived.
1185
+ # Its annualized range is determined as (amount or range) times
1186
+ # expected_units_per_year.
1187
+ class ExtendedCompensationInfoCompensationEntry
1188
+ include Google::Apis::Core::Hashable
1189
+
1190
+ # Deprecated. See CompensationInfo.
1191
+ # Decimal number.
1192
+ # Corresponds to the JSON property `amount`
1193
+ # @return [Google::Apis::JobsV2::ExtendedCompensationInfoDecimal]
1194
+ attr_accessor :amount
1195
+
1196
+ # Optional.
1197
+ # Compensation description.
1198
+ # Corresponds to the JSON property `description`
1199
+ # @return [String]
1200
+ attr_accessor :description
1201
+
1202
+ # Deprecated. See CompensationInfo.
1203
+ # Decimal number.
1204
+ # Corresponds to the JSON property `expectedUnitsPerYear`
1205
+ # @return [Google::Apis::JobsV2::ExtendedCompensationInfoDecimal]
1206
+ attr_accessor :expected_units_per_year
1207
+
1208
+ # Deprecated. See CompensationInfo.
1209
+ # Compensation range.
1210
+ # Corresponds to the JSON property `range`
1211
+ # @return [Google::Apis::JobsV2::ExtendedCompensationInfoCompensationRange]
1212
+ attr_accessor :range
1213
+
1214
+ # Required.
1215
+ # Compensation type.
1216
+ # Corresponds to the JSON property `type`
1217
+ # @return [String]
1218
+ attr_accessor :type
1219
+
1220
+ # Optional.
1221
+ # Frequency of the specified amount.
1222
+ # Default is CompensationUnit.OTHER_COMPENSATION_UNIT.
1223
+ # Corresponds to the JSON property `unit`
1224
+ # @return [String]
1225
+ attr_accessor :unit
1226
+
1227
+ # Optional.
1228
+ # Indicates compensation amount and range are unset.
1229
+ # Corresponds to the JSON property `unspecified`
1230
+ # @return [Boolean]
1231
+ attr_accessor :unspecified
1232
+ alias_method :unspecified?, :unspecified
1233
+
1234
+ def initialize(**args)
1235
+ update!(**args)
1236
+ end
1237
+
1238
+ # Update properties of this object
1239
+ def update!(**args)
1240
+ @amount = args[:amount] if args.key?(:amount)
1241
+ @description = args[:description] if args.key?(:description)
1242
+ @expected_units_per_year = args[:expected_units_per_year] if args.key?(:expected_units_per_year)
1243
+ @range = args[:range] if args.key?(:range)
1244
+ @type = args[:type] if args.key?(:type)
1245
+ @unit = args[:unit] if args.key?(:unit)
1246
+ @unspecified = args[:unspecified] if args.key?(:unspecified)
1247
+ end
1248
+ end
1249
+
1250
+ # Deprecated. See CompensationInfo.
1251
+ # Compensation range.
1252
+ class ExtendedCompensationInfoCompensationRange
1253
+ include Google::Apis::Core::Hashable
1254
+
1255
+ # Deprecated. See CompensationInfo.
1256
+ # Decimal number.
1257
+ # Corresponds to the JSON property `max`
1258
+ # @return [Google::Apis::JobsV2::ExtendedCompensationInfoDecimal]
1259
+ attr_accessor :max
1260
+
1261
+ # Deprecated. See CompensationInfo.
1262
+ # Decimal number.
1263
+ # Corresponds to the JSON property `min`
1264
+ # @return [Google::Apis::JobsV2::ExtendedCompensationInfoDecimal]
1265
+ attr_accessor :min
1266
+
1267
+ def initialize(**args)
1268
+ update!(**args)
1269
+ end
1270
+
1271
+ # Update properties of this object
1272
+ def update!(**args)
1273
+ @max = args[:max] if args.key?(:max)
1274
+ @min = args[:min] if args.key?(:min)
1275
+ end
1276
+ end
1277
+
1278
+ # Deprecated. See CompensationInfo.
1279
+ # Decimal number.
1280
+ class ExtendedCompensationInfoDecimal
1281
+ include Google::Apis::Core::Hashable
1282
+
1283
+ # Micro (10^-6) units.
1284
+ # The value must be between -999,999 and +999,999 inclusive.
1285
+ # If `units` is positive, `micros` must be positive or zero.
1286
+ # If `units` is zero, `micros` can be positive, zero, or negative.
1287
+ # If `units` is negative, `micros` must be negative or zero.
1288
+ # For example -1.75 is represented as `units`=-1 and `micros`=-750,000.
1289
+ # Corresponds to the JSON property `micros`
1290
+ # @return [Fixnum]
1291
+ attr_accessor :micros
1292
+
1293
+ # Whole units.
1294
+ # Corresponds to the JSON property `units`
1295
+ # @return [Fixnum]
1296
+ attr_accessor :units
1297
+
1298
+ def initialize(**args)
1299
+ update!(**args)
1300
+ end
1301
+
1302
+ # Update properties of this object
1303
+ def update!(**args)
1304
+ @micros = args[:micros] if args.key?(:micros)
1305
+ @units = args[:units] if args.key?(:units)
1306
+ end
1307
+ end
1308
+
1309
+ # Deprecated. Use BatchDeleteJobsRequest instead.
1310
+ # Input only.
1311
+ # Filter for jobs to be deleted.
1312
+ class Filter
1313
+ include Google::Apis::Core::Hashable
1314
+
1315
+ # Required.
1316
+ # The requisition ID (or posting ID) assigned by the client to identify a
1317
+ # job. This is intended for client identification and tracking of
1318
+ # listings.
1319
+ # name takes precedence over this field
1320
+ # The maximum number of allowed characters is 225.
1321
+ # Corresponds to the JSON property `requisitionId`
1322
+ # @return [String]
1323
+ attr_accessor :requisition_id
1324
+
1325
+ def initialize(**args)
1326
+ update!(**args)
1327
+ end
1328
+
1329
+ # Update properties of this object
1330
+ def update!(**args)
1331
+ @requisition_id = args[:requisition_id] if args.key?(:requisition_id)
1332
+ end
1333
+ end
1334
+
1335
+ # Deprecated. Use SearchJobsRequest.histogram_facets instead to make
1336
+ # a single call with both search and histogram.
1337
+ # Input only.
1338
+ # A request for the `GetHistogram` method.
1339
+ class GetHistogramRequest
1340
+ include Google::Apis::Core::Hashable
1341
+
1342
+ # Optional.
1343
+ # Controls whether to broaden the search to avoid too few results for a
1344
+ # given query in instances where a search has sparse results. Results from a
1345
+ # broadened query is a superset of the results from the original query.
1346
+ # Defaults to false.
1347
+ # Corresponds to the JSON property `allowBroadening`
1348
+ # @return [Boolean]
1349
+ attr_accessor :allow_broadening
1350
+ alias_method :allow_broadening?, :allow_broadening
1351
+
1352
+ # Input only.
1353
+ # Deprecated. Use JobQuery instead.
1354
+ # The filters required to perform a search query or histogram.
1355
+ # Corresponds to the JSON property `filters`
1356
+ # @return [Google::Apis::JobsV2::JobFilters]
1357
+ attr_accessor :filters
1358
+
1359
+ # Input only.
1360
+ # The query required to perform a search query or histogram.
1361
+ # Corresponds to the JSON property `query`
1362
+ # @return [Google::Apis::JobsV2::JobQuery]
1363
+ attr_accessor :query
1364
+
1365
+ # Input only.
1366
+ # Meta information related to the job searcher or entity
1367
+ # conducting the job search. This information is used to improve the
1368
+ # performance of the service.
1369
+ # Corresponds to the JSON property `requestMetadata`
1370
+ # @return [Google::Apis::JobsV2::RequestMetadata]
1371
+ attr_accessor :request_metadata
1372
+
1373
+ # Required.
1374
+ # A list of facets that specify the histogram data to be calculated
1375
+ # against and returned.
1376
+ # Histogram response times can be slow, and counts
1377
+ # can be approximations. This call may be temporarily or permanently removed
1378
+ # prior to the production release of Cloud Job Discovery.
1379
+ # Corresponds to the JSON property `searchTypes`
1380
+ # @return [Array<String>]
1381
+ attr_accessor :search_types
1382
+
1383
+ def initialize(**args)
1384
+ update!(**args)
1385
+ end
1386
+
1387
+ # Update properties of this object
1388
+ def update!(**args)
1389
+ @allow_broadening = args[:allow_broadening] if args.key?(:allow_broadening)
1390
+ @filters = args[:filters] if args.key?(:filters)
1391
+ @query = args[:query] if args.key?(:query)
1392
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1393
+ @search_types = args[:search_types] if args.key?(:search_types)
1394
+ end
1395
+ end
1396
+
1397
+ # Deprecated. Use SearchJobsRequest.histogram_facets instead to make
1398
+ # a single call with both search and histogram.
1399
+ # Output only.
1400
+ # The response of the GetHistogram method.
1401
+ class GetHistogramResponse
1402
+ include Google::Apis::Core::Hashable
1403
+
1404
+ # Output only.
1405
+ # Additional information returned to client, such as debugging
1406
+ # information.
1407
+ # Corresponds to the JSON property `metadata`
1408
+ # @return [Google::Apis::JobsV2::ResponseMetadata]
1409
+ attr_accessor :metadata
1410
+
1411
+ # The Histogram results.
1412
+ # Corresponds to the JSON property `results`
1413
+ # @return [Array<Google::Apis::JobsV2::HistogramResult>]
1414
+ attr_accessor :results
1415
+
1416
+ def initialize(**args)
1417
+ update!(**args)
1418
+ end
1419
+
1420
+ # Update properties of this object
1421
+ def update!(**args)
1422
+ @metadata = args[:metadata] if args.key?(:metadata)
1423
+ @results = args[:results] if args.key?(:results)
1424
+ end
1425
+ end
1426
+
1427
+ # Input only.
1428
+ # Histogram facets to be specified in SearchJobsRequest.
1429
+ class HistogramFacets
1430
+ include Google::Apis::Core::Hashable
1431
+
1432
+ # Optional.
1433
+ # Specifies compensation field-based histogram requests.
1434
+ # Duplicate CompensationHistogramRequest.types are not allowed.
1435
+ # Corresponds to the JSON property `compensationHistogramFacets`
1436
+ # @return [Array<Google::Apis::JobsV2::CompensationHistogramRequest>]
1437
+ attr_accessor :compensation_histogram_facets
1438
+
1439
+ # Optional.
1440
+ # Specifies the custom attributes histogram requests.
1441
+ # Duplicate CustomAttributeHistogramRequest.keys are not allowed.
1442
+ # Corresponds to the JSON property `customAttributeHistogramFacets`
1443
+ # @return [Array<Google::Apis::JobsV2::CustomAttributeHistogramRequest>]
1444
+ attr_accessor :custom_attribute_histogram_facets
1445
+
1446
+ # Optional. Specifies the simple type of histogram facets, e.g,
1447
+ # `COMPANY_SIZE`, `EMPLOYMENT_TYPE` etc. This field is equivalent to
1448
+ # GetHistogramRequest.
1449
+ # Corresponds to the JSON property `simpleHistogramFacets`
1450
+ # @return [Array<String>]
1451
+ attr_accessor :simple_histogram_facets
1452
+
1453
+ def initialize(**args)
1454
+ update!(**args)
1455
+ end
1456
+
1457
+ # Update properties of this object
1458
+ def update!(**args)
1459
+ @compensation_histogram_facets = args[:compensation_histogram_facets] if args.key?(:compensation_histogram_facets)
1460
+ @custom_attribute_histogram_facets = args[:custom_attribute_histogram_facets] if args.key?(:custom_attribute_histogram_facets)
1461
+ @simple_histogram_facets = args[:simple_histogram_facets] if args.key?(:simple_histogram_facets)
1462
+ end
1463
+ end
1464
+
1465
+ # Output only.
1466
+ # Result of a histogram call. The response contains the histogram map for the
1467
+ # search type specified by HistogramResult.field.
1468
+ # The response is a map of each filter value to the corresponding count of
1469
+ # jobs for that filter.
1470
+ class HistogramResult
1471
+ include Google::Apis::Core::Hashable
1472
+
1473
+ # The Histogram search filters.
1474
+ # Corresponds to the JSON property `searchType`
1475
+ # @return [String]
1476
+ attr_accessor :search_type
1477
+
1478
+ # A map from the values of field to the number of jobs with that value
1479
+ # in this search result.
1480
+ # Key: search type (filter names, such as the companyName).
1481
+ # Values: the count of jobs that match the filter for this search.
1482
+ # Corresponds to the JSON property `values`
1483
+ # @return [Hash<String,Fixnum>]
1484
+ attr_accessor :values
1485
+
1486
+ def initialize(**args)
1487
+ update!(**args)
1488
+ end
1489
+
1490
+ # Update properties of this object
1491
+ def update!(**args)
1492
+ @search_type = args[:search_type] if args.key?(:search_type)
1493
+ @values = args[:values] if args.key?(:values)
1494
+ end
1495
+ end
1496
+
1497
+ # Output only.
1498
+ # Histogram results that matches HistogramFacets specified in
1499
+ # SearchJobsRequest.
1500
+ class HistogramResults
1501
+ include Google::Apis::Core::Hashable
1502
+
1503
+ # Specifies compensation field-based histogram results that matches
1504
+ # HistogramFacets.compensation_histogram_requests.
1505
+ # Corresponds to the JSON property `compensationHistogramResults`
1506
+ # @return [Array<Google::Apis::JobsV2::CompensationHistogramResult>]
1507
+ attr_accessor :compensation_histogram_results
1508
+
1509
+ # Specifies histogram results for custom attributes that
1510
+ # matches HistogramFacets.custom_attribute_histogram_facets.
1511
+ # Corresponds to the JSON property `customAttributeHistogramResults`
1512
+ # @return [Array<Google::Apis::JobsV2::CustomAttributeHistogramResult>]
1513
+ attr_accessor :custom_attribute_histogram_results
1514
+
1515
+ # Specifies histogram results that matches
1516
+ # HistogramFacets.simple_histogram_facets.
1517
+ # Corresponds to the JSON property `simpleHistogramResults`
1518
+ # @return [Array<Google::Apis::JobsV2::HistogramResult>]
1519
+ attr_accessor :simple_histogram_results
1520
+
1521
+ def initialize(**args)
1522
+ update!(**args)
1523
+ end
1524
+
1525
+ # Update properties of this object
1526
+ def update!(**args)
1527
+ @compensation_histogram_results = args[:compensation_histogram_results] if args.key?(:compensation_histogram_results)
1528
+ @custom_attribute_histogram_results = args[:custom_attribute_histogram_results] if args.key?(:custom_attribute_histogram_results)
1529
+ @simple_histogram_results = args[:simple_histogram_results] if args.key?(:simple_histogram_results)
1530
+ end
1531
+ end
1532
+
1533
+ # A Job resource represents a job posting (also referred to as a "job listing"
1534
+ # or "job requisition"). A job belongs to a Company, which is the hiring
1535
+ # entity responsible for the job.
1536
+ class Job
1537
+ include Google::Apis::Core::Hashable
1538
+
1539
+ # Optional but at least one of application_urls,
1540
+ # application_email_list or application_instruction must be
1541
+ # specified.
1542
+ # Use this field to specify email address(es) to which resumes or
1543
+ # applications can be sent.
1544
+ # The maximum number of allowed characters is 255.
1545
+ # Corresponds to the JSON property `applicationEmailList`
1546
+ # @return [Array<String>]
1547
+ attr_accessor :application_email_list
1548
+
1549
+ # Optional but at least one of application_urls,
1550
+ # application_email_list or application_instruction must be
1551
+ # specified.
1552
+ # Use this field to provide instructions, such as "Mail your application
1553
+ # to ...", that a candidate can follow to apply for the job.
1554
+ # This field accepts and sanitizes HTML input, and also accepts
1555
+ # bold, italic, ordered list, and unordered list markup tags.
1556
+ # The maximum number of allowed characters is 3,000.
1557
+ # Corresponds to the JSON property `applicationInstruction`
1558
+ # @return [String]
1559
+ attr_accessor :application_instruction
1560
+
1561
+ # Optional but at least one of application_urls,
1562
+ # application_email_list or application_instruction must be
1563
+ # specified.
1564
+ # Use this URL field to direct an applicant to a website, for example to
1565
+ # link to an online application form.
1566
+ # The maximum number of allowed characters is 2,000.
1567
+ # Corresponds to the JSON property `applicationUrls`
1568
+ # @return [Array<String>]
1569
+ attr_accessor :application_urls
1570
+
1571
+ # Optional.
1572
+ # The benefits included with the job.
1573
+ # Corresponds to the JSON property `benefits`
1574
+ # @return [Array<String>]
1575
+ attr_accessor :benefits
1576
+
1577
+ # Output only.
1578
+ # The name of the company listing the job.
1579
+ # Corresponds to the JSON property `companyDisplayName`
1580
+ # @return [String]
1581
+ attr_accessor :company_display_name
1582
+
1583
+ # Optional but one of company_name or distributor_company_id must be
1584
+ # provided.
1585
+ # The resource name of the company listing the job, such as
1586
+ # /companies/foo. This field takes precedence over the
1587
+ # distributor-assigned company identifier, distributor_company_id.
1588
+ # Corresponds to the JSON property `companyName`
1589
+ # @return [String]
1590
+ attr_accessor :company_name
1591
+
1592
+ # Deprecated. Use company_display_name instead.
1593
+ # Output only.
1594
+ # The name of the company listing the job.
1595
+ # Corresponds to the JSON property `companyTitle`
1596
+ # @return [String]
1597
+ attr_accessor :company_title
1598
+
1599
+ # Job compensation details.
1600
+ # Corresponds to the JSON property `compensationInfo`
1601
+ # @return [Google::Apis::JobsV2::CompensationInfo]
1602
+ attr_accessor :compensation_info
1603
+
1604
+ # Output only.
1605
+ # The timestamp when this job was created.
1606
+ # Corresponds to the JSON property `createTime`
1607
+ # @return [String]
1608
+ attr_accessor :create_time
1609
+
1610
+ # Optional.
1611
+ # A map of fields to hold both filterable and non-filterable custom job
1612
+ # attributes that are not covered by the provided structured fields.
1613
+ # This field is a more general combination of the deprecated id-based
1614
+ # filterable_custom_fields and string-based
1615
+ # non_filterable_custom_fields.
1616
+ # The keys of the map are strings up to 64 bytes and must match the
1617
+ # pattern: a-zA-Z*.
1618
+ # At most 100 filterable and at most 100 unfilterable keys are supported.
1619
+ # For filterable `string_values`, across all keys at most 200 values are
1620
+ # allowed, with each string no more than 255 characters. For unfilterable
1621
+ # `string_values`, the maximum total size of `string_values` across all keys
1622
+ # is 50KB.
1623
+ # Corresponds to the JSON property `customAttributes`
1624
+ # @return [Hash<String,Google::Apis::JobsV2::CustomAttribute>]
1625
+ attr_accessor :custom_attributes
1626
+
1627
+ # Optional.
1628
+ # The department or functional area within the company with the open
1629
+ # position.
1630
+ # The maximum number of allowed characters is 255.
1631
+ # Corresponds to the JSON property `department`
1632
+ # @return [String]
1633
+ attr_accessor :department
1634
+
1635
+ # Required.
1636
+ # The description of the job, which typically includes a multi-paragraph
1637
+ # description of the company and related information. Separate fields are
1638
+ # provided on the job object for responsibilities,
1639
+ # qualifications, and other job characteristics. Use of
1640
+ # these separate job fields is recommended.
1641
+ # This field accepts and sanitizes HTML input, and also accepts
1642
+ # bold, italic, ordered list, and unordered list markup tags.
1643
+ # The maximum number of allowed characters is 100,000.
1644
+ # Corresponds to the JSON property `description`
1645
+ # @return [String]
1646
+ attr_accessor :description
1647
+
1648
+ # Optional but one of company_name or distributor_company_id must be
1649
+ # provided.
1650
+ # A unique company identifier that used by job distributors to identify an
1651
+ # employer's company entity. company_name takes precedence over
1652
+ # this field, and is the recommended field to use to identify companies.
1653
+ # The maximum number of allowed characters is 255.
1654
+ # Corresponds to the JSON property `distributorCompanyId`
1655
+ # @return [String]
1656
+ attr_accessor :distributor_company_id
1657
+
1658
+ # Optional.
1659
+ # The desired education level for the job, such as
1660
+ # "Bachelors", "Masters", "Doctorate".
1661
+ # Corresponds to the JSON property `educationLevels`
1662
+ # @return [Array<String>]
1663
+ attr_accessor :education_levels
1664
+
1665
+ # Optional.
1666
+ # The employment type(s) of a job, for example,
1667
+ # full time or
1668
+ # part time.
1669
+ # Corresponds to the JSON property `employmentTypes`
1670
+ # @return [Array<String>]
1671
+ attr_accessor :employment_types
1672
+
1673
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
1674
+ # time zone are either specified elsewhere or are not significant. The date
1675
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1676
+ # represent a year and month where the day is not significant, e.g. credit card
1677
+ # expiration date. The year may be 0 to represent a month and day independent
1678
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1679
+ # and `google.protobuf.Timestamp`.
1680
+ # Corresponds to the JSON property `endDate`
1681
+ # @return [Google::Apis::JobsV2::Date]
1682
+ attr_accessor :end_date
1683
+
1684
+ # Optional but strongly recommended to be provided for the best service
1685
+ # experience.
1686
+ # The expiration timestamp of the job. After this timestamp, the
1687
+ # job is marked as expired, and it no longer appears in search results. The
1688
+ # expired job can't be deleted or listed by the DeleteJob and
1689
+ # ListJobs APIs, but it can be retrieved with the GetJob API or
1690
+ # updated with the UpdateJob API. An expired job can be updated and
1691
+ # opened again by using a future expiration timestamp. It can also remain
1692
+ # expired. Updating an expired job to be open fails if there is another
1693
+ # existing open job with same requisition_id, company_name and
1694
+ # language_code.
1695
+ # The expired jobs are retained in our system for 90 days. However, the
1696
+ # overall expired job count cannot exceed 3 times the maximum of open jobs
1697
+ # count over the past week, otherwise jobs with earlier expire time are
1698
+ # cleaned first. Expired jobs are no longer accessible after they are cleaned
1699
+ # out.
1700
+ # The format of this field is RFC 3339 date strings. Example:
1701
+ # 2000-01-01T00:00:00.999999999Z
1702
+ # See
1703
+ # [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
1704
+ # A valid date range is between 1970-01-01T00:00:00.0Z and
1705
+ # 2100-12-31T23:59:59.999Z. Invalid dates are ignored and treated as expire
1706
+ # time not provided.
1707
+ # If this value is not provided on job creation or invalid, the job posting
1708
+ # expires after 30 days from the job's creation time. For example, if the
1709
+ # job was created on 2017/01/01 13:00AM UTC with an unspecified expiration
1710
+ # date, the job expires after 2017/01/31 13:00AM UTC.
1711
+ # If this value is not provided but expiry_date is, expiry_date is
1712
+ # used.
1713
+ # If this value is not provided on job update, it depends on the field masks
1714
+ # set by UpdateJobRequest.update_job_fields. If the field masks include
1715
+ # expiry_time, or the masks are empty meaning that every field is
1716
+ # updated, the job posting expires after 30 days from the job's last
1717
+ # update time. Otherwise the expiration date isn't updated.
1718
+ # Corresponds to the JSON property `expireTime`
1719
+ # @return [String]
1720
+ attr_accessor :expire_time
1721
+
1722
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
1723
+ # time zone are either specified elsewhere or are not significant. The date
1724
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1725
+ # represent a year and month where the day is not significant, e.g. credit card
1726
+ # expiration date. The year may be 0 to represent a month and day independent
1727
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1728
+ # and `google.protobuf.Timestamp`.
1729
+ # Corresponds to the JSON property `expiryDate`
1730
+ # @return [Google::Apis::JobsV2::Date]
1731
+ attr_accessor :expiry_date
1732
+
1733
+ # Deprecated. Use CompensationInfo.
1734
+ # Describes job compensation.
1735
+ # Corresponds to the JSON property `extendedCompensationInfo`
1736
+ # @return [Google::Apis::JobsV2::ExtendedCompensationInfo]
1737
+ attr_accessor :extended_compensation_info
1738
+
1739
+ # Deprecated. Use custom_attributes instead.
1740
+ # Optional.
1741
+ # A map of fields to hold filterable custom job attributes not captured by
1742
+ # the standard fields such as job_title, company_name, or
1743
+ # level. These custom fields store arbitrary
1744
+ # string values, and can be used for purposes not covered by
1745
+ # the structured fields. For the best search experience, use of the
1746
+ # structured rather than custom fields is recommended.
1747
+ # Data stored in these custom fields fields are indexed and
1748
+ # searched against by keyword searches (see
1749
+ # SearchJobsRequest.custom_field_filters][]). To list jobs by
1750
+ # custom fields, see ListCustomFieldsRequest.field_id.
1751
+ # The map key must be a number between 1-20. If an invalid key is
1752
+ # provided on job create or update, an error is returned.
1753
+ # Corresponds to the JSON property `filterableCustomFields`
1754
+ # @return [Hash<String,Google::Apis::JobsV2::CustomField>]
1755
+ attr_accessor :filterable_custom_fields
1756
+
1757
+ # Optional.
1758
+ # A description of bonus, commission, and other compensation
1759
+ # incentives associated with the job not including salary or pay.
1760
+ # The maximum number of allowed characters is 10,000.
1761
+ # Corresponds to the JSON property `incentives`
1762
+ # @return [String]
1763
+ attr_accessor :incentives
1764
+
1765
+ # Output only.
1766
+ # Structured locations of the job, resolved from locations.
1767
+ # Corresponds to the JSON property `jobLocations`
1768
+ # @return [Array<Google::Apis::JobsV2::JobLocation>]
1769
+ attr_accessor :job_locations
1770
+
1771
+ # Required.
1772
+ # The title of the job, such as "Software Engineer"
1773
+ # The maximum number of allowed characters is 500.
1774
+ # Corresponds to the JSON property `jobTitle`
1775
+ # @return [String]
1776
+ attr_accessor :job_title
1777
+
1778
+ # Optional.
1779
+ # The language of the posting. This field is distinct from
1780
+ # any requirements for fluency that are associated with the job.
1781
+ # Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
1782
+ # For more information, see
1783
+ # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
1784
+ # The default value is `en-US`.
1785
+ # Corresponds to the JSON property `languageCode`
1786
+ # @return [String]
1787
+ attr_accessor :language_code
1788
+
1789
+ # Optional.
1790
+ # The experience level associated with the job, such as "Entry Level".
1791
+ # Corresponds to the JSON property `level`
1792
+ # @return [String]
1793
+ attr_accessor :level
1794
+
1795
+ # Optional but strongly recommended to be provided for the best service
1796
+ # experience.
1797
+ # Location(s) where the job is hiring.
1798
+ # Providing the full street address(es) of the hiring
1799
+ # location is recommended to enable better API results, including
1800
+ # job searches by commute time.
1801
+ # At most 50 locations are allowed for best search performance. If a job has
1802
+ # more locations, it is suggested to split it into multiple jobs with unique
1803
+ # requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as
1804
+ # multiple jobs with the same requisition_id, company_name and
1805
+ # language_code are not allowed. If the original requisition_id must
1806
+ # be preserved, a custom field should be used for storage. It is also
1807
+ # suggested to group the locations that close to each other in the same job
1808
+ # for better search experience.
1809
+ # The maximum number of allowed characters is 500.
1810
+ # Corresponds to the JSON property `locations`
1811
+ # @return [Array<String>]
1812
+ attr_accessor :locations
1813
+
1814
+ # Required during job update.
1815
+ # Resource name assigned to a job by the API, for example, "/jobs/foo". Use
1816
+ # of this field in job queries and API calls is preferred over the use of
1817
+ # requisition_id since this value is unique.
1818
+ # Corresponds to the JSON property `name`
1819
+ # @return [String]
1820
+ attr_accessor :name
1821
+
1822
+ # Optional.
1823
+ # A promotion value of the job, as determined by the client.
1824
+ # The value determines the sort order of the jobs returned when searching for
1825
+ # jobs using the featured jobs search call, with higher promotional values
1826
+ # being returned first and ties being resolved by relevance sort. Only the
1827
+ # jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
1828
+ # Default value is 0, and negative values are treated as 0.
1829
+ # Corresponds to the JSON property `promotionValue`
1830
+ # @return [Fixnum]
1831
+ attr_accessor :promotion_value
1832
+
1833
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
1834
+ # time zone are either specified elsewhere or are not significant. The date
1835
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1836
+ # represent a year and month where the day is not significant, e.g. credit card
1837
+ # expiration date. The year may be 0 to represent a month and day independent
1838
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1839
+ # and `google.protobuf.Timestamp`.
1840
+ # Corresponds to the JSON property `publishDate`
1841
+ # @return [Google::Apis::JobsV2::Date]
1842
+ attr_accessor :publish_date
1843
+
1844
+ # Optional.
1845
+ # A description of the qualifications required to perform the
1846
+ # job. The use of this field is recommended
1847
+ # as an alternative to using the more general description field.
1848
+ # This field accepts and sanitizes HTML input, and also accepts
1849
+ # bold, italic, ordered list, and unordered list markup tags.
1850
+ # The maximum number of allowed characters is 10,000.
1851
+ # Corresponds to the JSON property `qualifications`
1852
+ # @return [String]
1853
+ attr_accessor :qualifications
1854
+
1855
+ # Output only.
1856
+ # The URL of a web page that displays job details.
1857
+ # Corresponds to the JSON property `referenceUrl`
1858
+ # @return [String]
1859
+ attr_accessor :reference_url
1860
+
1861
+ # Optional.
1862
+ # The job Region (for example, state, country) throughout which the job
1863
+ # is available. If this field is set, a
1864
+ # LocationFilter in a search query within the job region
1865
+ # finds this job if an exact location match is not specified.
1866
+ # If this field is set, setting job locations
1867
+ # to the same location level as this field is strongly recommended.
1868
+ # Corresponds to the JSON property `region`
1869
+ # @return [String]
1870
+ attr_accessor :region
1871
+
1872
+ # Required.
1873
+ # The requisition ID, also referred to as the posting ID, assigned by the
1874
+ # client to identify a job. This field is intended to be used by clients
1875
+ # for client identification and tracking of listings. A job is not allowed
1876
+ # to be created if there is another job with the same requisition_id,
1877
+ # company_name and language_code.
1878
+ # The maximum number of allowed characters is 225.
1879
+ # Corresponds to the JSON property `requisitionId`
1880
+ # @return [String]
1881
+ attr_accessor :requisition_id
1882
+
1883
+ # Optional.
1884
+ # A description of job responsibilities. The use of this field is
1885
+ # recommended as an alternative to using the more general description
1886
+ # field.
1887
+ # This field accepts and sanitizes HTML input, and also accepts
1888
+ # bold, italic, ordered list, and unordered list markup tags.
1889
+ # The maximum number of allowed characters is 10,000.
1890
+ # Corresponds to the JSON property `responsibilities`
1891
+ # @return [String]
1892
+ attr_accessor :responsibilities
1893
+
1894
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
1895
+ # time zone are either specified elsewhere or are not significant. The date
1896
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1897
+ # represent a year and month where the day is not significant, e.g. credit card
1898
+ # expiration date. The year may be 0 to represent a month and day independent
1899
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1900
+ # and `google.protobuf.Timestamp`.
1901
+ # Corresponds to the JSON property `startDate`
1902
+ # @return [Google::Apis::JobsV2::Date]
1903
+ attr_accessor :start_date
1904
+
1905
+ # Deprecated. Use custom_attributes instead.
1906
+ # Optional.
1907
+ # A map of fields to hold non-filterable custom job attributes, similar to
1908
+ # filterable_custom_fields. These fields are distinct in that the data
1909
+ # in these fields are not indexed. Therefore, the client cannot search
1910
+ # against them, nor can the client use them to list jobs.
1911
+ # The key of the map can be any valid string.
1912
+ # Corresponds to the JSON property `unindexedCustomFields`
1913
+ # @return [Hash<String,Google::Apis::JobsV2::CustomField>]
1914
+ attr_accessor :unindexed_custom_fields
1915
+
1916
+ # Output only.
1917
+ # The timestamp when this job was last updated.
1918
+ # Corresponds to the JSON property `updateTime`
1919
+ # @return [String]
1920
+ attr_accessor :update_time
1921
+
1922
+ # Optional.
1923
+ # The visibility of the job.
1924
+ # Defaults to JobVisibility.PRIVATE if not specified.
1925
+ # Currently only JobVisibility.PRIVATE is supported.
1926
+ # Corresponds to the JSON property `visibility`
1927
+ # @return [String]
1928
+ attr_accessor :visibility
1929
+
1930
+ def initialize(**args)
1931
+ update!(**args)
1932
+ end
1933
+
1934
+ # Update properties of this object
1935
+ def update!(**args)
1936
+ @application_email_list = args[:application_email_list] if args.key?(:application_email_list)
1937
+ @application_instruction = args[:application_instruction] if args.key?(:application_instruction)
1938
+ @application_urls = args[:application_urls] if args.key?(:application_urls)
1939
+ @benefits = args[:benefits] if args.key?(:benefits)
1940
+ @company_display_name = args[:company_display_name] if args.key?(:company_display_name)
1941
+ @company_name = args[:company_name] if args.key?(:company_name)
1942
+ @company_title = args[:company_title] if args.key?(:company_title)
1943
+ @compensation_info = args[:compensation_info] if args.key?(:compensation_info)
1944
+ @create_time = args[:create_time] if args.key?(:create_time)
1945
+ @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
1946
+ @department = args[:department] if args.key?(:department)
1947
+ @description = args[:description] if args.key?(:description)
1948
+ @distributor_company_id = args[:distributor_company_id] if args.key?(:distributor_company_id)
1949
+ @education_levels = args[:education_levels] if args.key?(:education_levels)
1950
+ @employment_types = args[:employment_types] if args.key?(:employment_types)
1951
+ @end_date = args[:end_date] if args.key?(:end_date)
1952
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
1953
+ @expiry_date = args[:expiry_date] if args.key?(:expiry_date)
1954
+ @extended_compensation_info = args[:extended_compensation_info] if args.key?(:extended_compensation_info)
1955
+ @filterable_custom_fields = args[:filterable_custom_fields] if args.key?(:filterable_custom_fields)
1956
+ @incentives = args[:incentives] if args.key?(:incentives)
1957
+ @job_locations = args[:job_locations] if args.key?(:job_locations)
1958
+ @job_title = args[:job_title] if args.key?(:job_title)
1959
+ @language_code = args[:language_code] if args.key?(:language_code)
1960
+ @level = args[:level] if args.key?(:level)
1961
+ @locations = args[:locations] if args.key?(:locations)
1962
+ @name = args[:name] if args.key?(:name)
1963
+ @promotion_value = args[:promotion_value] if args.key?(:promotion_value)
1964
+ @publish_date = args[:publish_date] if args.key?(:publish_date)
1965
+ @qualifications = args[:qualifications] if args.key?(:qualifications)
1966
+ @reference_url = args[:reference_url] if args.key?(:reference_url)
1967
+ @region = args[:region] if args.key?(:region)
1968
+ @requisition_id = args[:requisition_id] if args.key?(:requisition_id)
1969
+ @responsibilities = args[:responsibilities] if args.key?(:responsibilities)
1970
+ @start_date = args[:start_date] if args.key?(:start_date)
1971
+ @unindexed_custom_fields = args[:unindexed_custom_fields] if args.key?(:unindexed_custom_fields)
1972
+ @update_time = args[:update_time] if args.key?(:update_time)
1973
+ @visibility = args[:visibility] if args.key?(:visibility)
1974
+ end
1975
+ end
1976
+
1977
+ # Input only.
1978
+ # Deprecated. Use JobQuery instead.
1979
+ # The filters required to perform a search query or histogram.
1980
+ class JobFilters
1981
+ include Google::Apis::Core::Hashable
1982
+
1983
+ # Optional.
1984
+ # The category filter specifies the categories of jobs to search against.
1985
+ # See Category for more information.
1986
+ # If a value is not specified, jobs from any category are searched against.
1987
+ # If multiple values are specified, jobs from any of the specified
1988
+ # categories are searched against.
1989
+ # Corresponds to the JSON property `categories`
1990
+ # @return [Array<String>]
1991
+ attr_accessor :categories
1992
+
1993
+ # Input only.
1994
+ # Parameters needed for commute search.
1995
+ # Corresponds to the JSON property `commuteFilter`
1996
+ # @return [Google::Apis::JobsV2::CommutePreference]
1997
+ attr_accessor :commute_filter
1998
+
1999
+ # Optional.
2000
+ # The company names filter specifies the company entities to search
2001
+ # against.
2002
+ # If a value is not specified, jobs are searched for against all companies.
2003
+ # If multiple values are specified, jobs are searched against the
2004
+ # specified companies.
2005
+ # At most 20 company filters are allowed.
2006
+ # Corresponds to the JSON property `companyNames`
2007
+ # @return [Array<String>]
2008
+ attr_accessor :company_names
2009
+
2010
+ # Optional.
2011
+ # This filter specifies the exact company titles
2012
+ # of jobs to search against.
2013
+ # If a value is not specified, jobs within the search results can be
2014
+ # associated with any company.
2015
+ # If multiple values are specified, jobs within the search results may be
2016
+ # associated with any of the specified companies.
2017
+ # At most 20 company title filters are allowed.
2018
+ # Corresponds to the JSON property `companyTitles`
2019
+ # @return [Array<String>]
2020
+ attr_accessor :company_titles
2021
+
2022
+ # Input only.
2023
+ # Filter on job compensation type and amount.
2024
+ # Corresponds to the JSON property `compensationFilter`
2025
+ # @return [Google::Apis::JobsV2::CompensationFilter]
2026
+ attr_accessor :compensation_filter
2027
+
2028
+ # Optional.
2029
+ # This filter specifies a structured syntax to match against the
2030
+ # Job.custom_attributes that are marked as `filterable`.
2031
+ # The syntax for this expression is a subset of Google SQL syntax.
2032
+ # Supported operators are: =, !=, <, <=, >, >= where the left of the operator
2033
+ # is a custom field key and the right of the operator is a number or string
2034
+ # (surrounded by quotes) value.
2035
+ # Supported functions are LOWER(<field_name>) to
2036
+ # perform case insensitive match and EMPTY(<field_name>) to filter on the
2037
+ # existence of a key.
2038
+ # Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
2039
+ # nesting (For example, "((A AND B AND C) OR NOT D) AND E"), and there can
2040
+ # be a maximum of 50 comparisons/functions in the expression. The expression
2041
+ # must be < 2000 characters in length.
2042
+ # Sample Query:
2043
+ # (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) AND key2 > 100
2044
+ # Corresponds to the JSON property `customAttributeFilter`
2045
+ # @return [String]
2046
+ attr_accessor :custom_attribute_filter
2047
+
2048
+ # Deprecated. Use custom_attribute_filter instead.
2049
+ # Optional.
2050
+ # This filter specifies searching against
2051
+ # custom field values. See Job.filterable_custom_fields for information.
2052
+ # The key value specifies a number between 1-20 (the service
2053
+ # supports 20 custom fields) corresponding to the desired custom field map
2054
+ # value. If an invalid key is provided or specified together with
2055
+ # custom_attribute_filter, an error is thrown.
2056
+ # Corresponds to the JSON property `customFieldFilters`
2057
+ # @return [Hash<String,Google::Apis::JobsV2::CustomFieldFilter>]
2058
+ attr_accessor :custom_field_filters
2059
+
2060
+ # Optional.
2061
+ # This flag controls the spell-check feature. If false, the
2062
+ # service attempts to correct a misspelled query,
2063
+ # for example, "enginee" is corrected to "engineer".
2064
+ # Defaults to false: a spell check is performed.
2065
+ # Corresponds to the JSON property `disableSpellCheck`
2066
+ # @return [Boolean]
2067
+ attr_accessor :disable_spell_check
2068
+ alias_method :disable_spell_check?, :disable_spell_check
2069
+
2070
+ # Optional.
2071
+ # The employment type filter specifies the employment type of jobs to
2072
+ # search against, such as EmploymentType.FULL_TIME.
2073
+ # If a value is not specified, jobs in the search results include any
2074
+ # employment type.
2075
+ # If multiple values are specified, jobs in the search results include any
2076
+ # of the specified employment types.
2077
+ # Corresponds to the JSON property `employmentTypes`
2078
+ # @return [Array<String>]
2079
+ attr_accessor :employment_types
2080
+
2081
+ # Deprecated. Always use CompensationFilter.
2082
+ # Input only.
2083
+ # Filter on job compensation type and amount.
2084
+ # Corresponds to the JSON property `extendedCompensationFilter`
2085
+ # @return [Google::Apis::JobsV2::ExtendedCompensationFilter]
2086
+ attr_accessor :extended_compensation_filter
2087
+
2088
+ # Optional.
2089
+ # This filter specifies the locale of jobs to search against,
2090
+ # for example, "en-US".
2091
+ # If a value is not specified, the search results can contain jobs in any
2092
+ # locale.
2093
+ # Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
2094
+ # For more information, see
2095
+ # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
2096
+ # At most 10 language code filters are allowed.
2097
+ # Corresponds to the JSON property `languageCodes`
2098
+ # @return [Array<String>]
2099
+ attr_accessor :language_codes
2100
+
2101
+ # Optional.
2102
+ # The location filter specifies geo-regions containing the jobs to
2103
+ # search against. See LocationFilter for more information.
2104
+ # If a location value is not specified, jobs are be retrieved
2105
+ # from all locations.
2106
+ # If multiple values are specified, jobs are retrieved from any of the
2107
+ # specified locations, and, if different values are specified
2108
+ # for the LocationFilter.distance_in_miles parameter, the maximum
2109
+ # provided distance is used for all locations.
2110
+ # At most 5 location filters are allowed.
2111
+ # Corresponds to the JSON property `locationFilters`
2112
+ # @return [Array<Google::Apis::JobsV2::LocationFilter>]
2113
+ attr_accessor :location_filters
2114
+
2115
+ # Optional.
2116
+ # Jobs published within a range specified by this filter are searched
2117
+ # against, for example, DateRange.PAST_MONTH. If a value is not
2118
+ # specified, all open jobs are searched against regardless of the
2119
+ # date on which they were published.
2120
+ # Corresponds to the JSON property `publishDateRange`
2121
+ # @return [String]
2122
+ attr_accessor :publish_date_range
2123
+
2124
+ # Optional.
2125
+ # The query filter contains the keywords that match against the job
2126
+ # title, description, and location fields.
2127
+ # The maximum query size is 255 bytes.
2128
+ # Corresponds to the JSON property `query`
2129
+ # @return [String]
2130
+ attr_accessor :query
2131
+
2132
+ # Optional.
2133
+ # This flag controls whether the job search should be restricted to jobs
2134
+ # owned by the current user.
2135
+ # Defaults to false that all jobs accessible to the
2136
+ # user are searched against.
2137
+ # Corresponds to the JSON property `tenantJobOnly`
2138
+ # @return [Boolean]
2139
+ attr_accessor :tenant_job_only
2140
+ alias_method :tenant_job_only?, :tenant_job_only
2141
+
2142
+ def initialize(**args)
2143
+ update!(**args)
2144
+ end
2145
+
2146
+ # Update properties of this object
2147
+ def update!(**args)
2148
+ @categories = args[:categories] if args.key?(:categories)
2149
+ @commute_filter = args[:commute_filter] if args.key?(:commute_filter)
2150
+ @company_names = args[:company_names] if args.key?(:company_names)
2151
+ @company_titles = args[:company_titles] if args.key?(:company_titles)
2152
+ @compensation_filter = args[:compensation_filter] if args.key?(:compensation_filter)
2153
+ @custom_attribute_filter = args[:custom_attribute_filter] if args.key?(:custom_attribute_filter)
2154
+ @custom_field_filters = args[:custom_field_filters] if args.key?(:custom_field_filters)
2155
+ @disable_spell_check = args[:disable_spell_check] if args.key?(:disable_spell_check)
2156
+ @employment_types = args[:employment_types] if args.key?(:employment_types)
2157
+ @extended_compensation_filter = args[:extended_compensation_filter] if args.key?(:extended_compensation_filter)
2158
+ @language_codes = args[:language_codes] if args.key?(:language_codes)
2159
+ @location_filters = args[:location_filters] if args.key?(:location_filters)
2160
+ @publish_date_range = args[:publish_date_range] if args.key?(:publish_date_range)
2161
+ @query = args[:query] if args.key?(:query)
2162
+ @tenant_job_only = args[:tenant_job_only] if args.key?(:tenant_job_only)
2163
+ end
2164
+ end
2165
+
2166
+ # Output only.
2167
+ # A resource that represents a location with full geographic
2168
+ # information.
2169
+ class JobLocation
2170
+ include Google::Apis::Core::Hashable
2171
+
2172
+ # An object representing a latitude/longitude pair. This is expressed as a pair
2173
+ # of doubles representing degrees latitude and degrees longitude. Unless
2174
+ # specified otherwise, this must conform to the
2175
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
2176
+ # standard</a>. Values must be within normalized ranges.
2177
+ # Corresponds to the JSON property `latLng`
2178
+ # @return [Google::Apis::JobsV2::LatLng]
2179
+ attr_accessor :lat_lng
2180
+
2181
+ # The type of a location, which corresponds to the address lines field of
2182
+ # PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of
2183
+ # LocationType#NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of
2184
+ # LocationType#LOCALITY.
2185
+ # Corresponds to the JSON property `locationType`
2186
+ # @return [String]
2187
+ attr_accessor :location_type
2188
+
2189
+ # Represents a postal address, e.g. for postal delivery or payments addresses.
2190
+ # Given a postal address, a postal service can deliver items to a premise, P.O.
2191
+ # Box or similar.
2192
+ # It is not intended to model geographical locations (roads, towns,
2193
+ # mountains).
2194
+ # In typical usage an address would be created via user input or from importing
2195
+ # existing data, depending on the type of process.
2196
+ # Advice on address input / editing:
2197
+ # - Use an i18n-ready address widget such as
2198
+ # https://github.com/googlei18n/libaddressinput)
2199
+ # - Users should not be presented with UI elements for input or editing of
2200
+ # fields outside countries where that field is used.
2201
+ # For more guidance on how to use this schema, please see:
2202
+ # https://support.google.com/business/answer/6397478
2203
+ # Corresponds to the JSON property `postalAddress`
2204
+ # @return [Google::Apis::JobsV2::PostalAddress]
2205
+ attr_accessor :postal_address
2206
+
2207
+ # Radius in meters of the job location. This value is derived from the
2208
+ # location bounding box in which a circle with the specified radius
2209
+ # centered from LatLng coves the area associated with the job location.
2210
+ # For example, currently, "Mountain View, CA, USA" has a radius of
2211
+ # 7885.79 meters.
2212
+ # Corresponds to the JSON property `radiusMeters`
2213
+ # @return [Float]
2214
+ attr_accessor :radius_meters
2215
+
2216
+ def initialize(**args)
2217
+ update!(**args)
2218
+ end
2219
+
2220
+ # Update properties of this object
2221
+ def update!(**args)
2222
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
2223
+ @location_type = args[:location_type] if args.key?(:location_type)
2224
+ @postal_address = args[:postal_address] if args.key?(:postal_address)
2225
+ @radius_meters = args[:radius_meters] if args.key?(:radius_meters)
2226
+ end
2227
+ end
2228
+
2229
+ # Input only.
2230
+ # The query required to perform a search query or histogram.
2231
+ class JobQuery
2232
+ include Google::Apis::Core::Hashable
2233
+
2234
+ # Optional.
2235
+ # The category filter specifies the categories of jobs to search against.
2236
+ # See Category for more information.
2237
+ # If a value is not specified, jobs from any category are searched against.
2238
+ # If multiple values are specified, jobs from any of the specified
2239
+ # categories are searched against.
2240
+ # Corresponds to the JSON property `categories`
2241
+ # @return [Array<String>]
2242
+ attr_accessor :categories
2243
+
2244
+ # Input only.
2245
+ # Parameters needed for commute search.
2246
+ # Corresponds to the JSON property `commuteFilter`
2247
+ # @return [Google::Apis::JobsV2::CommutePreference]
2248
+ attr_accessor :commute_filter
2249
+
2250
+ # Optional.
2251
+ # This filter specifies the exact company display
2252
+ # name of jobs to search against.
2253
+ # If a value is not specified, jobs within the search results can be
2254
+ # associated with any company.
2255
+ # If multiple values are specified, jobs within the search results may be
2256
+ # associated with any of the specified companies.
2257
+ # At most 20 company display name filters are allowed.
2258
+ # Corresponds to the JSON property `companyDisplayNames`
2259
+ # @return [Array<String>]
2260
+ attr_accessor :company_display_names
2261
+
2262
+ # Optional.
2263
+ # The company names filter specifies the company entities to search
2264
+ # against.
2265
+ # If a value is not specified, jobs are searched for against all
2266
+ # companies.
2267
+ # If multiple values are specified, jobs are searched against the
2268
+ # specified companies.
2269
+ # At most 20 company filters are allowed.
2270
+ # Corresponds to the JSON property `companyNames`
2271
+ # @return [Array<String>]
2272
+ attr_accessor :company_names
2273
+
2274
+ # Input only.
2275
+ # Filter on job compensation type and amount.
2276
+ # Corresponds to the JSON property `compensationFilter`
2277
+ # @return [Google::Apis::JobsV2::CompensationFilter]
2278
+ attr_accessor :compensation_filter
2279
+
2280
+ # Optional.
2281
+ # This filter specifies a structured syntax to match against the
2282
+ # Job.custom_attributes that are marked as `filterable`.
2283
+ # The syntax for this expression is a subset of Google SQL syntax.
2284
+ # Supported operators are: =, !=, <, <=, >, >= where the left of the operator
2285
+ # is a custom field key and the right of the operator is a number or string
2286
+ # (surrounded by quotes) value.
2287
+ # Supported functions are LOWER(<field_name>) to
2288
+ # perform case insensitive match and EMPTY(<field_name>) to filter on the
2289
+ # existence of a key.
2290
+ # Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
2291
+ # nesting (for example, "((A AND B AND C) OR NOT D) AND E"), and there can
2292
+ # be a maximum of 50 comparisons/functions in the expression. The expression
2293
+ # must be < 2000 characters in length.
2294
+ # Sample Query:
2295
+ # (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) AND key2 > 100
2296
+ # Corresponds to the JSON property `customAttributeFilter`
2297
+ # @return [String]
2298
+ attr_accessor :custom_attribute_filter
2299
+
2300
+ # Optional.
2301
+ # This flag controls the spell-check feature. If false, the
2302
+ # service attempts to correct a misspelled query,
2303
+ # for example, "enginee" is corrected to "engineer".
2304
+ # Defaults to false: a spell check is performed.
2305
+ # Corresponds to the JSON property `disableSpellCheck`
2306
+ # @return [Boolean]
2307
+ attr_accessor :disable_spell_check
2308
+ alias_method :disable_spell_check?, :disable_spell_check
2309
+
2310
+ # Optional.
2311
+ # The employment type filter specifies the employment type of jobs to
2312
+ # search against, such as EmploymentType.FULL_TIME.
2313
+ # If a value is not specified, jobs in the search results will include any
2314
+ # employment type.
2315
+ # If multiple values are specified, jobs in the search results include
2316
+ # any of the specified employment types.
2317
+ # Corresponds to the JSON property `employmentTypes`
2318
+ # @return [Array<String>]
2319
+ attr_accessor :employment_types
2320
+
2321
+ # Optional.
2322
+ # This filter specifies the locale of jobs to search against,
2323
+ # for example, "en-US".
2324
+ # If a value is not specified, the search results can contain jobs in any
2325
+ # locale.
2326
+ # Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
2327
+ # For more information, see
2328
+ # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
2329
+ # At most 10 language code filters are allowed.
2330
+ # Corresponds to the JSON property `languageCodes`
2331
+ # @return [Array<String>]
2332
+ attr_accessor :language_codes
2333
+
2334
+ # Optional.
2335
+ # The location filter specifies geo-regions containing the jobs to
2336
+ # search against. See LocationFilter for more information.
2337
+ # If a location value is not specified, jobs that fit the other search
2338
+ # criteria are retrieved regardless of where they're located.
2339
+ # If multiple values are specified, jobs are retrieved from any of the
2340
+ # specified locations, and, if different values are specified
2341
+ # for the LocationFilter.distance_in_miles parameter, the maximum
2342
+ # provided distance is used for all locations.
2343
+ # At most 5 location filters are allowed.
2344
+ # Corresponds to the JSON property `locationFilters`
2345
+ # @return [Array<Google::Apis::JobsV2::LocationFilter>]
2346
+ attr_accessor :location_filters
2347
+
2348
+ # Optional.
2349
+ # Jobs published within a range specified by this filter are searched
2350
+ # against, for example, DateRange.PAST_MONTH. If a value is not
2351
+ # specified, all open jobs are searched against regardless of the
2352
+ # date on which they were published.
2353
+ # Corresponds to the JSON property `publishDateRange`
2354
+ # @return [String]
2355
+ attr_accessor :publish_date_range
2356
+
2357
+ # Optional.
2358
+ # The query string that matches against the job title, description, and
2359
+ # location fields.
2360
+ # The maximum query size is 255 bytes.
2361
+ # Corresponds to the JSON property `query`
2362
+ # @return [String]
2363
+ attr_accessor :query
2364
+
2365
+ # Optional.
2366
+ # This flag controls whether the job search should be restricted to jobs
2367
+ # owned by the current user.
2368
+ # Defaults to false: all jobs accessible to the
2369
+ # user are searched against.
2370
+ # Corresponds to the JSON property `tenantJobOnly`
2371
+ # @return [Boolean]
2372
+ attr_accessor :tenant_job_only
2373
+ alias_method :tenant_job_only?, :tenant_job_only
2374
+
2375
+ def initialize(**args)
2376
+ update!(**args)
2377
+ end
2378
+
2379
+ # Update properties of this object
2380
+ def update!(**args)
2381
+ @categories = args[:categories] if args.key?(:categories)
2382
+ @commute_filter = args[:commute_filter] if args.key?(:commute_filter)
2383
+ @company_display_names = args[:company_display_names] if args.key?(:company_display_names)
2384
+ @company_names = args[:company_names] if args.key?(:company_names)
2385
+ @compensation_filter = args[:compensation_filter] if args.key?(:compensation_filter)
2386
+ @custom_attribute_filter = args[:custom_attribute_filter] if args.key?(:custom_attribute_filter)
2387
+ @disable_spell_check = args[:disable_spell_check] if args.key?(:disable_spell_check)
2388
+ @employment_types = args[:employment_types] if args.key?(:employment_types)
2389
+ @language_codes = args[:language_codes] if args.key?(:language_codes)
2390
+ @location_filters = args[:location_filters] if args.key?(:location_filters)
2391
+ @publish_date_range = args[:publish_date_range] if args.key?(:publish_date_range)
2392
+ @query = args[:query] if args.key?(:query)
2393
+ @tenant_job_only = args[:tenant_job_only] if args.key?(:tenant_job_only)
2394
+ end
2395
+ end
2396
+
2397
+ # An object representing a latitude/longitude pair. This is expressed as a pair
2398
+ # of doubles representing degrees latitude and degrees longitude. Unless
2399
+ # specified otherwise, this must conform to the
2400
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
2401
+ # standard</a>. Values must be within normalized ranges.
2402
+ class LatLng
2403
+ include Google::Apis::Core::Hashable
2404
+
2405
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
2406
+ # Corresponds to the JSON property `latitude`
2407
+ # @return [Float]
2408
+ attr_accessor :latitude
2409
+
2410
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
2411
+ # Corresponds to the JSON property `longitude`
2412
+ # @return [Float]
2413
+ attr_accessor :longitude
2414
+
2415
+ def initialize(**args)
2416
+ update!(**args)
2417
+ end
2418
+
2419
+ # Update properties of this object
2420
+ def update!(**args)
2421
+ @latitude = args[:latitude] if args.key?(:latitude)
2422
+ @longitude = args[:longitude] if args.key?(:longitude)
2423
+ end
2424
+ end
2425
+
2426
+ # Output only.
2427
+ # The List companies response object.
2428
+ class ListCompaniesResponse
2429
+ include Google::Apis::Core::Hashable
2430
+
2431
+ # Companies for the current client.
2432
+ # Corresponds to the JSON property `companies`
2433
+ # @return [Array<Google::Apis::JobsV2::Company>]
2434
+ attr_accessor :companies
2435
+
2436
+ # Output only.
2437
+ # Additional information returned to client, such as debugging
2438
+ # information.
2439
+ # Corresponds to the JSON property `metadata`
2440
+ # @return [Google::Apis::JobsV2::ResponseMetadata]
2441
+ attr_accessor :metadata
2442
+
2443
+ # A token to retrieve the next page of results.
2444
+ # Corresponds to the JSON property `nextPageToken`
2445
+ # @return [String]
2446
+ attr_accessor :next_page_token
2447
+
2448
+ def initialize(**args)
2449
+ update!(**args)
2450
+ end
2451
+
2452
+ # Update properties of this object
2453
+ def update!(**args)
2454
+ @companies = args[:companies] if args.key?(:companies)
2455
+ @metadata = args[:metadata] if args.key?(:metadata)
2456
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2457
+ end
2458
+ end
2459
+
2460
+ # Deprecated. Use ListJobsResponse instead.
2461
+ # Output only.
2462
+ # The List jobs response object.
2463
+ class ListCompanyJobsResponse
2464
+ include Google::Apis::Core::Hashable
2465
+
2466
+ # The Jobs for a given company.
2467
+ # The maximum number of items returned is based on the limit field
2468
+ # provided in the request.
2469
+ # Corresponds to the JSON property `jobs`
2470
+ # @return [Array<Google::Apis::JobsV2::Job>]
2471
+ attr_accessor :jobs
2472
+
2473
+ # Output only.
2474
+ # Additional information returned to client, such as debugging
2475
+ # information.
2476
+ # Corresponds to the JSON property `metadata`
2477
+ # @return [Google::Apis::JobsV2::ResponseMetadata]
2478
+ attr_accessor :metadata
2479
+
2480
+ # A token to retrieve the next page of results.
2481
+ # Corresponds to the JSON property `nextPageToken`
2482
+ # @return [String]
2483
+ attr_accessor :next_page_token
2484
+
2485
+ # The total number of open jobs. The result will be
2486
+ # empty if ListCompanyJobsRequest.include_jobs_count is not enabled
2487
+ # or if no open jobs are available.
2488
+ # Corresponds to the JSON property `totalSize`
2489
+ # @return [Fixnum]
2490
+ attr_accessor :total_size
2491
+
2492
+ def initialize(**args)
2493
+ update!(**args)
2494
+ end
2495
+
2496
+ # Update properties of this object
2497
+ def update!(**args)
2498
+ @jobs = args[:jobs] if args.key?(:jobs)
2499
+ @metadata = args[:metadata] if args.key?(:metadata)
2500
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2501
+ @total_size = args[:total_size] if args.key?(:total_size)
2502
+ end
2503
+ end
2504
+
2505
+ # Output only.
2506
+ # List jobs response.
2507
+ class ListJobsResponse
2508
+ include Google::Apis::Core::Hashable
2509
+
2510
+ # The Jobs for a given company.
2511
+ # The maximum number of items returned is based on the limit field
2512
+ # provided in the request.
2513
+ # Corresponds to the JSON property `jobs`
2514
+ # @return [Array<Google::Apis::JobsV2::Job>]
2515
+ attr_accessor :jobs
2516
+
2517
+ # Output only.
2518
+ # Additional information returned to client, such as debugging
2519
+ # information.
2520
+ # Corresponds to the JSON property `metadata`
2521
+ # @return [Google::Apis::JobsV2::ResponseMetadata]
2522
+ attr_accessor :metadata
2523
+
2524
+ # A token to retrieve the next page of results.
2525
+ # Corresponds to the JSON property `nextPageToken`
2526
+ # @return [String]
2527
+ attr_accessor :next_page_token
2528
+
2529
+ def initialize(**args)
2530
+ update!(**args)
2531
+ end
2532
+
2533
+ # Update properties of this object
2534
+ def update!(**args)
2535
+ @jobs = args[:jobs] if args.key?(:jobs)
2536
+ @metadata = args[:metadata] if args.key?(:metadata)
2537
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2538
+ end
2539
+ end
2540
+
2541
+ # Input only.
2542
+ # Geographic region of the search.
2543
+ class LocationFilter
2544
+ include Google::Apis::Core::Hashable
2545
+
2546
+ # Optional.
2547
+ # The distance from the address in miles to search.
2548
+ # The default distance is 20 miles and maximum distance is 5,000 miles.
2549
+ # Corresponds to the JSON property `distanceInMiles`
2550
+ # @return [Float]
2551
+ attr_accessor :distance_in_miles
2552
+
2553
+ # Optional.
2554
+ # Allows the client to return jobs without a
2555
+ # set location, specifically, telecommuting jobs (telecomuting is considered
2556
+ # by the service as a special location.
2557
+ # Job.allow_telecommute indicates if a job permits telecommuting.
2558
+ # If this field is true, telecommuting jobs are searched, and
2559
+ # name and lat_lng are
2560
+ # ignored.
2561
+ # This filter can be used by itself to search exclusively for telecommuting
2562
+ # jobs, or it can be combined with another location
2563
+ # filter to search for a combination of job locations,
2564
+ # such as "Mountain View" or "telecommuting" jobs. However, when used in
2565
+ # combination with other location filters, telecommuting jobs can be
2566
+ # treated as less relevant than other jobs in the search response.
2567
+ # Corresponds to the JSON property `isTelecommute`
2568
+ # @return [Boolean]
2569
+ attr_accessor :is_telecommute
2570
+ alias_method :is_telecommute?, :is_telecommute
2571
+
2572
+ # An object representing a latitude/longitude pair. This is expressed as a pair
2573
+ # of doubles representing degrees latitude and degrees longitude. Unless
2574
+ # specified otherwise, this must conform to the
2575
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
2576
+ # standard</a>. Values must be within normalized ranges.
2577
+ # Corresponds to the JSON property `latLng`
2578
+ # @return [Google::Apis::JobsV2::LatLng]
2579
+ attr_accessor :lat_lng
2580
+
2581
+ # Optional.
2582
+ # The address name, such as "Mountain View" or "Bay Area".
2583
+ # Corresponds to the JSON property `name`
2584
+ # @return [String]
2585
+ attr_accessor :name
2586
+
2587
+ # Optional.
2588
+ # CLDR region code of the country/region of the address. This will be used
2589
+ # to address ambiguity of the user-input location, e.g. "Liverpool"
2590
+ # against "Liverpool, NY, US" or "Liverpool, UK".
2591
+ # Set this field if all the jobs to search against are from a same region,
2592
+ # or jobs are world-wide but the job seeker is from a specific region.
2593
+ # See http://cldr.unicode.org/ and
2594
+ # http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
2595
+ # for details. Example: "CH" for Switzerland.
2596
+ # Corresponds to the JSON property `regionCode`
2597
+ # @return [String]
2598
+ attr_accessor :region_code
2599
+
2600
+ def initialize(**args)
2601
+ update!(**args)
2602
+ end
2603
+
2604
+ # Update properties of this object
2605
+ def update!(**args)
2606
+ @distance_in_miles = args[:distance_in_miles] if args.key?(:distance_in_miles)
2607
+ @is_telecommute = args[:is_telecommute] if args.key?(:is_telecommute)
2608
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
2609
+ @name = args[:name] if args.key?(:name)
2610
+ @region_code = args[:region_code] if args.key?(:region_code)
2611
+ end
2612
+ end
2613
+
2614
+ # Output only.
2615
+ # Job entry with metadata inside SearchJobsResponse.
2616
+ class MatchingJob
2617
+ include Google::Apis::Core::Hashable
2618
+
2619
+ # Output only.
2620
+ # Commute details related to this job.
2621
+ # Corresponds to the JSON property `commuteInfo`
2622
+ # @return [Google::Apis::JobsV2::CommuteInfo]
2623
+ attr_accessor :commute_info
2624
+
2625
+ # A Job resource represents a job posting (also referred to as a "job listing"
2626
+ # or "job requisition"). A job belongs to a Company, which is the hiring
2627
+ # entity responsible for the job.
2628
+ # Corresponds to the JSON property `job`
2629
+ # @return [Google::Apis::JobsV2::Job]
2630
+ attr_accessor :job
2631
+
2632
+ # A summary of the job with core information that's displayed on the search
2633
+ # results listing page.
2634
+ # Corresponds to the JSON property `jobSummary`
2635
+ # @return [String]
2636
+ attr_accessor :job_summary
2637
+
2638
+ # Contains snippets of text from the Job.job_title field that most
2639
+ # closely match a search query's keywords, if available. The matching query
2640
+ # keywords are enclosed in HTML bold tags.
2641
+ # Corresponds to the JSON property `jobTitleSnippet`
2642
+ # @return [String]
2643
+ attr_accessor :job_title_snippet
2644
+
2645
+ # Contains snippets of text from the Job.description and similar
2646
+ # fields that most closely match a search query's keywords, if available.
2647
+ # All HTML tags in the original fields are stripped when returned in this
2648
+ # field, and matching query keywords are enclosed in HTML bold tags.
2649
+ # Corresponds to the JSON property `searchTextSnippet`
2650
+ # @return [String]
2651
+ attr_accessor :search_text_snippet
2652
+
2653
+ def initialize(**args)
2654
+ update!(**args)
2655
+ end
2656
+
2657
+ # Update properties of this object
2658
+ def update!(**args)
2659
+ @commute_info = args[:commute_info] if args.key?(:commute_info)
2660
+ @job = args[:job] if args.key?(:job)
2661
+ @job_summary = args[:job_summary] if args.key?(:job_summary)
2662
+ @job_title_snippet = args[:job_title_snippet] if args.key?(:job_title_snippet)
2663
+ @search_text_snippet = args[:search_text_snippet] if args.key?(:search_text_snippet)
2664
+ end
2665
+ end
2666
+
2667
+ # Represents an amount of money with its currency type.
2668
+ class Money
2669
+ include Google::Apis::Core::Hashable
2670
+
2671
+ # The 3-letter currency code defined in ISO 4217.
2672
+ # Corresponds to the JSON property `currencyCode`
2673
+ # @return [String]
2674
+ attr_accessor :currency_code
2675
+
2676
+ # Number of nano (10^-9) units of the amount.
2677
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
2678
+ # If `units` is positive, `nanos` must be positive or zero.
2679
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
2680
+ # If `units` is negative, `nanos` must be negative or zero.
2681
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2682
+ # Corresponds to the JSON property `nanos`
2683
+ # @return [Fixnum]
2684
+ attr_accessor :nanos
2685
+
2686
+ # The whole units of the amount.
2687
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
2688
+ # Corresponds to the JSON property `units`
2689
+ # @return [Fixnum]
2690
+ attr_accessor :units
2691
+
2692
+ def initialize(**args)
2693
+ update!(**args)
2694
+ end
2695
+
2696
+ # Update properties of this object
2697
+ def update!(**args)
2698
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
2699
+ @nanos = args[:nanos] if args.key?(:nanos)
2700
+ @units = args[:units] if args.key?(:units)
2701
+ end
2702
+ end
2703
+
2704
+ # Input only.
2705
+ # Use this field to specify bucketing option for the histogram search response.
2706
+ class NumericBucketingOption
2707
+ include Google::Apis::Core::Hashable
2708
+
2709
+ # Required.
2710
+ # Two adjacent values form a histogram bucket. Values should be in
2711
+ # ascending order. For example, if [5, 10, 15] are provided, four buckets are
2712
+ # created: (-inf, 5), 5, 10), [10, 15), [15, inf). At most 20
2713
+ # [buckets_bound is supported.
2714
+ # Corresponds to the JSON property `bucketBounds`
2715
+ # @return [Array<Float>]
2716
+ attr_accessor :bucket_bounds
2717
+
2718
+ # Optional.
2719
+ # If set to true, the histogram result includes minimum/maximum
2720
+ # value of the numeric field.
2721
+ # Corresponds to the JSON property `requiresMinMax`
2722
+ # @return [Boolean]
2723
+ attr_accessor :requires_min_max
2724
+ alias_method :requires_min_max?, :requires_min_max
2725
+
2726
+ def initialize(**args)
2727
+ update!(**args)
2728
+ end
2729
+
2730
+ # Update properties of this object
2731
+ def update!(**args)
2732
+ @bucket_bounds = args[:bucket_bounds] if args.key?(:bucket_bounds)
2733
+ @requires_min_max = args[:requires_min_max] if args.key?(:requires_min_max)
2734
+ end
2735
+ end
2736
+
2737
+ # Output only.
2738
+ # Custom numeric bucketing result.
2739
+ class NumericBucketingResult
2740
+ include Google::Apis::Core::Hashable
2741
+
2742
+ # Count within each bucket. Its size is the length of
2743
+ # NumericBucketingOption.bucket_bounds plus 1.
2744
+ # Corresponds to the JSON property `counts`
2745
+ # @return [Array<Google::Apis::JobsV2::BucketizedCount>]
2746
+ attr_accessor :counts
2747
+
2748
+ # Stores the maximum value of the numeric field. Will be populated only if
2749
+ # [NumericBucketingOption.requires_min_max] is set to true.
2750
+ # Corresponds to the JSON property `maxValue`
2751
+ # @return [Float]
2752
+ attr_accessor :max_value
2753
+
2754
+ # Stores the minimum value of the numeric field. Will be populated only if
2755
+ # [NumericBucketingOption.requires_min_max] is set to true.
2756
+ # Corresponds to the JSON property `minValue`
2757
+ # @return [Float]
2758
+ attr_accessor :min_value
2759
+
2760
+ def initialize(**args)
2761
+ update!(**args)
2762
+ end
2763
+
2764
+ # Update properties of this object
2765
+ def update!(**args)
2766
+ @counts = args[:counts] if args.key?(:counts)
2767
+ @max_value = args[:max_value] if args.key?(:max_value)
2768
+ @min_value = args[:min_value] if args.key?(:min_value)
2769
+ end
2770
+ end
2771
+
2772
+ # Represents a postal address, e.g. for postal delivery or payments addresses.
2773
+ # Given a postal address, a postal service can deliver items to a premise, P.O.
2774
+ # Box or similar.
2775
+ # It is not intended to model geographical locations (roads, towns,
2776
+ # mountains).
2777
+ # In typical usage an address would be created via user input or from importing
2778
+ # existing data, depending on the type of process.
2779
+ # Advice on address input / editing:
2780
+ # - Use an i18n-ready address widget such as
2781
+ # https://github.com/googlei18n/libaddressinput)
2782
+ # - Users should not be presented with UI elements for input or editing of
2783
+ # fields outside countries where that field is used.
2784
+ # For more guidance on how to use this schema, please see:
2785
+ # https://support.google.com/business/answer/6397478
2786
+ class PostalAddress
2787
+ include Google::Apis::Core::Hashable
2788
+
2789
+ # Unstructured address lines describing the lower levels of an address.
2790
+ # Because values in address_lines do not have type information and may
2791
+ # sometimes contain multiple values in a single field (e.g.
2792
+ # "Austin, TX"), it is important that the line order is clear. The order of
2793
+ # address lines should be "envelope order" for the country/region of the
2794
+ # address. In places where this can vary (e.g. Japan), address_language is
2795
+ # used to make it explicit (e.g. "ja" for large-to-small ordering and
2796
+ # "ja-Latn" or "en" for small-to-large). This way, the most specific line of
2797
+ # an address can be selected based on the language.
2798
+ # The minimum permitted structural representation of an address consists
2799
+ # of a region_code with all remaining information placed in the
2800
+ # address_lines. It would be possible to format such an address very
2801
+ # approximately without geocoding, but no semantic reasoning could be
2802
+ # made about any of the address components until it was at least
2803
+ # partially resolved.
2804
+ # Creating an address only containing a region_code and address_lines, and
2805
+ # then geocoding is the recommended way to handle completely unstructured
2806
+ # addresses (as opposed to guessing which parts of the address should be
2807
+ # localities or administrative areas).
2808
+ # Corresponds to the JSON property `addressLines`
2809
+ # @return [Array<String>]
2810
+ attr_accessor :address_lines
2811
+
2812
+ # Optional. Highest administrative subdivision which is used for postal
2813
+ # addresses of a country or region.
2814
+ # For example, this can be a state, a province, an oblast, or a prefecture.
2815
+ # Specifically, for Spain this is the province and not the autonomous
2816
+ # community (e.g. "Barcelona" and not "Catalonia").
2817
+ # Many countries don't use an administrative area in postal addresses. E.g.
2818
+ # in Switzerland this should be left unpopulated.
2819
+ # Corresponds to the JSON property `administrativeArea`
2820
+ # @return [String]
2821
+ attr_accessor :administrative_area
2822
+
2823
+ # Optional. BCP-47 language code of the contents of this address (if
2824
+ # known). This is often the UI language of the input form or is expected
2825
+ # to match one of the languages used in the address' country/region, or their
2826
+ # transliterated equivalents.
2827
+ # This can affect formatting in certain countries, but is not critical
2828
+ # to the correctness of the data and will never affect any validation or
2829
+ # other non-formatting related operations.
2830
+ # If this value is not known, it should be omitted (rather than specifying a
2831
+ # possibly incorrect default).
2832
+ # Examples: "zh-Hant", "ja", "ja-Latn", "en".
2833
+ # Corresponds to the JSON property `languageCode`
2834
+ # @return [String]
2835
+ attr_accessor :language_code
2836
+
2837
+ # Optional. Generally refers to the city/town portion of the address.
2838
+ # Examples: US city, IT comune, UK post town.
2839
+ # In regions of the world where localities are not well defined or do not fit
2840
+ # into this structure well, leave locality empty and use address_lines.
2841
+ # Corresponds to the JSON property `locality`
2842
+ # @return [String]
2843
+ attr_accessor :locality
2844
+
2845
+ # Optional. The name of the organization at the address.
2846
+ # Corresponds to the JSON property `organization`
2847
+ # @return [String]
2848
+ attr_accessor :organization
2849
+
2850
+ # Optional. Postal code of the address. Not all countries use or require
2851
+ # postal codes to be present, but where they are used, they may trigger
2852
+ # additional validation with other parts of the address (e.g. state/zip
2853
+ # validation in the U.S.A.).
2854
+ # Corresponds to the JSON property `postalCode`
2855
+ # @return [String]
2856
+ attr_accessor :postal_code
2857
+
2858
+ # Optional. The recipient at the address.
2859
+ # This field may, under certain circumstances, contain multiline information.
2860
+ # For example, it might contain "care of" information.
2861
+ # Corresponds to the JSON property `recipients`
2862
+ # @return [Array<String>]
2863
+ attr_accessor :recipients
2864
+
2865
+ # Required. CLDR region code of the country/region of the address. This
2866
+ # is never inferred and it is up to the user to ensure the value is
2867
+ # correct. See http://cldr.unicode.org/ and
2868
+ # http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
2869
+ # for details. Example: "CH" for Switzerland.
2870
+ # Corresponds to the JSON property `regionCode`
2871
+ # @return [String]
2872
+ attr_accessor :region_code
2873
+
2874
+ # The schema revision of the `PostalAddress`. This must be set to 0, which is
2875
+ # the latest revision.
2876
+ # All new revisions **must** be backward compatible with old revisions.
2877
+ # Corresponds to the JSON property `revision`
2878
+ # @return [Fixnum]
2879
+ attr_accessor :revision
2880
+
2881
+ # Optional. Additional, country-specific, sorting code. This is not used
2882
+ # in most regions. Where it is used, the value is either a string like
2883
+ # "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
2884
+ # alone, representing the "sector code" (Jamaica), "delivery area indicator"
2885
+ # (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
2886
+ # Corresponds to the JSON property `sortingCode`
2887
+ # @return [String]
2888
+ attr_accessor :sorting_code
2889
+
2890
+ # Optional. Sublocality of the address.
2891
+ # For example, this can be neighborhoods, boroughs, districts.
2892
+ # Corresponds to the JSON property `sublocality`
2893
+ # @return [String]
2894
+ attr_accessor :sublocality
2895
+
2896
+ def initialize(**args)
2897
+ update!(**args)
2898
+ end
2899
+
2900
+ # Update properties of this object
2901
+ def update!(**args)
2902
+ @address_lines = args[:address_lines] if args.key?(:address_lines)
2903
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
2904
+ @language_code = args[:language_code] if args.key?(:language_code)
2905
+ @locality = args[:locality] if args.key?(:locality)
2906
+ @organization = args[:organization] if args.key?(:organization)
2907
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
2908
+ @recipients = args[:recipients] if args.key?(:recipients)
2909
+ @region_code = args[:region_code] if args.key?(:region_code)
2910
+ @revision = args[:revision] if args.key?(:revision)
2911
+ @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
2912
+ @sublocality = args[:sublocality] if args.key?(:sublocality)
2913
+ end
2914
+ end
2915
+
2916
+ # Input only.
2917
+ # Meta information related to the job searcher or entity
2918
+ # conducting the job search. This information is used to improve the
2919
+ # performance of the service.
2920
+ class RequestMetadata
2921
+ include Google::Apis::Core::Hashable
2922
+
2923
+ # Input only.
2924
+ # Device information collected from the job searcher, candidate, or
2925
+ # other entity conducting the job search. Providing this information improves
2926
+ # the quality of the search results across devices.
2927
+ # Corresponds to the JSON property `deviceInfo`
2928
+ # @return [Google::Apis::JobsV2::DeviceInfo]
2929
+ attr_accessor :device_info
2930
+
2931
+ # Required.
2932
+ # The client-defined scope or source of the service call, which typically
2933
+ # is the domain on
2934
+ # which the service has been implemented and is currently being run.
2935
+ # For example, if the service is being run by client <em>Foo, Inc.</em>, on
2936
+ # job board www.foo.com and career site www.bar.com, then this field is
2937
+ # set to "foo.com" for use on the job board, and "bar.com" for use on the
2938
+ # career site.
2939
+ # If this field is not available for some reason, please send "UNKNOWN".
2940
+ # Corresponds to the JSON property `domain`
2941
+ # @return [String]
2942
+ attr_accessor :domain
2943
+
2944
+ # Required.
2945
+ # A unique session identification string. A session is defined as the
2946
+ # duration of an end user's interaction with the service over a period.
2947
+ # Obfuscate this field for privacy concerns before
2948
+ # providing it to the API.
2949
+ # If this field is not available for some reason, please send "UNKNOWN".
2950
+ # Corresponds to the JSON property `sessionId`
2951
+ # @return [String]
2952
+ attr_accessor :session_id
2953
+
2954
+ # Required.
2955
+ # A unique user identification string, as determined by the client. The
2956
+ # client is responsible for ensuring client-level uniqueness of this value
2957
+ # in order to have the strongest positive impact on search quality.
2958
+ # Obfuscate this field for privacy concerns before
2959
+ # providing it to the service.
2960
+ # If this field is not available for some reason, please send "UNKNOWN".
2961
+ # Corresponds to the JSON property `userId`
2962
+ # @return [String]
2963
+ attr_accessor :user_id
2964
+
2965
+ def initialize(**args)
2966
+ update!(**args)
2967
+ end
2968
+
2969
+ # Update properties of this object
2970
+ def update!(**args)
2971
+ @device_info = args[:device_info] if args.key?(:device_info)
2972
+ @domain = args[:domain] if args.key?(:domain)
2973
+ @session_id = args[:session_id] if args.key?(:session_id)
2974
+ @user_id = args[:user_id] if args.key?(:user_id)
2975
+ end
2976
+ end
2977
+
2978
+ # Output only.
2979
+ # Additional information returned to client, such as debugging
2980
+ # information.
2981
+ class ResponseMetadata
2982
+ include Google::Apis::Core::Hashable
2983
+
2984
+ # Identifiers for the versions of the search algorithm used during
2985
+ # this API invocation if multiple algorithms are used.
2986
+ # The default value is empty.
2987
+ # For search response only.
2988
+ # Corresponds to the JSON property `experimentIdList`
2989
+ # @return [Array<Fixnum>]
2990
+ attr_accessor :experiment_id_list
2991
+
2992
+ # For search response only. Indicates the mode of a performed search.
2993
+ # Corresponds to the JSON property `mode`
2994
+ # @return [String]
2995
+ attr_accessor :mode
2996
+
2997
+ # A unique id associated with this call.
2998
+ # This id is logged for tracking purposes.
2999
+ # Corresponds to the JSON property `requestId`
3000
+ # @return [String]
3001
+ attr_accessor :request_id
3002
+
3003
+ def initialize(**args)
3004
+ update!(**args)
3005
+ end
3006
+
3007
+ # Update properties of this object
3008
+ def update!(**args)
3009
+ @experiment_id_list = args[:experiment_id_list] if args.key?(:experiment_id_list)
3010
+ @mode = args[:mode] if args.key?(:mode)
3011
+ @request_id = args[:request_id] if args.key?(:request_id)
3012
+ end
3013
+ end
3014
+
3015
+ # Input only.
3016
+ # The Request body of the `SearchJobs` call.
3017
+ class SearchJobsRequest
3018
+ include Google::Apis::Core::Hashable
3019
+
3020
+ # Deprecated. Any value provided in this field will be ignored.
3021
+ # Optional.
3022
+ # Controls whether to disable relevance thresholding. Relevance
3023
+ # thresholding removes jobs that have low relevance in search results,
3024
+ # for example, removing "Assistant to the CEO" positions from the search
3025
+ # results of a search for "CEO".
3026
+ # Disabling relevance thresholding improves the accuracy of subsequent
3027
+ # search requests.
3028
+ # Defaults to false.
3029
+ # Corresponds to the JSON property `disableRelevanceThresholding`
3030
+ # @return [Boolean]
3031
+ attr_accessor :disable_relevance_thresholding
3032
+ alias_method :disable_relevance_thresholding?, :disable_relevance_thresholding
3033
+
3034
+ # Optional.
3035
+ # Controls whether to broaden the search when it produces sparse results.
3036
+ # Broadened queries append results to the end of the matching results
3037
+ # list.
3038
+ # Defaults to false.
3039
+ # Corresponds to the JSON property `enableBroadening`
3040
+ # @return [Boolean]
3041
+ attr_accessor :enable_broadening
3042
+ alias_method :enable_broadening?, :enable_broadening
3043
+
3044
+ # Optional.
3045
+ # Controls if the search job request requires the return of a precise
3046
+ # count of the first 300 results. Setting this to `true` ensures
3047
+ # consistency in the number of results per page. Best practice is to set this
3048
+ # value to true if a client allows users to jump directly to a
3049
+ # non-sequential search results page.
3050
+ # Enabling this flag may adversely impact performance.
3051
+ # Defaults to false.
3052
+ # Corresponds to the JSON property `enablePreciseResultSize`
3053
+ # @return [Boolean]
3054
+ attr_accessor :enable_precise_result_size
3055
+ alias_method :enable_precise_result_size?, :enable_precise_result_size
3056
+
3057
+ # Input only.
3058
+ # Deprecated. Use JobQuery instead.
3059
+ # The filters required to perform a search query or histogram.
3060
+ # Corresponds to the JSON property `filters`
3061
+ # @return [Google::Apis::JobsV2::JobFilters]
3062
+ attr_accessor :filters
3063
+
3064
+ # Input only.
3065
+ # Histogram facets to be specified in SearchJobsRequest.
3066
+ # Corresponds to the JSON property `histogramFacets`
3067
+ # @return [Google::Apis::JobsV2::HistogramFacets]
3068
+ attr_accessor :histogram_facets
3069
+
3070
+ # Optional.
3071
+ # The number of job attributes that is returned for jobs in the
3072
+ # search response. Defaults to JobView.SMALL if no value is specified.
3073
+ # Corresponds to the JSON property `jobView`
3074
+ # @return [String]
3075
+ attr_accessor :job_view
3076
+
3077
+ # Required.
3078
+ # Mode of a search.
3079
+ # Corresponds to the JSON property `mode`
3080
+ # @return [String]
3081
+ attr_accessor :mode
3082
+
3083
+ # Optional.
3084
+ # An integer that specifies the current offset (i.e. starting result) in
3085
+ # search results. This field is only considered if page_token is unset.
3086
+ # For example, 0 means to return results starting from the first matching
3087
+ # job, and 10 means to return from the 11th job. This can be used for
3088
+ # pagination, (for example, pageSize = 10 and offset = 10 means to return
3089
+ # from the second page).
3090
+ # Corresponds to the JSON property `offset`
3091
+ # @return [Fixnum]
3092
+ attr_accessor :offset
3093
+
3094
+ # Deprecated. Use sort_by instead.
3095
+ # Optional.
3096
+ # The criteria that determine how search results are sorted.
3097
+ # Defaults to SortBy.RELEVANCE_DESC if no value is specified.
3098
+ # Corresponds to the JSON property `orderBy`
3099
+ # @return [String]
3100
+ attr_accessor :order_by
3101
+
3102
+ # Optional.
3103
+ # A limit on the number of jobs returned in the search results.
3104
+ # Increasing this value above the default value of 10 can increase search
3105
+ # response time. The value can be between 1 and 100.
3106
+ # Corresponds to the JSON property `pageSize`
3107
+ # @return [Fixnum]
3108
+ attr_accessor :page_size
3109
+
3110
+ # Optional.
3111
+ # The token that specifies the current offset within
3112
+ # search results. See SearchJobsResponse.next_page_token for
3113
+ # an explanation of how to obtain the next set of query results.
3114
+ # Corresponds to the JSON property `pageToken`
3115
+ # @return [String]
3116
+ attr_accessor :page_token
3117
+
3118
+ # Input only.
3119
+ # The query required to perform a search query or histogram.
3120
+ # Corresponds to the JSON property `query`
3121
+ # @return [Google::Apis::JobsV2::JobQuery]
3122
+ attr_accessor :query
3123
+
3124
+ # Input only.
3125
+ # Meta information related to the job searcher or entity
3126
+ # conducting the job search. This information is used to improve the
3127
+ # performance of the service.
3128
+ # Corresponds to the JSON property `requestMetadata`
3129
+ # @return [Google::Apis::JobsV2::RequestMetadata]
3130
+ attr_accessor :request_metadata
3131
+
3132
+ # Optional.
3133
+ # The criteria that determine how search results are sorted.
3134
+ # Defaults to SortBy.RELEVANCE_DESC if no value is specified.
3135
+ # Corresponds to the JSON property `sortBy`
3136
+ # @return [String]
3137
+ attr_accessor :sort_by
3138
+
3139
+ def initialize(**args)
3140
+ update!(**args)
3141
+ end
3142
+
3143
+ # Update properties of this object
3144
+ def update!(**args)
3145
+ @disable_relevance_thresholding = args[:disable_relevance_thresholding] if args.key?(:disable_relevance_thresholding)
3146
+ @enable_broadening = args[:enable_broadening] if args.key?(:enable_broadening)
3147
+ @enable_precise_result_size = args[:enable_precise_result_size] if args.key?(:enable_precise_result_size)
3148
+ @filters = args[:filters] if args.key?(:filters)
3149
+ @histogram_facets = args[:histogram_facets] if args.key?(:histogram_facets)
3150
+ @job_view = args[:job_view] if args.key?(:job_view)
3151
+ @mode = args[:mode] if args.key?(:mode)
3152
+ @offset = args[:offset] if args.key?(:offset)
3153
+ @order_by = args[:order_by] if args.key?(:order_by)
3154
+ @page_size = args[:page_size] if args.key?(:page_size)
3155
+ @page_token = args[:page_token] if args.key?(:page_token)
3156
+ @query = args[:query] if args.key?(:query)
3157
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
3158
+ @sort_by = args[:sort_by] if args.key?(:sort_by)
3159
+ end
3160
+ end
3161
+
3162
+ # Output only.
3163
+ # Response for SearchJob method.
3164
+ class SearchJobsResponse
3165
+ include Google::Apis::Core::Hashable
3166
+
3167
+ # Input only.
3168
+ # Parameters needed for commute search.
3169
+ # Corresponds to the JSON property `appliedCommuteFilter`
3170
+ # @return [Google::Apis::JobsV2::CommutePreference]
3171
+ attr_accessor :applied_commute_filter
3172
+
3173
+ # The location filters that the service applied to the specified query. If
3174
+ # any filters are lat-lng based, the JobLocation.location_type is
3175
+ # JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED.
3176
+ # Corresponds to the JSON property `appliedJobLocationFilters`
3177
+ # @return [Array<Google::Apis::JobsV2::JobLocation>]
3178
+ attr_accessor :applied_job_location_filters
3179
+
3180
+ # An estimation of the number of jobs that match the specified query.
3181
+ # This number is not guaranteed to be accurate. For accurate results,
3182
+ # seenenable_precise_result_size.
3183
+ # Corresponds to the JSON property `estimatedTotalSize`
3184
+ # @return [Fixnum]
3185
+ attr_accessor :estimated_total_size
3186
+
3187
+ # Output only.
3188
+ # Histogram results that matches HistogramFacets specified in
3189
+ # SearchJobsRequest.
3190
+ # Corresponds to the JSON property `histogramResults`
3191
+ # @return [Google::Apis::JobsV2::HistogramResults]
3192
+ attr_accessor :histogram_results
3193
+
3194
+ # Corresponds to SearchJobsRequest.job_view.
3195
+ # Corresponds to the JSON property `jobView`
3196
+ # @return [String]
3197
+ attr_accessor :job_view
3198
+
3199
+ # The Job entities that match the specified SearchJobsRequest.
3200
+ # Corresponds to the JSON property `matchingJobs`
3201
+ # @return [Array<Google::Apis::JobsV2::MatchingJob>]
3202
+ attr_accessor :matching_jobs
3203
+
3204
+ # Output only.
3205
+ # Additional information returned to client, such as debugging
3206
+ # information.
3207
+ # Corresponds to the JSON property `metadata`
3208
+ # @return [Google::Apis::JobsV2::ResponseMetadata]
3209
+ attr_accessor :metadata
3210
+
3211
+ # The token that specifies the starting position of the next page of results.
3212
+ # This field is empty if there are no more results.
3213
+ # Corresponds to the JSON property `nextPageToken`
3214
+ # @return [String]
3215
+ attr_accessor :next_page_token
3216
+
3217
+ # If query broadening is enabled, we may append additional results from the
3218
+ # broadened query. This number indicates how many of the jobs returned in the
3219
+ # jobs field are from the broadened query. These results are always at the
3220
+ # end of the jobs list. In particular, a value of 0 means all the jobs in the
3221
+ # jobs list are from the original (without broadening) query. If this
3222
+ # field is non-zero, subsequent requests with offset after this result set
3223
+ # should contain all broadened results.
3224
+ # Corresponds to the JSON property `numJobsFromBroadenedQuery`
3225
+ # @return [Fixnum]
3226
+ attr_accessor :num_jobs_from_broadened_query
3227
+
3228
+ # Output only.
3229
+ # Spell check result.
3230
+ # Corresponds to the JSON property `spellResult`
3231
+ # @return [Google::Apis::JobsV2::SpellingCorrection]
3232
+ attr_accessor :spell_result
3233
+
3234
+ # The precise result count, which is available only if the client set
3235
+ # enable_precise_result_size to `true` or if the response
3236
+ # is the last page of results. Otherwise, the value will be `-1`.
3237
+ # Corresponds to the JSON property `totalSize`
3238
+ # @return [Fixnum]
3239
+ attr_accessor :total_size
3240
+
3241
+ def initialize(**args)
3242
+ update!(**args)
3243
+ end
3244
+
3245
+ # Update properties of this object
3246
+ def update!(**args)
3247
+ @applied_commute_filter = args[:applied_commute_filter] if args.key?(:applied_commute_filter)
3248
+ @applied_job_location_filters = args[:applied_job_location_filters] if args.key?(:applied_job_location_filters)
3249
+ @estimated_total_size = args[:estimated_total_size] if args.key?(:estimated_total_size)
3250
+ @histogram_results = args[:histogram_results] if args.key?(:histogram_results)
3251
+ @job_view = args[:job_view] if args.key?(:job_view)
3252
+ @matching_jobs = args[:matching_jobs] if args.key?(:matching_jobs)
3253
+ @metadata = args[:metadata] if args.key?(:metadata)
3254
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3255
+ @num_jobs_from_broadened_query = args[:num_jobs_from_broadened_query] if args.key?(:num_jobs_from_broadened_query)
3256
+ @spell_result = args[:spell_result] if args.key?(:spell_result)
3257
+ @total_size = args[:total_size] if args.key?(:total_size)
3258
+ end
3259
+ end
3260
+
3261
+ # Output only.
3262
+ # Spell check result.
3263
+ class SpellingCorrection
3264
+ include Google::Apis::Core::Hashable
3265
+
3266
+ # Indicates if the query was corrected by the spell checker.
3267
+ # Corresponds to the JSON property `corrected`
3268
+ # @return [Boolean]
3269
+ attr_accessor :corrected
3270
+ alias_method :corrected?, :corrected
3271
+
3272
+ # Correction output consisting of the corrected keyword string.
3273
+ # Corresponds to the JSON property `correctedText`
3274
+ # @return [String]
3275
+ attr_accessor :corrected_text
3276
+
3277
+ def initialize(**args)
3278
+ update!(**args)
3279
+ end
3280
+
3281
+ # Update properties of this object
3282
+ def update!(**args)
3283
+ @corrected = args[:corrected] if args.key?(:corrected)
3284
+ @corrected_text = args[:corrected_text] if args.key?(:corrected_text)
3285
+ end
3286
+ end
3287
+
3288
+ # Represents array of string values.
3289
+ class StringValues
3290
+ include Google::Apis::Core::Hashable
3291
+
3292
+ # Required.
3293
+ # String values.
3294
+ # Corresponds to the JSON property `values`
3295
+ # @return [Array<String>]
3296
+ attr_accessor :values
3297
+
3298
+ def initialize(**args)
3299
+ update!(**args)
3300
+ end
3301
+
3302
+ # Update properties of this object
3303
+ def update!(**args)
3304
+ @values = args[:values] if args.key?(:values)
3305
+ end
3306
+ end
3307
+
3308
+ # Input only.
3309
+ # Update job request.
3310
+ # The job typically becomes searchable within 10 seconds, but it may take
3311
+ # up to 5 minutes for the job to become searchable.
3312
+ class UpdateJobRequest
3313
+ include Google::Apis::Core::Hashable
3314
+
3315
+ # If set to `true`, the service will not attempt resolve a more precise
3316
+ # address for the job.
3317
+ # Corresponds to the JSON property `disableStreetAddressResolution`
3318
+ # @return [Boolean]
3319
+ attr_accessor :disable_street_address_resolution
3320
+ alias_method :disable_street_address_resolution?, :disable_street_address_resolution
3321
+
3322
+ # A Job resource represents a job posting (also referred to as a "job listing"
3323
+ # or "job requisition"). A job belongs to a Company, which is the hiring
3324
+ # entity responsible for the job.
3325
+ # Corresponds to the JSON property `job`
3326
+ # @return [Google::Apis::JobsV2::Job]
3327
+ attr_accessor :job
3328
+
3329
+ # Optional but strongly recommended to be provided for the best service
3330
+ # experience.
3331
+ # If update_job_fields is provided, only the specified fields in
3332
+ # job are updated. Otherwise all the fields are updated.
3333
+ # A field mask to restrict the fields that are updated. Valid values are:
3334
+ # * jobTitle
3335
+ # * employmentTypes
3336
+ # * description
3337
+ # * applicationUrls
3338
+ # * applicationEmailList
3339
+ # * applicationInstruction
3340
+ # * responsibilities
3341
+ # * qualifications
3342
+ # * educationLevels
3343
+ # * level
3344
+ # * department
3345
+ # * startDate
3346
+ # * endDate
3347
+ # * compensationInfo
3348
+ # * incentives
3349
+ # * languageCode
3350
+ # * benefits
3351
+ # * expireTime
3352
+ # * customAttributes
3353
+ # * visibility
3354
+ # * publishDate
3355
+ # * promotionValue
3356
+ # * locations
3357
+ # * region
3358
+ # * expiryDate (deprecated)
3359
+ # * filterableCustomFields (deprecated)
3360
+ # * unindexedCustomFields (deprecated)
3361
+ # Corresponds to the JSON property `updateJobFields`
3362
+ # @return [String]
3363
+ attr_accessor :update_job_fields
3364
+
3365
+ def initialize(**args)
3366
+ update!(**args)
3367
+ end
3368
+
3369
+ # Update properties of this object
3370
+ def update!(**args)
3371
+ @disable_street_address_resolution = args[:disable_street_address_resolution] if args.key?(:disable_street_address_resolution)
3372
+ @job = args[:job] if args.key?(:job)
3373
+ @update_job_fields = args[:update_job_fields] if args.key?(:update_job_fields)
3374
+ end
3375
+ end
3376
+ end
3377
+ end
3378
+ end