google-apis-jobs_v3 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-jobs_v3.rb +15 -0
- data/lib/google/apis/jobs_v3.rb +40 -0
- data/lib/google/apis/jobs_v3/classes.rb +2635 -0
- data/lib/google/apis/jobs_v3/gem_version.rb +28 -0
- data/lib/google/apis/jobs_v3/representations.rb +961 -0
- data/lib/google/apis/jobs_v3/service.rb +648 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5d736c18aec97d0ca76df9d1ac58af103f2a60c72ed01ce951f884934894c349
|
4
|
+
data.tar.gz: 65b1650b0a9685e389f0cc2847f3b154262f04ebbcd3890a22a03022fee5bab4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ecc69dcee953533060af5089c9645cd1c084e94f10f9956727a29eaffa3e1e073d32136e89cd642dd9b0b5e876c944ef7633004ca511e2f51e840d1f893eef05
|
7
|
+
data.tar.gz: 044edede3e6b454c833d56645520152e0ab847d23c8e1e8789842f914234e6e64f1ed1eb2d00429c4283f49e0ec746c00db420bd003abdf157e5f83eb18d6158
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-jobs_v3
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/jobs_v3/*.rb
|
9
|
+
lib/google/apis/jobs_v3.rb
|
10
|
+
-
|
11
|
+
OVERVIEW.md
|
12
|
+
CHANGELOG.md
|
13
|
+
LICENSE.md
|
data/CHANGELOG.md
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/OVERVIEW.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Simple REST client for version V3 of the Cloud Talent Solution API
|
2
|
+
|
3
|
+
This is a simple client library for version V3 of the Cloud Talent Solution API. It provides:
|
4
|
+
|
5
|
+
* A client object that connects to the HTTP/JSON REST endpoint for the service.
|
6
|
+
* Ruby objects for data structures related to the service.
|
7
|
+
* Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
|
8
|
+
* Control of retry, pagination, and timeouts.
|
9
|
+
|
10
|
+
Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
|
11
|
+
|
12
|
+
## Getting started
|
13
|
+
|
14
|
+
### Before you begin
|
15
|
+
|
16
|
+
There are a few setup steps you need to complete before you can use this library:
|
17
|
+
|
18
|
+
1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
|
19
|
+
2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
|
20
|
+
3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/jobs.googleapis.com) in the console.
|
21
|
+
|
22
|
+
### Installation
|
23
|
+
|
24
|
+
Add this line to your application's Gemfile:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem 'google-apis-jobs_v3', '~> 0.1'
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
```
|
33
|
+
$ bundle
|
34
|
+
```
|
35
|
+
|
36
|
+
Or install it yourself as:
|
37
|
+
|
38
|
+
```
|
39
|
+
$ gem install google-apis-jobs_v3
|
40
|
+
```
|
41
|
+
|
42
|
+
### Creating a client object
|
43
|
+
|
44
|
+
Once the gem is installed, you can load the client code and instantiate a client.
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
# Load the client
|
48
|
+
require "google/apis/jobs_v3"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::JobsV3::CloudTalentSolutionService.new
|
52
|
+
|
53
|
+
# Authenticate calls
|
54
|
+
client.authentication = # ... use the googleauth gem to create credentials
|
55
|
+
```
|
56
|
+
|
57
|
+
See the class reference docs for information on the methods you can call from a client.
|
58
|
+
|
59
|
+
## Documentation
|
60
|
+
|
61
|
+
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
|
+
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
|
+
|
66
|
+
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Jobs service in particular.)
|
67
|
+
|
68
|
+
For reference information on specific calls in the Cloud Talent Solution API, see the {Google::Apis::JobsV3::CloudTalentSolutionService class reference docs}.
|
69
|
+
|
70
|
+
## Which client should I use?
|
71
|
+
|
72
|
+
Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
|
73
|
+
|
74
|
+
This library, `google-apis-jobs_v3`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
|
75
|
+
|
76
|
+
Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
|
77
|
+
|
78
|
+
Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
|
79
|
+
|
80
|
+
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
|
81
|
+
|
82
|
+
The [product documentation](https://cloud.google.com/talent-solution/job-search/docs/) may provide guidance regarding the preferred client library to use.
|
83
|
+
|
84
|
+
## Supported Ruby versions
|
85
|
+
|
86
|
+
This library is supported on Ruby 2.5+.
|
87
|
+
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
|
+
|
90
|
+
## License
|
91
|
+
|
92
|
+
This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
|
93
|
+
|
94
|
+
## Support
|
95
|
+
|
96
|
+
Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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_v3"
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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_v3/service.rb'
|
16
|
+
require 'google/apis/jobs_v3/classes.rb'
|
17
|
+
require 'google/apis/jobs_v3/representations.rb'
|
18
|
+
require 'google/apis/jobs_v3/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# Cloud Talent Solution API
|
23
|
+
#
|
24
|
+
# Cloud Talent Solution provides the capability to create, read, update, and
|
25
|
+
# delete job postings, as well as search jobs based on keywords and filters.
|
26
|
+
#
|
27
|
+
# @see https://cloud.google.com/talent-solution/job-search/docs/
|
28
|
+
module JobsV3
|
29
|
+
# Version of the Cloud Talent Solution API this client connects to.
|
30
|
+
# This is NOT the gem version.
|
31
|
+
VERSION = 'V3'
|
32
|
+
|
33
|
+
# View and manage your data across Google Cloud Platform services
|
34
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
|
+
|
36
|
+
# Manage job postings
|
37
|
+
AUTH_JOBS = 'https://www.googleapis.com/auth/jobs'
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,2635 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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 JobsV3
|
24
|
+
|
25
|
+
# Application related details of a job posting.
|
26
|
+
class ApplicationInfo
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Optional but at least one of uris, emails or instruction must be specified.
|
30
|
+
# Use this field to specify email address(es) to which resumes or applications
|
31
|
+
# can be sent. The maximum number of allowed characters for each entry is 255.
|
32
|
+
# Corresponds to the JSON property `emails`
|
33
|
+
# @return [Array<String>]
|
34
|
+
attr_accessor :emails
|
35
|
+
|
36
|
+
# Optional but at least one of uris, emails or instruction must be specified.
|
37
|
+
# Use this field to provide instructions, such as "Mail your application to ...",
|
38
|
+
# that a candidate can follow to apply for the job. This field accepts and
|
39
|
+
# sanitizes HTML input, and also accepts bold, italic, ordered list, and
|
40
|
+
# unordered list markup tags. The maximum number of allowed characters is 3,000.
|
41
|
+
# Corresponds to the JSON property `instruction`
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :instruction
|
44
|
+
|
45
|
+
# Optional but at least one of uris, emails or instruction must be specified.
|
46
|
+
# Use this URI field to direct an applicant to a website, for example to link to
|
47
|
+
# an online application form. The maximum number of allowed characters for each
|
48
|
+
# entry is 2,000.
|
49
|
+
# Corresponds to the JSON property `uris`
|
50
|
+
# @return [Array<String>]
|
51
|
+
attr_accessor :uris
|
52
|
+
|
53
|
+
def initialize(**args)
|
54
|
+
update!(**args)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Update properties of this object
|
58
|
+
def update!(**args)
|
59
|
+
@emails = args[:emails] if args.key?(:emails)
|
60
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
61
|
+
@uris = args[:uris] if args.key?(:uris)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Input only. Batch delete jobs request.
|
66
|
+
class BatchDeleteJobsRequest
|
67
|
+
include Google::Apis::Core::Hashable
|
68
|
+
|
69
|
+
# Required. The filter string specifies the jobs to be deleted. Supported
|
70
|
+
# operator: =, AND The fields eligible for filtering are: * `companyName` (
|
71
|
+
# Required) * `requisitionId` (Required) Sample Query: companyName = "projects/
|
72
|
+
# api-test-project/companies/123" AND requisitionId = "req-1"
|
73
|
+
# Corresponds to the JSON property `filter`
|
74
|
+
# @return [String]
|
75
|
+
attr_accessor :filter
|
76
|
+
|
77
|
+
def initialize(**args)
|
78
|
+
update!(**args)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Update properties of this object
|
82
|
+
def update!(**args)
|
83
|
+
@filter = args[:filter] if args.key?(:filter)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Represents starting and ending value of a range in double.
|
88
|
+
class BucketRange
|
89
|
+
include Google::Apis::Core::Hashable
|
90
|
+
|
91
|
+
# Starting value of the bucket range.
|
92
|
+
# Corresponds to the JSON property `from`
|
93
|
+
# @return [Float]
|
94
|
+
attr_accessor :from
|
95
|
+
|
96
|
+
# Ending value of the bucket range.
|
97
|
+
# Corresponds to the JSON property `to`
|
98
|
+
# @return [Float]
|
99
|
+
attr_accessor :to
|
100
|
+
|
101
|
+
def initialize(**args)
|
102
|
+
update!(**args)
|
103
|
+
end
|
104
|
+
|
105
|
+
# Update properties of this object
|
106
|
+
def update!(**args)
|
107
|
+
@from = args[:from] if args.key?(:from)
|
108
|
+
@to = args[:to] if args.key?(:to)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# Represents count of jobs within one bucket.
|
113
|
+
class BucketizedCount
|
114
|
+
include Google::Apis::Core::Hashable
|
115
|
+
|
116
|
+
# Number of jobs whose numeric field value fall into `range`.
|
117
|
+
# Corresponds to the JSON property `count`
|
118
|
+
# @return [Fixnum]
|
119
|
+
attr_accessor :count
|
120
|
+
|
121
|
+
# Represents starting and ending value of a range in double.
|
122
|
+
# Corresponds to the JSON property `range`
|
123
|
+
# @return [Google::Apis::JobsV3::BucketRange]
|
124
|
+
attr_accessor :range
|
125
|
+
|
126
|
+
def initialize(**args)
|
127
|
+
update!(**args)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Update properties of this object
|
131
|
+
def update!(**args)
|
132
|
+
@count = args[:count] if args.key?(:count)
|
133
|
+
@range = args[:range] if args.key?(:range)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
# An event issued when an end user interacts with the application that
|
138
|
+
# implements Cloud Talent Solution. Providing this information improves the
|
139
|
+
# quality of search and recommendation for the API clients, enabling the service
|
140
|
+
# to perform optimally. The number of events sent must be consistent with other
|
141
|
+
# calls, such as job searches, issued to the service by the client.
|
142
|
+
class ClientEvent
|
143
|
+
include Google::Apis::Core::Hashable
|
144
|
+
|
145
|
+
# Required. The timestamp of the event.
|
146
|
+
# Corresponds to the JSON property `createTime`
|
147
|
+
# @return [String]
|
148
|
+
attr_accessor :create_time
|
149
|
+
|
150
|
+
# Required. A unique identifier, generated by the client application. This `
|
151
|
+
# event_id` is used to establish the relationship between different events (see
|
152
|
+
# parent_event_id).
|
153
|
+
# Corresponds to the JSON property `eventId`
|
154
|
+
# @return [String]
|
155
|
+
attr_accessor :event_id
|
156
|
+
|
157
|
+
# Optional. Extra information about this event. Used for storing information
|
158
|
+
# with no matching field in event payload, for example, user application
|
159
|
+
# specific context or details. At most 20 keys are supported. The maximum total
|
160
|
+
# size of all keys and values is 2 KB.
|
161
|
+
# Corresponds to the JSON property `extraInfo`
|
162
|
+
# @return [Hash<String,String>]
|
163
|
+
attr_accessor :extra_info
|
164
|
+
|
165
|
+
# An event issued when a job seeker interacts with the application that
|
166
|
+
# implements Cloud Talent Solution.
|
167
|
+
# Corresponds to the JSON property `jobEvent`
|
168
|
+
# @return [Google::Apis::JobsV3::JobEvent]
|
169
|
+
attr_accessor :job_event
|
170
|
+
|
171
|
+
# Optional. The event_id of an event that resulted in the current event. For
|
172
|
+
# example, a Job view event usually follows a parent impression event: A job
|
173
|
+
# seeker first does a search where a list of jobs appears (impression). The job
|
174
|
+
# seeker then selects a result and views the description of a particular job (
|
175
|
+
# Job view).
|
176
|
+
# Corresponds to the JSON property `parentEventId`
|
177
|
+
# @return [String]
|
178
|
+
attr_accessor :parent_event_id
|
179
|
+
|
180
|
+
# Required. A unique ID generated in the API responses. It can be found in
|
181
|
+
# ResponseMetadata.request_id.
|
182
|
+
# Corresponds to the JSON property `requestId`
|
183
|
+
# @return [String]
|
184
|
+
attr_accessor :request_id
|
185
|
+
|
186
|
+
def initialize(**args)
|
187
|
+
update!(**args)
|
188
|
+
end
|
189
|
+
|
190
|
+
# Update properties of this object
|
191
|
+
def update!(**args)
|
192
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
193
|
+
@event_id = args[:event_id] if args.key?(:event_id)
|
194
|
+
@extra_info = args[:extra_info] if args.key?(:extra_info)
|
195
|
+
@job_event = args[:job_event] if args.key?(:job_event)
|
196
|
+
@parent_event_id = args[:parent_event_id] if args.key?(:parent_event_id)
|
197
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# Input only. Parameters needed for commute search.
|
202
|
+
class CommuteFilter
|
203
|
+
include Google::Apis::Core::Hashable
|
204
|
+
|
205
|
+
# Optional. If true, jobs without "precise" addresses (street level addresses or
|
206
|
+
# GPS coordinates) might also be returned. For city and coarser level addresses,
|
207
|
+
# text matching is used. If this field is set to false or is not specified, only
|
208
|
+
# jobs that include precise addresses are returned by Commute Search. Note: If `
|
209
|
+
# allow_imprecise_addresses` is set to true, Commute Search is not able to
|
210
|
+
# calculate accurate commute times to jobs with city level and coarser address
|
211
|
+
# information. Jobs with imprecise addresses will return a `travel_duration`
|
212
|
+
# time of 0 regardless of distance from the job seeker.
|
213
|
+
# Corresponds to the JSON property `allowImpreciseAddresses`
|
214
|
+
# @return [Boolean]
|
215
|
+
attr_accessor :allow_imprecise_addresses
|
216
|
+
alias_method :allow_imprecise_addresses?, :allow_imprecise_addresses
|
217
|
+
|
218
|
+
# Required. The method of transportation for which to calculate the commute time.
|
219
|
+
# Corresponds to the JSON property `commuteMethod`
|
220
|
+
# @return [String]
|
221
|
+
attr_accessor :commute_method
|
222
|
+
|
223
|
+
# Represents a time of day. The date and time zone are either not significant or
|
224
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
225
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
226
|
+
# Corresponds to the JSON property `departureTime`
|
227
|
+
# @return [Google::Apis::JobsV3::TimeOfDay]
|
228
|
+
attr_accessor :departure_time
|
229
|
+
|
230
|
+
# Optional. Specifies the traffic density to use when calculating commute time.
|
231
|
+
# Corresponds to the JSON property `roadTraffic`
|
232
|
+
# @return [String]
|
233
|
+
attr_accessor :road_traffic
|
234
|
+
|
235
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
236
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
237
|
+
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
238
|
+
# within normalized ranges.
|
239
|
+
# Corresponds to the JSON property `startCoordinates`
|
240
|
+
# @return [Google::Apis::JobsV3::LatLng]
|
241
|
+
attr_accessor :start_coordinates
|
242
|
+
|
243
|
+
# Required. The maximum travel time in seconds. The maximum allowed value is `
|
244
|
+
# 3600s` (one hour). Format is `123s`.
|
245
|
+
# Corresponds to the JSON property `travelDuration`
|
246
|
+
# @return [String]
|
247
|
+
attr_accessor :travel_duration
|
248
|
+
|
249
|
+
def initialize(**args)
|
250
|
+
update!(**args)
|
251
|
+
end
|
252
|
+
|
253
|
+
# Update properties of this object
|
254
|
+
def update!(**args)
|
255
|
+
@allow_imprecise_addresses = args[:allow_imprecise_addresses] if args.key?(:allow_imprecise_addresses)
|
256
|
+
@commute_method = args[:commute_method] if args.key?(:commute_method)
|
257
|
+
@departure_time = args[:departure_time] if args.key?(:departure_time)
|
258
|
+
@road_traffic = args[:road_traffic] if args.key?(:road_traffic)
|
259
|
+
@start_coordinates = args[:start_coordinates] if args.key?(:start_coordinates)
|
260
|
+
@travel_duration = args[:travel_duration] if args.key?(:travel_duration)
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
# Output only. Commute details related to this job.
|
265
|
+
class CommuteInfo
|
266
|
+
include Google::Apis::Core::Hashable
|
267
|
+
|
268
|
+
# Output only. A resource that represents a location with full geographic
|
269
|
+
# information.
|
270
|
+
# Corresponds to the JSON property `jobLocation`
|
271
|
+
# @return [Google::Apis::JobsV3::Location]
|
272
|
+
attr_accessor :job_location
|
273
|
+
|
274
|
+
# The number of seconds required to travel to the job location from the query
|
275
|
+
# location. A duration of 0 seconds indicates that the job is not reachable
|
276
|
+
# within the requested duration, but was returned as part of an expanded query.
|
277
|
+
# Corresponds to the JSON property `travelDuration`
|
278
|
+
# @return [String]
|
279
|
+
attr_accessor :travel_duration
|
280
|
+
|
281
|
+
def initialize(**args)
|
282
|
+
update!(**args)
|
283
|
+
end
|
284
|
+
|
285
|
+
# Update properties of this object
|
286
|
+
def update!(**args)
|
287
|
+
@job_location = args[:job_location] if args.key?(:job_location)
|
288
|
+
@travel_duration = args[:travel_duration] if args.key?(:travel_duration)
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
# A Company resource represents a company in the service. A company is the
|
293
|
+
# entity that owns job postings, that is, the hiring entity responsible for
|
294
|
+
# employing applicants for the job position.
|
295
|
+
class Company
|
296
|
+
include Google::Apis::Core::Hashable
|
297
|
+
|
298
|
+
# Optional. The URI to employer's career site or careers page on the employer's
|
299
|
+
# web site, for example, "https://careers.google.com".
|
300
|
+
# Corresponds to the JSON property `careerSiteUri`
|
301
|
+
# @return [String]
|
302
|
+
attr_accessor :career_site_uri
|
303
|
+
|
304
|
+
# Derived details about the company.
|
305
|
+
# Corresponds to the JSON property `derivedInfo`
|
306
|
+
# @return [Google::Apis::JobsV3::CompanyDerivedInfo]
|
307
|
+
attr_accessor :derived_info
|
308
|
+
|
309
|
+
# Required. The display name of the company, for example, "Google LLC".
|
310
|
+
# Corresponds to the JSON property `displayName`
|
311
|
+
# @return [String]
|
312
|
+
attr_accessor :display_name
|
313
|
+
|
314
|
+
# Optional. Equal Employment Opportunity legal disclaimer text to be associated
|
315
|
+
# with all jobs, and typically to be displayed in all roles. The maximum number
|
316
|
+
# of allowed characters is 500.
|
317
|
+
# Corresponds to the JSON property `eeoText`
|
318
|
+
# @return [String]
|
319
|
+
attr_accessor :eeo_text
|
320
|
+
|
321
|
+
# Required. Client side company identifier, used to uniquely identify the
|
322
|
+
# company. The maximum number of allowed characters is 255.
|
323
|
+
# Corresponds to the JSON property `externalId`
|
324
|
+
# @return [String]
|
325
|
+
attr_accessor :external_id
|
326
|
+
|
327
|
+
# Optional. The street address of the company's main headquarters, which may be
|
328
|
+
# different from the job location. The service attempts to geolocate the
|
329
|
+
# provided address, and populates a more specific location wherever possible in
|
330
|
+
# DerivedInfo.headquarters_location.
|
331
|
+
# Corresponds to the JSON property `headquartersAddress`
|
332
|
+
# @return [String]
|
333
|
+
attr_accessor :headquarters_address
|
334
|
+
|
335
|
+
# Optional. Set to true if it is the hiring agency that post jobs for other
|
336
|
+
# employers. Defaults to false if not provided.
|
337
|
+
# Corresponds to the JSON property `hiringAgency`
|
338
|
+
# @return [Boolean]
|
339
|
+
attr_accessor :hiring_agency
|
340
|
+
alias_method :hiring_agency?, :hiring_agency
|
341
|
+
|
342
|
+
# Optional. A URI that hosts the employer's company logo.
|
343
|
+
# Corresponds to the JSON property `imageUri`
|
344
|
+
# @return [String]
|
345
|
+
attr_accessor :image_uri
|
346
|
+
|
347
|
+
# Optional. A list of keys of filterable Job.custom_attributes, whose
|
348
|
+
# corresponding `string_values` are used in keyword search. Jobs with `
|
349
|
+
# string_values` under these specified field keys are returned if any of the
|
350
|
+
# values matches the search keyword. Custom field values with parenthesis,
|
351
|
+
# brackets and special symbols won't be properly searchable, and those keyword
|
352
|
+
# queries need to be surrounded by quotes.
|
353
|
+
# Corresponds to the JSON property `keywordSearchableJobCustomAttributes`
|
354
|
+
# @return [Array<String>]
|
355
|
+
attr_accessor :keyword_searchable_job_custom_attributes
|
356
|
+
|
357
|
+
# Required during company update. The resource name for a company. This is
|
358
|
+
# generated by the service when a company is created. The format is "projects/`
|
359
|
+
# project_id`/companies/`company_id`", for example, "projects/api-test-project/
|
360
|
+
# companies/foo".
|
361
|
+
# Corresponds to the JSON property `name`
|
362
|
+
# @return [String]
|
363
|
+
attr_accessor :name
|
364
|
+
|
365
|
+
# Optional. The employer's company size.
|
366
|
+
# Corresponds to the JSON property `size`
|
367
|
+
# @return [String]
|
368
|
+
attr_accessor :size
|
369
|
+
|
370
|
+
# Output only. Indicates whether a company is flagged to be suspended from
|
371
|
+
# public availability by the service when job content appears suspicious,
|
372
|
+
# abusive, or spammy.
|
373
|
+
# Corresponds to the JSON property `suspended`
|
374
|
+
# @return [Boolean]
|
375
|
+
attr_accessor :suspended
|
376
|
+
alias_method :suspended?, :suspended
|
377
|
+
|
378
|
+
# Optional. The URI representing the company's primary web site or home page,
|
379
|
+
# for example, "https://www.google.com". The maximum number of allowed
|
380
|
+
# characters is 255.
|
381
|
+
# Corresponds to the JSON property `websiteUri`
|
382
|
+
# @return [String]
|
383
|
+
attr_accessor :website_uri
|
384
|
+
|
385
|
+
def initialize(**args)
|
386
|
+
update!(**args)
|
387
|
+
end
|
388
|
+
|
389
|
+
# Update properties of this object
|
390
|
+
def update!(**args)
|
391
|
+
@career_site_uri = args[:career_site_uri] if args.key?(:career_site_uri)
|
392
|
+
@derived_info = args[:derived_info] if args.key?(:derived_info)
|
393
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
394
|
+
@eeo_text = args[:eeo_text] if args.key?(:eeo_text)
|
395
|
+
@external_id = args[:external_id] if args.key?(:external_id)
|
396
|
+
@headquarters_address = args[:headquarters_address] if args.key?(:headquarters_address)
|
397
|
+
@hiring_agency = args[:hiring_agency] if args.key?(:hiring_agency)
|
398
|
+
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
399
|
+
@keyword_searchable_job_custom_attributes = args[:keyword_searchable_job_custom_attributes] if args.key?(:keyword_searchable_job_custom_attributes)
|
400
|
+
@name = args[:name] if args.key?(:name)
|
401
|
+
@size = args[:size] if args.key?(:size)
|
402
|
+
@suspended = args[:suspended] if args.key?(:suspended)
|
403
|
+
@website_uri = args[:website_uri] if args.key?(:website_uri)
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
# Derived details about the company.
|
408
|
+
class CompanyDerivedInfo
|
409
|
+
include Google::Apis::Core::Hashable
|
410
|
+
|
411
|
+
# Output only. A resource that represents a location with full geographic
|
412
|
+
# information.
|
413
|
+
# Corresponds to the JSON property `headquartersLocation`
|
414
|
+
# @return [Google::Apis::JobsV3::Location]
|
415
|
+
attr_accessor :headquarters_location
|
416
|
+
|
417
|
+
def initialize(**args)
|
418
|
+
update!(**args)
|
419
|
+
end
|
420
|
+
|
421
|
+
# Update properties of this object
|
422
|
+
def update!(**args)
|
423
|
+
@headquarters_location = args[:headquarters_location] if args.key?(:headquarters_location)
|
424
|
+
end
|
425
|
+
end
|
426
|
+
|
427
|
+
# A compensation entry that represents one component of compensation, such as
|
428
|
+
# base pay, bonus, or other compensation type. Annualization: One compensation
|
429
|
+
# entry can be annualized if - it contains valid amount or range. - and its
|
430
|
+
# expected_units_per_year is set or can be derived. Its annualized range is
|
431
|
+
# determined as (amount or range) times expected_units_per_year.
|
432
|
+
class CompensationEntry
|
433
|
+
include Google::Apis::Core::Hashable
|
434
|
+
|
435
|
+
# Represents an amount of money with its currency type.
|
436
|
+
# Corresponds to the JSON property `amount`
|
437
|
+
# @return [Google::Apis::JobsV3::Money]
|
438
|
+
attr_accessor :amount
|
439
|
+
|
440
|
+
# Optional. Compensation description. For example, could indicate equity terms
|
441
|
+
# or provide additional context to an estimated bonus.
|
442
|
+
# Corresponds to the JSON property `description`
|
443
|
+
# @return [String]
|
444
|
+
attr_accessor :description
|
445
|
+
|
446
|
+
# Optional. Expected number of units paid each year. If not specified, when Job.
|
447
|
+
# employment_types is FULLTIME, a default value is inferred based on unit.
|
448
|
+
# Default values: - HOURLY: 2080 - DAILY: 260 - WEEKLY: 52 - MONTHLY: 12 -
|
449
|
+
# ANNUAL: 1
|
450
|
+
# Corresponds to the JSON property `expectedUnitsPerYear`
|
451
|
+
# @return [Float]
|
452
|
+
attr_accessor :expected_units_per_year
|
453
|
+
|
454
|
+
# Compensation range.
|
455
|
+
# Corresponds to the JSON property `range`
|
456
|
+
# @return [Google::Apis::JobsV3::CompensationRange]
|
457
|
+
attr_accessor :range
|
458
|
+
|
459
|
+
# Optional. Compensation type. Default is CompensationUnit.
|
460
|
+
# COMPENSATION_TYPE_UNSPECIFIED.
|
461
|
+
# Corresponds to the JSON property `type`
|
462
|
+
# @return [String]
|
463
|
+
attr_accessor :type
|
464
|
+
|
465
|
+
# Optional. Frequency of the specified amount. Default is CompensationUnit.
|
466
|
+
# COMPENSATION_UNIT_UNSPECIFIED.
|
467
|
+
# Corresponds to the JSON property `unit`
|
468
|
+
# @return [String]
|
469
|
+
attr_accessor :unit
|
470
|
+
|
471
|
+
def initialize(**args)
|
472
|
+
update!(**args)
|
473
|
+
end
|
474
|
+
|
475
|
+
# Update properties of this object
|
476
|
+
def update!(**args)
|
477
|
+
@amount = args[:amount] if args.key?(:amount)
|
478
|
+
@description = args[:description] if args.key?(:description)
|
479
|
+
@expected_units_per_year = args[:expected_units_per_year] if args.key?(:expected_units_per_year)
|
480
|
+
@range = args[:range] if args.key?(:range)
|
481
|
+
@type = args[:type] if args.key?(:type)
|
482
|
+
@unit = args[:unit] if args.key?(:unit)
|
483
|
+
end
|
484
|
+
end
|
485
|
+
|
486
|
+
# Input only. Filter on job compensation type and amount.
|
487
|
+
class CompensationFilter
|
488
|
+
include Google::Apis::Core::Hashable
|
489
|
+
|
490
|
+
# Optional. If set to true, jobs with unspecified compensation range fields are
|
491
|
+
# included.
|
492
|
+
# Corresponds to the JSON property `includeJobsWithUnspecifiedCompensationRange`
|
493
|
+
# @return [Boolean]
|
494
|
+
attr_accessor :include_jobs_with_unspecified_compensation_range
|
495
|
+
alias_method :include_jobs_with_unspecified_compensation_range?, :include_jobs_with_unspecified_compensation_range
|
496
|
+
|
497
|
+
# Compensation range.
|
498
|
+
# Corresponds to the JSON property `range`
|
499
|
+
# @return [Google::Apis::JobsV3::CompensationRange]
|
500
|
+
attr_accessor :range
|
501
|
+
|
502
|
+
# Required. Type of filter.
|
503
|
+
# Corresponds to the JSON property `type`
|
504
|
+
# @return [String]
|
505
|
+
attr_accessor :type
|
506
|
+
|
507
|
+
# Required. Specify desired `base compensation entry's` CompensationInfo.
|
508
|
+
# CompensationUnit.
|
509
|
+
# Corresponds to the JSON property `units`
|
510
|
+
# @return [Array<String>]
|
511
|
+
attr_accessor :units
|
512
|
+
|
513
|
+
def initialize(**args)
|
514
|
+
update!(**args)
|
515
|
+
end
|
516
|
+
|
517
|
+
# Update properties of this object
|
518
|
+
def update!(**args)
|
519
|
+
@include_jobs_with_unspecified_compensation_range = args[:include_jobs_with_unspecified_compensation_range] if args.key?(:include_jobs_with_unspecified_compensation_range)
|
520
|
+
@range = args[:range] if args.key?(:range)
|
521
|
+
@type = args[:type] if args.key?(:type)
|
522
|
+
@units = args[:units] if args.key?(:units)
|
523
|
+
end
|
524
|
+
end
|
525
|
+
|
526
|
+
# Input only. Compensation based histogram request.
|
527
|
+
class CompensationHistogramRequest
|
528
|
+
include Google::Apis::Core::Hashable
|
529
|
+
|
530
|
+
# Input only. Use this field to specify bucketing option for the histogram
|
531
|
+
# search response.
|
532
|
+
# Corresponds to the JSON property `bucketingOption`
|
533
|
+
# @return [Google::Apis::JobsV3::NumericBucketingOption]
|
534
|
+
attr_accessor :bucketing_option
|
535
|
+
|
536
|
+
# Required. Type of the request, representing which field the histogramming
|
537
|
+
# should be performed over. A single request can only specify one histogram of
|
538
|
+
# each `CompensationHistogramRequestType`.
|
539
|
+
# Corresponds to the JSON property `type`
|
540
|
+
# @return [String]
|
541
|
+
attr_accessor :type
|
542
|
+
|
543
|
+
def initialize(**args)
|
544
|
+
update!(**args)
|
545
|
+
end
|
546
|
+
|
547
|
+
# Update properties of this object
|
548
|
+
def update!(**args)
|
549
|
+
@bucketing_option = args[:bucketing_option] if args.key?(:bucketing_option)
|
550
|
+
@type = args[:type] if args.key?(:type)
|
551
|
+
end
|
552
|
+
end
|
553
|
+
|
554
|
+
# Output only. Compensation based histogram result.
|
555
|
+
class CompensationHistogramResult
|
556
|
+
include Google::Apis::Core::Hashable
|
557
|
+
|
558
|
+
# Output only. Custom numeric bucketing result.
|
559
|
+
# Corresponds to the JSON property `result`
|
560
|
+
# @return [Google::Apis::JobsV3::NumericBucketingResult]
|
561
|
+
attr_accessor :result
|
562
|
+
|
563
|
+
# Type of the request, corresponding to CompensationHistogramRequest.type.
|
564
|
+
# Corresponds to the JSON property `type`
|
565
|
+
# @return [String]
|
566
|
+
attr_accessor :type
|
567
|
+
|
568
|
+
def initialize(**args)
|
569
|
+
update!(**args)
|
570
|
+
end
|
571
|
+
|
572
|
+
# Update properties of this object
|
573
|
+
def update!(**args)
|
574
|
+
@result = args[:result] if args.key?(:result)
|
575
|
+
@type = args[:type] if args.key?(:type)
|
576
|
+
end
|
577
|
+
end
|
578
|
+
|
579
|
+
# Job compensation details.
|
580
|
+
class CompensationInfo
|
581
|
+
include Google::Apis::Core::Hashable
|
582
|
+
|
583
|
+
# Compensation range.
|
584
|
+
# Corresponds to the JSON property `annualizedBaseCompensationRange`
|
585
|
+
# @return [Google::Apis::JobsV3::CompensationRange]
|
586
|
+
attr_accessor :annualized_base_compensation_range
|
587
|
+
|
588
|
+
# Compensation range.
|
589
|
+
# Corresponds to the JSON property `annualizedTotalCompensationRange`
|
590
|
+
# @return [Google::Apis::JobsV3::CompensationRange]
|
591
|
+
attr_accessor :annualized_total_compensation_range
|
592
|
+
|
593
|
+
# Optional. Job compensation information. At most one entry can be of type
|
594
|
+
# CompensationInfo.CompensationType.BASE, which is referred as ** base
|
595
|
+
# compensation entry ** for the job.
|
596
|
+
# Corresponds to the JSON property `entries`
|
597
|
+
# @return [Array<Google::Apis::JobsV3::CompensationEntry>]
|
598
|
+
attr_accessor :entries
|
599
|
+
|
600
|
+
def initialize(**args)
|
601
|
+
update!(**args)
|
602
|
+
end
|
603
|
+
|
604
|
+
# Update properties of this object
|
605
|
+
def update!(**args)
|
606
|
+
@annualized_base_compensation_range = args[:annualized_base_compensation_range] if args.key?(:annualized_base_compensation_range)
|
607
|
+
@annualized_total_compensation_range = args[:annualized_total_compensation_range] if args.key?(:annualized_total_compensation_range)
|
608
|
+
@entries = args[:entries] if args.key?(:entries)
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
612
|
+
# Compensation range.
|
613
|
+
class CompensationRange
|
614
|
+
include Google::Apis::Core::Hashable
|
615
|
+
|
616
|
+
# Represents an amount of money with its currency type.
|
617
|
+
# Corresponds to the JSON property `maxCompensation`
|
618
|
+
# @return [Google::Apis::JobsV3::Money]
|
619
|
+
attr_accessor :max_compensation
|
620
|
+
|
621
|
+
# Represents an amount of money with its currency type.
|
622
|
+
# Corresponds to the JSON property `minCompensation`
|
623
|
+
# @return [Google::Apis::JobsV3::Money]
|
624
|
+
attr_accessor :min_compensation
|
625
|
+
|
626
|
+
def initialize(**args)
|
627
|
+
update!(**args)
|
628
|
+
end
|
629
|
+
|
630
|
+
# Update properties of this object
|
631
|
+
def update!(**args)
|
632
|
+
@max_compensation = args[:max_compensation] if args.key?(:max_compensation)
|
633
|
+
@min_compensation = args[:min_compensation] if args.key?(:min_compensation)
|
634
|
+
end
|
635
|
+
end
|
636
|
+
|
637
|
+
# Output only. Response of auto-complete query.
|
638
|
+
class CompleteQueryResponse
|
639
|
+
include Google::Apis::Core::Hashable
|
640
|
+
|
641
|
+
# Results of the matching job/company candidates.
|
642
|
+
# Corresponds to the JSON property `completionResults`
|
643
|
+
# @return [Array<Google::Apis::JobsV3::CompletionResult>]
|
644
|
+
attr_accessor :completion_results
|
645
|
+
|
646
|
+
# Output only. Additional information returned to client, such as debugging
|
647
|
+
# information.
|
648
|
+
# Corresponds to the JSON property `metadata`
|
649
|
+
# @return [Google::Apis::JobsV3::ResponseMetadata]
|
650
|
+
attr_accessor :metadata
|
651
|
+
|
652
|
+
def initialize(**args)
|
653
|
+
update!(**args)
|
654
|
+
end
|
655
|
+
|
656
|
+
# Update properties of this object
|
657
|
+
def update!(**args)
|
658
|
+
@completion_results = args[:completion_results] if args.key?(:completion_results)
|
659
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
660
|
+
end
|
661
|
+
end
|
662
|
+
|
663
|
+
# Output only. Resource that represents completion results.
|
664
|
+
class CompletionResult
|
665
|
+
include Google::Apis::Core::Hashable
|
666
|
+
|
667
|
+
# The URI of the company image for CompletionType.COMPANY_NAME.
|
668
|
+
# Corresponds to the JSON property `imageUri`
|
669
|
+
# @return [String]
|
670
|
+
attr_accessor :image_uri
|
671
|
+
|
672
|
+
# The suggestion for the query.
|
673
|
+
# Corresponds to the JSON property `suggestion`
|
674
|
+
# @return [String]
|
675
|
+
attr_accessor :suggestion
|
676
|
+
|
677
|
+
# The completion topic.
|
678
|
+
# Corresponds to the JSON property `type`
|
679
|
+
# @return [String]
|
680
|
+
attr_accessor :type
|
681
|
+
|
682
|
+
def initialize(**args)
|
683
|
+
update!(**args)
|
684
|
+
end
|
685
|
+
|
686
|
+
# Update properties of this object
|
687
|
+
def update!(**args)
|
688
|
+
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
689
|
+
@suggestion = args[:suggestion] if args.key?(:suggestion)
|
690
|
+
@type = args[:type] if args.key?(:type)
|
691
|
+
end
|
692
|
+
end
|
693
|
+
|
694
|
+
# The report event request.
|
695
|
+
class CreateClientEventRequest
|
696
|
+
include Google::Apis::Core::Hashable
|
697
|
+
|
698
|
+
# An event issued when an end user interacts with the application that
|
699
|
+
# implements Cloud Talent Solution. Providing this information improves the
|
700
|
+
# quality of search and recommendation for the API clients, enabling the service
|
701
|
+
# to perform optimally. The number of events sent must be consistent with other
|
702
|
+
# calls, such as job searches, issued to the service by the client.
|
703
|
+
# Corresponds to the JSON property `clientEvent`
|
704
|
+
# @return [Google::Apis::JobsV3::ClientEvent]
|
705
|
+
attr_accessor :client_event
|
706
|
+
|
707
|
+
def initialize(**args)
|
708
|
+
update!(**args)
|
709
|
+
end
|
710
|
+
|
711
|
+
# Update properties of this object
|
712
|
+
def update!(**args)
|
713
|
+
@client_event = args[:client_event] if args.key?(:client_event)
|
714
|
+
end
|
715
|
+
end
|
716
|
+
|
717
|
+
# Input only. The Request of the CreateCompany method.
|
718
|
+
class CreateCompanyRequest
|
719
|
+
include Google::Apis::Core::Hashable
|
720
|
+
|
721
|
+
# A Company resource represents a company in the service. A company is the
|
722
|
+
# entity that owns job postings, that is, the hiring entity responsible for
|
723
|
+
# employing applicants for the job position.
|
724
|
+
# Corresponds to the JSON property `company`
|
725
|
+
# @return [Google::Apis::JobsV3::Company]
|
726
|
+
attr_accessor :company
|
727
|
+
|
728
|
+
def initialize(**args)
|
729
|
+
update!(**args)
|
730
|
+
end
|
731
|
+
|
732
|
+
# Update properties of this object
|
733
|
+
def update!(**args)
|
734
|
+
@company = args[:company] if args.key?(:company)
|
735
|
+
end
|
736
|
+
end
|
737
|
+
|
738
|
+
# Input only. Create job request.
|
739
|
+
class CreateJobRequest
|
740
|
+
include Google::Apis::Core::Hashable
|
741
|
+
|
742
|
+
# A Job resource represents a job posting (also referred to as a "job listing"
|
743
|
+
# or "job requisition"). A job belongs to a Company, which is the hiring entity
|
744
|
+
# responsible for the job.
|
745
|
+
# Corresponds to the JSON property `job`
|
746
|
+
# @return [Google::Apis::JobsV3::Job]
|
747
|
+
attr_accessor :job
|
748
|
+
|
749
|
+
def initialize(**args)
|
750
|
+
update!(**args)
|
751
|
+
end
|
752
|
+
|
753
|
+
# Update properties of this object
|
754
|
+
def update!(**args)
|
755
|
+
@job = args[:job] if args.key?(:job)
|
756
|
+
end
|
757
|
+
end
|
758
|
+
|
759
|
+
# Custom attribute values that are either filterable or non-filterable.
|
760
|
+
class CustomAttribute
|
761
|
+
include Google::Apis::Core::Hashable
|
762
|
+
|
763
|
+
# Optional. If the `filterable` flag is true, the custom field values may be
|
764
|
+
# used for custom attribute filters JobQuery.custom_attribute_filter. If false,
|
765
|
+
# these values may not be used for custom attribute filters. Default is false.
|
766
|
+
# Corresponds to the JSON property `filterable`
|
767
|
+
# @return [Boolean]
|
768
|
+
attr_accessor :filterable
|
769
|
+
alias_method :filterable?, :filterable
|
770
|
+
|
771
|
+
# Optional but exactly one of string_values or long_values must be specified.
|
772
|
+
# This field is used to perform number range search. (`EQ`, `GT`, `GE`, `LE`, `
|
773
|
+
# LT`) over filterable `long_value`. Currently at most 1 long_values is
|
774
|
+
# supported.
|
775
|
+
# Corresponds to the JSON property `longValues`
|
776
|
+
# @return [Array<Fixnum>]
|
777
|
+
attr_accessor :long_values
|
778
|
+
|
779
|
+
# Optional but exactly one of string_values or long_values must be specified.
|
780
|
+
# This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or `
|
781
|
+
# CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum
|
782
|
+
# total number of 200 values is allowed, with each `string_value` has a byte
|
783
|
+
# size of no more than 500B. For unfilterable `string_values`, the maximum total
|
784
|
+
# byte size of unfilterable `string_values` is 50KB. Empty string is not allowed.
|
785
|
+
# Corresponds to the JSON property `stringValues`
|
786
|
+
# @return [Array<String>]
|
787
|
+
attr_accessor :string_values
|
788
|
+
|
789
|
+
def initialize(**args)
|
790
|
+
update!(**args)
|
791
|
+
end
|
792
|
+
|
793
|
+
# Update properties of this object
|
794
|
+
def update!(**args)
|
795
|
+
@filterable = args[:filterable] if args.key?(:filterable)
|
796
|
+
@long_values = args[:long_values] if args.key?(:long_values)
|
797
|
+
@string_values = args[:string_values] if args.key?(:string_values)
|
798
|
+
end
|
799
|
+
end
|
800
|
+
|
801
|
+
# Custom attributes histogram request. An error is thrown if neither
|
802
|
+
# string_value_histogram or long_value_histogram_bucketing_option has been
|
803
|
+
# defined.
|
804
|
+
class CustomAttributeHistogramRequest
|
805
|
+
include Google::Apis::Core::Hashable
|
806
|
+
|
807
|
+
# Required. Specifies the custom field key to perform a histogram on. If
|
808
|
+
# specified without `long_value_histogram_bucketing_option`, histogram on string
|
809
|
+
# values of the given `key` is triggered, otherwise histogram is performed on
|
810
|
+
# long values.
|
811
|
+
# Corresponds to the JSON property `key`
|
812
|
+
# @return [String]
|
813
|
+
attr_accessor :key
|
814
|
+
|
815
|
+
# Input only. Use this field to specify bucketing option for the histogram
|
816
|
+
# search response.
|
817
|
+
# Corresponds to the JSON property `longValueHistogramBucketingOption`
|
818
|
+
# @return [Google::Apis::JobsV3::NumericBucketingOption]
|
819
|
+
attr_accessor :long_value_histogram_bucketing_option
|
820
|
+
|
821
|
+
# Optional. If set to true, the response includes the histogram value for each
|
822
|
+
# key as a string.
|
823
|
+
# Corresponds to the JSON property `stringValueHistogram`
|
824
|
+
# @return [Boolean]
|
825
|
+
attr_accessor :string_value_histogram
|
826
|
+
alias_method :string_value_histogram?, :string_value_histogram
|
827
|
+
|
828
|
+
def initialize(**args)
|
829
|
+
update!(**args)
|
830
|
+
end
|
831
|
+
|
832
|
+
# Update properties of this object
|
833
|
+
def update!(**args)
|
834
|
+
@key = args[:key] if args.key?(:key)
|
835
|
+
@long_value_histogram_bucketing_option = args[:long_value_histogram_bucketing_option] if args.key?(:long_value_histogram_bucketing_option)
|
836
|
+
@string_value_histogram = args[:string_value_histogram] if args.key?(:string_value_histogram)
|
837
|
+
end
|
838
|
+
end
|
839
|
+
|
840
|
+
# Output only. Custom attribute histogram result.
|
841
|
+
class CustomAttributeHistogramResult
|
842
|
+
include Google::Apis::Core::Hashable
|
843
|
+
|
844
|
+
# Stores the key of custom attribute the histogram is performed on.
|
845
|
+
# Corresponds to the JSON property `key`
|
846
|
+
# @return [String]
|
847
|
+
attr_accessor :key
|
848
|
+
|
849
|
+
# Output only. Custom numeric bucketing result.
|
850
|
+
# Corresponds to the JSON property `longValueHistogramResult`
|
851
|
+
# @return [Google::Apis::JobsV3::NumericBucketingResult]
|
852
|
+
attr_accessor :long_value_histogram_result
|
853
|
+
|
854
|
+
# Stores a map from the values of string custom field associated with `key` to
|
855
|
+
# the number of jobs with that value in this histogram result.
|
856
|
+
# Corresponds to the JSON property `stringValueHistogramResult`
|
857
|
+
# @return [Hash<String,Fixnum>]
|
858
|
+
attr_accessor :string_value_histogram_result
|
859
|
+
|
860
|
+
def initialize(**args)
|
861
|
+
update!(**args)
|
862
|
+
end
|
863
|
+
|
864
|
+
# Update properties of this object
|
865
|
+
def update!(**args)
|
866
|
+
@key = args[:key] if args.key?(:key)
|
867
|
+
@long_value_histogram_result = args[:long_value_histogram_result] if args.key?(:long_value_histogram_result)
|
868
|
+
@string_value_histogram_result = args[:string_value_histogram_result] if args.key?(:string_value_histogram_result)
|
869
|
+
end
|
870
|
+
end
|
871
|
+
|
872
|
+
# Device information collected from the job seeker, candidate, or other entity
|
873
|
+
# conducting the job search. Providing this information improves the quality of
|
874
|
+
# the search results across devices.
|
875
|
+
class DeviceInfo
|
876
|
+
include Google::Apis::Core::Hashable
|
877
|
+
|
878
|
+
# Optional. Type of the device.
|
879
|
+
# Corresponds to the JSON property `deviceType`
|
880
|
+
# @return [String]
|
881
|
+
attr_accessor :device_type
|
882
|
+
|
883
|
+
# Optional. A device-specific ID. The ID must be a unique identifier that
|
884
|
+
# distinguishes the device from other devices.
|
885
|
+
# Corresponds to the JSON property `id`
|
886
|
+
# @return [String]
|
887
|
+
attr_accessor :id
|
888
|
+
|
889
|
+
def initialize(**args)
|
890
|
+
update!(**args)
|
891
|
+
end
|
892
|
+
|
893
|
+
# Update properties of this object
|
894
|
+
def update!(**args)
|
895
|
+
@device_type = args[:device_type] if args.key?(:device_type)
|
896
|
+
@id = args[:id] if args.key?(:id)
|
897
|
+
end
|
898
|
+
end
|
899
|
+
|
900
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
901
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
902
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
903
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
904
|
+
# `Empty` is empty JSON object ````.
|
905
|
+
class Empty
|
906
|
+
include Google::Apis::Core::Hashable
|
907
|
+
|
908
|
+
def initialize(**args)
|
909
|
+
update!(**args)
|
910
|
+
end
|
911
|
+
|
912
|
+
# Update properties of this object
|
913
|
+
def update!(**args)
|
914
|
+
end
|
915
|
+
end
|
916
|
+
|
917
|
+
# Input only. Histogram facets to be specified in SearchJobsRequest.
|
918
|
+
class HistogramFacets
|
919
|
+
include Google::Apis::Core::Hashable
|
920
|
+
|
921
|
+
# Optional. Specifies compensation field-based histogram requests. Duplicate
|
922
|
+
# values of CompensationHistogramRequest.type are not allowed.
|
923
|
+
# Corresponds to the JSON property `compensationHistogramFacets`
|
924
|
+
# @return [Array<Google::Apis::JobsV3::CompensationHistogramRequest>]
|
925
|
+
attr_accessor :compensation_histogram_facets
|
926
|
+
|
927
|
+
# Optional. Specifies the custom attributes histogram requests. Duplicate values
|
928
|
+
# of CustomAttributeHistogramRequest.key are not allowed.
|
929
|
+
# Corresponds to the JSON property `customAttributeHistogramFacets`
|
930
|
+
# @return [Array<Google::Apis::JobsV3::CustomAttributeHistogramRequest>]
|
931
|
+
attr_accessor :custom_attribute_histogram_facets
|
932
|
+
|
933
|
+
# Optional. Specifies the simple type of histogram facets, for example, `
|
934
|
+
# COMPANY_SIZE`, `EMPLOYMENT_TYPE` etc.
|
935
|
+
# Corresponds to the JSON property `simpleHistogramFacets`
|
936
|
+
# @return [Array<String>]
|
937
|
+
attr_accessor :simple_histogram_facets
|
938
|
+
|
939
|
+
def initialize(**args)
|
940
|
+
update!(**args)
|
941
|
+
end
|
942
|
+
|
943
|
+
# Update properties of this object
|
944
|
+
def update!(**args)
|
945
|
+
@compensation_histogram_facets = args[:compensation_histogram_facets] if args.key?(:compensation_histogram_facets)
|
946
|
+
@custom_attribute_histogram_facets = args[:custom_attribute_histogram_facets] if args.key?(:custom_attribute_histogram_facets)
|
947
|
+
@simple_histogram_facets = args[:simple_histogram_facets] if args.key?(:simple_histogram_facets)
|
948
|
+
end
|
949
|
+
end
|
950
|
+
|
951
|
+
# Output only. Result of a histogram call. The response contains the histogram
|
952
|
+
# map for the search type specified by HistogramResult.field. The response is a
|
953
|
+
# map of each filter value to the corresponding count of jobs for that filter.
|
954
|
+
class HistogramResult
|
955
|
+
include Google::Apis::Core::Hashable
|
956
|
+
|
957
|
+
# The Histogram search filters.
|
958
|
+
# Corresponds to the JSON property `searchType`
|
959
|
+
# @return [String]
|
960
|
+
attr_accessor :search_type
|
961
|
+
|
962
|
+
# A map from the values of field to the number of jobs with that value in this
|
963
|
+
# search result. Key: search type (filter names, such as the companyName).
|
964
|
+
# Values: the count of jobs that match the filter for this search.
|
965
|
+
# Corresponds to the JSON property `values`
|
966
|
+
# @return [Hash<String,Fixnum>]
|
967
|
+
attr_accessor :values
|
968
|
+
|
969
|
+
def initialize(**args)
|
970
|
+
update!(**args)
|
971
|
+
end
|
972
|
+
|
973
|
+
# Update properties of this object
|
974
|
+
def update!(**args)
|
975
|
+
@search_type = args[:search_type] if args.key?(:search_type)
|
976
|
+
@values = args[:values] if args.key?(:values)
|
977
|
+
end
|
978
|
+
end
|
979
|
+
|
980
|
+
# Output only. Histogram results that match HistogramFacets specified in
|
981
|
+
# SearchJobsRequest.
|
982
|
+
class HistogramResults
|
983
|
+
include Google::Apis::Core::Hashable
|
984
|
+
|
985
|
+
# Specifies compensation field-based histogram results that match
|
986
|
+
# HistogramFacets.compensation_histogram_requests.
|
987
|
+
# Corresponds to the JSON property `compensationHistogramResults`
|
988
|
+
# @return [Array<Google::Apis::JobsV3::CompensationHistogramResult>]
|
989
|
+
attr_accessor :compensation_histogram_results
|
990
|
+
|
991
|
+
# Specifies histogram results for custom attributes that match HistogramFacets.
|
992
|
+
# custom_attribute_histogram_facets.
|
993
|
+
# Corresponds to the JSON property `customAttributeHistogramResults`
|
994
|
+
# @return [Array<Google::Apis::JobsV3::CustomAttributeHistogramResult>]
|
995
|
+
attr_accessor :custom_attribute_histogram_results
|
996
|
+
|
997
|
+
# Specifies histogram results that matches HistogramFacets.
|
998
|
+
# simple_histogram_facets.
|
999
|
+
# Corresponds to the JSON property `simpleHistogramResults`
|
1000
|
+
# @return [Array<Google::Apis::JobsV3::HistogramResult>]
|
1001
|
+
attr_accessor :simple_histogram_results
|
1002
|
+
|
1003
|
+
def initialize(**args)
|
1004
|
+
update!(**args)
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
# Update properties of this object
|
1008
|
+
def update!(**args)
|
1009
|
+
@compensation_histogram_results = args[:compensation_histogram_results] if args.key?(:compensation_histogram_results)
|
1010
|
+
@custom_attribute_histogram_results = args[:custom_attribute_histogram_results] if args.key?(:custom_attribute_histogram_results)
|
1011
|
+
@simple_histogram_results = args[:simple_histogram_results] if args.key?(:simple_histogram_results)
|
1012
|
+
end
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
# A Job resource represents a job posting (also referred to as a "job listing"
|
1016
|
+
# or "job requisition"). A job belongs to a Company, which is the hiring entity
|
1017
|
+
# responsible for the job.
|
1018
|
+
class Job
|
1019
|
+
include Google::Apis::Core::Hashable
|
1020
|
+
|
1021
|
+
# Optional but strongly recommended for the best service experience. Location(s)
|
1022
|
+
# where the employer is looking to hire for this job posting. Specifying the
|
1023
|
+
# full street address(es) of the hiring location enables better API results,
|
1024
|
+
# especially job searches by commute time. At most 50 locations are allowed for
|
1025
|
+
# best search performance. If a job has more locations, it is suggested to split
|
1026
|
+
# it into multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes 'ReqA-1'
|
1027
|
+
# , 'ReqA-2', etc.) as multiple jobs with the same company_name, language_code
|
1028
|
+
# and requisition_id are not allowed. If the original requisition_id must be
|
1029
|
+
# preserved, a custom field should be used for storage. It is also suggested to
|
1030
|
+
# group the locations that close to each other in the same job for better search
|
1031
|
+
# experience. The maximum number of allowed characters is 500.
|
1032
|
+
# Corresponds to the JSON property `addresses`
|
1033
|
+
# @return [Array<String>]
|
1034
|
+
attr_accessor :addresses
|
1035
|
+
|
1036
|
+
# Application related details of a job posting.
|
1037
|
+
# Corresponds to the JSON property `applicationInfo`
|
1038
|
+
# @return [Google::Apis::JobsV3::ApplicationInfo]
|
1039
|
+
attr_accessor :application_info
|
1040
|
+
|
1041
|
+
# Output only. Display name of the company listing the job.
|
1042
|
+
# Corresponds to the JSON property `companyDisplayName`
|
1043
|
+
# @return [String]
|
1044
|
+
attr_accessor :company_display_name
|
1045
|
+
|
1046
|
+
# Required. The resource name of the company listing the job, such as "projects/
|
1047
|
+
# api-test-project/companies/foo".
|
1048
|
+
# Corresponds to the JSON property `companyName`
|
1049
|
+
# @return [String]
|
1050
|
+
attr_accessor :company_name
|
1051
|
+
|
1052
|
+
# Job compensation details.
|
1053
|
+
# Corresponds to the JSON property `compensationInfo`
|
1054
|
+
# @return [Google::Apis::JobsV3::CompensationInfo]
|
1055
|
+
attr_accessor :compensation_info
|
1056
|
+
|
1057
|
+
# Optional. A map of fields to hold both filterable and non-filterable custom
|
1058
|
+
# job attributes that are not covered by the provided structured fields. The
|
1059
|
+
# keys of the map are strings up to 64 bytes and must match the pattern: a-zA-Z*.
|
1060
|
+
# For example, key0LikeThis or KEY_1_LIKE_THIS. At most 100 filterable and at
|
1061
|
+
# most 100 unfilterable keys are supported. For filterable `string_values`,
|
1062
|
+
# across all keys at most 200 values are allowed, with each string no more than
|
1063
|
+
# 255 characters. For unfilterable `string_values`, the maximum total size of `
|
1064
|
+
# string_values` across all keys is 50KB.
|
1065
|
+
# Corresponds to the JSON property `customAttributes`
|
1066
|
+
# @return [Hash<String,Google::Apis::JobsV3::CustomAttribute>]
|
1067
|
+
attr_accessor :custom_attributes
|
1068
|
+
|
1069
|
+
# Optional. The desired education degrees for the job, such as Bachelors,
|
1070
|
+
# Masters.
|
1071
|
+
# Corresponds to the JSON property `degreeTypes`
|
1072
|
+
# @return [Array<String>]
|
1073
|
+
attr_accessor :degree_types
|
1074
|
+
|
1075
|
+
# Optional. The department or functional area within the company with the open
|
1076
|
+
# position. The maximum number of allowed characters is 255.
|
1077
|
+
# Corresponds to the JSON property `department`
|
1078
|
+
# @return [String]
|
1079
|
+
attr_accessor :department
|
1080
|
+
|
1081
|
+
# Output only. Derived details about the job posting.
|
1082
|
+
# Corresponds to the JSON property `derivedInfo`
|
1083
|
+
# @return [Google::Apis::JobsV3::JobDerivedInfo]
|
1084
|
+
attr_accessor :derived_info
|
1085
|
+
|
1086
|
+
# Required. The description of the job, which typically includes a multi-
|
1087
|
+
# paragraph description of the company and related information. Separate fields
|
1088
|
+
# are provided on the job object for responsibilities, qualifications, and other
|
1089
|
+
# job characteristics. Use of these separate job fields is recommended. This
|
1090
|
+
# field accepts and sanitizes HTML input, and also accepts bold, italic, ordered
|
1091
|
+
# list, and unordered list markup tags. The maximum number of allowed characters
|
1092
|
+
# is 100,000.
|
1093
|
+
# Corresponds to the JSON property `description`
|
1094
|
+
# @return [String]
|
1095
|
+
attr_accessor :description
|
1096
|
+
|
1097
|
+
# Optional. The employment type(s) of a job, for example, full time or part time.
|
1098
|
+
# Corresponds to the JSON property `employmentTypes`
|
1099
|
+
# @return [Array<String>]
|
1100
|
+
attr_accessor :employment_types
|
1101
|
+
|
1102
|
+
# Optional. A description of bonus, commission, and other compensation
|
1103
|
+
# incentives associated with the job not including salary or pay. The maximum
|
1104
|
+
# number of allowed characters is 10,000.
|
1105
|
+
# Corresponds to the JSON property `incentives`
|
1106
|
+
# @return [String]
|
1107
|
+
attr_accessor :incentives
|
1108
|
+
|
1109
|
+
# Optional. The benefits included with the job.
|
1110
|
+
# Corresponds to the JSON property `jobBenefits`
|
1111
|
+
# @return [Array<String>]
|
1112
|
+
attr_accessor :job_benefits
|
1113
|
+
|
1114
|
+
# Optional. The end timestamp of the job. Typically this field is used for
|
1115
|
+
# contracting engagements. Invalid timestamps are ignored.
|
1116
|
+
# Corresponds to the JSON property `jobEndTime`
|
1117
|
+
# @return [String]
|
1118
|
+
attr_accessor :job_end_time
|
1119
|
+
|
1120
|
+
# Optional. The experience level associated with the job, such as "Entry Level".
|
1121
|
+
# Corresponds to the JSON property `jobLevel`
|
1122
|
+
# @return [String]
|
1123
|
+
attr_accessor :job_level
|
1124
|
+
|
1125
|
+
# Optional. The start timestamp of the job in UTC time zone. Typically this
|
1126
|
+
# field is used for contracting engagements. Invalid timestamps are ignored.
|
1127
|
+
# Corresponds to the JSON property `jobStartTime`
|
1128
|
+
# @return [String]
|
1129
|
+
attr_accessor :job_start_time
|
1130
|
+
|
1131
|
+
# Optional. The language of the posting. This field is distinct from any
|
1132
|
+
# requirements for fluency that are associated with the job. Language codes must
|
1133
|
+
# be in BCP-47 format, such as "en-US" or "sr-Latn". For more information, see [
|
1134
|
+
# Tags for Identifying Languages](https://tools.ietf.org/html/bcp47)`: class="
|
1135
|
+
# external" target="_blank" `. If this field is unspecified and Job.description
|
1136
|
+
# is present, detected language code based on Job.description is assigned,
|
1137
|
+
# otherwise defaults to 'en_US'.
|
1138
|
+
# Corresponds to the JSON property `languageCode`
|
1139
|
+
# @return [String]
|
1140
|
+
attr_accessor :language_code
|
1141
|
+
|
1142
|
+
# Required during job update. The resource name for the job. This is generated
|
1143
|
+
# by the service when a job is created. The format is "projects/`project_id`/
|
1144
|
+
# jobs/`job_id`", for example, "projects/api-test-project/jobs/1234". Use of
|
1145
|
+
# this field in job queries and API calls is preferred over the use of
|
1146
|
+
# requisition_id since this value is unique.
|
1147
|
+
# Corresponds to the JSON property `name`
|
1148
|
+
# @return [String]
|
1149
|
+
attr_accessor :name
|
1150
|
+
|
1151
|
+
# Output only. The timestamp when this job posting was created.
|
1152
|
+
# Corresponds to the JSON property `postingCreateTime`
|
1153
|
+
# @return [String]
|
1154
|
+
attr_accessor :posting_create_time
|
1155
|
+
|
1156
|
+
# Optional but strongly recommended for the best service experience. The
|
1157
|
+
# expiration timestamp of the job. After this timestamp, the job is marked as
|
1158
|
+
# expired, and it no longer appears in search results. The expired job can't be
|
1159
|
+
# deleted or listed by the DeleteJob and ListJobs APIs, but it can be retrieved
|
1160
|
+
# with the GetJob API or updated with the UpdateJob API. An expired job can be
|
1161
|
+
# updated and opened again by using a future expiration timestamp. Updating an
|
1162
|
+
# expired job fails if there is another existing open job with same company_name,
|
1163
|
+
# language_code and requisition_id. The expired jobs are retained in our system
|
1164
|
+
# for 90 days. However, the overall expired job count cannot exceed 3 times the
|
1165
|
+
# maximum of open jobs count over the past week, otherwise jobs with earlier
|
1166
|
+
# expire time are cleaned first. Expired jobs are no longer accessible after
|
1167
|
+
# they are cleaned out. Invalid timestamps are ignored, and treated as expire
|
1168
|
+
# time not provided. Timestamp before the instant request is made is considered
|
1169
|
+
# valid, the job will be treated as expired immediately. If this value is not
|
1170
|
+
# provided at the time of job creation or is invalid, the job posting expires
|
1171
|
+
# after 30 days from the job's creation time. For example, if the job was
|
1172
|
+
# created on 2017/01/01 13:00AM UTC with an unspecified expiration date, the job
|
1173
|
+
# expires after 2017/01/31 13:00AM UTC. If this value is not provided on job
|
1174
|
+
# update, it depends on the field masks set by UpdateJobRequest.update_mask. If
|
1175
|
+
# the field masks include expiry_time, or the masks are empty meaning that every
|
1176
|
+
# field is updated, the job posting expires after 30 days from the job's last
|
1177
|
+
# update time. Otherwise the expiration date isn't updated.
|
1178
|
+
# Corresponds to the JSON property `postingExpireTime`
|
1179
|
+
# @return [String]
|
1180
|
+
attr_accessor :posting_expire_time
|
1181
|
+
|
1182
|
+
# Optional. The timestamp this job posting was most recently published. The
|
1183
|
+
# default value is the time the request arrives at the server. Invalid
|
1184
|
+
# timestamps are ignored.
|
1185
|
+
# Corresponds to the JSON property `postingPublishTime`
|
1186
|
+
# @return [String]
|
1187
|
+
attr_accessor :posting_publish_time
|
1188
|
+
|
1189
|
+
# Optional. The job PostingRegion (for example, state, country) throughout which
|
1190
|
+
# the job is available. If this field is set, a LocationFilter in a search query
|
1191
|
+
# within the job region finds this job posting if an exact location match isn't
|
1192
|
+
# specified. If this field is set to PostingRegion.NATION or PostingRegion.
|
1193
|
+
# ADMINISTRATIVE_AREA, setting job Job.addresses to the same location level as
|
1194
|
+
# this field is strongly recommended.
|
1195
|
+
# Corresponds to the JSON property `postingRegion`
|
1196
|
+
# @return [String]
|
1197
|
+
attr_accessor :posting_region
|
1198
|
+
|
1199
|
+
# Output only. The timestamp when this job posting was last updated.
|
1200
|
+
# Corresponds to the JSON property `postingUpdateTime`
|
1201
|
+
# @return [String]
|
1202
|
+
attr_accessor :posting_update_time
|
1203
|
+
|
1204
|
+
# Input only. Options for job processing.
|
1205
|
+
# Corresponds to the JSON property `processingOptions`
|
1206
|
+
# @return [Google::Apis::JobsV3::ProcessingOptions]
|
1207
|
+
attr_accessor :processing_options
|
1208
|
+
|
1209
|
+
# Optional. A promotion value of the job, as determined by the client. The value
|
1210
|
+
# determines the sort order of the jobs returned when searching for jobs using
|
1211
|
+
# the featured jobs search call, with higher promotional values being returned
|
1212
|
+
# first and ties being resolved by relevance sort. Only the jobs with a
|
1213
|
+
# promotionValue >0 are returned in a FEATURED_JOB_SEARCH. Default value is 0,
|
1214
|
+
# and negative values are treated as 0.
|
1215
|
+
# Corresponds to the JSON property `promotionValue`
|
1216
|
+
# @return [Fixnum]
|
1217
|
+
attr_accessor :promotion_value
|
1218
|
+
|
1219
|
+
# Optional. A description of the qualifications required to perform the job. The
|
1220
|
+
# use of this field is recommended as an alternative to using the more general
|
1221
|
+
# description field. This field accepts and sanitizes HTML input, and also
|
1222
|
+
# accepts bold, italic, ordered list, and unordered list markup tags. The
|
1223
|
+
# maximum number of allowed characters is 10,000.
|
1224
|
+
# Corresponds to the JSON property `qualifications`
|
1225
|
+
# @return [String]
|
1226
|
+
attr_accessor :qualifications
|
1227
|
+
|
1228
|
+
# Required. The requisition ID, also referred to as the posting ID, assigned by
|
1229
|
+
# the client to identify a job. This field is intended to be used by clients for
|
1230
|
+
# client identification and tracking of postings. A job is not allowed to be
|
1231
|
+
# created if there is another job with the same [company_name], language_code
|
1232
|
+
# and requisition_id. The maximum number of allowed characters is 255.
|
1233
|
+
# Corresponds to the JSON property `requisitionId`
|
1234
|
+
# @return [String]
|
1235
|
+
attr_accessor :requisition_id
|
1236
|
+
|
1237
|
+
# Optional. A description of job responsibilities. The use of this field is
|
1238
|
+
# recommended as an alternative to using the more general description field.
|
1239
|
+
# This field accepts and sanitizes HTML input, and also accepts bold, italic,
|
1240
|
+
# ordered list, and unordered list markup tags. The maximum number of allowed
|
1241
|
+
# characters is 10,000.
|
1242
|
+
# Corresponds to the JSON property `responsibilities`
|
1243
|
+
# @return [String]
|
1244
|
+
attr_accessor :responsibilities
|
1245
|
+
|
1246
|
+
# Required. The title of the job, such as "Software Engineer" The maximum number
|
1247
|
+
# of allowed characters is 500.
|
1248
|
+
# Corresponds to the JSON property `title`
|
1249
|
+
# @return [String]
|
1250
|
+
attr_accessor :title
|
1251
|
+
|
1252
|
+
# Deprecated. The job is only visible to the owner. The visibility of the job.
|
1253
|
+
# Defaults to Visibility.ACCOUNT_ONLY if not specified.
|
1254
|
+
# Corresponds to the JSON property `visibility`
|
1255
|
+
# @return [String]
|
1256
|
+
attr_accessor :visibility
|
1257
|
+
|
1258
|
+
def initialize(**args)
|
1259
|
+
update!(**args)
|
1260
|
+
end
|
1261
|
+
|
1262
|
+
# Update properties of this object
|
1263
|
+
def update!(**args)
|
1264
|
+
@addresses = args[:addresses] if args.key?(:addresses)
|
1265
|
+
@application_info = args[:application_info] if args.key?(:application_info)
|
1266
|
+
@company_display_name = args[:company_display_name] if args.key?(:company_display_name)
|
1267
|
+
@company_name = args[:company_name] if args.key?(:company_name)
|
1268
|
+
@compensation_info = args[:compensation_info] if args.key?(:compensation_info)
|
1269
|
+
@custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
|
1270
|
+
@degree_types = args[:degree_types] if args.key?(:degree_types)
|
1271
|
+
@department = args[:department] if args.key?(:department)
|
1272
|
+
@derived_info = args[:derived_info] if args.key?(:derived_info)
|
1273
|
+
@description = args[:description] if args.key?(:description)
|
1274
|
+
@employment_types = args[:employment_types] if args.key?(:employment_types)
|
1275
|
+
@incentives = args[:incentives] if args.key?(:incentives)
|
1276
|
+
@job_benefits = args[:job_benefits] if args.key?(:job_benefits)
|
1277
|
+
@job_end_time = args[:job_end_time] if args.key?(:job_end_time)
|
1278
|
+
@job_level = args[:job_level] if args.key?(:job_level)
|
1279
|
+
@job_start_time = args[:job_start_time] if args.key?(:job_start_time)
|
1280
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
1281
|
+
@name = args[:name] if args.key?(:name)
|
1282
|
+
@posting_create_time = args[:posting_create_time] if args.key?(:posting_create_time)
|
1283
|
+
@posting_expire_time = args[:posting_expire_time] if args.key?(:posting_expire_time)
|
1284
|
+
@posting_publish_time = args[:posting_publish_time] if args.key?(:posting_publish_time)
|
1285
|
+
@posting_region = args[:posting_region] if args.key?(:posting_region)
|
1286
|
+
@posting_update_time = args[:posting_update_time] if args.key?(:posting_update_time)
|
1287
|
+
@processing_options = args[:processing_options] if args.key?(:processing_options)
|
1288
|
+
@promotion_value = args[:promotion_value] if args.key?(:promotion_value)
|
1289
|
+
@qualifications = args[:qualifications] if args.key?(:qualifications)
|
1290
|
+
@requisition_id = args[:requisition_id] if args.key?(:requisition_id)
|
1291
|
+
@responsibilities = args[:responsibilities] if args.key?(:responsibilities)
|
1292
|
+
@title = args[:title] if args.key?(:title)
|
1293
|
+
@visibility = args[:visibility] if args.key?(:visibility)
|
1294
|
+
end
|
1295
|
+
end
|
1296
|
+
|
1297
|
+
# Output only. Derived details about the job posting.
|
1298
|
+
class JobDerivedInfo
|
1299
|
+
include Google::Apis::Core::Hashable
|
1300
|
+
|
1301
|
+
# Job categories derived from Job.title and Job.description.
|
1302
|
+
# Corresponds to the JSON property `jobCategories`
|
1303
|
+
# @return [Array<String>]
|
1304
|
+
attr_accessor :job_categories
|
1305
|
+
|
1306
|
+
# Structured locations of the job, resolved from Job.addresses. locations are
|
1307
|
+
# exactly matched to Job.addresses in the same order.
|
1308
|
+
# Corresponds to the JSON property `locations`
|
1309
|
+
# @return [Array<Google::Apis::JobsV3::Location>]
|
1310
|
+
attr_accessor :locations
|
1311
|
+
|
1312
|
+
def initialize(**args)
|
1313
|
+
update!(**args)
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
# Update properties of this object
|
1317
|
+
def update!(**args)
|
1318
|
+
@job_categories = args[:job_categories] if args.key?(:job_categories)
|
1319
|
+
@locations = args[:locations] if args.key?(:locations)
|
1320
|
+
end
|
1321
|
+
end
|
1322
|
+
|
1323
|
+
# An event issued when a job seeker interacts with the application that
|
1324
|
+
# implements Cloud Talent Solution.
|
1325
|
+
class JobEvent
|
1326
|
+
include Google::Apis::Core::Hashable
|
1327
|
+
|
1328
|
+
# Required. The job name(s) associated with this event. For example, if this is
|
1329
|
+
# an impression event, this field contains the identifiers of all jobs shown to
|
1330
|
+
# the job seeker. If this was a view event, this field contains the identifier
|
1331
|
+
# of the viewed job.
|
1332
|
+
# Corresponds to the JSON property `jobs`
|
1333
|
+
# @return [Array<String>]
|
1334
|
+
attr_accessor :jobs
|
1335
|
+
|
1336
|
+
# Required. The type of the event (see JobEventType).
|
1337
|
+
# Corresponds to the JSON property `type`
|
1338
|
+
# @return [String]
|
1339
|
+
attr_accessor :type
|
1340
|
+
|
1341
|
+
def initialize(**args)
|
1342
|
+
update!(**args)
|
1343
|
+
end
|
1344
|
+
|
1345
|
+
# Update properties of this object
|
1346
|
+
def update!(**args)
|
1347
|
+
@jobs = args[:jobs] if args.key?(:jobs)
|
1348
|
+
@type = args[:type] if args.key?(:type)
|
1349
|
+
end
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
# Input only. The query required to perform a search query.
|
1353
|
+
class JobQuery
|
1354
|
+
include Google::Apis::Core::Hashable
|
1355
|
+
|
1356
|
+
# Input only. Parameters needed for commute search.
|
1357
|
+
# Corresponds to the JSON property `commuteFilter`
|
1358
|
+
# @return [Google::Apis::JobsV3::CommuteFilter]
|
1359
|
+
attr_accessor :commute_filter
|
1360
|
+
|
1361
|
+
# Optional. This filter specifies the exact company display name of the jobs to
|
1362
|
+
# search against. If a value isn't specified, jobs within the search results are
|
1363
|
+
# associated with any company. If multiple values are specified, jobs within the
|
1364
|
+
# search results may be associated with any of the specified companies. At most
|
1365
|
+
# 20 company display name filters are allowed.
|
1366
|
+
# Corresponds to the JSON property `companyDisplayNames`
|
1367
|
+
# @return [Array<String>]
|
1368
|
+
attr_accessor :company_display_names
|
1369
|
+
|
1370
|
+
# Optional. This filter specifies the company entities to search against. If a
|
1371
|
+
# value isn't specified, jobs are searched for against all companies. If
|
1372
|
+
# multiple values are specified, jobs are searched against the companies
|
1373
|
+
# specified. The format is "projects/`project_id`/companies/`company_id`", for
|
1374
|
+
# example, "projects/api-test-project/companies/foo". At most 20 company filters
|
1375
|
+
# are allowed.
|
1376
|
+
# Corresponds to the JSON property `companyNames`
|
1377
|
+
# @return [Array<String>]
|
1378
|
+
attr_accessor :company_names
|
1379
|
+
|
1380
|
+
# Input only. Filter on job compensation type and amount.
|
1381
|
+
# Corresponds to the JSON property `compensationFilter`
|
1382
|
+
# @return [Google::Apis::JobsV3::CompensationFilter]
|
1383
|
+
attr_accessor :compensation_filter
|
1384
|
+
|
1385
|
+
# Optional. This filter specifies a structured syntax to match against the Job.
|
1386
|
+
# custom_attributes marked as `filterable`. The syntax for this expression is a
|
1387
|
+
# subset of SQL syntax. Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `
|
1388
|
+
# >=` where the left of the operator is a custom field key and the right of the
|
1389
|
+
# operator is a number or a quoted string. You must escape backslash (\\) and
|
1390
|
+
# quote (\") characters. Supported functions are `LOWER([field_name])` to
|
1391
|
+
# perform a case insensitive match and `EMPTY([field_name])` to filter on the
|
1392
|
+
# existence of a key. Boolean expressions (AND/OR/NOT) are supported up to 3
|
1393
|
+
# levels of nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum
|
1394
|
+
# of 100 comparisons or functions are allowed in the expression. The expression
|
1395
|
+
# must be < 6000 bytes in length. Sample Query: `(LOWER(driving_license)="class \
|
1396
|
+
# "a\"" OR EMPTY(driving_license)) AND driving_years > 10`
|
1397
|
+
# Corresponds to the JSON property `customAttributeFilter`
|
1398
|
+
# @return [String]
|
1399
|
+
attr_accessor :custom_attribute_filter
|
1400
|
+
|
1401
|
+
# Optional. This flag controls the spell-check feature. If false, the service
|
1402
|
+
# attempts to correct a misspelled query, for example, "enginee" is corrected to
|
1403
|
+
# "engineer". Defaults to false: a spell check is performed.
|
1404
|
+
# Corresponds to the JSON property `disableSpellCheck`
|
1405
|
+
# @return [Boolean]
|
1406
|
+
attr_accessor :disable_spell_check
|
1407
|
+
alias_method :disable_spell_check?, :disable_spell_check
|
1408
|
+
|
1409
|
+
# Optional. The employment type filter specifies the employment type of jobs to
|
1410
|
+
# search against, such as EmploymentType.FULL_TIME. If a value is not specified,
|
1411
|
+
# jobs in the search results includes any employment type. If multiple values
|
1412
|
+
# are specified, jobs in the search results include any of the specified
|
1413
|
+
# employment types.
|
1414
|
+
# Corresponds to the JSON property `employmentTypes`
|
1415
|
+
# @return [Array<String>]
|
1416
|
+
attr_accessor :employment_types
|
1417
|
+
|
1418
|
+
# Optional. The category filter specifies the categories of jobs to search
|
1419
|
+
# against. See Category for more information. If a value is not specified, jobs
|
1420
|
+
# from any category are searched against. If multiple values are specified, jobs
|
1421
|
+
# from any of the specified categories are searched against.
|
1422
|
+
# Corresponds to the JSON property `jobCategories`
|
1423
|
+
# @return [Array<String>]
|
1424
|
+
attr_accessor :job_categories
|
1425
|
+
|
1426
|
+
# Optional. This filter specifies the locale of jobs to search against, for
|
1427
|
+
# example, "en-US". If a value isn't specified, the search results can contain
|
1428
|
+
# jobs in any locale. Language codes should be in BCP-47 format, such as "en-US"
|
1429
|
+
# or "sr-Latn". For more information, see [Tags for Identifying Languages](https:
|
1430
|
+
# //tools.ietf.org/html/bcp47). At most 10 language code filters are allowed.
|
1431
|
+
# Corresponds to the JSON property `languageCodes`
|
1432
|
+
# @return [Array<String>]
|
1433
|
+
attr_accessor :language_codes
|
1434
|
+
|
1435
|
+
# Optional. The location filter specifies geo-regions containing the jobs to
|
1436
|
+
# search against. See LocationFilter for more information. If a location value
|
1437
|
+
# isn't specified, jobs fitting the other search criteria are retrieved
|
1438
|
+
# regardless of where they're located. If multiple values are specified, jobs
|
1439
|
+
# are retrieved from any of the specified locations. If different values are
|
1440
|
+
# specified for the LocationFilter.distance_in_miles parameter, the maximum
|
1441
|
+
# provided distance is used for all locations. At most 5 location filters are
|
1442
|
+
# allowed.
|
1443
|
+
# Corresponds to the JSON property `locationFilters`
|
1444
|
+
# @return [Array<Google::Apis::JobsV3::LocationFilter>]
|
1445
|
+
attr_accessor :location_filters
|
1446
|
+
|
1447
|
+
# Message representing a period of time between two timestamps.
|
1448
|
+
# Corresponds to the JSON property `publishTimeRange`
|
1449
|
+
# @return [Google::Apis::JobsV3::TimestampRange]
|
1450
|
+
attr_accessor :publish_time_range
|
1451
|
+
|
1452
|
+
# Optional. The query string that matches against the job title, description,
|
1453
|
+
# and location fields. The maximum number of allowed characters is 255.
|
1454
|
+
# Corresponds to the JSON property `query`
|
1455
|
+
# @return [String]
|
1456
|
+
attr_accessor :query
|
1457
|
+
|
1458
|
+
# The language code of query. For example, "en-US". This field helps to better
|
1459
|
+
# interpret the query. If a value isn't specified, the query language code is
|
1460
|
+
# automatically detected, which may not be accurate. Language code should be in
|
1461
|
+
# BCP-47 format, such as "en-US" or "sr-Latn". For more information, see [Tags
|
1462
|
+
# for Identifying Languages](https://tools.ietf.org/html/bcp47).
|
1463
|
+
# Corresponds to the JSON property `queryLanguageCode`
|
1464
|
+
# @return [String]
|
1465
|
+
attr_accessor :query_language_code
|
1466
|
+
|
1467
|
+
def initialize(**args)
|
1468
|
+
update!(**args)
|
1469
|
+
end
|
1470
|
+
|
1471
|
+
# Update properties of this object
|
1472
|
+
def update!(**args)
|
1473
|
+
@commute_filter = args[:commute_filter] if args.key?(:commute_filter)
|
1474
|
+
@company_display_names = args[:company_display_names] if args.key?(:company_display_names)
|
1475
|
+
@company_names = args[:company_names] if args.key?(:company_names)
|
1476
|
+
@compensation_filter = args[:compensation_filter] if args.key?(:compensation_filter)
|
1477
|
+
@custom_attribute_filter = args[:custom_attribute_filter] if args.key?(:custom_attribute_filter)
|
1478
|
+
@disable_spell_check = args[:disable_spell_check] if args.key?(:disable_spell_check)
|
1479
|
+
@employment_types = args[:employment_types] if args.key?(:employment_types)
|
1480
|
+
@job_categories = args[:job_categories] if args.key?(:job_categories)
|
1481
|
+
@language_codes = args[:language_codes] if args.key?(:language_codes)
|
1482
|
+
@location_filters = args[:location_filters] if args.key?(:location_filters)
|
1483
|
+
@publish_time_range = args[:publish_time_range] if args.key?(:publish_time_range)
|
1484
|
+
@query = args[:query] if args.key?(:query)
|
1485
|
+
@query_language_code = args[:query_language_code] if args.key?(:query_language_code)
|
1486
|
+
end
|
1487
|
+
end
|
1488
|
+
|
1489
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
1490
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
1491
|
+
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
1492
|
+
# within normalized ranges.
|
1493
|
+
class LatLng
|
1494
|
+
include Google::Apis::Core::Hashable
|
1495
|
+
|
1496
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
1497
|
+
# Corresponds to the JSON property `latitude`
|
1498
|
+
# @return [Float]
|
1499
|
+
attr_accessor :latitude
|
1500
|
+
|
1501
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
1502
|
+
# Corresponds to the JSON property `longitude`
|
1503
|
+
# @return [Float]
|
1504
|
+
attr_accessor :longitude
|
1505
|
+
|
1506
|
+
def initialize(**args)
|
1507
|
+
update!(**args)
|
1508
|
+
end
|
1509
|
+
|
1510
|
+
# Update properties of this object
|
1511
|
+
def update!(**args)
|
1512
|
+
@latitude = args[:latitude] if args.key?(:latitude)
|
1513
|
+
@longitude = args[:longitude] if args.key?(:longitude)
|
1514
|
+
end
|
1515
|
+
end
|
1516
|
+
|
1517
|
+
# Output only. The List companies response object.
|
1518
|
+
class ListCompaniesResponse
|
1519
|
+
include Google::Apis::Core::Hashable
|
1520
|
+
|
1521
|
+
# Companies for the current client.
|
1522
|
+
# Corresponds to the JSON property `companies`
|
1523
|
+
# @return [Array<Google::Apis::JobsV3::Company>]
|
1524
|
+
attr_accessor :companies
|
1525
|
+
|
1526
|
+
# Output only. Additional information returned to client, such as debugging
|
1527
|
+
# information.
|
1528
|
+
# Corresponds to the JSON property `metadata`
|
1529
|
+
# @return [Google::Apis::JobsV3::ResponseMetadata]
|
1530
|
+
attr_accessor :metadata
|
1531
|
+
|
1532
|
+
# A token to retrieve the next page of results.
|
1533
|
+
# Corresponds to the JSON property `nextPageToken`
|
1534
|
+
# @return [String]
|
1535
|
+
attr_accessor :next_page_token
|
1536
|
+
|
1537
|
+
def initialize(**args)
|
1538
|
+
update!(**args)
|
1539
|
+
end
|
1540
|
+
|
1541
|
+
# Update properties of this object
|
1542
|
+
def update!(**args)
|
1543
|
+
@companies = args[:companies] if args.key?(:companies)
|
1544
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1545
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1546
|
+
end
|
1547
|
+
end
|
1548
|
+
|
1549
|
+
# Output only. List jobs response.
|
1550
|
+
class ListJobsResponse
|
1551
|
+
include Google::Apis::Core::Hashable
|
1552
|
+
|
1553
|
+
# The Jobs for a given company. The maximum number of items returned is based on
|
1554
|
+
# the limit field provided in the request.
|
1555
|
+
# Corresponds to the JSON property `jobs`
|
1556
|
+
# @return [Array<Google::Apis::JobsV3::Job>]
|
1557
|
+
attr_accessor :jobs
|
1558
|
+
|
1559
|
+
# Output only. Additional information returned to client, such as debugging
|
1560
|
+
# information.
|
1561
|
+
# Corresponds to the JSON property `metadata`
|
1562
|
+
# @return [Google::Apis::JobsV3::ResponseMetadata]
|
1563
|
+
attr_accessor :metadata
|
1564
|
+
|
1565
|
+
# A token to retrieve the next page of results.
|
1566
|
+
# Corresponds to the JSON property `nextPageToken`
|
1567
|
+
# @return [String]
|
1568
|
+
attr_accessor :next_page_token
|
1569
|
+
|
1570
|
+
def initialize(**args)
|
1571
|
+
update!(**args)
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
# Update properties of this object
|
1575
|
+
def update!(**args)
|
1576
|
+
@jobs = args[:jobs] if args.key?(:jobs)
|
1577
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1578
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1579
|
+
end
|
1580
|
+
end
|
1581
|
+
|
1582
|
+
# Output only. A resource that represents a location with full geographic
|
1583
|
+
# information.
|
1584
|
+
class Location
|
1585
|
+
include Google::Apis::Core::Hashable
|
1586
|
+
|
1587
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
1588
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
1589
|
+
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
1590
|
+
# within normalized ranges.
|
1591
|
+
# Corresponds to the JSON property `latLng`
|
1592
|
+
# @return [Google::Apis::JobsV3::LatLng]
|
1593
|
+
attr_accessor :lat_lng
|
1594
|
+
|
1595
|
+
# The type of a location, which corresponds to the address lines field of
|
1596
|
+
# PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of
|
1597
|
+
# LocationType#NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of
|
1598
|
+
# LocationType#LOCALITY.
|
1599
|
+
# Corresponds to the JSON property `locationType`
|
1600
|
+
# @return [String]
|
1601
|
+
attr_accessor :location_type
|
1602
|
+
|
1603
|
+
# Represents a postal address, e.g. for postal delivery or payments addresses.
|
1604
|
+
# Given a postal address, a postal service can deliver items to a premise, P.O.
|
1605
|
+
# Box or similar. It is not intended to model geographical locations (roads,
|
1606
|
+
# towns, mountains). In typical usage an address would be created via user input
|
1607
|
+
# or from importing existing data, depending on the type of process. Advice on
|
1608
|
+
# address input / editing: - Use an i18n-ready address widget such as https://
|
1609
|
+
# github.com/google/libaddressinput) - Users should not be presented with UI
|
1610
|
+
# elements for input or editing of fields outside countries where that field is
|
1611
|
+
# used. For more guidance on how to use this schema, please see: https://support.
|
1612
|
+
# google.com/business/answer/6397478
|
1613
|
+
# Corresponds to the JSON property `postalAddress`
|
1614
|
+
# @return [Google::Apis::JobsV3::PostalAddress]
|
1615
|
+
attr_accessor :postal_address
|
1616
|
+
|
1617
|
+
# Radius in miles of the job location. This value is derived from the location
|
1618
|
+
# bounding box in which a circle with the specified radius centered from LatLng
|
1619
|
+
# covers the area associated with the job location. For example, currently, "
|
1620
|
+
# Mountain View, CA, USA" has a radius of 6.17 miles.
|
1621
|
+
# Corresponds to the JSON property `radiusInMiles`
|
1622
|
+
# @return [Float]
|
1623
|
+
attr_accessor :radius_in_miles
|
1624
|
+
|
1625
|
+
def initialize(**args)
|
1626
|
+
update!(**args)
|
1627
|
+
end
|
1628
|
+
|
1629
|
+
# Update properties of this object
|
1630
|
+
def update!(**args)
|
1631
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
1632
|
+
@location_type = args[:location_type] if args.key?(:location_type)
|
1633
|
+
@postal_address = args[:postal_address] if args.key?(:postal_address)
|
1634
|
+
@radius_in_miles = args[:radius_in_miles] if args.key?(:radius_in_miles)
|
1635
|
+
end
|
1636
|
+
end
|
1637
|
+
|
1638
|
+
# Input only. Geographic region of the search.
|
1639
|
+
class LocationFilter
|
1640
|
+
include Google::Apis::Core::Hashable
|
1641
|
+
|
1642
|
+
# Optional. The address name, such as "Mountain View" or "Bay Area".
|
1643
|
+
# Corresponds to the JSON property `address`
|
1644
|
+
# @return [String]
|
1645
|
+
attr_accessor :address
|
1646
|
+
|
1647
|
+
# Optional. The distance_in_miles is applied when the location being searched
|
1648
|
+
# for is identified as a city or smaller. When the location being searched for
|
1649
|
+
# is a state or larger, this field is ignored.
|
1650
|
+
# Corresponds to the JSON property `distanceInMiles`
|
1651
|
+
# @return [Float]
|
1652
|
+
attr_accessor :distance_in_miles
|
1653
|
+
|
1654
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
1655
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
1656
|
+
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
1657
|
+
# within normalized ranges.
|
1658
|
+
# Corresponds to the JSON property `latLng`
|
1659
|
+
# @return [Google::Apis::JobsV3::LatLng]
|
1660
|
+
attr_accessor :lat_lng
|
1661
|
+
|
1662
|
+
# Optional. CLDR region code of the country/region of the address. This is used
|
1663
|
+
# to address ambiguity of the user-input location, for example, "Liverpool"
|
1664
|
+
# against "Liverpool, NY, US" or "Liverpool, UK". Set this field if all the jobs
|
1665
|
+
# to search against are from a same region, or jobs are world-wide, but the job
|
1666
|
+
# seeker is from a specific region. See http://cldr.unicode.org/ and http://www.
|
1667
|
+
# unicode.org/cldr/charts/30/supplemental/territory_information.html for details.
|
1668
|
+
# Example: "CH" for Switzerland.
|
1669
|
+
# Corresponds to the JSON property `regionCode`
|
1670
|
+
# @return [String]
|
1671
|
+
attr_accessor :region_code
|
1672
|
+
|
1673
|
+
# Optional. Allows the client to return jobs without a set location,
|
1674
|
+
# specifically, telecommuting jobs (telecommuting is considered by the service
|
1675
|
+
# as a special location. Job.posting_region indicates if a job permits
|
1676
|
+
# telecommuting. If this field is set to TelecommutePreference.
|
1677
|
+
# TELECOMMUTE_ALLOWED, telecommuting jobs are searched, and address and lat_lng
|
1678
|
+
# are ignored. If not set or set to TelecommutePreference.TELECOMMUTE_EXCLUDED,
|
1679
|
+
# telecommute job are not searched. This filter can be used by itself to search
|
1680
|
+
# exclusively for telecommuting jobs, or it can be combined with another
|
1681
|
+
# location filter to search for a combination of job locations, such as "
|
1682
|
+
# Mountain View" or "telecommuting" jobs. However, when used in combination with
|
1683
|
+
# other location filters, telecommuting jobs can be treated as less relevant
|
1684
|
+
# than other jobs in the search response.
|
1685
|
+
# Corresponds to the JSON property `telecommutePreference`
|
1686
|
+
# @return [String]
|
1687
|
+
attr_accessor :telecommute_preference
|
1688
|
+
|
1689
|
+
def initialize(**args)
|
1690
|
+
update!(**args)
|
1691
|
+
end
|
1692
|
+
|
1693
|
+
# Update properties of this object
|
1694
|
+
def update!(**args)
|
1695
|
+
@address = args[:address] if args.key?(:address)
|
1696
|
+
@distance_in_miles = args[:distance_in_miles] if args.key?(:distance_in_miles)
|
1697
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
1698
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
1699
|
+
@telecommute_preference = args[:telecommute_preference] if args.key?(:telecommute_preference)
|
1700
|
+
end
|
1701
|
+
end
|
1702
|
+
|
1703
|
+
# Output only. Job entry with metadata inside SearchJobsResponse.
|
1704
|
+
class MatchingJob
|
1705
|
+
include Google::Apis::Core::Hashable
|
1706
|
+
|
1707
|
+
# Output only. Commute details related to this job.
|
1708
|
+
# Corresponds to the JSON property `commuteInfo`
|
1709
|
+
# @return [Google::Apis::JobsV3::CommuteInfo]
|
1710
|
+
attr_accessor :commute_info
|
1711
|
+
|
1712
|
+
# A Job resource represents a job posting (also referred to as a "job listing"
|
1713
|
+
# or "job requisition"). A job belongs to a Company, which is the hiring entity
|
1714
|
+
# responsible for the job.
|
1715
|
+
# Corresponds to the JSON property `job`
|
1716
|
+
# @return [Google::Apis::JobsV3::Job]
|
1717
|
+
attr_accessor :job
|
1718
|
+
|
1719
|
+
# A summary of the job with core information that's displayed on the search
|
1720
|
+
# results listing page.
|
1721
|
+
# Corresponds to the JSON property `jobSummary`
|
1722
|
+
# @return [String]
|
1723
|
+
attr_accessor :job_summary
|
1724
|
+
|
1725
|
+
# Contains snippets of text from the Job.job_title field most closely matching a
|
1726
|
+
# search query's keywords, if available. The matching query keywords are
|
1727
|
+
# enclosed in HTML bold tags.
|
1728
|
+
# Corresponds to the JSON property `jobTitleSnippet`
|
1729
|
+
# @return [String]
|
1730
|
+
attr_accessor :job_title_snippet
|
1731
|
+
|
1732
|
+
# Contains snippets of text from the Job.description and similar fields that
|
1733
|
+
# most closely match a search query's keywords, if available. All HTML tags in
|
1734
|
+
# the original fields are stripped when returned in this field, and matching
|
1735
|
+
# query keywords are enclosed in HTML bold tags.
|
1736
|
+
# Corresponds to the JSON property `searchTextSnippet`
|
1737
|
+
# @return [String]
|
1738
|
+
attr_accessor :search_text_snippet
|
1739
|
+
|
1740
|
+
def initialize(**args)
|
1741
|
+
update!(**args)
|
1742
|
+
end
|
1743
|
+
|
1744
|
+
# Update properties of this object
|
1745
|
+
def update!(**args)
|
1746
|
+
@commute_info = args[:commute_info] if args.key?(:commute_info)
|
1747
|
+
@job = args[:job] if args.key?(:job)
|
1748
|
+
@job_summary = args[:job_summary] if args.key?(:job_summary)
|
1749
|
+
@job_title_snippet = args[:job_title_snippet] if args.key?(:job_title_snippet)
|
1750
|
+
@search_text_snippet = args[:search_text_snippet] if args.key?(:search_text_snippet)
|
1751
|
+
end
|
1752
|
+
end
|
1753
|
+
|
1754
|
+
# Message representing input to a Mendel server for debug forcing. See go/mendel-
|
1755
|
+
# debug-forcing for more details. Next ID: 2
|
1756
|
+
class MendelDebugInput
|
1757
|
+
include Google::Apis::Core::Hashable
|
1758
|
+
|
1759
|
+
# When a request spans multiple servers, a MendelDebugInput may travel with the
|
1760
|
+
# request and take effect in all the servers. This field is a map of namespaces
|
1761
|
+
# to NamespacedMendelDebugInput protos. In a single server, up to two
|
1762
|
+
# NamespacedMendelDebugInput protos are applied: 1. NamespacedMendelDebugInput
|
1763
|
+
# with the global namespace (key == ""). 2. NamespacedMendelDebugInput with the
|
1764
|
+
# server's namespace. When both NamespacedMendelDebugInput protos are present,
|
1765
|
+
# they are merged. See go/mendel-debug-forcing for more details.
|
1766
|
+
# Corresponds to the JSON property `namespacedDebugInput`
|
1767
|
+
# @return [Hash<String,Google::Apis::JobsV3::NamespacedDebugInput>]
|
1768
|
+
attr_accessor :namespaced_debug_input
|
1769
|
+
|
1770
|
+
def initialize(**args)
|
1771
|
+
update!(**args)
|
1772
|
+
end
|
1773
|
+
|
1774
|
+
# Update properties of this object
|
1775
|
+
def update!(**args)
|
1776
|
+
@namespaced_debug_input = args[:namespaced_debug_input] if args.key?(:namespaced_debug_input)
|
1777
|
+
end
|
1778
|
+
end
|
1779
|
+
|
1780
|
+
# Represents an amount of money with its currency type.
|
1781
|
+
class Money
|
1782
|
+
include Google::Apis::Core::Hashable
|
1783
|
+
|
1784
|
+
# The three-letter currency code defined in ISO 4217.
|
1785
|
+
# Corresponds to the JSON property `currencyCode`
|
1786
|
+
# @return [String]
|
1787
|
+
attr_accessor :currency_code
|
1788
|
+
|
1789
|
+
# Number of nano (10^-9) units of the amount. The value must be between -999,999,
|
1790
|
+
# 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
|
1791
|
+
# positive or zero. If `units` is zero, `nanos` can be positive, zero, or
|
1792
|
+
# negative. If `units` is negative, `nanos` must be negative or zero. For
|
1793
|
+
# example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
1794
|
+
# Corresponds to the JSON property `nanos`
|
1795
|
+
# @return [Fixnum]
|
1796
|
+
attr_accessor :nanos
|
1797
|
+
|
1798
|
+
# The whole units of the amount. For example if `currencyCode` is `"USD"`, then
|
1799
|
+
# 1 unit is one US dollar.
|
1800
|
+
# Corresponds to the JSON property `units`
|
1801
|
+
# @return [Fixnum]
|
1802
|
+
attr_accessor :units
|
1803
|
+
|
1804
|
+
def initialize(**args)
|
1805
|
+
update!(**args)
|
1806
|
+
end
|
1807
|
+
|
1808
|
+
# Update properties of this object
|
1809
|
+
def update!(**args)
|
1810
|
+
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
1811
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
1812
|
+
@units = args[:units] if args.key?(:units)
|
1813
|
+
end
|
1814
|
+
end
|
1815
|
+
|
1816
|
+
# Next ID: 15
|
1817
|
+
class NamespacedDebugInput
|
1818
|
+
include Google::Apis::Core::Hashable
|
1819
|
+
|
1820
|
+
# Set of experiment names to be absolutely forced. These experiments will be
|
1821
|
+
# forced without evaluating the conditions.
|
1822
|
+
# Corresponds to the JSON property `absolutelyForcedExpNames`
|
1823
|
+
# @return [Array<String>]
|
1824
|
+
attr_accessor :absolutely_forced_exp_names
|
1825
|
+
|
1826
|
+
# Set of experiment tags to be absolutely forced. The experiments with these
|
1827
|
+
# tags will be forced without evaluating the conditions.
|
1828
|
+
# Corresponds to the JSON property `absolutelyForcedExpTags`
|
1829
|
+
# @return [Array<String>]
|
1830
|
+
attr_accessor :absolutely_forced_exp_tags
|
1831
|
+
|
1832
|
+
# Set of experiment ids to be absolutely forced. These ids will be forced
|
1833
|
+
# without evaluating the conditions.
|
1834
|
+
# Corresponds to the JSON property `absolutelyForcedExps`
|
1835
|
+
# @return [Array<Fixnum>]
|
1836
|
+
attr_accessor :absolutely_forced_exps
|
1837
|
+
|
1838
|
+
# Set of experiment names to be conditionally forced. These experiments will be
|
1839
|
+
# forced only if their conditions and their parent domain's conditions are true.
|
1840
|
+
# Corresponds to the JSON property `conditionallyForcedExpNames`
|
1841
|
+
# @return [Array<String>]
|
1842
|
+
attr_accessor :conditionally_forced_exp_names
|
1843
|
+
|
1844
|
+
# Set of experiment tags to be conditionally forced. The experiments with these
|
1845
|
+
# tags will be forced only if their conditions and their parent domain's
|
1846
|
+
# conditions are true.
|
1847
|
+
# Corresponds to the JSON property `conditionallyForcedExpTags`
|
1848
|
+
# @return [Array<String>]
|
1849
|
+
attr_accessor :conditionally_forced_exp_tags
|
1850
|
+
|
1851
|
+
# Set of experiment ids to be conditionally forced. These ids will be forced
|
1852
|
+
# only if their conditions and their parent domain's conditions are true.
|
1853
|
+
# Corresponds to the JSON property `conditionallyForcedExps`
|
1854
|
+
# @return [Array<Fixnum>]
|
1855
|
+
attr_accessor :conditionally_forced_exps
|
1856
|
+
|
1857
|
+
# If true, disable automatic enrollment selection (at all diversion points).
|
1858
|
+
# Automatic enrollment selection means experiment selection process based on the
|
1859
|
+
# experiment's automatic enrollment condition. This does not disable selection
|
1860
|
+
# of forced experiments.
|
1861
|
+
# Corresponds to the JSON property `disableAutomaticEnrollmentSelection`
|
1862
|
+
# @return [Boolean]
|
1863
|
+
attr_accessor :disable_automatic_enrollment_selection
|
1864
|
+
alias_method :disable_automatic_enrollment_selection?, :disable_automatic_enrollment_selection
|
1865
|
+
|
1866
|
+
# Set of experiment names to be disabled. If an experiment is disabled, it is
|
1867
|
+
# never selected nor forced. If an aggregate experiment is disabled, its
|
1868
|
+
# partitions are disabled together. If an experiment with an enrollment is
|
1869
|
+
# disabled, the enrollment is disabled together. If a name corresponds to a
|
1870
|
+
# domain, the domain itself and all descendant experiments and domains are
|
1871
|
+
# disabled together.
|
1872
|
+
# Corresponds to the JSON property `disableExpNames`
|
1873
|
+
# @return [Array<String>]
|
1874
|
+
attr_accessor :disable_exp_names
|
1875
|
+
|
1876
|
+
# Set of experiment tags to be disabled. All experiments that are tagged with
|
1877
|
+
# one or more of these tags are disabled. If an experiment is disabled, it is
|
1878
|
+
# never selected nor forced. If an aggregate experiment is disabled, its
|
1879
|
+
# partitions are disabled together. If an experiment with an enrollment is
|
1880
|
+
# disabled, the enrollment is disabled together.
|
1881
|
+
# Corresponds to the JSON property `disableExpTags`
|
1882
|
+
# @return [Array<String>]
|
1883
|
+
attr_accessor :disable_exp_tags
|
1884
|
+
|
1885
|
+
# Set of experiment ids to be disabled. If an experiment is disabled, it is
|
1886
|
+
# never selected nor forced. If an aggregate experiment is disabled, its
|
1887
|
+
# partitions are disabled together. If an experiment with an enrollment is
|
1888
|
+
# disabled, the enrollment is disabled together. If an ID corresponds to a
|
1889
|
+
# domain, the domain itself and all descendant experiments and domains are
|
1890
|
+
# disabled together.
|
1891
|
+
# Corresponds to the JSON property `disableExps`
|
1892
|
+
# @return [Array<Fixnum>]
|
1893
|
+
attr_accessor :disable_exps
|
1894
|
+
|
1895
|
+
# If true, disable manual enrollment selection (at all diversion points). Manual
|
1896
|
+
# enrollment selection means experiment selection process based on the request's
|
1897
|
+
# manual enrollment states (a.k.a. opt-in experiments). This does not disable
|
1898
|
+
# selection of forced experiments.
|
1899
|
+
# Corresponds to the JSON property `disableManualEnrollmentSelection`
|
1900
|
+
# @return [Boolean]
|
1901
|
+
attr_accessor :disable_manual_enrollment_selection
|
1902
|
+
alias_method :disable_manual_enrollment_selection?, :disable_manual_enrollment_selection
|
1903
|
+
|
1904
|
+
# If true, disable organic experiment selection (at all diversion points).
|
1905
|
+
# Organic selection means experiment selection process based on traffic
|
1906
|
+
# allocation and diversion condition evaluation. This does not disable selection
|
1907
|
+
# of forced experiments. This is useful in cases when it is not known whether
|
1908
|
+
# experiment selection behavior is responsible for a error or breakage.
|
1909
|
+
# Disabling organic selection may help to isolate the cause of a given problem.
|
1910
|
+
# Corresponds to the JSON property `disableOrganicSelection`
|
1911
|
+
# @return [Boolean]
|
1912
|
+
attr_accessor :disable_organic_selection
|
1913
|
+
alias_method :disable_organic_selection?, :disable_organic_selection
|
1914
|
+
|
1915
|
+
# Flags to force in a particular experiment state. Map from flag name to flag
|
1916
|
+
# value.
|
1917
|
+
# Corresponds to the JSON property `forcedFlags`
|
1918
|
+
# @return [Hash<String,String>]
|
1919
|
+
attr_accessor :forced_flags
|
1920
|
+
|
1921
|
+
# Rollouts to force in a particular experiment state. Map from rollout name to
|
1922
|
+
# rollout value.
|
1923
|
+
# Corresponds to the JSON property `forcedRollouts`
|
1924
|
+
# @return [Hash<String,Boolean>]
|
1925
|
+
attr_accessor :forced_rollouts
|
1926
|
+
|
1927
|
+
def initialize(**args)
|
1928
|
+
update!(**args)
|
1929
|
+
end
|
1930
|
+
|
1931
|
+
# Update properties of this object
|
1932
|
+
def update!(**args)
|
1933
|
+
@absolutely_forced_exp_names = args[:absolutely_forced_exp_names] if args.key?(:absolutely_forced_exp_names)
|
1934
|
+
@absolutely_forced_exp_tags = args[:absolutely_forced_exp_tags] if args.key?(:absolutely_forced_exp_tags)
|
1935
|
+
@absolutely_forced_exps = args[:absolutely_forced_exps] if args.key?(:absolutely_forced_exps)
|
1936
|
+
@conditionally_forced_exp_names = args[:conditionally_forced_exp_names] if args.key?(:conditionally_forced_exp_names)
|
1937
|
+
@conditionally_forced_exp_tags = args[:conditionally_forced_exp_tags] if args.key?(:conditionally_forced_exp_tags)
|
1938
|
+
@conditionally_forced_exps = args[:conditionally_forced_exps] if args.key?(:conditionally_forced_exps)
|
1939
|
+
@disable_automatic_enrollment_selection = args[:disable_automatic_enrollment_selection] if args.key?(:disable_automatic_enrollment_selection)
|
1940
|
+
@disable_exp_names = args[:disable_exp_names] if args.key?(:disable_exp_names)
|
1941
|
+
@disable_exp_tags = args[:disable_exp_tags] if args.key?(:disable_exp_tags)
|
1942
|
+
@disable_exps = args[:disable_exps] if args.key?(:disable_exps)
|
1943
|
+
@disable_manual_enrollment_selection = args[:disable_manual_enrollment_selection] if args.key?(:disable_manual_enrollment_selection)
|
1944
|
+
@disable_organic_selection = args[:disable_organic_selection] if args.key?(:disable_organic_selection)
|
1945
|
+
@forced_flags = args[:forced_flags] if args.key?(:forced_flags)
|
1946
|
+
@forced_rollouts = args[:forced_rollouts] if args.key?(:forced_rollouts)
|
1947
|
+
end
|
1948
|
+
end
|
1949
|
+
|
1950
|
+
# Input only. Use this field to specify bucketing option for the histogram
|
1951
|
+
# search response.
|
1952
|
+
class NumericBucketingOption
|
1953
|
+
include Google::Apis::Core::Hashable
|
1954
|
+
|
1955
|
+
# Required. Two adjacent values form a histogram bucket. Values should be in
|
1956
|
+
# ascending order. For example, if [5, 10, 15] are provided, four buckets are
|
1957
|
+
# created: (-inf, 5), 5, 10), [10, 15), [15, inf). At most 20 [buckets_bound is
|
1958
|
+
# supported.
|
1959
|
+
# Corresponds to the JSON property `bucketBounds`
|
1960
|
+
# @return [Array<Float>]
|
1961
|
+
attr_accessor :bucket_bounds
|
1962
|
+
|
1963
|
+
# Optional. If set to true, the histogram result includes minimum/maximum value
|
1964
|
+
# of the numeric field.
|
1965
|
+
# Corresponds to the JSON property `requiresMinMax`
|
1966
|
+
# @return [Boolean]
|
1967
|
+
attr_accessor :requires_min_max
|
1968
|
+
alias_method :requires_min_max?, :requires_min_max
|
1969
|
+
|
1970
|
+
def initialize(**args)
|
1971
|
+
update!(**args)
|
1972
|
+
end
|
1973
|
+
|
1974
|
+
# Update properties of this object
|
1975
|
+
def update!(**args)
|
1976
|
+
@bucket_bounds = args[:bucket_bounds] if args.key?(:bucket_bounds)
|
1977
|
+
@requires_min_max = args[:requires_min_max] if args.key?(:requires_min_max)
|
1978
|
+
end
|
1979
|
+
end
|
1980
|
+
|
1981
|
+
# Output only. Custom numeric bucketing result.
|
1982
|
+
class NumericBucketingResult
|
1983
|
+
include Google::Apis::Core::Hashable
|
1984
|
+
|
1985
|
+
# Count within each bucket. Its size is the length of NumericBucketingOption.
|
1986
|
+
# bucket_bounds plus 1.
|
1987
|
+
# Corresponds to the JSON property `counts`
|
1988
|
+
# @return [Array<Google::Apis::JobsV3::BucketizedCount>]
|
1989
|
+
attr_accessor :counts
|
1990
|
+
|
1991
|
+
# Stores the maximum value of the numeric field. Is populated only if [
|
1992
|
+
# NumericBucketingOption.requires_min_max] is set to true.
|
1993
|
+
# Corresponds to the JSON property `maxValue`
|
1994
|
+
# @return [Float]
|
1995
|
+
attr_accessor :max_value
|
1996
|
+
|
1997
|
+
# Stores the minimum value of the numeric field. Will be populated only if [
|
1998
|
+
# NumericBucketingOption.requires_min_max] is set to true.
|
1999
|
+
# Corresponds to the JSON property `minValue`
|
2000
|
+
# @return [Float]
|
2001
|
+
attr_accessor :min_value
|
2002
|
+
|
2003
|
+
def initialize(**args)
|
2004
|
+
update!(**args)
|
2005
|
+
end
|
2006
|
+
|
2007
|
+
# Update properties of this object
|
2008
|
+
def update!(**args)
|
2009
|
+
@counts = args[:counts] if args.key?(:counts)
|
2010
|
+
@max_value = args[:max_value] if args.key?(:max_value)
|
2011
|
+
@min_value = args[:min_value] if args.key?(:min_value)
|
2012
|
+
end
|
2013
|
+
end
|
2014
|
+
|
2015
|
+
# Represents a postal address, e.g. for postal delivery or payments addresses.
|
2016
|
+
# Given a postal address, a postal service can deliver items to a premise, P.O.
|
2017
|
+
# Box or similar. It is not intended to model geographical locations (roads,
|
2018
|
+
# towns, mountains). In typical usage an address would be created via user input
|
2019
|
+
# or from importing existing data, depending on the type of process. Advice on
|
2020
|
+
# address input / editing: - Use an i18n-ready address widget such as https://
|
2021
|
+
# github.com/google/libaddressinput) - Users should not be presented with UI
|
2022
|
+
# elements for input or editing of fields outside countries where that field is
|
2023
|
+
# used. For more guidance on how to use this schema, please see: https://support.
|
2024
|
+
# google.com/business/answer/6397478
|
2025
|
+
class PostalAddress
|
2026
|
+
include Google::Apis::Core::Hashable
|
2027
|
+
|
2028
|
+
# Unstructured address lines describing the lower levels of an address. Because
|
2029
|
+
# values in address_lines do not have type information and may sometimes contain
|
2030
|
+
# multiple values in a single field (e.g. "Austin, TX"), it is important that
|
2031
|
+
# the line order is clear. The order of address lines should be "envelope order"
|
2032
|
+
# for the country/region of the address. In places where this can vary (e.g.
|
2033
|
+
# Japan), address_language is used to make it explicit (e.g. "ja" for large-to-
|
2034
|
+
# small ordering and "ja-Latn" or "en" for small-to-large). This way, the most
|
2035
|
+
# specific line of an address can be selected based on the language. The minimum
|
2036
|
+
# permitted structural representation of an address consists of a region_code
|
2037
|
+
# with all remaining information placed in the address_lines. It would be
|
2038
|
+
# possible to format such an address very approximately without geocoding, but
|
2039
|
+
# no semantic reasoning could be made about any of the address components until
|
2040
|
+
# it was at least partially resolved. Creating an address only containing a
|
2041
|
+
# region_code and address_lines, and then geocoding is the recommended way to
|
2042
|
+
# handle completely unstructured addresses (as opposed to guessing which parts
|
2043
|
+
# of the address should be localities or administrative areas).
|
2044
|
+
# Corresponds to the JSON property `addressLines`
|
2045
|
+
# @return [Array<String>]
|
2046
|
+
attr_accessor :address_lines
|
2047
|
+
|
2048
|
+
# Optional. Highest administrative subdivision which is used for postal
|
2049
|
+
# addresses of a country or region. For example, this can be a state, a province,
|
2050
|
+
# an oblast, or a prefecture. Specifically, for Spain this is the province and
|
2051
|
+
# not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many
|
2052
|
+
# countries don't use an administrative area in postal addresses. E.g. in
|
2053
|
+
# Switzerland this should be left unpopulated.
|
2054
|
+
# Corresponds to the JSON property `administrativeArea`
|
2055
|
+
# @return [String]
|
2056
|
+
attr_accessor :administrative_area
|
2057
|
+
|
2058
|
+
# Optional. BCP-47 language code of the contents of this address (if known).
|
2059
|
+
# This is often the UI language of the input form or is expected to match one of
|
2060
|
+
# the languages used in the address' country/region, or their transliterated
|
2061
|
+
# equivalents. This can affect formatting in certain countries, but is not
|
2062
|
+
# critical to the correctness of the data and will never affect any validation
|
2063
|
+
# or other non-formatting related operations. If this value is not known, it
|
2064
|
+
# should be omitted (rather than specifying a possibly incorrect default).
|
2065
|
+
# Examples: "zh-Hant", "ja", "ja-Latn", "en".
|
2066
|
+
# Corresponds to the JSON property `languageCode`
|
2067
|
+
# @return [String]
|
2068
|
+
attr_accessor :language_code
|
2069
|
+
|
2070
|
+
# Optional. Generally refers to the city/town portion of the address. Examples:
|
2071
|
+
# US city, IT comune, UK post town. In regions of the world where localities are
|
2072
|
+
# not well defined or do not fit into this structure well, leave locality empty
|
2073
|
+
# and use address_lines.
|
2074
|
+
# Corresponds to the JSON property `locality`
|
2075
|
+
# @return [String]
|
2076
|
+
attr_accessor :locality
|
2077
|
+
|
2078
|
+
# Optional. The name of the organization at the address.
|
2079
|
+
# Corresponds to the JSON property `organization`
|
2080
|
+
# @return [String]
|
2081
|
+
attr_accessor :organization
|
2082
|
+
|
2083
|
+
# Optional. Postal code of the address. Not all countries use or require postal
|
2084
|
+
# codes to be present, but where they are used, they may trigger additional
|
2085
|
+
# validation with other parts of the address (e.g. state/zip validation in the U.
|
2086
|
+
# S.A.).
|
2087
|
+
# Corresponds to the JSON property `postalCode`
|
2088
|
+
# @return [String]
|
2089
|
+
attr_accessor :postal_code
|
2090
|
+
|
2091
|
+
# Optional. The recipient at the address. This field may, under certain
|
2092
|
+
# circumstances, contain multiline information. For example, it might contain "
|
2093
|
+
# care of" information.
|
2094
|
+
# Corresponds to the JSON property `recipients`
|
2095
|
+
# @return [Array<String>]
|
2096
|
+
attr_accessor :recipients
|
2097
|
+
|
2098
|
+
# Required. CLDR region code of the country/region of the address. This is never
|
2099
|
+
# inferred and it is up to the user to ensure the value is correct. See http://
|
2100
|
+
# cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/
|
2101
|
+
# territory_information.html for details. Example: "CH" for Switzerland.
|
2102
|
+
# Corresponds to the JSON property `regionCode`
|
2103
|
+
# @return [String]
|
2104
|
+
attr_accessor :region_code
|
2105
|
+
|
2106
|
+
# The schema revision of the `PostalAddress`. This must be set to 0, which is
|
2107
|
+
# the latest revision. All new revisions **must** be backward compatible with
|
2108
|
+
# old revisions.
|
2109
|
+
# Corresponds to the JSON property `revision`
|
2110
|
+
# @return [Fixnum]
|
2111
|
+
attr_accessor :revision
|
2112
|
+
|
2113
|
+
# Optional. Additional, country-specific, sorting code. This is not used in most
|
2114
|
+
# regions. Where it is used, the value is either a string like "CEDEX",
|
2115
|
+
# optionally followed by a number (e.g. "CEDEX 7"), or just a number alone,
|
2116
|
+
# representing the "sector code" (Jamaica), "delivery area indicator" (Malawi)
|
2117
|
+
# or "post office indicator" (e.g. Côte d'Ivoire).
|
2118
|
+
# Corresponds to the JSON property `sortingCode`
|
2119
|
+
# @return [String]
|
2120
|
+
attr_accessor :sorting_code
|
2121
|
+
|
2122
|
+
# Optional. Sublocality of the address. For example, this can be neighborhoods,
|
2123
|
+
# boroughs, districts.
|
2124
|
+
# Corresponds to the JSON property `sublocality`
|
2125
|
+
# @return [String]
|
2126
|
+
attr_accessor :sublocality
|
2127
|
+
|
2128
|
+
def initialize(**args)
|
2129
|
+
update!(**args)
|
2130
|
+
end
|
2131
|
+
|
2132
|
+
# Update properties of this object
|
2133
|
+
def update!(**args)
|
2134
|
+
@address_lines = args[:address_lines] if args.key?(:address_lines)
|
2135
|
+
@administrative_area = args[:administrative_area] if args.key?(:administrative_area)
|
2136
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
2137
|
+
@locality = args[:locality] if args.key?(:locality)
|
2138
|
+
@organization = args[:organization] if args.key?(:organization)
|
2139
|
+
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
2140
|
+
@recipients = args[:recipients] if args.key?(:recipients)
|
2141
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
2142
|
+
@revision = args[:revision] if args.key?(:revision)
|
2143
|
+
@sorting_code = args[:sorting_code] if args.key?(:sorting_code)
|
2144
|
+
@sublocality = args[:sublocality] if args.key?(:sublocality)
|
2145
|
+
end
|
2146
|
+
end
|
2147
|
+
|
2148
|
+
# Input only. Options for job processing.
|
2149
|
+
class ProcessingOptions
|
2150
|
+
include Google::Apis::Core::Hashable
|
2151
|
+
|
2152
|
+
# Optional. If set to `true`, the service does not attempt to resolve a more
|
2153
|
+
# precise address for the job.
|
2154
|
+
# Corresponds to the JSON property `disableStreetAddressResolution`
|
2155
|
+
# @return [Boolean]
|
2156
|
+
attr_accessor :disable_street_address_resolution
|
2157
|
+
alias_method :disable_street_address_resolution?, :disable_street_address_resolution
|
2158
|
+
|
2159
|
+
# Optional. Option for job HTML content sanitization. Applied fields are: *
|
2160
|
+
# description * applicationInfo.instruction * incentives * qualifications *
|
2161
|
+
# responsibilities HTML tags in these fields may be stripped if sanitiazation is
|
2162
|
+
# not disabled. Defaults to HtmlSanitization.SIMPLE_FORMATTING_ONLY.
|
2163
|
+
# Corresponds to the JSON property `htmlSanitization`
|
2164
|
+
# @return [String]
|
2165
|
+
attr_accessor :html_sanitization
|
2166
|
+
|
2167
|
+
def initialize(**args)
|
2168
|
+
update!(**args)
|
2169
|
+
end
|
2170
|
+
|
2171
|
+
# Update properties of this object
|
2172
|
+
def update!(**args)
|
2173
|
+
@disable_street_address_resolution = args[:disable_street_address_resolution] if args.key?(:disable_street_address_resolution)
|
2174
|
+
@html_sanitization = args[:html_sanitization] if args.key?(:html_sanitization)
|
2175
|
+
end
|
2176
|
+
end
|
2177
|
+
|
2178
|
+
# Input only. Meta information related to the job searcher or entity conducting
|
2179
|
+
# the job search. This information is used to improve the performance of the
|
2180
|
+
# service.
|
2181
|
+
class RequestMetadata
|
2182
|
+
include Google::Apis::Core::Hashable
|
2183
|
+
|
2184
|
+
# Device information collected from the job seeker, candidate, or other entity
|
2185
|
+
# conducting the job search. Providing this information improves the quality of
|
2186
|
+
# the search results across devices.
|
2187
|
+
# Corresponds to the JSON property `deviceInfo`
|
2188
|
+
# @return [Google::Apis::JobsV3::DeviceInfo]
|
2189
|
+
attr_accessor :device_info
|
2190
|
+
|
2191
|
+
# Required. The client-defined scope or source of the service call, which
|
2192
|
+
# typically is the domain on which the service has been implemented and is
|
2193
|
+
# currently being run. For example, if the service is being run by client *Foo,
|
2194
|
+
# Inc.*, on job board www.foo.com and career site www.bar.com, then this field
|
2195
|
+
# is set to "foo.com" for use on the job board, and "bar.com" for use on the
|
2196
|
+
# career site. If this field isn't available for some reason, send "UNKNOWN".
|
2197
|
+
# Any improvements to the model for a particular tenant site rely on this field
|
2198
|
+
# being set correctly to a domain. The maximum number of allowed characters is
|
2199
|
+
# 255.
|
2200
|
+
# Corresponds to the JSON property `domain`
|
2201
|
+
# @return [String]
|
2202
|
+
attr_accessor :domain
|
2203
|
+
|
2204
|
+
# Required. A unique session identification string. A session is defined as the
|
2205
|
+
# duration of an end user's interaction with the service over a certain period.
|
2206
|
+
# Obfuscate this field for privacy concerns before providing it to the service.
|
2207
|
+
# If this field is not available for some reason, send "UNKNOWN". Note that any
|
2208
|
+
# improvements to the model for a particular tenant site, rely on this field
|
2209
|
+
# being set correctly to some unique session_id. The maximum number of allowed
|
2210
|
+
# characters is 255.
|
2211
|
+
# Corresponds to the JSON property `sessionId`
|
2212
|
+
# @return [String]
|
2213
|
+
attr_accessor :session_id
|
2214
|
+
|
2215
|
+
# Required. A unique user identification string, as determined by the client. To
|
2216
|
+
# have the strongest positive impact on search quality make sure the client-
|
2217
|
+
# level is unique. Obfuscate this field for privacy concerns before providing it
|
2218
|
+
# to the service. If this field is not available for some reason, send "UNKNOWN".
|
2219
|
+
# Note that any improvements to the model for a particular tenant site, rely on
|
2220
|
+
# this field being set correctly to a unique user_id. The maximum number of
|
2221
|
+
# allowed characters is 255.
|
2222
|
+
# Corresponds to the JSON property `userId`
|
2223
|
+
# @return [String]
|
2224
|
+
attr_accessor :user_id
|
2225
|
+
|
2226
|
+
def initialize(**args)
|
2227
|
+
update!(**args)
|
2228
|
+
end
|
2229
|
+
|
2230
|
+
# Update properties of this object
|
2231
|
+
def update!(**args)
|
2232
|
+
@device_info = args[:device_info] if args.key?(:device_info)
|
2233
|
+
@domain = args[:domain] if args.key?(:domain)
|
2234
|
+
@session_id = args[:session_id] if args.key?(:session_id)
|
2235
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
2236
|
+
end
|
2237
|
+
end
|
2238
|
+
|
2239
|
+
# Output only. Additional information returned to client, such as debugging
|
2240
|
+
# information.
|
2241
|
+
class ResponseMetadata
|
2242
|
+
include Google::Apis::Core::Hashable
|
2243
|
+
|
2244
|
+
# A unique id associated with this call. This id is logged for tracking purposes.
|
2245
|
+
# Corresponds to the JSON property `requestId`
|
2246
|
+
# @return [String]
|
2247
|
+
attr_accessor :request_id
|
2248
|
+
|
2249
|
+
def initialize(**args)
|
2250
|
+
update!(**args)
|
2251
|
+
end
|
2252
|
+
|
2253
|
+
# Update properties of this object
|
2254
|
+
def update!(**args)
|
2255
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
2256
|
+
end
|
2257
|
+
end
|
2258
|
+
|
2259
|
+
# Input only. The Request body of the `SearchJobs` call.
|
2260
|
+
class SearchJobsRequest
|
2261
|
+
include Google::Apis::Core::Hashable
|
2262
|
+
|
2263
|
+
# Optional. Controls whether to disable exact keyword match on Job.job_title,
|
2264
|
+
# Job.description, Job.company_display_name, Job.locations, Job.qualifications.
|
2265
|
+
# When disable keyword match is turned off, a keyword match returns jobs that do
|
2266
|
+
# not match given category filters when there are matching keywords. For example,
|
2267
|
+
# the query "program manager," a result is returned even if the job posting has
|
2268
|
+
# the title "software developer," which does not fall into "program manager"
|
2269
|
+
# ontology, but does have "program manager" appearing in its description. For
|
2270
|
+
# queries like "cloud" that does not contain title or location specific ontology,
|
2271
|
+
# jobs with "cloud" keyword matches are returned regardless of this flag's
|
2272
|
+
# value. Please use Company.keyword_searchable_custom_fields or Company.
|
2273
|
+
# keyword_searchable_custom_attributes if company specific globally matched
|
2274
|
+
# custom field/attribute string values is needed. Enabling keyword match
|
2275
|
+
# improves recall of subsequent search requests. Defaults to false.
|
2276
|
+
# Corresponds to the JSON property `disableKeywordMatch`
|
2277
|
+
# @return [Boolean]
|
2278
|
+
attr_accessor :disable_keyword_match
|
2279
|
+
alias_method :disable_keyword_match?, :disable_keyword_match
|
2280
|
+
|
2281
|
+
# Optional. Controls whether highly similar jobs are returned next to each other
|
2282
|
+
# in the search results. Jobs are identified as highly similar based on their
|
2283
|
+
# titles, job categories, and locations. Highly similar results are clustered so
|
2284
|
+
# that only one representative job of the cluster is displayed to the job seeker
|
2285
|
+
# higher up in the results, with the other jobs being displayed lower down in
|
2286
|
+
# the results. Defaults to DiversificationLevel.SIMPLE if no value is specified.
|
2287
|
+
# Corresponds to the JSON property `diversificationLevel`
|
2288
|
+
# @return [String]
|
2289
|
+
attr_accessor :diversification_level
|
2290
|
+
|
2291
|
+
# Optional. Controls whether to broaden the search when it produces sparse
|
2292
|
+
# results. Broadened queries append results to the end of the matching results
|
2293
|
+
# list. Defaults to false.
|
2294
|
+
# Corresponds to the JSON property `enableBroadening`
|
2295
|
+
# @return [Boolean]
|
2296
|
+
attr_accessor :enable_broadening
|
2297
|
+
alias_method :enable_broadening?, :enable_broadening
|
2298
|
+
|
2299
|
+
# Input only. Histogram facets to be specified in SearchJobsRequest.
|
2300
|
+
# Corresponds to the JSON property `histogramFacets`
|
2301
|
+
# @return [Google::Apis::JobsV3::HistogramFacets]
|
2302
|
+
attr_accessor :histogram_facets
|
2303
|
+
|
2304
|
+
# Input only. The query required to perform a search query.
|
2305
|
+
# Corresponds to the JSON property `jobQuery`
|
2306
|
+
# @return [Google::Apis::JobsV3::JobQuery]
|
2307
|
+
attr_accessor :job_query
|
2308
|
+
|
2309
|
+
# Optional. The desired job attributes returned for jobs in the search response.
|
2310
|
+
# Defaults to JobView.SMALL if no value is specified.
|
2311
|
+
# Corresponds to the JSON property `jobView`
|
2312
|
+
# @return [String]
|
2313
|
+
attr_accessor :job_view
|
2314
|
+
|
2315
|
+
# Optional. An integer that specifies the current offset (that is, starting
|
2316
|
+
# result location, amongst the jobs deemed by the API as relevant) in search
|
2317
|
+
# results. This field is only considered if page_token is unset. The maximum
|
2318
|
+
# allowed value is 5000. Otherwise an error is thrown. For example, 0 means to
|
2319
|
+
# return results starting from the first matching job, and 10 means to return
|
2320
|
+
# from the 11th job. This can be used for pagination, (for example, pageSize =
|
2321
|
+
# 10 and offset = 10 means to return from the second page).
|
2322
|
+
# Corresponds to the JSON property `offset`
|
2323
|
+
# @return [Fixnum]
|
2324
|
+
attr_accessor :offset
|
2325
|
+
|
2326
|
+
# Optional. The criteria determining how search results are sorted. Default is "
|
2327
|
+
# relevance desc". Supported options are: * `"relevance desc"`: By relevance
|
2328
|
+
# descending, as determined by the API algorithms. Relevance thresholding of
|
2329
|
+
# query results is only available with this ordering. * `"posting_publish_time
|
2330
|
+
# desc"`: By Job.posting_publish_time descending. * `"posting_update_time desc"`:
|
2331
|
+
# By Job.posting_update_time descending. * `"title"`: By Job.title ascending. *
|
2332
|
+
# `"title desc"`: By Job.title descending. * `"annualized_base_compensation"`:
|
2333
|
+
# By job's CompensationInfo.annualized_base_compensation_range ascending. Jobs
|
2334
|
+
# whose annualized base compensation is unspecified are put at the end of search
|
2335
|
+
# results. * `"annualized_base_compensation desc"`: By job's CompensationInfo.
|
2336
|
+
# annualized_base_compensation_range descending. Jobs whose annualized base
|
2337
|
+
# compensation is unspecified are put at the end of search results. * `"
|
2338
|
+
# annualized_total_compensation"`: By job's CompensationInfo.
|
2339
|
+
# annualized_total_compensation_range ascending. Jobs whose annualized base
|
2340
|
+
# compensation is unspecified are put at the end of search results. * `"
|
2341
|
+
# annualized_total_compensation desc"`: By job's CompensationInfo.
|
2342
|
+
# annualized_total_compensation_range descending. Jobs whose annualized base
|
2343
|
+
# compensation is unspecified are put at the end of search results.
|
2344
|
+
# Corresponds to the JSON property `orderBy`
|
2345
|
+
# @return [String]
|
2346
|
+
attr_accessor :order_by
|
2347
|
+
|
2348
|
+
# Optional. A limit on the number of jobs returned in the search results.
|
2349
|
+
# Increasing this value above the default value of 10 can increase search
|
2350
|
+
# response time. The value can be between 1 and 100.
|
2351
|
+
# Corresponds to the JSON property `pageSize`
|
2352
|
+
# @return [Fixnum]
|
2353
|
+
attr_accessor :page_size
|
2354
|
+
|
2355
|
+
# Optional. The token specifying the current offset within search results. See
|
2356
|
+
# SearchJobsResponse.next_page_token for an explanation of how to obtain the
|
2357
|
+
# next set of query results.
|
2358
|
+
# Corresponds to the JSON property `pageToken`
|
2359
|
+
# @return [String]
|
2360
|
+
attr_accessor :page_token
|
2361
|
+
|
2362
|
+
# Input only. Meta information related to the job searcher or entity conducting
|
2363
|
+
# the job search. This information is used to improve the performance of the
|
2364
|
+
# service.
|
2365
|
+
# Corresponds to the JSON property `requestMetadata`
|
2366
|
+
# @return [Google::Apis::JobsV3::RequestMetadata]
|
2367
|
+
attr_accessor :request_metadata
|
2368
|
+
|
2369
|
+
# This field is deprecated.
|
2370
|
+
# Corresponds to the JSON property `requirePreciseResultSize`
|
2371
|
+
# @return [Boolean]
|
2372
|
+
attr_accessor :require_precise_result_size
|
2373
|
+
alias_method :require_precise_result_size?, :require_precise_result_size
|
2374
|
+
|
2375
|
+
# Optional. Mode of a search. Defaults to SearchMode.JOB_SEARCH.
|
2376
|
+
# Corresponds to the JSON property `searchMode`
|
2377
|
+
# @return [String]
|
2378
|
+
attr_accessor :search_mode
|
2379
|
+
|
2380
|
+
def initialize(**args)
|
2381
|
+
update!(**args)
|
2382
|
+
end
|
2383
|
+
|
2384
|
+
# Update properties of this object
|
2385
|
+
def update!(**args)
|
2386
|
+
@disable_keyword_match = args[:disable_keyword_match] if args.key?(:disable_keyword_match)
|
2387
|
+
@diversification_level = args[:diversification_level] if args.key?(:diversification_level)
|
2388
|
+
@enable_broadening = args[:enable_broadening] if args.key?(:enable_broadening)
|
2389
|
+
@histogram_facets = args[:histogram_facets] if args.key?(:histogram_facets)
|
2390
|
+
@job_query = args[:job_query] if args.key?(:job_query)
|
2391
|
+
@job_view = args[:job_view] if args.key?(:job_view)
|
2392
|
+
@offset = args[:offset] if args.key?(:offset)
|
2393
|
+
@order_by = args[:order_by] if args.key?(:order_by)
|
2394
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
2395
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
2396
|
+
@request_metadata = args[:request_metadata] if args.key?(:request_metadata)
|
2397
|
+
@require_precise_result_size = args[:require_precise_result_size] if args.key?(:require_precise_result_size)
|
2398
|
+
@search_mode = args[:search_mode] if args.key?(:search_mode)
|
2399
|
+
end
|
2400
|
+
end
|
2401
|
+
|
2402
|
+
# Output only. Response for SearchJob method.
|
2403
|
+
class SearchJobsResponse
|
2404
|
+
include Google::Apis::Core::Hashable
|
2405
|
+
|
2406
|
+
# If query broadening is enabled, we may append additional results from the
|
2407
|
+
# broadened query. This number indicates how many of the jobs returned in the
|
2408
|
+
# jobs field are from the broadened query. These results are always at the end
|
2409
|
+
# of the jobs list. In particular, a value of 0, or if the field isn't set, all
|
2410
|
+
# the jobs in the jobs list are from the original (without broadening) query. If
|
2411
|
+
# this field is non-zero, subsequent requests with offset after this result set
|
2412
|
+
# should contain all broadened results.
|
2413
|
+
# Corresponds to the JSON property `broadenedQueryJobsCount`
|
2414
|
+
# @return [Fixnum]
|
2415
|
+
attr_accessor :broadened_query_jobs_count
|
2416
|
+
|
2417
|
+
# An estimation of the number of jobs that match the specified query. This
|
2418
|
+
# number is not guaranteed to be accurate. For accurate results, see
|
2419
|
+
# SearchJobsResponse.total_size.
|
2420
|
+
# Corresponds to the JSON property `estimatedTotalSize`
|
2421
|
+
# @return [Fixnum]
|
2422
|
+
attr_accessor :estimated_total_size
|
2423
|
+
|
2424
|
+
# Output only. Histogram results that match HistogramFacets specified in
|
2425
|
+
# SearchJobsRequest.
|
2426
|
+
# Corresponds to the JSON property `histogramResults`
|
2427
|
+
# @return [Google::Apis::JobsV3::HistogramResults]
|
2428
|
+
attr_accessor :histogram_results
|
2429
|
+
|
2430
|
+
# The location filters that the service applied to the specified query. If any
|
2431
|
+
# filters are lat-lng based, the JobLocation.location_type is JobLocation.
|
2432
|
+
# LocationType#LOCATION_TYPE_UNSPECIFIED.
|
2433
|
+
# Corresponds to the JSON property `locationFilters`
|
2434
|
+
# @return [Array<Google::Apis::JobsV3::Location>]
|
2435
|
+
attr_accessor :location_filters
|
2436
|
+
|
2437
|
+
# The Job entities that match the specified SearchJobsRequest.
|
2438
|
+
# Corresponds to the JSON property `matchingJobs`
|
2439
|
+
# @return [Array<Google::Apis::JobsV3::MatchingJob>]
|
2440
|
+
attr_accessor :matching_jobs
|
2441
|
+
|
2442
|
+
# Output only. Additional information returned to client, such as debugging
|
2443
|
+
# information.
|
2444
|
+
# Corresponds to the JSON property `metadata`
|
2445
|
+
# @return [Google::Apis::JobsV3::ResponseMetadata]
|
2446
|
+
attr_accessor :metadata
|
2447
|
+
|
2448
|
+
# The token that specifies the starting position of the next page of results.
|
2449
|
+
# This field is empty if there are no more results.
|
2450
|
+
# Corresponds to the JSON property `nextPageToken`
|
2451
|
+
# @return [String]
|
2452
|
+
attr_accessor :next_page_token
|
2453
|
+
|
2454
|
+
# Output only. Spell check result.
|
2455
|
+
# Corresponds to the JSON property `spellCorrection`
|
2456
|
+
# @return [Google::Apis::JobsV3::SpellingCorrection]
|
2457
|
+
attr_accessor :spell_correction
|
2458
|
+
|
2459
|
+
# The precise result count with limit 100,000.
|
2460
|
+
# Corresponds to the JSON property `totalSize`
|
2461
|
+
# @return [Fixnum]
|
2462
|
+
attr_accessor :total_size
|
2463
|
+
|
2464
|
+
def initialize(**args)
|
2465
|
+
update!(**args)
|
2466
|
+
end
|
2467
|
+
|
2468
|
+
# Update properties of this object
|
2469
|
+
def update!(**args)
|
2470
|
+
@broadened_query_jobs_count = args[:broadened_query_jobs_count] if args.key?(:broadened_query_jobs_count)
|
2471
|
+
@estimated_total_size = args[:estimated_total_size] if args.key?(:estimated_total_size)
|
2472
|
+
@histogram_results = args[:histogram_results] if args.key?(:histogram_results)
|
2473
|
+
@location_filters = args[:location_filters] if args.key?(:location_filters)
|
2474
|
+
@matching_jobs = args[:matching_jobs] if args.key?(:matching_jobs)
|
2475
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
2476
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2477
|
+
@spell_correction = args[:spell_correction] if args.key?(:spell_correction)
|
2478
|
+
@total_size = args[:total_size] if args.key?(:total_size)
|
2479
|
+
end
|
2480
|
+
end
|
2481
|
+
|
2482
|
+
# Output only. Spell check result.
|
2483
|
+
class SpellingCorrection
|
2484
|
+
include Google::Apis::Core::Hashable
|
2485
|
+
|
2486
|
+
# Indicates if the query was corrected by the spell checker.
|
2487
|
+
# Corresponds to the JSON property `corrected`
|
2488
|
+
# @return [Boolean]
|
2489
|
+
attr_accessor :corrected
|
2490
|
+
alias_method :corrected?, :corrected
|
2491
|
+
|
2492
|
+
# Correction output consisting of the corrected keyword string.
|
2493
|
+
# Corresponds to the JSON property `correctedText`
|
2494
|
+
# @return [String]
|
2495
|
+
attr_accessor :corrected_text
|
2496
|
+
|
2497
|
+
def initialize(**args)
|
2498
|
+
update!(**args)
|
2499
|
+
end
|
2500
|
+
|
2501
|
+
# Update properties of this object
|
2502
|
+
def update!(**args)
|
2503
|
+
@corrected = args[:corrected] if args.key?(:corrected)
|
2504
|
+
@corrected_text = args[:corrected_text] if args.key?(:corrected_text)
|
2505
|
+
end
|
2506
|
+
end
|
2507
|
+
|
2508
|
+
# Represents a time of day. The date and time zone are either not significant or
|
2509
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
2510
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
2511
|
+
class TimeOfDay
|
2512
|
+
include Google::Apis::Core::Hashable
|
2513
|
+
|
2514
|
+
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to
|
2515
|
+
# allow the value "24:00:00" for scenarios like business closing time.
|
2516
|
+
# Corresponds to the JSON property `hours`
|
2517
|
+
# @return [Fixnum]
|
2518
|
+
attr_accessor :hours
|
2519
|
+
|
2520
|
+
# Minutes of hour of day. Must be from 0 to 59.
|
2521
|
+
# Corresponds to the JSON property `minutes`
|
2522
|
+
# @return [Fixnum]
|
2523
|
+
attr_accessor :minutes
|
2524
|
+
|
2525
|
+
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
2526
|
+
# Corresponds to the JSON property `nanos`
|
2527
|
+
# @return [Fixnum]
|
2528
|
+
attr_accessor :nanos
|
2529
|
+
|
2530
|
+
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
2531
|
+
# allow the value 60 if it allows leap-seconds.
|
2532
|
+
# Corresponds to the JSON property `seconds`
|
2533
|
+
# @return [Fixnum]
|
2534
|
+
attr_accessor :seconds
|
2535
|
+
|
2536
|
+
def initialize(**args)
|
2537
|
+
update!(**args)
|
2538
|
+
end
|
2539
|
+
|
2540
|
+
# Update properties of this object
|
2541
|
+
def update!(**args)
|
2542
|
+
@hours = args[:hours] if args.key?(:hours)
|
2543
|
+
@minutes = args[:minutes] if args.key?(:minutes)
|
2544
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
2545
|
+
@seconds = args[:seconds] if args.key?(:seconds)
|
2546
|
+
end
|
2547
|
+
end
|
2548
|
+
|
2549
|
+
# Message representing a period of time between two timestamps.
|
2550
|
+
class TimestampRange
|
2551
|
+
include Google::Apis::Core::Hashable
|
2552
|
+
|
2553
|
+
# End of the period.
|
2554
|
+
# Corresponds to the JSON property `endTime`
|
2555
|
+
# @return [String]
|
2556
|
+
attr_accessor :end_time
|
2557
|
+
|
2558
|
+
# Begin of the period.
|
2559
|
+
# Corresponds to the JSON property `startTime`
|
2560
|
+
# @return [String]
|
2561
|
+
attr_accessor :start_time
|
2562
|
+
|
2563
|
+
def initialize(**args)
|
2564
|
+
update!(**args)
|
2565
|
+
end
|
2566
|
+
|
2567
|
+
# Update properties of this object
|
2568
|
+
def update!(**args)
|
2569
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
2570
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
2571
|
+
end
|
2572
|
+
end
|
2573
|
+
|
2574
|
+
# Input only. Request for updating a specified company.
|
2575
|
+
class UpdateCompanyRequest
|
2576
|
+
include Google::Apis::Core::Hashable
|
2577
|
+
|
2578
|
+
# A Company resource represents a company in the service. A company is the
|
2579
|
+
# entity that owns job postings, that is, the hiring entity responsible for
|
2580
|
+
# employing applicants for the job position.
|
2581
|
+
# Corresponds to the JSON property `company`
|
2582
|
+
# @return [Google::Apis::JobsV3::Company]
|
2583
|
+
attr_accessor :company
|
2584
|
+
|
2585
|
+
# Optional but strongly recommended for the best service experience. If
|
2586
|
+
# update_mask is provided, only the specified fields in company are updated.
|
2587
|
+
# Otherwise all the fields are updated. A field mask to specify the company
|
2588
|
+
# fields to be updated. Only top level fields of Company are supported.
|
2589
|
+
# Corresponds to the JSON property `updateMask`
|
2590
|
+
# @return [String]
|
2591
|
+
attr_accessor :update_mask
|
2592
|
+
|
2593
|
+
def initialize(**args)
|
2594
|
+
update!(**args)
|
2595
|
+
end
|
2596
|
+
|
2597
|
+
# Update properties of this object
|
2598
|
+
def update!(**args)
|
2599
|
+
@company = args[:company] if args.key?(:company)
|
2600
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
2601
|
+
end
|
2602
|
+
end
|
2603
|
+
|
2604
|
+
# Input only. Update job request.
|
2605
|
+
class UpdateJobRequest
|
2606
|
+
include Google::Apis::Core::Hashable
|
2607
|
+
|
2608
|
+
# A Job resource represents a job posting (also referred to as a "job listing"
|
2609
|
+
# or "job requisition"). A job belongs to a Company, which is the hiring entity
|
2610
|
+
# responsible for the job.
|
2611
|
+
# Corresponds to the JSON property `job`
|
2612
|
+
# @return [Google::Apis::JobsV3::Job]
|
2613
|
+
attr_accessor :job
|
2614
|
+
|
2615
|
+
# Optional but strongly recommended to be provided for the best service
|
2616
|
+
# experience. If update_mask is provided, only the specified fields in job are
|
2617
|
+
# updated. Otherwise all the fields are updated. A field mask to restrict the
|
2618
|
+
# fields that are updated. Only top level fields of Job are supported.
|
2619
|
+
# Corresponds to the JSON property `updateMask`
|
2620
|
+
# @return [String]
|
2621
|
+
attr_accessor :update_mask
|
2622
|
+
|
2623
|
+
def initialize(**args)
|
2624
|
+
update!(**args)
|
2625
|
+
end
|
2626
|
+
|
2627
|
+
# Update properties of this object
|
2628
|
+
def update!(**args)
|
2629
|
+
@job = args[:job] if args.key?(:job)
|
2630
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
2631
|
+
end
|
2632
|
+
end
|
2633
|
+
end
|
2634
|
+
end
|
2635
|
+
end
|