google-apis-jobs_v3p1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3d839ba244ae3fdbb23ef167970a34a4688673a1945543804bc442117695ae55
4
+ data.tar.gz: acee5a2a9bc7009ea240fab15c6fb1a5ee40367f973571edc402e4a2668dc7b7
5
+ SHA512:
6
+ metadata.gz: 648752a9ac4a31f409348761f41c2afaaab149a8d1ea09c8b4f5ac17baaf65b04fa133a80c60a30ecb40f87dd7bbcf5e711a93a26a67da5e68b63819fa6cdbca
7
+ data.tar.gz: 77c3ca3f8427e2c66c72967beec19ba45de74174c9fa92aec1b680b2500667601f7f03853a8828f9be84452e7bdc6707413e6c08208124d18cd9685bcf27d828
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-jobs_v3p1beta1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/jobs_v3p1beta1/*.rb
9
+ lib/google/apis/jobs_v3p1beta1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-jobs_v3p1beta1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201124
7
+
@@ -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.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V3p1beta1 of the Cloud Talent Solution API
2
+
3
+ This is a simple client library for version V3p1beta1 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_v3p1beta1', '~> 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_v3p1beta1
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_v3p1beta1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::JobsV3p1beta1::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::JobsV3p1beta1::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_v3p1beta1`, 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_v3p1beta1"
@@ -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_v3p1beta1/service.rb'
16
+ require 'google/apis/jobs_v3p1beta1/classes.rb'
17
+ require 'google/apis/jobs_v3p1beta1/representations.rb'
18
+ require 'google/apis/jobs_v3p1beta1/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 JobsV3p1beta1
29
+ # Version of the Cloud Talent Solution API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V3p1beta1'
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,2919 @@
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 JobsV3p1beta1
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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::CompensationRange]
586
+ attr_accessor :annualized_base_compensation_range
587
+
588
+ # Compensation range.
589
+ # Corresponds to the JSON property `annualizedTotalCompensationRange`
590
+ # @return [Google::Apis::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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::JobsV3p1beta1::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
+ # Input only. Custom ranking information for SearchJobsRequest.
873
+ class CustomRankingInfo
874
+ include Google::Apis::Core::Hashable
875
+
876
+ # Required. Controls over how important the score of CustomRankingInfo.
877
+ # ranking_expression gets applied to job's final ranking position. An error is
878
+ # thrown if not specified.
879
+ # Corresponds to the JSON property `importanceLevel`
880
+ # @return [String]
881
+ attr_accessor :importance_level
882
+
883
+ # Required. Controls over how job documents get ranked on top of existing
884
+ # relevance score (determined by API algorithm). A combination of the ranking
885
+ # expression and relevance score is used to determine job's final ranking
886
+ # position. The syntax for this expression is a subset of Google SQL syntax.
887
+ # Supported operators are: +, -, *, /, where the left and right side of the
888
+ # operator is either a numeric Job.custom_attributes key, integer/double value
889
+ # or an expression that can be evaluated to a number. Parenthesis are supported
890
+ # to adjust calculation precedence. The expression must be < 100 characters in
891
+ # length. The expression is considered invalid for a job if the expression
892
+ # references custom attributes that are not populated on the job or if the
893
+ # expression results in a divide by zero. If an expression is invalid for a job,
894
+ # that job is demoted to the end of the results. Sample ranking expression (year
895
+ # + 25) * 0.25 - (freshness / 0.5)
896
+ # Corresponds to the JSON property `rankingExpression`
897
+ # @return [String]
898
+ attr_accessor :ranking_expression
899
+
900
+ def initialize(**args)
901
+ update!(**args)
902
+ end
903
+
904
+ # Update properties of this object
905
+ def update!(**args)
906
+ @importance_level = args[:importance_level] if args.key?(:importance_level)
907
+ @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
908
+ end
909
+ end
910
+
911
+ # Device information collected from the job seeker, candidate, or other entity
912
+ # conducting the job search. Providing this information improves the quality of
913
+ # the search results across devices.
914
+ class DeviceInfo
915
+ include Google::Apis::Core::Hashable
916
+
917
+ # Optional. Type of the device.
918
+ # Corresponds to the JSON property `deviceType`
919
+ # @return [String]
920
+ attr_accessor :device_type
921
+
922
+ # Optional. A device-specific ID. The ID must be a unique identifier that
923
+ # distinguishes the device from other devices.
924
+ # Corresponds to the JSON property `id`
925
+ # @return [String]
926
+ attr_accessor :id
927
+
928
+ def initialize(**args)
929
+ update!(**args)
930
+ end
931
+
932
+ # Update properties of this object
933
+ def update!(**args)
934
+ @device_type = args[:device_type] if args.key?(:device_type)
935
+ @id = args[:id] if args.key?(:id)
936
+ end
937
+ end
938
+
939
+ # A generic empty message that you can re-use to avoid defining duplicated empty
940
+ # messages in your APIs. A typical example is to use it as the request or the
941
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
942
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
943
+ # `Empty` is empty JSON object ````.
944
+ class Empty
945
+ include Google::Apis::Core::Hashable
946
+
947
+ def initialize(**args)
948
+ update!(**args)
949
+ end
950
+
951
+ # Update properties of this object
952
+ def update!(**args)
953
+ end
954
+ end
955
+
956
+ # Input only. Histogram facets to be specified in SearchJobsRequest.
957
+ class HistogramFacets
958
+ include Google::Apis::Core::Hashable
959
+
960
+ # Optional. Specifies compensation field-based histogram requests. Duplicate
961
+ # values of CompensationHistogramRequest.type are not allowed.
962
+ # Corresponds to the JSON property `compensationHistogramFacets`
963
+ # @return [Array<Google::Apis::JobsV3p1beta1::CompensationHistogramRequest>]
964
+ attr_accessor :compensation_histogram_facets
965
+
966
+ # Optional. Specifies the custom attributes histogram requests. Duplicate values
967
+ # of CustomAttributeHistogramRequest.key are not allowed.
968
+ # Corresponds to the JSON property `customAttributeHistogramFacets`
969
+ # @return [Array<Google::Apis::JobsV3p1beta1::CustomAttributeHistogramRequest>]
970
+ attr_accessor :custom_attribute_histogram_facets
971
+
972
+ # Optional. Specifies the simple type of histogram facets, for example, `
973
+ # COMPANY_SIZE`, `EMPLOYMENT_TYPE` etc.
974
+ # Corresponds to the JSON property `simpleHistogramFacets`
975
+ # @return [Array<String>]
976
+ attr_accessor :simple_histogram_facets
977
+
978
+ def initialize(**args)
979
+ update!(**args)
980
+ end
981
+
982
+ # Update properties of this object
983
+ def update!(**args)
984
+ @compensation_histogram_facets = args[:compensation_histogram_facets] if args.key?(:compensation_histogram_facets)
985
+ @custom_attribute_histogram_facets = args[:custom_attribute_histogram_facets] if args.key?(:custom_attribute_histogram_facets)
986
+ @simple_histogram_facets = args[:simple_histogram_facets] if args.key?(:simple_histogram_facets)
987
+ end
988
+ end
989
+
990
+ # Input Only. The histogram request.
991
+ class HistogramQuery
992
+ include Google::Apis::Core::Hashable
993
+
994
+ # An expression specifies a histogram request against matching resources (for
995
+ # example, jobs) for searches. Expression syntax is a aggregation function call
996
+ # with histogram facets and other options. Available aggregation function calls
997
+ # are: * `count(string_histogram_facet)`: Count the number of matching entity,
998
+ # for each distinct attribute value. * `count(numeric_histogram_facet, list of
999
+ # buckets)`: Count the number of matching entity within each bucket. Data types:
1000
+ # * Histogram facet: facet names with format a-zA-Z+. * String: string like "any
1001
+ # string with backslash escape for quote(\")." * Number: whole number and
1002
+ # floating point number like 10, -1 and -0.01. * List: list of elements with
1003
+ # comma(,) separator surrounded by square brackets. For example, [1, 2, 3] and ["
1004
+ # one", "two", "three"]. Built-in constants: * MIN (minimum number similar to
1005
+ # java Double.MIN_VALUE) * MAX (maximum number similar to java Double.MAX_VALUE)
1006
+ # Built-in functions: * bucket(start, end[, label]): bucket built-in function
1007
+ # creates a bucket with range of start, end). Note that the end is exclusive.
1008
+ # For example, bucket(1, MAX, "positive number") or bucket(1, 10). Job histogram
1009
+ # facets: * company_id: histogram by [Job.distributor_company_id. *
1010
+ # company_display_name: histogram by Job.company_display_name. * employment_type:
1011
+ # histogram by Job.employment_types. For example, "FULL_TIME", "PART_TIME". *
1012
+ # company_size: histogram by CompanySize, for example, "SMALL", "MEDIUM", "BIG".
1013
+ # * publish_time_in_month: histogram by the Job.publish_time in months. Must
1014
+ # specify list of numeric buckets in spec. * publish_time_in_year: histogram by
1015
+ # the Job.publish_time in years. Must specify list of numeric buckets in spec. *
1016
+ # degree_type: histogram by the Job.degree_type. For example, "Bachelors", "
1017
+ # Masters". * job_level: histogram by the Job.job_level. For example, "Entry
1018
+ # Level". * country: histogram by the country code of jobs. For example, "US", "
1019
+ # FR". * admin1: histogram by the admin1 code of jobs, which is a global
1020
+ # placeholder referring to the state, province, or the particular term a country
1021
+ # uses to define the geographic structure below the country level. For example, "
1022
+ # CA", "IL". * city: histogram by a combination of the "city name, admin1 code".
1023
+ # For example, "Mountain View, CA", "New York, NY". * admin1_country: histogram
1024
+ # by a combination of the "admin1 code, country". For example, "CA, US", "IL, US"
1025
+ # . * city_coordinate: histogram by the city center's GPS coordinates (latitude
1026
+ # and longitude). For example, 37.4038522,-122.0987765. Since the coordinates of
1027
+ # a city center can change, customers may need to refresh them periodically. *
1028
+ # locale: histogram by the Job.language_code. For example, "en-US", "fr-FR". *
1029
+ # language: histogram by the language subtag of the Job.language_code. For
1030
+ # example, "en", "fr". * category: histogram by the JobCategory. For example, "
1031
+ # COMPUTER_AND_IT", "HEALTHCARE". * base_compensation_unit: histogram by the
1032
+ # CompensationUnit of base salary. For example, "WEEKLY", "MONTHLY". *
1033
+ # base_compensation: histogram by the base salary. Must specify list of numeric
1034
+ # buckets to group results by. * annualized_base_compensation: histogram by the
1035
+ # base annualized salary. Must specify list of numeric buckets to group results
1036
+ # by. * annualized_total_compensation: histogram by the total annualized salary.
1037
+ # Must specify list of numeric buckets to group results by. *
1038
+ # string_custom_attribute: histogram by string Job.custom_attributes. Values can
1039
+ # be accessed via square bracket notations like string_custom_attribute["key1"].
1040
+ # * numeric_custom_attribute: histogram by numeric Job.custom_attributes. Values
1041
+ # can be accessed via square bracket notations like numeric_custom_attribute["
1042
+ # key1"]. Must specify list of numeric buckets to group results by. Example
1043
+ # expressions: * count(admin1) * count(base_compensation, [bucket(1000, 10000),
1044
+ # bucket(10000, 100000), bucket(100000, MAX)]) * count(string_custom_attribute["
1045
+ # some-string-custom-attribute"]) * count(numeric_custom_attribute["some-numeric-
1046
+ # custom-attribute"], [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"]
1047
+ # )
1048
+ # Corresponds to the JSON property `histogramQuery`
1049
+ # @return [String]
1050
+ attr_accessor :histogram_query
1051
+
1052
+ def initialize(**args)
1053
+ update!(**args)
1054
+ end
1055
+
1056
+ # Update properties of this object
1057
+ def update!(**args)
1058
+ @histogram_query = args[:histogram_query] if args.key?(:histogram_query)
1059
+ end
1060
+ end
1061
+
1062
+ # Output only. Histogram result that matches HistogramSpec specified in searches.
1063
+ class HistogramQueryResult
1064
+ include Google::Apis::Core::Hashable
1065
+
1066
+ # A map from the values of the facet associated with distinct values to the
1067
+ # number of matching entries with corresponding value. The key format is: * (for
1068
+ # string histogram) string values stored in the field. * (for named numeric
1069
+ # bucket) name specified in `bucket()` function, like for `bucket(0, MAX, "non-
1070
+ # negative")`, the key will be `non-negative`. * (for anonymous numeric bucket)
1071
+ # range formatted as `-`, for example, `0-1000`, `MIN-0`, and `0-MAX`.
1072
+ # Corresponds to the JSON property `histogram`
1073
+ # @return [Hash<String,Fixnum>]
1074
+ attr_accessor :histogram
1075
+
1076
+ # Requested histogram expression.
1077
+ # Corresponds to the JSON property `histogramQuery`
1078
+ # @return [String]
1079
+ attr_accessor :histogram_query
1080
+
1081
+ def initialize(**args)
1082
+ update!(**args)
1083
+ end
1084
+
1085
+ # Update properties of this object
1086
+ def update!(**args)
1087
+ @histogram = args[:histogram] if args.key?(:histogram)
1088
+ @histogram_query = args[:histogram_query] if args.key?(:histogram_query)
1089
+ end
1090
+ end
1091
+
1092
+ # Output only. Result of a histogram call. The response contains the histogram
1093
+ # map for the search type specified by HistogramResult.field. The response is a
1094
+ # map of each filter value to the corresponding count of jobs for that filter.
1095
+ class HistogramResult
1096
+ include Google::Apis::Core::Hashable
1097
+
1098
+ # The Histogram search filters.
1099
+ # Corresponds to the JSON property `searchType`
1100
+ # @return [String]
1101
+ attr_accessor :search_type
1102
+
1103
+ # A map from the values of field to the number of jobs with that value in this
1104
+ # search result. Key: search type (filter names, such as the companyName).
1105
+ # Values: the count of jobs that match the filter for this search.
1106
+ # Corresponds to the JSON property `values`
1107
+ # @return [Hash<String,Fixnum>]
1108
+ attr_accessor :values
1109
+
1110
+ def initialize(**args)
1111
+ update!(**args)
1112
+ end
1113
+
1114
+ # Update properties of this object
1115
+ def update!(**args)
1116
+ @search_type = args[:search_type] if args.key?(:search_type)
1117
+ @values = args[:values] if args.key?(:values)
1118
+ end
1119
+ end
1120
+
1121
+ # Output only. Histogram results that match HistogramFacets specified in
1122
+ # SearchJobsRequest.
1123
+ class HistogramResults
1124
+ include Google::Apis::Core::Hashable
1125
+
1126
+ # Specifies compensation field-based histogram results that match
1127
+ # HistogramFacets.compensation_histogram_requests.
1128
+ # Corresponds to the JSON property `compensationHistogramResults`
1129
+ # @return [Array<Google::Apis::JobsV3p1beta1::CompensationHistogramResult>]
1130
+ attr_accessor :compensation_histogram_results
1131
+
1132
+ # Specifies histogram results for custom attributes that match HistogramFacets.
1133
+ # custom_attribute_histogram_facets.
1134
+ # Corresponds to the JSON property `customAttributeHistogramResults`
1135
+ # @return [Array<Google::Apis::JobsV3p1beta1::CustomAttributeHistogramResult>]
1136
+ attr_accessor :custom_attribute_histogram_results
1137
+
1138
+ # Specifies histogram results that matches HistogramFacets.
1139
+ # simple_histogram_facets.
1140
+ # Corresponds to the JSON property `simpleHistogramResults`
1141
+ # @return [Array<Google::Apis::JobsV3p1beta1::HistogramResult>]
1142
+ attr_accessor :simple_histogram_results
1143
+
1144
+ def initialize(**args)
1145
+ update!(**args)
1146
+ end
1147
+
1148
+ # Update properties of this object
1149
+ def update!(**args)
1150
+ @compensation_histogram_results = args[:compensation_histogram_results] if args.key?(:compensation_histogram_results)
1151
+ @custom_attribute_histogram_results = args[:custom_attribute_histogram_results] if args.key?(:custom_attribute_histogram_results)
1152
+ @simple_histogram_results = args[:simple_histogram_results] if args.key?(:simple_histogram_results)
1153
+ end
1154
+ end
1155
+
1156
+ # A Job resource represents a job posting (also referred to as a "job listing"
1157
+ # or "job requisition"). A job belongs to a Company, which is the hiring entity
1158
+ # responsible for the job.
1159
+ class Job
1160
+ include Google::Apis::Core::Hashable
1161
+
1162
+ # Optional but strongly recommended for the best service experience. Location(s)
1163
+ # where the employer is looking to hire for this job posting. Specifying the
1164
+ # full street address(es) of the hiring location enables better API results,
1165
+ # especially job searches by commute time. At most 50 locations are allowed for
1166
+ # best search performance. If a job has more locations, it is suggested to split
1167
+ # it into multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes 'ReqA-1'
1168
+ # , 'ReqA-2', etc.) as multiple jobs with the same company_name, language_code
1169
+ # and requisition_id are not allowed. If the original requisition_id must be
1170
+ # preserved, a custom field should be used for storage. It is also suggested to
1171
+ # group the locations that close to each other in the same job for better search
1172
+ # experience. The maximum number of allowed characters is 500.
1173
+ # Corresponds to the JSON property `addresses`
1174
+ # @return [Array<String>]
1175
+ attr_accessor :addresses
1176
+
1177
+ # Application related details of a job posting.
1178
+ # Corresponds to the JSON property `applicationInfo`
1179
+ # @return [Google::Apis::JobsV3p1beta1::ApplicationInfo]
1180
+ attr_accessor :application_info
1181
+
1182
+ # Output only. Display name of the company listing the job.
1183
+ # Corresponds to the JSON property `companyDisplayName`
1184
+ # @return [String]
1185
+ attr_accessor :company_display_name
1186
+
1187
+ # Required. The resource name of the company listing the job, such as "projects/
1188
+ # api-test-project/companies/foo".
1189
+ # Corresponds to the JSON property `companyName`
1190
+ # @return [String]
1191
+ attr_accessor :company_name
1192
+
1193
+ # Job compensation details.
1194
+ # Corresponds to the JSON property `compensationInfo`
1195
+ # @return [Google::Apis::JobsV3p1beta1::CompensationInfo]
1196
+ attr_accessor :compensation_info
1197
+
1198
+ # Optional. A map of fields to hold both filterable and non-filterable custom
1199
+ # job attributes that are not covered by the provided structured fields. The
1200
+ # keys of the map are strings up to 64 bytes and must match the pattern: a-zA-Z*.
1201
+ # For example, key0LikeThis or KEY_1_LIKE_THIS. At most 100 filterable and at
1202
+ # most 100 unfilterable keys are supported. For filterable `string_values`,
1203
+ # across all keys at most 200 values are allowed, with each string no more than
1204
+ # 255 characters. For unfilterable `string_values`, the maximum total size of `
1205
+ # string_values` across all keys is 50KB.
1206
+ # Corresponds to the JSON property `customAttributes`
1207
+ # @return [Hash<String,Google::Apis::JobsV3p1beta1::CustomAttribute>]
1208
+ attr_accessor :custom_attributes
1209
+
1210
+ # Optional. The desired education degrees for the job, such as Bachelors,
1211
+ # Masters.
1212
+ # Corresponds to the JSON property `degreeTypes`
1213
+ # @return [Array<String>]
1214
+ attr_accessor :degree_types
1215
+
1216
+ # Optional. The department or functional area within the company with the open
1217
+ # position. The maximum number of allowed characters is 255.
1218
+ # Corresponds to the JSON property `department`
1219
+ # @return [String]
1220
+ attr_accessor :department
1221
+
1222
+ # Output only. Derived details about the job posting.
1223
+ # Corresponds to the JSON property `derivedInfo`
1224
+ # @return [Google::Apis::JobsV3p1beta1::JobDerivedInfo]
1225
+ attr_accessor :derived_info
1226
+
1227
+ # Required. The description of the job, which typically includes a multi-
1228
+ # paragraph description of the company and related information. Separate fields
1229
+ # are provided on the job object for responsibilities, qualifications, and other
1230
+ # job characteristics. Use of these separate job fields is recommended. This
1231
+ # field accepts and sanitizes HTML input, and also accepts bold, italic, ordered
1232
+ # list, and unordered list markup tags. The maximum number of allowed characters
1233
+ # is 100,000.
1234
+ # Corresponds to the JSON property `description`
1235
+ # @return [String]
1236
+ attr_accessor :description
1237
+
1238
+ # Optional. The employment type(s) of a job, for example, full time or part time.
1239
+ # Corresponds to the JSON property `employmentTypes`
1240
+ # @return [Array<String>]
1241
+ attr_accessor :employment_types
1242
+
1243
+ # Optional. A description of bonus, commission, and other compensation
1244
+ # incentives associated with the job not including salary or pay. The maximum
1245
+ # number of allowed characters is 10,000.
1246
+ # Corresponds to the JSON property `incentives`
1247
+ # @return [String]
1248
+ attr_accessor :incentives
1249
+
1250
+ # Optional. The benefits included with the job.
1251
+ # Corresponds to the JSON property `jobBenefits`
1252
+ # @return [Array<String>]
1253
+ attr_accessor :job_benefits
1254
+
1255
+ # Optional. The end timestamp of the job. Typically this field is used for
1256
+ # contracting engagements. Invalid timestamps are ignored.
1257
+ # Corresponds to the JSON property `jobEndTime`
1258
+ # @return [String]
1259
+ attr_accessor :job_end_time
1260
+
1261
+ # Optional. The experience level associated with the job, such as "Entry Level".
1262
+ # Corresponds to the JSON property `jobLevel`
1263
+ # @return [String]
1264
+ attr_accessor :job_level
1265
+
1266
+ # Optional. The start timestamp of the job in UTC time zone. Typically this
1267
+ # field is used for contracting engagements. Invalid timestamps are ignored.
1268
+ # Corresponds to the JSON property `jobStartTime`
1269
+ # @return [String]
1270
+ attr_accessor :job_start_time
1271
+
1272
+ # Optional. The language of the posting. This field is distinct from any
1273
+ # requirements for fluency that are associated with the job. Language codes must
1274
+ # be in BCP-47 format, such as "en-US" or "sr-Latn". For more information, see [
1275
+ # Tags for Identifying Languages](https://tools.ietf.org/html/bcp47)`: class="
1276
+ # external" target="_blank" `. If this field is unspecified and Job.description
1277
+ # is present, detected language code based on Job.description is assigned,
1278
+ # otherwise defaults to 'en_US'.
1279
+ # Corresponds to the JSON property `languageCode`
1280
+ # @return [String]
1281
+ attr_accessor :language_code
1282
+
1283
+ # Required during job update. The resource name for the job. This is generated
1284
+ # by the service when a job is created. The format is "projects/`project_id`/
1285
+ # jobs/`job_id`", for example, "projects/api-test-project/jobs/1234". Use of
1286
+ # this field in job queries and API calls is preferred over the use of
1287
+ # requisition_id since this value is unique.
1288
+ # Corresponds to the JSON property `name`
1289
+ # @return [String]
1290
+ attr_accessor :name
1291
+
1292
+ # Output only. The timestamp when this job posting was created.
1293
+ # Corresponds to the JSON property `postingCreateTime`
1294
+ # @return [String]
1295
+ attr_accessor :posting_create_time
1296
+
1297
+ # Optional but strongly recommended for the best service experience. The
1298
+ # expiration timestamp of the job. After this timestamp, the job is marked as
1299
+ # expired, and it no longer appears in search results. The expired job can't be
1300
+ # deleted or listed by the DeleteJob and ListJobs APIs, but it can be retrieved
1301
+ # with the GetJob API or updated with the UpdateJob API. An expired job can be
1302
+ # updated and opened again by using a future expiration timestamp. Updating an
1303
+ # expired job fails if there is another existing open job with same company_name,
1304
+ # language_code and requisition_id. The expired jobs are retained in our system
1305
+ # for 90 days. However, the overall expired job count cannot exceed 3 times the
1306
+ # maximum of open jobs count over the past week, otherwise jobs with earlier
1307
+ # expire time are cleaned first. Expired jobs are no longer accessible after
1308
+ # they are cleaned out. Invalid timestamps are ignored, and treated as expire
1309
+ # time not provided. Timestamp before the instant request is made is considered
1310
+ # valid, the job will be treated as expired immediately. If this value is not
1311
+ # provided at the time of job creation or is invalid, the job posting expires
1312
+ # after 30 days from the job's creation time. For example, if the job was
1313
+ # created on 2017/01/01 13:00AM UTC with an unspecified expiration date, the job
1314
+ # expires after 2017/01/31 13:00AM UTC. If this value is not provided on job
1315
+ # update, it depends on the field masks set by UpdateJobRequest.update_mask. If
1316
+ # the field masks include expiry_time, or the masks are empty meaning that every
1317
+ # field is updated, the job posting expires after 30 days from the job's last
1318
+ # update time. Otherwise the expiration date isn't updated.
1319
+ # Corresponds to the JSON property `postingExpireTime`
1320
+ # @return [String]
1321
+ attr_accessor :posting_expire_time
1322
+
1323
+ # Optional. The timestamp this job posting was most recently published. The
1324
+ # default value is the time the request arrives at the server. Invalid
1325
+ # timestamps are ignored.
1326
+ # Corresponds to the JSON property `postingPublishTime`
1327
+ # @return [String]
1328
+ attr_accessor :posting_publish_time
1329
+
1330
+ # Optional. The job PostingRegion (for example, state, country) throughout which
1331
+ # the job is available. If this field is set, a LocationFilter in a search query
1332
+ # within the job region finds this job posting if an exact location match isn't
1333
+ # specified. If this field is set to PostingRegion.NATION or PostingRegion.
1334
+ # ADMINISTRATIVE_AREA, setting job Job.addresses to the same location level as
1335
+ # this field is strongly recommended.
1336
+ # Corresponds to the JSON property `postingRegion`
1337
+ # @return [String]
1338
+ attr_accessor :posting_region
1339
+
1340
+ # Output only. The timestamp when this job posting was last updated.
1341
+ # Corresponds to the JSON property `postingUpdateTime`
1342
+ # @return [String]
1343
+ attr_accessor :posting_update_time
1344
+
1345
+ # Input only. Options for job processing.
1346
+ # Corresponds to the JSON property `processingOptions`
1347
+ # @return [Google::Apis::JobsV3p1beta1::ProcessingOptions]
1348
+ attr_accessor :processing_options
1349
+
1350
+ # Optional. A promotion value of the job, as determined by the client. The value
1351
+ # determines the sort order of the jobs returned when searching for jobs using
1352
+ # the featured jobs search call, with higher promotional values being returned
1353
+ # first and ties being resolved by relevance sort. Only the jobs with a
1354
+ # promotionValue >0 are returned in a FEATURED_JOB_SEARCH. Default value is 0,
1355
+ # and negative values are treated as 0.
1356
+ # Corresponds to the JSON property `promotionValue`
1357
+ # @return [Fixnum]
1358
+ attr_accessor :promotion_value
1359
+
1360
+ # Optional. A description of the qualifications required to perform the job. The
1361
+ # use of this field is recommended as an alternative to using the more general
1362
+ # description field. This field accepts and sanitizes HTML input, and also
1363
+ # accepts bold, italic, ordered list, and unordered list markup tags. The
1364
+ # maximum number of allowed characters is 10,000.
1365
+ # Corresponds to the JSON property `qualifications`
1366
+ # @return [String]
1367
+ attr_accessor :qualifications
1368
+
1369
+ # Required. The requisition ID, also referred to as the posting ID, assigned by
1370
+ # the client to identify a job. This field is intended to be used by clients for
1371
+ # client identification and tracking of postings. A job is not allowed to be
1372
+ # created if there is another job with the same [company_name], language_code
1373
+ # and requisition_id. The maximum number of allowed characters is 255.
1374
+ # Corresponds to the JSON property `requisitionId`
1375
+ # @return [String]
1376
+ attr_accessor :requisition_id
1377
+
1378
+ # Optional. A description of job responsibilities. The use of this field is
1379
+ # recommended as an alternative to using the more general description field.
1380
+ # This field accepts and sanitizes HTML input, and also accepts bold, italic,
1381
+ # ordered list, and unordered list markup tags. The maximum number of allowed
1382
+ # characters is 10,000.
1383
+ # Corresponds to the JSON property `responsibilities`
1384
+ # @return [String]
1385
+ attr_accessor :responsibilities
1386
+
1387
+ # Required. The title of the job, such as "Software Engineer" The maximum number
1388
+ # of allowed characters is 500.
1389
+ # Corresponds to the JSON property `title`
1390
+ # @return [String]
1391
+ attr_accessor :title
1392
+
1393
+ # Deprecated. The job is only visible to the owner. The visibility of the job.
1394
+ # Defaults to Visibility.ACCOUNT_ONLY if not specified.
1395
+ # Corresponds to the JSON property `visibility`
1396
+ # @return [String]
1397
+ attr_accessor :visibility
1398
+
1399
+ def initialize(**args)
1400
+ update!(**args)
1401
+ end
1402
+
1403
+ # Update properties of this object
1404
+ def update!(**args)
1405
+ @addresses = args[:addresses] if args.key?(:addresses)
1406
+ @application_info = args[:application_info] if args.key?(:application_info)
1407
+ @company_display_name = args[:company_display_name] if args.key?(:company_display_name)
1408
+ @company_name = args[:company_name] if args.key?(:company_name)
1409
+ @compensation_info = args[:compensation_info] if args.key?(:compensation_info)
1410
+ @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
1411
+ @degree_types = args[:degree_types] if args.key?(:degree_types)
1412
+ @department = args[:department] if args.key?(:department)
1413
+ @derived_info = args[:derived_info] if args.key?(:derived_info)
1414
+ @description = args[:description] if args.key?(:description)
1415
+ @employment_types = args[:employment_types] if args.key?(:employment_types)
1416
+ @incentives = args[:incentives] if args.key?(:incentives)
1417
+ @job_benefits = args[:job_benefits] if args.key?(:job_benefits)
1418
+ @job_end_time = args[:job_end_time] if args.key?(:job_end_time)
1419
+ @job_level = args[:job_level] if args.key?(:job_level)
1420
+ @job_start_time = args[:job_start_time] if args.key?(:job_start_time)
1421
+ @language_code = args[:language_code] if args.key?(:language_code)
1422
+ @name = args[:name] if args.key?(:name)
1423
+ @posting_create_time = args[:posting_create_time] if args.key?(:posting_create_time)
1424
+ @posting_expire_time = args[:posting_expire_time] if args.key?(:posting_expire_time)
1425
+ @posting_publish_time = args[:posting_publish_time] if args.key?(:posting_publish_time)
1426
+ @posting_region = args[:posting_region] if args.key?(:posting_region)
1427
+ @posting_update_time = args[:posting_update_time] if args.key?(:posting_update_time)
1428
+ @processing_options = args[:processing_options] if args.key?(:processing_options)
1429
+ @promotion_value = args[:promotion_value] if args.key?(:promotion_value)
1430
+ @qualifications = args[:qualifications] if args.key?(:qualifications)
1431
+ @requisition_id = args[:requisition_id] if args.key?(:requisition_id)
1432
+ @responsibilities = args[:responsibilities] if args.key?(:responsibilities)
1433
+ @title = args[:title] if args.key?(:title)
1434
+ @visibility = args[:visibility] if args.key?(:visibility)
1435
+ end
1436
+ end
1437
+
1438
+ # Output only. Derived details about the job posting.
1439
+ class JobDerivedInfo
1440
+ include Google::Apis::Core::Hashable
1441
+
1442
+ # Job categories derived from Job.title and Job.description.
1443
+ # Corresponds to the JSON property `jobCategories`
1444
+ # @return [Array<String>]
1445
+ attr_accessor :job_categories
1446
+
1447
+ # Structured locations of the job, resolved from Job.addresses. locations are
1448
+ # exactly matched to Job.addresses in the same order.
1449
+ # Corresponds to the JSON property `locations`
1450
+ # @return [Array<Google::Apis::JobsV3p1beta1::Location>]
1451
+ attr_accessor :locations
1452
+
1453
+ def initialize(**args)
1454
+ update!(**args)
1455
+ end
1456
+
1457
+ # Update properties of this object
1458
+ def update!(**args)
1459
+ @job_categories = args[:job_categories] if args.key?(:job_categories)
1460
+ @locations = args[:locations] if args.key?(:locations)
1461
+ end
1462
+ end
1463
+
1464
+ # An event issued when a job seeker interacts with the application that
1465
+ # implements Cloud Talent Solution.
1466
+ class JobEvent
1467
+ include Google::Apis::Core::Hashable
1468
+
1469
+ # Required. The job name(s) associated with this event. For example, if this is
1470
+ # an impression event, this field contains the identifiers of all jobs shown to
1471
+ # the job seeker. If this was a view event, this field contains the identifier
1472
+ # of the viewed job.
1473
+ # Corresponds to the JSON property `jobs`
1474
+ # @return [Array<String>]
1475
+ attr_accessor :jobs
1476
+
1477
+ # Required. The type of the event (see JobEventType).
1478
+ # Corresponds to the JSON property `type`
1479
+ # @return [String]
1480
+ attr_accessor :type
1481
+
1482
+ def initialize(**args)
1483
+ update!(**args)
1484
+ end
1485
+
1486
+ # Update properties of this object
1487
+ def update!(**args)
1488
+ @jobs = args[:jobs] if args.key?(:jobs)
1489
+ @type = args[:type] if args.key?(:type)
1490
+ end
1491
+ end
1492
+
1493
+ # Input only. The query required to perform a search query.
1494
+ class JobQuery
1495
+ include Google::Apis::Core::Hashable
1496
+
1497
+ # Input only. Parameters needed for commute search.
1498
+ # Corresponds to the JSON property `commuteFilter`
1499
+ # @return [Google::Apis::JobsV3p1beta1::CommuteFilter]
1500
+ attr_accessor :commute_filter
1501
+
1502
+ # Optional. This filter specifies the exact company display name of the jobs to
1503
+ # search against. If a value isn't specified, jobs within the search results are
1504
+ # associated with any company. If multiple values are specified, jobs within the
1505
+ # search results may be associated with any of the specified companies. At most
1506
+ # 20 company display name filters are allowed.
1507
+ # Corresponds to the JSON property `companyDisplayNames`
1508
+ # @return [Array<String>]
1509
+ attr_accessor :company_display_names
1510
+
1511
+ # Optional. This filter specifies the company entities to search against. If a
1512
+ # value isn't specified, jobs are searched for against all companies. If
1513
+ # multiple values are specified, jobs are searched against the companies
1514
+ # specified. The format is "projects/`project_id`/companies/`company_id`", for
1515
+ # example, "projects/api-test-project/companies/foo". At most 20 company filters
1516
+ # are allowed.
1517
+ # Corresponds to the JSON property `companyNames`
1518
+ # @return [Array<String>]
1519
+ attr_accessor :company_names
1520
+
1521
+ # Input only. Filter on job compensation type and amount.
1522
+ # Corresponds to the JSON property `compensationFilter`
1523
+ # @return [Google::Apis::JobsV3p1beta1::CompensationFilter]
1524
+ attr_accessor :compensation_filter
1525
+
1526
+ # Optional. This filter specifies a structured syntax to match against the Job.
1527
+ # custom_attributes marked as `filterable`. The syntax for this expression is a
1528
+ # subset of SQL syntax. Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `
1529
+ # >=` where the left of the operator is a custom field key and the right of the
1530
+ # operator is a number or a quoted string. You must escape backslash (\\) and
1531
+ # quote (\") characters. Supported functions are `LOWER([field_name])` to
1532
+ # perform a case insensitive match and `EMPTY([field_name])` to filter on the
1533
+ # existence of a key. Boolean expressions (AND/OR/NOT) are supported up to 3
1534
+ # levels of nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum
1535
+ # of 100 comparisons or functions are allowed in the expression. The expression
1536
+ # must be < 6000 bytes in length. Sample Query: `(LOWER(driving_license)="class \
1537
+ # "a\"" OR EMPTY(driving_license)) AND driving_years > 10`
1538
+ # Corresponds to the JSON property `customAttributeFilter`
1539
+ # @return [String]
1540
+ attr_accessor :custom_attribute_filter
1541
+
1542
+ # Optional. This flag controls the spell-check feature. If false, the service
1543
+ # attempts to correct a misspelled query, for example, "enginee" is corrected to
1544
+ # "engineer". Defaults to false: a spell check is performed.
1545
+ # Corresponds to the JSON property `disableSpellCheck`
1546
+ # @return [Boolean]
1547
+ attr_accessor :disable_spell_check
1548
+ alias_method :disable_spell_check?, :disable_spell_check
1549
+
1550
+ # Optional. The employment type filter specifies the employment type of jobs to
1551
+ # search against, such as EmploymentType.FULL_TIME. If a value is not specified,
1552
+ # jobs in the search results includes any employment type. If multiple values
1553
+ # are specified, jobs in the search results include any of the specified
1554
+ # employment types.
1555
+ # Corresponds to the JSON property `employmentTypes`
1556
+ # @return [Array<String>]
1557
+ attr_accessor :employment_types
1558
+
1559
+ # Optional. This filter specifies a list of job names to be excluded during
1560
+ # search. At most 400 excluded job names are allowed.
1561
+ # Corresponds to the JSON property `excludedJobs`
1562
+ # @return [Array<String>]
1563
+ attr_accessor :excluded_jobs
1564
+
1565
+ # Optional. The category filter specifies the categories of jobs to search
1566
+ # against. See Category for more information. If a value is not specified, jobs
1567
+ # from any category are searched against. If multiple values are specified, jobs
1568
+ # from any of the specified categories are searched against.
1569
+ # Corresponds to the JSON property `jobCategories`
1570
+ # @return [Array<String>]
1571
+ attr_accessor :job_categories
1572
+
1573
+ # Optional. This filter specifies the locale of jobs to search against, for
1574
+ # example, "en-US". If a value isn't specified, the search results can contain
1575
+ # jobs in any locale. Language codes should be in BCP-47 format, such as "en-US"
1576
+ # or "sr-Latn". For more information, see [Tags for Identifying Languages](https:
1577
+ # //tools.ietf.org/html/bcp47). At most 10 language code filters are allowed.
1578
+ # Corresponds to the JSON property `languageCodes`
1579
+ # @return [Array<String>]
1580
+ attr_accessor :language_codes
1581
+
1582
+ # Optional. The location filter specifies geo-regions containing the jobs to
1583
+ # search against. See LocationFilter for more information. If a location value
1584
+ # isn't specified, jobs fitting the other search criteria are retrieved
1585
+ # regardless of where they're located. If multiple values are specified, jobs
1586
+ # are retrieved from any of the specified locations. If different values are
1587
+ # specified for the LocationFilter.distance_in_miles parameter, the maximum
1588
+ # provided distance is used for all locations. At most 5 location filters are
1589
+ # allowed.
1590
+ # Corresponds to the JSON property `locationFilters`
1591
+ # @return [Array<Google::Apis::JobsV3p1beta1::LocationFilter>]
1592
+ attr_accessor :location_filters
1593
+
1594
+ # Message representing a period of time between two timestamps.
1595
+ # Corresponds to the JSON property `publishTimeRange`
1596
+ # @return [Google::Apis::JobsV3p1beta1::TimestampRange]
1597
+ attr_accessor :publish_time_range
1598
+
1599
+ # Optional. The query string that matches against the job title, description,
1600
+ # and location fields. The maximum number of allowed characters is 255.
1601
+ # Corresponds to the JSON property `query`
1602
+ # @return [String]
1603
+ attr_accessor :query
1604
+
1605
+ # The language code of query. For example, "en-US". This field helps to better
1606
+ # interpret the query. If a value isn't specified, the query language code is
1607
+ # automatically detected, which may not be accurate. Language code should be in
1608
+ # BCP-47 format, such as "en-US" or "sr-Latn". For more information, see [Tags
1609
+ # for Identifying Languages](https://tools.ietf.org/html/bcp47).
1610
+ # Corresponds to the JSON property `queryLanguageCode`
1611
+ # @return [String]
1612
+ attr_accessor :query_language_code
1613
+
1614
+ def initialize(**args)
1615
+ update!(**args)
1616
+ end
1617
+
1618
+ # Update properties of this object
1619
+ def update!(**args)
1620
+ @commute_filter = args[:commute_filter] if args.key?(:commute_filter)
1621
+ @company_display_names = args[:company_display_names] if args.key?(:company_display_names)
1622
+ @company_names = args[:company_names] if args.key?(:company_names)
1623
+ @compensation_filter = args[:compensation_filter] if args.key?(:compensation_filter)
1624
+ @custom_attribute_filter = args[:custom_attribute_filter] if args.key?(:custom_attribute_filter)
1625
+ @disable_spell_check = args[:disable_spell_check] if args.key?(:disable_spell_check)
1626
+ @employment_types = args[:employment_types] if args.key?(:employment_types)
1627
+ @excluded_jobs = args[:excluded_jobs] if args.key?(:excluded_jobs)
1628
+ @job_categories = args[:job_categories] if args.key?(:job_categories)
1629
+ @language_codes = args[:language_codes] if args.key?(:language_codes)
1630
+ @location_filters = args[:location_filters] if args.key?(:location_filters)
1631
+ @publish_time_range = args[:publish_time_range] if args.key?(:publish_time_range)
1632
+ @query = args[:query] if args.key?(:query)
1633
+ @query_language_code = args[:query_language_code] if args.key?(:query_language_code)
1634
+ end
1635
+ end
1636
+
1637
+ # An object that represents a latitude/longitude pair. This is expressed as a
1638
+ # pair of doubles to represent degrees latitude and degrees longitude. Unless
1639
+ # specified otherwise, this must conform to the WGS84 standard. Values must be
1640
+ # within normalized ranges.
1641
+ class LatLng
1642
+ include Google::Apis::Core::Hashable
1643
+
1644
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
1645
+ # Corresponds to the JSON property `latitude`
1646
+ # @return [Float]
1647
+ attr_accessor :latitude
1648
+
1649
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
1650
+ # Corresponds to the JSON property `longitude`
1651
+ # @return [Float]
1652
+ attr_accessor :longitude
1653
+
1654
+ def initialize(**args)
1655
+ update!(**args)
1656
+ end
1657
+
1658
+ # Update properties of this object
1659
+ def update!(**args)
1660
+ @latitude = args[:latitude] if args.key?(:latitude)
1661
+ @longitude = args[:longitude] if args.key?(:longitude)
1662
+ end
1663
+ end
1664
+
1665
+ # Output only. The List companies response object.
1666
+ class ListCompaniesResponse
1667
+ include Google::Apis::Core::Hashable
1668
+
1669
+ # Companies for the current client.
1670
+ # Corresponds to the JSON property `companies`
1671
+ # @return [Array<Google::Apis::JobsV3p1beta1::Company>]
1672
+ attr_accessor :companies
1673
+
1674
+ # Output only. Additional information returned to client, such as debugging
1675
+ # information.
1676
+ # Corresponds to the JSON property `metadata`
1677
+ # @return [Google::Apis::JobsV3p1beta1::ResponseMetadata]
1678
+ attr_accessor :metadata
1679
+
1680
+ # A token to retrieve the next page of results.
1681
+ # Corresponds to the JSON property `nextPageToken`
1682
+ # @return [String]
1683
+ attr_accessor :next_page_token
1684
+
1685
+ def initialize(**args)
1686
+ update!(**args)
1687
+ end
1688
+
1689
+ # Update properties of this object
1690
+ def update!(**args)
1691
+ @companies = args[:companies] if args.key?(:companies)
1692
+ @metadata = args[:metadata] if args.key?(:metadata)
1693
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1694
+ end
1695
+ end
1696
+
1697
+ # Output only. List jobs response.
1698
+ class ListJobsResponse
1699
+ include Google::Apis::Core::Hashable
1700
+
1701
+ # The Jobs for a given company. The maximum number of items returned is based on
1702
+ # the limit field provided in the request.
1703
+ # Corresponds to the JSON property `jobs`
1704
+ # @return [Array<Google::Apis::JobsV3p1beta1::Job>]
1705
+ attr_accessor :jobs
1706
+
1707
+ # Output only. Additional information returned to client, such as debugging
1708
+ # information.
1709
+ # Corresponds to the JSON property `metadata`
1710
+ # @return [Google::Apis::JobsV3p1beta1::ResponseMetadata]
1711
+ attr_accessor :metadata
1712
+
1713
+ # A token to retrieve the next page of results.
1714
+ # Corresponds to the JSON property `nextPageToken`
1715
+ # @return [String]
1716
+ attr_accessor :next_page_token
1717
+
1718
+ def initialize(**args)
1719
+ update!(**args)
1720
+ end
1721
+
1722
+ # Update properties of this object
1723
+ def update!(**args)
1724
+ @jobs = args[:jobs] if args.key?(:jobs)
1725
+ @metadata = args[:metadata] if args.key?(:metadata)
1726
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1727
+ end
1728
+ end
1729
+
1730
+ # Output only. A resource that represents a location with full geographic
1731
+ # information.
1732
+ class Location
1733
+ include Google::Apis::Core::Hashable
1734
+
1735
+ # An object that represents a latitude/longitude pair. This is expressed as a
1736
+ # pair of doubles to represent degrees latitude and degrees longitude. Unless
1737
+ # specified otherwise, this must conform to the WGS84 standard. Values must be
1738
+ # within normalized ranges.
1739
+ # Corresponds to the JSON property `latLng`
1740
+ # @return [Google::Apis::JobsV3p1beta1::LatLng]
1741
+ attr_accessor :lat_lng
1742
+
1743
+ # The type of a location, which corresponds to the address lines field of
1744
+ # PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of
1745
+ # LocationType#NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of
1746
+ # LocationType#LOCALITY.
1747
+ # Corresponds to the JSON property `locationType`
1748
+ # @return [String]
1749
+ attr_accessor :location_type
1750
+
1751
+ # Represents a postal address, e.g. for postal delivery or payments addresses.
1752
+ # Given a postal address, a postal service can deliver items to a premise, P.O.
1753
+ # Box or similar. It is not intended to model geographical locations (roads,
1754
+ # towns, mountains). In typical usage an address would be created via user input
1755
+ # or from importing existing data, depending on the type of process. Advice on
1756
+ # address input / editing: - Use an i18n-ready address widget such as https://
1757
+ # github.com/google/libaddressinput) - Users should not be presented with UI
1758
+ # elements for input or editing of fields outside countries where that field is
1759
+ # used. For more guidance on how to use this schema, please see: https://support.
1760
+ # google.com/business/answer/6397478
1761
+ # Corresponds to the JSON property `postalAddress`
1762
+ # @return [Google::Apis::JobsV3p1beta1::PostalAddress]
1763
+ attr_accessor :postal_address
1764
+
1765
+ # Radius in miles of the job location. This value is derived from the location
1766
+ # bounding box in which a circle with the specified radius centered from LatLng
1767
+ # covers the area associated with the job location. For example, currently, "
1768
+ # Mountain View, CA, USA" has a radius of 6.17 miles.
1769
+ # Corresponds to the JSON property `radiusInMiles`
1770
+ # @return [Float]
1771
+ attr_accessor :radius_in_miles
1772
+
1773
+ def initialize(**args)
1774
+ update!(**args)
1775
+ end
1776
+
1777
+ # Update properties of this object
1778
+ def update!(**args)
1779
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
1780
+ @location_type = args[:location_type] if args.key?(:location_type)
1781
+ @postal_address = args[:postal_address] if args.key?(:postal_address)
1782
+ @radius_in_miles = args[:radius_in_miles] if args.key?(:radius_in_miles)
1783
+ end
1784
+ end
1785
+
1786
+ # Input only. Geographic region of the search.
1787
+ class LocationFilter
1788
+ include Google::Apis::Core::Hashable
1789
+
1790
+ # Optional. The address name, such as "Mountain View" or "Bay Area".
1791
+ # Corresponds to the JSON property `address`
1792
+ # @return [String]
1793
+ attr_accessor :address
1794
+
1795
+ # Optional. The distance_in_miles is applied when the location being searched
1796
+ # for is identified as a city or smaller. When the location being searched for
1797
+ # is a state or larger, this field is ignored.
1798
+ # Corresponds to the JSON property `distanceInMiles`
1799
+ # @return [Float]
1800
+ attr_accessor :distance_in_miles
1801
+
1802
+ # An object that represents a latitude/longitude pair. This is expressed as a
1803
+ # pair of doubles to represent degrees latitude and degrees longitude. Unless
1804
+ # specified otherwise, this must conform to the WGS84 standard. Values must be
1805
+ # within normalized ranges.
1806
+ # Corresponds to the JSON property `latLng`
1807
+ # @return [Google::Apis::JobsV3p1beta1::LatLng]
1808
+ attr_accessor :lat_lng
1809
+
1810
+ # Optional. CLDR region code of the country/region of the address. This is used
1811
+ # to address ambiguity of the user-input location, for example, "Liverpool"
1812
+ # against "Liverpool, NY, US" or "Liverpool, UK". Set this field if all the jobs
1813
+ # to search against are from a same region, or jobs are world-wide, but the job
1814
+ # seeker is from a specific region. See http://cldr.unicode.org/ and http://www.
1815
+ # unicode.org/cldr/charts/30/supplemental/territory_information.html for details.
1816
+ # Example: "CH" for Switzerland.
1817
+ # Corresponds to the JSON property `regionCode`
1818
+ # @return [String]
1819
+ attr_accessor :region_code
1820
+
1821
+ # Optional. Allows the client to return jobs without a set location,
1822
+ # specifically, telecommuting jobs (telecommuting is considered by the service
1823
+ # as a special location. Job.posting_region indicates if a job permits
1824
+ # telecommuting. If this field is set to TelecommutePreference.
1825
+ # TELECOMMUTE_ALLOWED, telecommuting jobs are searched, and address and lat_lng
1826
+ # are ignored. If not set or set to TelecommutePreference.TELECOMMUTE_EXCLUDED,
1827
+ # telecommute job are not searched. This filter can be used by itself to search
1828
+ # exclusively for telecommuting jobs, or it can be combined with another
1829
+ # location filter to search for a combination of job locations, such as "
1830
+ # Mountain View" or "telecommuting" jobs. However, when used in combination with
1831
+ # other location filters, telecommuting jobs can be treated as less relevant
1832
+ # than other jobs in the search response.
1833
+ # Corresponds to the JSON property `telecommutePreference`
1834
+ # @return [String]
1835
+ attr_accessor :telecommute_preference
1836
+
1837
+ def initialize(**args)
1838
+ update!(**args)
1839
+ end
1840
+
1841
+ # Update properties of this object
1842
+ def update!(**args)
1843
+ @address = args[:address] if args.key?(:address)
1844
+ @distance_in_miles = args[:distance_in_miles] if args.key?(:distance_in_miles)
1845
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
1846
+ @region_code = args[:region_code] if args.key?(:region_code)
1847
+ @telecommute_preference = args[:telecommute_preference] if args.key?(:telecommute_preference)
1848
+ end
1849
+ end
1850
+
1851
+ # Output only. Job entry with metadata inside SearchJobsResponse.
1852
+ class MatchingJob
1853
+ include Google::Apis::Core::Hashable
1854
+
1855
+ # Output only. Commute details related to this job.
1856
+ # Corresponds to the JSON property `commuteInfo`
1857
+ # @return [Google::Apis::JobsV3p1beta1::CommuteInfo]
1858
+ attr_accessor :commute_info
1859
+
1860
+ # A Job resource represents a job posting (also referred to as a "job listing"
1861
+ # or "job requisition"). A job belongs to a Company, which is the hiring entity
1862
+ # responsible for the job.
1863
+ # Corresponds to the JSON property `job`
1864
+ # @return [Google::Apis::JobsV3p1beta1::Job]
1865
+ attr_accessor :job
1866
+
1867
+ # A summary of the job with core information that's displayed on the search
1868
+ # results listing page.
1869
+ # Corresponds to the JSON property `jobSummary`
1870
+ # @return [String]
1871
+ attr_accessor :job_summary
1872
+
1873
+ # Contains snippets of text from the Job.job_title field most closely matching a
1874
+ # search query's keywords, if available. The matching query keywords are
1875
+ # enclosed in HTML bold tags.
1876
+ # Corresponds to the JSON property `jobTitleSnippet`
1877
+ # @return [String]
1878
+ attr_accessor :job_title_snippet
1879
+
1880
+ # Contains snippets of text from the Job.description and similar fields that
1881
+ # most closely match a search query's keywords, if available. All HTML tags in
1882
+ # the original fields are stripped when returned in this field, and matching
1883
+ # query keywords are enclosed in HTML bold tags.
1884
+ # Corresponds to the JSON property `searchTextSnippet`
1885
+ # @return [String]
1886
+ attr_accessor :search_text_snippet
1887
+
1888
+ def initialize(**args)
1889
+ update!(**args)
1890
+ end
1891
+
1892
+ # Update properties of this object
1893
+ def update!(**args)
1894
+ @commute_info = args[:commute_info] if args.key?(:commute_info)
1895
+ @job = args[:job] if args.key?(:job)
1896
+ @job_summary = args[:job_summary] if args.key?(:job_summary)
1897
+ @job_title_snippet = args[:job_title_snippet] if args.key?(:job_title_snippet)
1898
+ @search_text_snippet = args[:search_text_snippet] if args.key?(:search_text_snippet)
1899
+ end
1900
+ end
1901
+
1902
+ # Message representing input to a Mendel server for debug forcing. See go/mendel-
1903
+ # debug-forcing for more details. Next ID: 2
1904
+ class MendelDebugInput
1905
+ include Google::Apis::Core::Hashable
1906
+
1907
+ # When a request spans multiple servers, a MendelDebugInput may travel with the
1908
+ # request and take effect in all the servers. This field is a map of namespaces
1909
+ # to NamespacedMendelDebugInput protos. In a single server, up to two
1910
+ # NamespacedMendelDebugInput protos are applied: 1. NamespacedMendelDebugInput
1911
+ # with the global namespace (key == ""). 2. NamespacedMendelDebugInput with the
1912
+ # server's namespace. When both NamespacedMendelDebugInput protos are present,
1913
+ # they are merged. See go/mendel-debug-forcing for more details.
1914
+ # Corresponds to the JSON property `namespacedDebugInput`
1915
+ # @return [Hash<String,Google::Apis::JobsV3p1beta1::NamespacedDebugInput>]
1916
+ attr_accessor :namespaced_debug_input
1917
+
1918
+ def initialize(**args)
1919
+ update!(**args)
1920
+ end
1921
+
1922
+ # Update properties of this object
1923
+ def update!(**args)
1924
+ @namespaced_debug_input = args[:namespaced_debug_input] if args.key?(:namespaced_debug_input)
1925
+ end
1926
+ end
1927
+
1928
+ # Represents an amount of money with its currency type.
1929
+ class Money
1930
+ include Google::Apis::Core::Hashable
1931
+
1932
+ # The three-letter currency code defined in ISO 4217.
1933
+ # Corresponds to the JSON property `currencyCode`
1934
+ # @return [String]
1935
+ attr_accessor :currency_code
1936
+
1937
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
1938
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
1939
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
1940
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
1941
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1942
+ # Corresponds to the JSON property `nanos`
1943
+ # @return [Fixnum]
1944
+ attr_accessor :nanos
1945
+
1946
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
1947
+ # 1 unit is one US dollar.
1948
+ # Corresponds to the JSON property `units`
1949
+ # @return [Fixnum]
1950
+ attr_accessor :units
1951
+
1952
+ def initialize(**args)
1953
+ update!(**args)
1954
+ end
1955
+
1956
+ # Update properties of this object
1957
+ def update!(**args)
1958
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1959
+ @nanos = args[:nanos] if args.key?(:nanos)
1960
+ @units = args[:units] if args.key?(:units)
1961
+ end
1962
+ end
1963
+
1964
+ # Next ID: 15
1965
+ class NamespacedDebugInput
1966
+ include Google::Apis::Core::Hashable
1967
+
1968
+ # Set of experiment names to be absolutely forced. These experiments will be
1969
+ # forced without evaluating the conditions.
1970
+ # Corresponds to the JSON property `absolutelyForcedExpNames`
1971
+ # @return [Array<String>]
1972
+ attr_accessor :absolutely_forced_exp_names
1973
+
1974
+ # Set of experiment tags to be absolutely forced. The experiments with these
1975
+ # tags will be forced without evaluating the conditions.
1976
+ # Corresponds to the JSON property `absolutelyForcedExpTags`
1977
+ # @return [Array<String>]
1978
+ attr_accessor :absolutely_forced_exp_tags
1979
+
1980
+ # Set of experiment ids to be absolutely forced. These ids will be forced
1981
+ # without evaluating the conditions.
1982
+ # Corresponds to the JSON property `absolutelyForcedExps`
1983
+ # @return [Array<Fixnum>]
1984
+ attr_accessor :absolutely_forced_exps
1985
+
1986
+ # Set of experiment names to be conditionally forced. These experiments will be
1987
+ # forced only if their conditions and their parent domain's conditions are true.
1988
+ # Corresponds to the JSON property `conditionallyForcedExpNames`
1989
+ # @return [Array<String>]
1990
+ attr_accessor :conditionally_forced_exp_names
1991
+
1992
+ # Set of experiment tags to be conditionally forced. The experiments with these
1993
+ # tags will be forced only if their conditions and their parent domain's
1994
+ # conditions are true.
1995
+ # Corresponds to the JSON property `conditionallyForcedExpTags`
1996
+ # @return [Array<String>]
1997
+ attr_accessor :conditionally_forced_exp_tags
1998
+
1999
+ # Set of experiment ids to be conditionally forced. These ids will be forced
2000
+ # only if their conditions and their parent domain's conditions are true.
2001
+ # Corresponds to the JSON property `conditionallyForcedExps`
2002
+ # @return [Array<Fixnum>]
2003
+ attr_accessor :conditionally_forced_exps
2004
+
2005
+ # If true, disable automatic enrollment selection (at all diversion points).
2006
+ # Automatic enrollment selection means experiment selection process based on the
2007
+ # experiment's automatic enrollment condition. This does not disable selection
2008
+ # of forced experiments.
2009
+ # Corresponds to the JSON property `disableAutomaticEnrollmentSelection`
2010
+ # @return [Boolean]
2011
+ attr_accessor :disable_automatic_enrollment_selection
2012
+ alias_method :disable_automatic_enrollment_selection?, :disable_automatic_enrollment_selection
2013
+
2014
+ # Set of experiment names to be disabled. If an experiment is disabled, it is
2015
+ # never selected nor forced. If an aggregate experiment is disabled, its
2016
+ # partitions are disabled together. If an experiment with an enrollment is
2017
+ # disabled, the enrollment is disabled together. If a name corresponds to a
2018
+ # domain, the domain itself and all descendant experiments and domains are
2019
+ # disabled together.
2020
+ # Corresponds to the JSON property `disableExpNames`
2021
+ # @return [Array<String>]
2022
+ attr_accessor :disable_exp_names
2023
+
2024
+ # Set of experiment tags to be disabled. All experiments that are tagged with
2025
+ # one or more of these tags are disabled. If an experiment is disabled, it is
2026
+ # never selected nor forced. If an aggregate experiment is disabled, its
2027
+ # partitions are disabled together. If an experiment with an enrollment is
2028
+ # disabled, the enrollment is disabled together.
2029
+ # Corresponds to the JSON property `disableExpTags`
2030
+ # @return [Array<String>]
2031
+ attr_accessor :disable_exp_tags
2032
+
2033
+ # Set of experiment ids to be disabled. If an experiment is disabled, it is
2034
+ # never selected nor forced. If an aggregate experiment is disabled, its
2035
+ # partitions are disabled together. If an experiment with an enrollment is
2036
+ # disabled, the enrollment is disabled together. If an ID corresponds to a
2037
+ # domain, the domain itself and all descendant experiments and domains are
2038
+ # disabled together.
2039
+ # Corresponds to the JSON property `disableExps`
2040
+ # @return [Array<Fixnum>]
2041
+ attr_accessor :disable_exps
2042
+
2043
+ # If true, disable manual enrollment selection (at all diversion points). Manual
2044
+ # enrollment selection means experiment selection process based on the request's
2045
+ # manual enrollment states (a.k.a. opt-in experiments). This does not disable
2046
+ # selection of forced experiments.
2047
+ # Corresponds to the JSON property `disableManualEnrollmentSelection`
2048
+ # @return [Boolean]
2049
+ attr_accessor :disable_manual_enrollment_selection
2050
+ alias_method :disable_manual_enrollment_selection?, :disable_manual_enrollment_selection
2051
+
2052
+ # If true, disable organic experiment selection (at all diversion points).
2053
+ # Organic selection means experiment selection process based on traffic
2054
+ # allocation and diversion condition evaluation. This does not disable selection
2055
+ # of forced experiments. This is useful in cases when it is not known whether
2056
+ # experiment selection behavior is responsible for a error or breakage.
2057
+ # Disabling organic selection may help to isolate the cause of a given problem.
2058
+ # Corresponds to the JSON property `disableOrganicSelection`
2059
+ # @return [Boolean]
2060
+ attr_accessor :disable_organic_selection
2061
+ alias_method :disable_organic_selection?, :disable_organic_selection
2062
+
2063
+ # Flags to force in a particular experiment state. Map from flag name to flag
2064
+ # value.
2065
+ # Corresponds to the JSON property `forcedFlags`
2066
+ # @return [Hash<String,String>]
2067
+ attr_accessor :forced_flags
2068
+
2069
+ # Rollouts to force in a particular experiment state. Map from rollout name to
2070
+ # rollout value.
2071
+ # Corresponds to the JSON property `forcedRollouts`
2072
+ # @return [Hash<String,Boolean>]
2073
+ attr_accessor :forced_rollouts
2074
+
2075
+ def initialize(**args)
2076
+ update!(**args)
2077
+ end
2078
+
2079
+ # Update properties of this object
2080
+ def update!(**args)
2081
+ @absolutely_forced_exp_names = args[:absolutely_forced_exp_names] if args.key?(:absolutely_forced_exp_names)
2082
+ @absolutely_forced_exp_tags = args[:absolutely_forced_exp_tags] if args.key?(:absolutely_forced_exp_tags)
2083
+ @absolutely_forced_exps = args[:absolutely_forced_exps] if args.key?(:absolutely_forced_exps)
2084
+ @conditionally_forced_exp_names = args[:conditionally_forced_exp_names] if args.key?(:conditionally_forced_exp_names)
2085
+ @conditionally_forced_exp_tags = args[:conditionally_forced_exp_tags] if args.key?(:conditionally_forced_exp_tags)
2086
+ @conditionally_forced_exps = args[:conditionally_forced_exps] if args.key?(:conditionally_forced_exps)
2087
+ @disable_automatic_enrollment_selection = args[:disable_automatic_enrollment_selection] if args.key?(:disable_automatic_enrollment_selection)
2088
+ @disable_exp_names = args[:disable_exp_names] if args.key?(:disable_exp_names)
2089
+ @disable_exp_tags = args[:disable_exp_tags] if args.key?(:disable_exp_tags)
2090
+ @disable_exps = args[:disable_exps] if args.key?(:disable_exps)
2091
+ @disable_manual_enrollment_selection = args[:disable_manual_enrollment_selection] if args.key?(:disable_manual_enrollment_selection)
2092
+ @disable_organic_selection = args[:disable_organic_selection] if args.key?(:disable_organic_selection)
2093
+ @forced_flags = args[:forced_flags] if args.key?(:forced_flags)
2094
+ @forced_rollouts = args[:forced_rollouts] if args.key?(:forced_rollouts)
2095
+ end
2096
+ end
2097
+
2098
+ # Input only. Use this field to specify bucketing option for the histogram
2099
+ # search response.
2100
+ class NumericBucketingOption
2101
+ include Google::Apis::Core::Hashable
2102
+
2103
+ # Required. Two adjacent values form a histogram bucket. Values should be in
2104
+ # ascending order. For example, if [5, 10, 15] are provided, four buckets are
2105
+ # created: (-inf, 5), 5, 10), [10, 15), [15, inf). At most 20 [buckets_bound is
2106
+ # supported.
2107
+ # Corresponds to the JSON property `bucketBounds`
2108
+ # @return [Array<Float>]
2109
+ attr_accessor :bucket_bounds
2110
+
2111
+ # Optional. If set to true, the histogram result includes minimum/maximum value
2112
+ # of the numeric field.
2113
+ # Corresponds to the JSON property `requiresMinMax`
2114
+ # @return [Boolean]
2115
+ attr_accessor :requires_min_max
2116
+ alias_method :requires_min_max?, :requires_min_max
2117
+
2118
+ def initialize(**args)
2119
+ update!(**args)
2120
+ end
2121
+
2122
+ # Update properties of this object
2123
+ def update!(**args)
2124
+ @bucket_bounds = args[:bucket_bounds] if args.key?(:bucket_bounds)
2125
+ @requires_min_max = args[:requires_min_max] if args.key?(:requires_min_max)
2126
+ end
2127
+ end
2128
+
2129
+ # Output only. Custom numeric bucketing result.
2130
+ class NumericBucketingResult
2131
+ include Google::Apis::Core::Hashable
2132
+
2133
+ # Count within each bucket. Its size is the length of NumericBucketingOption.
2134
+ # bucket_bounds plus 1.
2135
+ # Corresponds to the JSON property `counts`
2136
+ # @return [Array<Google::Apis::JobsV3p1beta1::BucketizedCount>]
2137
+ attr_accessor :counts
2138
+
2139
+ # Stores the maximum value of the numeric field. Is populated only if [
2140
+ # NumericBucketingOption.requires_min_max] is set to true.
2141
+ # Corresponds to the JSON property `maxValue`
2142
+ # @return [Float]
2143
+ attr_accessor :max_value
2144
+
2145
+ # Stores the minimum value of the numeric field. Will be populated only if [
2146
+ # NumericBucketingOption.requires_min_max] is set to true.
2147
+ # Corresponds to the JSON property `minValue`
2148
+ # @return [Float]
2149
+ attr_accessor :min_value
2150
+
2151
+ def initialize(**args)
2152
+ update!(**args)
2153
+ end
2154
+
2155
+ # Update properties of this object
2156
+ def update!(**args)
2157
+ @counts = args[:counts] if args.key?(:counts)
2158
+ @max_value = args[:max_value] if args.key?(:max_value)
2159
+ @min_value = args[:min_value] if args.key?(:min_value)
2160
+ end
2161
+ end
2162
+
2163
+ # This resource represents a long-running operation that is the result of a
2164
+ # network API call.
2165
+ class Operation
2166
+ include Google::Apis::Core::Hashable
2167
+
2168
+ # If the value is `false`, it means the operation is still in progress. If `true`
2169
+ # , the operation is completed, and either `error` or `response` is available.
2170
+ # Corresponds to the JSON property `done`
2171
+ # @return [Boolean]
2172
+ attr_accessor :done
2173
+ alias_method :done?, :done
2174
+
2175
+ # The `Status` type defines a logical error model that is suitable for different
2176
+ # programming environments, including REST APIs and RPC APIs. It is used by [
2177
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
2178
+ # data: error code, error message, and error details. You can find out more
2179
+ # about this error model and how to work with it in the [API Design Guide](https:
2180
+ # //cloud.google.com/apis/design/errors).
2181
+ # Corresponds to the JSON property `error`
2182
+ # @return [Google::Apis::JobsV3p1beta1::Status]
2183
+ attr_accessor :error
2184
+
2185
+ # Service-specific metadata associated with the operation. It typically contains
2186
+ # progress information and common metadata such as create time. Some services
2187
+ # might not provide such metadata. Any method that returns a long-running
2188
+ # operation should document the metadata type, if any.
2189
+ # Corresponds to the JSON property `metadata`
2190
+ # @return [Hash<String,Object>]
2191
+ attr_accessor :metadata
2192
+
2193
+ # The server-assigned name, which is only unique within the same service that
2194
+ # originally returns it. If you use the default HTTP mapping, the `name` should
2195
+ # be a resource name ending with `operations/`unique_id``.
2196
+ # Corresponds to the JSON property `name`
2197
+ # @return [String]
2198
+ attr_accessor :name
2199
+
2200
+ # The normal response of the operation in case of success. If the original
2201
+ # method returns no data on success, such as `Delete`, the response is `google.
2202
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
2203
+ # the response should be the resource. For other methods, the response should
2204
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
2205
+ # example, if the original method name is `TakeSnapshot()`, the inferred
2206
+ # response type is `TakeSnapshotResponse`.
2207
+ # Corresponds to the JSON property `response`
2208
+ # @return [Hash<String,Object>]
2209
+ attr_accessor :response
2210
+
2211
+ def initialize(**args)
2212
+ update!(**args)
2213
+ end
2214
+
2215
+ # Update properties of this object
2216
+ def update!(**args)
2217
+ @done = args[:done] if args.key?(:done)
2218
+ @error = args[:error] if args.key?(:error)
2219
+ @metadata = args[:metadata] if args.key?(:metadata)
2220
+ @name = args[:name] if args.key?(:name)
2221
+ @response = args[:response] if args.key?(:response)
2222
+ end
2223
+ end
2224
+
2225
+ # Represents a postal address, e.g. for postal delivery or payments addresses.
2226
+ # Given a postal address, a postal service can deliver items to a premise, P.O.
2227
+ # Box or similar. It is not intended to model geographical locations (roads,
2228
+ # towns, mountains). In typical usage an address would be created via user input
2229
+ # or from importing existing data, depending on the type of process. Advice on
2230
+ # address input / editing: - Use an i18n-ready address widget such as https://
2231
+ # github.com/google/libaddressinput) - Users should not be presented with UI
2232
+ # elements for input or editing of fields outside countries where that field is
2233
+ # used. For more guidance on how to use this schema, please see: https://support.
2234
+ # google.com/business/answer/6397478
2235
+ class PostalAddress
2236
+ include Google::Apis::Core::Hashable
2237
+
2238
+ # Unstructured address lines describing the lower levels of an address. Because
2239
+ # values in address_lines do not have type information and may sometimes contain
2240
+ # multiple values in a single field (e.g. "Austin, TX"), it is important that
2241
+ # the line order is clear. The order of address lines should be "envelope order"
2242
+ # for the country/region of the address. In places where this can vary (e.g.
2243
+ # Japan), address_language is used to make it explicit (e.g. "ja" for large-to-
2244
+ # small ordering and "ja-Latn" or "en" for small-to-large). This way, the most
2245
+ # specific line of an address can be selected based on the language. The minimum
2246
+ # permitted structural representation of an address consists of a region_code
2247
+ # with all remaining information placed in the address_lines. It would be
2248
+ # possible to format such an address very approximately without geocoding, but
2249
+ # no semantic reasoning could be made about any of the address components until
2250
+ # it was at least partially resolved. Creating an address only containing a
2251
+ # region_code and address_lines, and then geocoding is the recommended way to
2252
+ # handle completely unstructured addresses (as opposed to guessing which parts
2253
+ # of the address should be localities or administrative areas).
2254
+ # Corresponds to the JSON property `addressLines`
2255
+ # @return [Array<String>]
2256
+ attr_accessor :address_lines
2257
+
2258
+ # Optional. Highest administrative subdivision which is used for postal
2259
+ # addresses of a country or region. For example, this can be a state, a province,
2260
+ # an oblast, or a prefecture. Specifically, for Spain this is the province and
2261
+ # not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many
2262
+ # countries don't use an administrative area in postal addresses. E.g. in
2263
+ # Switzerland this should be left unpopulated.
2264
+ # Corresponds to the JSON property `administrativeArea`
2265
+ # @return [String]
2266
+ attr_accessor :administrative_area
2267
+
2268
+ # Optional. BCP-47 language code of the contents of this address (if known).
2269
+ # This is often the UI language of the input form or is expected to match one of
2270
+ # the languages used in the address' country/region, or their transliterated
2271
+ # equivalents. This can affect formatting in certain countries, but is not
2272
+ # critical to the correctness of the data and will never affect any validation
2273
+ # or other non-formatting related operations. If this value is not known, it
2274
+ # should be omitted (rather than specifying a possibly incorrect default).
2275
+ # Examples: "zh-Hant", "ja", "ja-Latn", "en".
2276
+ # Corresponds to the JSON property `languageCode`
2277
+ # @return [String]
2278
+ attr_accessor :language_code
2279
+
2280
+ # Optional. Generally refers to the city/town portion of the address. Examples:
2281
+ # US city, IT comune, UK post town. In regions of the world where localities are
2282
+ # not well defined or do not fit into this structure well, leave locality empty
2283
+ # and use address_lines.
2284
+ # Corresponds to the JSON property `locality`
2285
+ # @return [String]
2286
+ attr_accessor :locality
2287
+
2288
+ # Optional. The name of the organization at the address.
2289
+ # Corresponds to the JSON property `organization`
2290
+ # @return [String]
2291
+ attr_accessor :organization
2292
+
2293
+ # Optional. Postal code of the address. Not all countries use or require postal
2294
+ # codes to be present, but where they are used, they may trigger additional
2295
+ # validation with other parts of the address (e.g. state/zip validation in the U.
2296
+ # S.A.).
2297
+ # Corresponds to the JSON property `postalCode`
2298
+ # @return [String]
2299
+ attr_accessor :postal_code
2300
+
2301
+ # Optional. The recipient at the address. This field may, under certain
2302
+ # circumstances, contain multiline information. For example, it might contain "
2303
+ # care of" information.
2304
+ # Corresponds to the JSON property `recipients`
2305
+ # @return [Array<String>]
2306
+ attr_accessor :recipients
2307
+
2308
+ # Required. CLDR region code of the country/region of the address. This is never
2309
+ # inferred and it is up to the user to ensure the value is correct. See http://
2310
+ # cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/
2311
+ # territory_information.html for details. Example: "CH" for Switzerland.
2312
+ # Corresponds to the JSON property `regionCode`
2313
+ # @return [String]
2314
+ attr_accessor :region_code
2315
+
2316
+ # The schema revision of the `PostalAddress`. This must be set to 0, which is
2317
+ # the latest revision. All new revisions **must** be backward compatible with
2318
+ # old revisions.
2319
+ # Corresponds to the JSON property `revision`
2320
+ # @return [Fixnum]
2321
+ attr_accessor :revision
2322
+
2323
+ # Optional. Additional, country-specific, sorting code. This is not used in most
2324
+ # regions. Where it is used, the value is either a string like "CEDEX",
2325
+ # optionally followed by a number (e.g. "CEDEX 7"), or just a number alone,
2326
+ # representing the "sector code" (Jamaica), "delivery area indicator" (Malawi)
2327
+ # or "post office indicator" (e.g. Côte d'Ivoire).
2328
+ # Corresponds to the JSON property `sortingCode`
2329
+ # @return [String]
2330
+ attr_accessor :sorting_code
2331
+
2332
+ # Optional. Sublocality of the address. For example, this can be neighborhoods,
2333
+ # boroughs, districts.
2334
+ # Corresponds to the JSON property `sublocality`
2335
+ # @return [String]
2336
+ attr_accessor :sublocality
2337
+
2338
+ def initialize(**args)
2339
+ update!(**args)
2340
+ end
2341
+
2342
+ # Update properties of this object
2343
+ def update!(**args)
2344
+ @address_lines = args[:address_lines] if args.key?(:address_lines)
2345
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
2346
+ @language_code = args[:language_code] if args.key?(:language_code)
2347
+ @locality = args[:locality] if args.key?(:locality)
2348
+ @organization = args[:organization] if args.key?(:organization)
2349
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
2350
+ @recipients = args[:recipients] if args.key?(:recipients)
2351
+ @region_code = args[:region_code] if args.key?(:region_code)
2352
+ @revision = args[:revision] if args.key?(:revision)
2353
+ @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
2354
+ @sublocality = args[:sublocality] if args.key?(:sublocality)
2355
+ end
2356
+ end
2357
+
2358
+ # Input only. Options for job processing.
2359
+ class ProcessingOptions
2360
+ include Google::Apis::Core::Hashable
2361
+
2362
+ # Optional. If set to `true`, the service does not attempt to resolve a more
2363
+ # precise address for the job.
2364
+ # Corresponds to the JSON property `disableStreetAddressResolution`
2365
+ # @return [Boolean]
2366
+ attr_accessor :disable_street_address_resolution
2367
+ alias_method :disable_street_address_resolution?, :disable_street_address_resolution
2368
+
2369
+ # Optional. Option for job HTML content sanitization. Applied fields are: *
2370
+ # description * applicationInfo.instruction * incentives * qualifications *
2371
+ # responsibilities HTML tags in these fields may be stripped if sanitiazation is
2372
+ # not disabled. Defaults to HtmlSanitization.SIMPLE_FORMATTING_ONLY.
2373
+ # Corresponds to the JSON property `htmlSanitization`
2374
+ # @return [String]
2375
+ attr_accessor :html_sanitization
2376
+
2377
+ def initialize(**args)
2378
+ update!(**args)
2379
+ end
2380
+
2381
+ # Update properties of this object
2382
+ def update!(**args)
2383
+ @disable_street_address_resolution = args[:disable_street_address_resolution] if args.key?(:disable_street_address_resolution)
2384
+ @html_sanitization = args[:html_sanitization] if args.key?(:html_sanitization)
2385
+ end
2386
+ end
2387
+
2388
+ # Input only. Meta information related to the job searcher or entity conducting
2389
+ # the job search. This information is used to improve the performance of the
2390
+ # service.
2391
+ class RequestMetadata
2392
+ include Google::Apis::Core::Hashable
2393
+
2394
+ # Device information collected from the job seeker, candidate, or other entity
2395
+ # conducting the job search. Providing this information improves the quality of
2396
+ # the search results across devices.
2397
+ # Corresponds to the JSON property `deviceInfo`
2398
+ # @return [Google::Apis::JobsV3p1beta1::DeviceInfo]
2399
+ attr_accessor :device_info
2400
+
2401
+ # Required. The client-defined scope or source of the service call, which
2402
+ # typically is the domain on which the service has been implemented and is
2403
+ # currently being run. For example, if the service is being run by client *Foo,
2404
+ # Inc.*, on job board www.foo.com and career site www.bar.com, then this field
2405
+ # is set to "foo.com" for use on the job board, and "bar.com" for use on the
2406
+ # career site. If this field isn't available for some reason, send "UNKNOWN".
2407
+ # Any improvements to the model for a particular tenant site rely on this field
2408
+ # being set correctly to a domain. The maximum number of allowed characters is
2409
+ # 255.
2410
+ # Corresponds to the JSON property `domain`
2411
+ # @return [String]
2412
+ attr_accessor :domain
2413
+
2414
+ # Required. A unique session identification string. A session is defined as the
2415
+ # duration of an end user's interaction with the service over a certain period.
2416
+ # Obfuscate this field for privacy concerns before providing it to the service.
2417
+ # If this field is not available for some reason, send "UNKNOWN". Note that any
2418
+ # improvements to the model for a particular tenant site, rely on this field
2419
+ # being set correctly to some unique session_id. The maximum number of allowed
2420
+ # characters is 255.
2421
+ # Corresponds to the JSON property `sessionId`
2422
+ # @return [String]
2423
+ attr_accessor :session_id
2424
+
2425
+ # Required. A unique user identification string, as determined by the client. To
2426
+ # have the strongest positive impact on search quality make sure the client-
2427
+ # level is unique. Obfuscate this field for privacy concerns before providing it
2428
+ # to the service. If this field is not available for some reason, send "UNKNOWN".
2429
+ # Note that any improvements to the model for a particular tenant site, rely on
2430
+ # this field being set correctly to a unique user_id. The maximum number of
2431
+ # allowed characters is 255.
2432
+ # Corresponds to the JSON property `userId`
2433
+ # @return [String]
2434
+ attr_accessor :user_id
2435
+
2436
+ def initialize(**args)
2437
+ update!(**args)
2438
+ end
2439
+
2440
+ # Update properties of this object
2441
+ def update!(**args)
2442
+ @device_info = args[:device_info] if args.key?(:device_info)
2443
+ @domain = args[:domain] if args.key?(:domain)
2444
+ @session_id = args[:session_id] if args.key?(:session_id)
2445
+ @user_id = args[:user_id] if args.key?(:user_id)
2446
+ end
2447
+ end
2448
+
2449
+ # Output only. Additional information returned to client, such as debugging
2450
+ # information.
2451
+ class ResponseMetadata
2452
+ include Google::Apis::Core::Hashable
2453
+
2454
+ # A unique id associated with this call. This id is logged for tracking purposes.
2455
+ # Corresponds to the JSON property `requestId`
2456
+ # @return [String]
2457
+ attr_accessor :request_id
2458
+
2459
+ def initialize(**args)
2460
+ update!(**args)
2461
+ end
2462
+
2463
+ # Update properties of this object
2464
+ def update!(**args)
2465
+ @request_id = args[:request_id] if args.key?(:request_id)
2466
+ end
2467
+ end
2468
+
2469
+ # Input only. The Request body of the `SearchJobs` call.
2470
+ class SearchJobsRequest
2471
+ include Google::Apis::Core::Hashable
2472
+
2473
+ # Input only. Custom ranking information for SearchJobsRequest.
2474
+ # Corresponds to the JSON property `customRankingInfo`
2475
+ # @return [Google::Apis::JobsV3p1beta1::CustomRankingInfo]
2476
+ attr_accessor :custom_ranking_info
2477
+
2478
+ # Optional. Controls whether to disable exact keyword match on Job.job_title,
2479
+ # Job.description, Job.company_display_name, Job.locations, Job.qualifications.
2480
+ # When disable keyword match is turned off, a keyword match returns jobs that do
2481
+ # not match given category filters when there are matching keywords. For example,
2482
+ # the query "program manager," a result is returned even if the job posting has
2483
+ # the title "software developer," which does not fall into "program manager"
2484
+ # ontology, but does have "program manager" appearing in its description. For
2485
+ # queries like "cloud" that does not contain title or location specific ontology,
2486
+ # jobs with "cloud" keyword matches are returned regardless of this flag's
2487
+ # value. Please use Company.keyword_searchable_custom_fields or Company.
2488
+ # keyword_searchable_custom_attributes if company specific globally matched
2489
+ # custom field/attribute string values is needed. Enabling keyword match
2490
+ # improves recall of subsequent search requests. Defaults to false.
2491
+ # Corresponds to the JSON property `disableKeywordMatch`
2492
+ # @return [Boolean]
2493
+ attr_accessor :disable_keyword_match
2494
+ alias_method :disable_keyword_match?, :disable_keyword_match
2495
+
2496
+ # Optional. Controls whether highly similar jobs are returned next to each other
2497
+ # in the search results. Jobs are identified as highly similar based on their
2498
+ # titles, job categories, and locations. Highly similar results are clustered so
2499
+ # that only one representative job of the cluster is displayed to the job seeker
2500
+ # higher up in the results, with the other jobs being displayed lower down in
2501
+ # the results. Defaults to DiversificationLevel.SIMPLE if no value is specified.
2502
+ # Corresponds to the JSON property `diversificationLevel`
2503
+ # @return [String]
2504
+ attr_accessor :diversification_level
2505
+
2506
+ # Optional. Controls whether to broaden the search when it produces sparse
2507
+ # results. Broadened queries append results to the end of the matching results
2508
+ # list. Defaults to false.
2509
+ # Corresponds to the JSON property `enableBroadening`
2510
+ # @return [Boolean]
2511
+ attr_accessor :enable_broadening
2512
+ alias_method :enable_broadening?, :enable_broadening
2513
+
2514
+ # Input only. Histogram facets to be specified in SearchJobsRequest.
2515
+ # Corresponds to the JSON property `histogramFacets`
2516
+ # @return [Google::Apis::JobsV3p1beta1::HistogramFacets]
2517
+ attr_accessor :histogram_facets
2518
+
2519
+ # Optional. Expression based histogram requests for jobs matching JobQuery.
2520
+ # Corresponds to the JSON property `histogramQueries`
2521
+ # @return [Array<Google::Apis::JobsV3p1beta1::HistogramQuery>]
2522
+ attr_accessor :histogram_queries
2523
+
2524
+ # Input only. The query required to perform a search query.
2525
+ # Corresponds to the JSON property `jobQuery`
2526
+ # @return [Google::Apis::JobsV3p1beta1::JobQuery]
2527
+ attr_accessor :job_query
2528
+
2529
+ # Optional. The desired job attributes returned for jobs in the search response.
2530
+ # Defaults to JobView.SMALL if no value is specified.
2531
+ # Corresponds to the JSON property `jobView`
2532
+ # @return [String]
2533
+ attr_accessor :job_view
2534
+
2535
+ # Optional. An integer that specifies the current offset (that is, starting
2536
+ # result location, amongst the jobs deemed by the API as relevant) in search
2537
+ # results. This field is only considered if page_token is unset. The maximum
2538
+ # allowed value is 5000. Otherwise an error is thrown. For example, 0 means to
2539
+ # return results starting from the first matching job, and 10 means to return
2540
+ # from the 11th job. This can be used for pagination, (for example, pageSize =
2541
+ # 10 and offset = 10 means to return from the second page).
2542
+ # Corresponds to the JSON property `offset`
2543
+ # @return [Fixnum]
2544
+ attr_accessor :offset
2545
+
2546
+ # Optional. The criteria determining how search results are sorted. Default is "
2547
+ # relevance desc". Supported options are: * `"relevance desc"`: By relevance
2548
+ # descending, as determined by the API algorithms. Relevance thresholding of
2549
+ # query results is only available with this ordering. * `"posting_publish_time
2550
+ # desc"`: By Job.posting_publish_time descending. * `"posting_update_time desc"`:
2551
+ # By Job.posting_update_time descending. * `"title"`: By Job.title ascending. *
2552
+ # `"title desc"`: By Job.title descending. * `"annualized_base_compensation"`:
2553
+ # By job's CompensationInfo.annualized_base_compensation_range ascending. Jobs
2554
+ # whose annualized base compensation is unspecified are put at the end of search
2555
+ # results. * `"annualized_base_compensation desc"`: By job's CompensationInfo.
2556
+ # annualized_base_compensation_range descending. Jobs whose annualized base
2557
+ # compensation is unspecified are put at the end of search results. * `"
2558
+ # annualized_total_compensation"`: By job's CompensationInfo.
2559
+ # annualized_total_compensation_range ascending. Jobs whose annualized base
2560
+ # compensation is unspecified are put at the end of search results. * `"
2561
+ # annualized_total_compensation desc"`: By job's CompensationInfo.
2562
+ # annualized_total_compensation_range descending. Jobs whose annualized base
2563
+ # compensation is unspecified are put at the end of search results. * `"
2564
+ # custom_ranking desc"`: By the relevance score adjusted to the
2565
+ # SearchJobsRequest.custom_ranking_info.ranking_expression with weight factor
2566
+ # assigned by SearchJobsRequest.custom_ranking_info.importance_level in
2567
+ # descending order. * Location sorting: Use the special syntax to order jobs by
2568
+ # distance: "`distance_from('Hawaii')`": Order by distance from Hawaii. "`
2569
+ # distance_from(19.89, 155.5)`": Order by distance from a coordinate. "`
2570
+ # distance_from('Hawaii'), distance_from('Puerto Rico')`": Order by multiple
2571
+ # locations. See details below. "`distance_from('Hawaii'), distance_from(19.89,
2572
+ # 155.5)`": Order by multiple locations. See details below. The string can have
2573
+ # a maximum of 256 characters. When multiple distance centers are provided, a
2574
+ # job that is close to any of the distance centers would have a high rank. When
2575
+ # a job has multiple locations, the job location closest to one of the distance
2576
+ # centers will be used. Jobs that don't have locations will be ranked at the
2577
+ # bottom. Distance is calculated with a precision of 11.3 meters (37.4 feet).
2578
+ # Diversification strategy is still applied unless explicitly disabled in
2579
+ # diversification_level.
2580
+ # Corresponds to the JSON property `orderBy`
2581
+ # @return [String]
2582
+ attr_accessor :order_by
2583
+
2584
+ # Optional. A limit on the number of jobs returned in the search results.
2585
+ # Increasing this value above the default value of 10 can increase search
2586
+ # response time. The value can be between 1 and 100.
2587
+ # Corresponds to the JSON property `pageSize`
2588
+ # @return [Fixnum]
2589
+ attr_accessor :page_size
2590
+
2591
+ # Optional. The token specifying the current offset within search results. See
2592
+ # SearchJobsResponse.next_page_token for an explanation of how to obtain the
2593
+ # next set of query results.
2594
+ # Corresponds to the JSON property `pageToken`
2595
+ # @return [String]
2596
+ attr_accessor :page_token
2597
+
2598
+ # Input only. Meta information related to the job searcher or entity conducting
2599
+ # the job search. This information is used to improve the performance of the
2600
+ # service.
2601
+ # Corresponds to the JSON property `requestMetadata`
2602
+ # @return [Google::Apis::JobsV3p1beta1::RequestMetadata]
2603
+ attr_accessor :request_metadata
2604
+
2605
+ # This field is deprecated.
2606
+ # Corresponds to the JSON property `requirePreciseResultSize`
2607
+ # @return [Boolean]
2608
+ attr_accessor :require_precise_result_size
2609
+ alias_method :require_precise_result_size?, :require_precise_result_size
2610
+
2611
+ # Optional. Mode of a search. Defaults to SearchMode.JOB_SEARCH.
2612
+ # Corresponds to the JSON property `searchMode`
2613
+ # @return [String]
2614
+ attr_accessor :search_mode
2615
+
2616
+ def initialize(**args)
2617
+ update!(**args)
2618
+ end
2619
+
2620
+ # Update properties of this object
2621
+ def update!(**args)
2622
+ @custom_ranking_info = args[:custom_ranking_info] if args.key?(:custom_ranking_info)
2623
+ @disable_keyword_match = args[:disable_keyword_match] if args.key?(:disable_keyword_match)
2624
+ @diversification_level = args[:diversification_level] if args.key?(:diversification_level)
2625
+ @enable_broadening = args[:enable_broadening] if args.key?(:enable_broadening)
2626
+ @histogram_facets = args[:histogram_facets] if args.key?(:histogram_facets)
2627
+ @histogram_queries = args[:histogram_queries] if args.key?(:histogram_queries)
2628
+ @job_query = args[:job_query] if args.key?(:job_query)
2629
+ @job_view = args[:job_view] if args.key?(:job_view)
2630
+ @offset = args[:offset] if args.key?(:offset)
2631
+ @order_by = args[:order_by] if args.key?(:order_by)
2632
+ @page_size = args[:page_size] if args.key?(:page_size)
2633
+ @page_token = args[:page_token] if args.key?(:page_token)
2634
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
2635
+ @require_precise_result_size = args[:require_precise_result_size] if args.key?(:require_precise_result_size)
2636
+ @search_mode = args[:search_mode] if args.key?(:search_mode)
2637
+ end
2638
+ end
2639
+
2640
+ # Output only. Response for SearchJob method.
2641
+ class SearchJobsResponse
2642
+ include Google::Apis::Core::Hashable
2643
+
2644
+ # If query broadening is enabled, we may append additional results from the
2645
+ # broadened query. This number indicates how many of the jobs returned in the
2646
+ # jobs field are from the broadened query. These results are always at the end
2647
+ # of the jobs list. In particular, a value of 0, or if the field isn't set, all
2648
+ # the jobs in the jobs list are from the original (without broadening) query. If
2649
+ # this field is non-zero, subsequent requests with offset after this result set
2650
+ # should contain all broadened results.
2651
+ # Corresponds to the JSON property `broadenedQueryJobsCount`
2652
+ # @return [Fixnum]
2653
+ attr_accessor :broadened_query_jobs_count
2654
+
2655
+ # An estimation of the number of jobs that match the specified query. This
2656
+ # number is not guaranteed to be accurate. For accurate results, see
2657
+ # SearchJobsResponse.total_size.
2658
+ # Corresponds to the JSON property `estimatedTotalSize`
2659
+ # @return [Fixnum]
2660
+ attr_accessor :estimated_total_size
2661
+
2662
+ # The histogram results that match with specified SearchJobsRequest.
2663
+ # histogram_queries.
2664
+ # Corresponds to the JSON property `histogramQueryResults`
2665
+ # @return [Array<Google::Apis::JobsV3p1beta1::HistogramQueryResult>]
2666
+ attr_accessor :histogram_query_results
2667
+
2668
+ # Output only. Histogram results that match HistogramFacets specified in
2669
+ # SearchJobsRequest.
2670
+ # Corresponds to the JSON property `histogramResults`
2671
+ # @return [Google::Apis::JobsV3p1beta1::HistogramResults]
2672
+ attr_accessor :histogram_results
2673
+
2674
+ # The location filters that the service applied to the specified query. If any
2675
+ # filters are lat-lng based, the JobLocation.location_type is JobLocation.
2676
+ # LocationType#LOCATION_TYPE_UNSPECIFIED.
2677
+ # Corresponds to the JSON property `locationFilters`
2678
+ # @return [Array<Google::Apis::JobsV3p1beta1::Location>]
2679
+ attr_accessor :location_filters
2680
+
2681
+ # The Job entities that match the specified SearchJobsRequest.
2682
+ # Corresponds to the JSON property `matchingJobs`
2683
+ # @return [Array<Google::Apis::JobsV3p1beta1::MatchingJob>]
2684
+ attr_accessor :matching_jobs
2685
+
2686
+ # Output only. Additional information returned to client, such as debugging
2687
+ # information.
2688
+ # Corresponds to the JSON property `metadata`
2689
+ # @return [Google::Apis::JobsV3p1beta1::ResponseMetadata]
2690
+ attr_accessor :metadata
2691
+
2692
+ # The token that specifies the starting position of the next page of results.
2693
+ # This field is empty if there are no more results.
2694
+ # Corresponds to the JSON property `nextPageToken`
2695
+ # @return [String]
2696
+ attr_accessor :next_page_token
2697
+
2698
+ # Output only. Spell check result.
2699
+ # Corresponds to the JSON property `spellCorrection`
2700
+ # @return [Google::Apis::JobsV3p1beta1::SpellingCorrection]
2701
+ attr_accessor :spell_correction
2702
+
2703
+ # The precise result count with limit 100,000.
2704
+ # Corresponds to the JSON property `totalSize`
2705
+ # @return [Fixnum]
2706
+ attr_accessor :total_size
2707
+
2708
+ def initialize(**args)
2709
+ update!(**args)
2710
+ end
2711
+
2712
+ # Update properties of this object
2713
+ def update!(**args)
2714
+ @broadened_query_jobs_count = args[:broadened_query_jobs_count] if args.key?(:broadened_query_jobs_count)
2715
+ @estimated_total_size = args[:estimated_total_size] if args.key?(:estimated_total_size)
2716
+ @histogram_query_results = args[:histogram_query_results] if args.key?(:histogram_query_results)
2717
+ @histogram_results = args[:histogram_results] if args.key?(:histogram_results)
2718
+ @location_filters = args[:location_filters] if args.key?(:location_filters)
2719
+ @matching_jobs = args[:matching_jobs] if args.key?(:matching_jobs)
2720
+ @metadata = args[:metadata] if args.key?(:metadata)
2721
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2722
+ @spell_correction = args[:spell_correction] if args.key?(:spell_correction)
2723
+ @total_size = args[:total_size] if args.key?(:total_size)
2724
+ end
2725
+ end
2726
+
2727
+ # Output only. Spell check result.
2728
+ class SpellingCorrection
2729
+ include Google::Apis::Core::Hashable
2730
+
2731
+ # Indicates if the query was corrected by the spell checker.
2732
+ # Corresponds to the JSON property `corrected`
2733
+ # @return [Boolean]
2734
+ attr_accessor :corrected
2735
+ alias_method :corrected?, :corrected
2736
+
2737
+ # Correction output consisting of the corrected keyword string.
2738
+ # Corresponds to the JSON property `correctedText`
2739
+ # @return [String]
2740
+ attr_accessor :corrected_text
2741
+
2742
+ def initialize(**args)
2743
+ update!(**args)
2744
+ end
2745
+
2746
+ # Update properties of this object
2747
+ def update!(**args)
2748
+ @corrected = args[:corrected] if args.key?(:corrected)
2749
+ @corrected_text = args[:corrected_text] if args.key?(:corrected_text)
2750
+ end
2751
+ end
2752
+
2753
+ # The `Status` type defines a logical error model that is suitable for different
2754
+ # programming environments, including REST APIs and RPC APIs. It is used by [
2755
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
2756
+ # data: error code, error message, and error details. You can find out more
2757
+ # about this error model and how to work with it in the [API Design Guide](https:
2758
+ # //cloud.google.com/apis/design/errors).
2759
+ class Status
2760
+ include Google::Apis::Core::Hashable
2761
+
2762
+ # The status code, which should be an enum value of google.rpc.Code.
2763
+ # Corresponds to the JSON property `code`
2764
+ # @return [Fixnum]
2765
+ attr_accessor :code
2766
+
2767
+ # A list of messages that carry the error details. There is a common set of
2768
+ # message types for APIs to use.
2769
+ # Corresponds to the JSON property `details`
2770
+ # @return [Array<Hash<String,Object>>]
2771
+ attr_accessor :details
2772
+
2773
+ # A developer-facing error message, which should be in English. Any user-facing
2774
+ # error message should be localized and sent in the google.rpc.Status.details
2775
+ # field, or localized by the client.
2776
+ # Corresponds to the JSON property `message`
2777
+ # @return [String]
2778
+ attr_accessor :message
2779
+
2780
+ def initialize(**args)
2781
+ update!(**args)
2782
+ end
2783
+
2784
+ # Update properties of this object
2785
+ def update!(**args)
2786
+ @code = args[:code] if args.key?(:code)
2787
+ @details = args[:details] if args.key?(:details)
2788
+ @message = args[:message] if args.key?(:message)
2789
+ end
2790
+ end
2791
+
2792
+ # Represents a time of day. The date and time zone are either not significant or
2793
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
2794
+ # types are google.type.Date and `google.protobuf.Timestamp`.
2795
+ class TimeOfDay
2796
+ include Google::Apis::Core::Hashable
2797
+
2798
+ # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to
2799
+ # allow the value "24:00:00" for scenarios like business closing time.
2800
+ # Corresponds to the JSON property `hours`
2801
+ # @return [Fixnum]
2802
+ attr_accessor :hours
2803
+
2804
+ # Minutes of hour of day. Must be from 0 to 59.
2805
+ # Corresponds to the JSON property `minutes`
2806
+ # @return [Fixnum]
2807
+ attr_accessor :minutes
2808
+
2809
+ # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2810
+ # Corresponds to the JSON property `nanos`
2811
+ # @return [Fixnum]
2812
+ attr_accessor :nanos
2813
+
2814
+ # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2815
+ # allow the value 60 if it allows leap-seconds.
2816
+ # Corresponds to the JSON property `seconds`
2817
+ # @return [Fixnum]
2818
+ attr_accessor :seconds
2819
+
2820
+ def initialize(**args)
2821
+ update!(**args)
2822
+ end
2823
+
2824
+ # Update properties of this object
2825
+ def update!(**args)
2826
+ @hours = args[:hours] if args.key?(:hours)
2827
+ @minutes = args[:minutes] if args.key?(:minutes)
2828
+ @nanos = args[:nanos] if args.key?(:nanos)
2829
+ @seconds = args[:seconds] if args.key?(:seconds)
2830
+ end
2831
+ end
2832
+
2833
+ # Message representing a period of time between two timestamps.
2834
+ class TimestampRange
2835
+ include Google::Apis::Core::Hashable
2836
+
2837
+ # End of the period.
2838
+ # Corresponds to the JSON property `endTime`
2839
+ # @return [String]
2840
+ attr_accessor :end_time
2841
+
2842
+ # Begin of the period.
2843
+ # Corresponds to the JSON property `startTime`
2844
+ # @return [String]
2845
+ attr_accessor :start_time
2846
+
2847
+ def initialize(**args)
2848
+ update!(**args)
2849
+ end
2850
+
2851
+ # Update properties of this object
2852
+ def update!(**args)
2853
+ @end_time = args[:end_time] if args.key?(:end_time)
2854
+ @start_time = args[:start_time] if args.key?(:start_time)
2855
+ end
2856
+ end
2857
+
2858
+ # Input only. Request for updating a specified company.
2859
+ class UpdateCompanyRequest
2860
+ include Google::Apis::Core::Hashable
2861
+
2862
+ # A Company resource represents a company in the service. A company is the
2863
+ # entity that owns job postings, that is, the hiring entity responsible for
2864
+ # employing applicants for the job position.
2865
+ # Corresponds to the JSON property `company`
2866
+ # @return [Google::Apis::JobsV3p1beta1::Company]
2867
+ attr_accessor :company
2868
+
2869
+ # Optional but strongly recommended for the best service experience. If
2870
+ # update_mask is provided, only the specified fields in company are updated.
2871
+ # Otherwise all the fields are updated. A field mask to specify the company
2872
+ # fields to be updated. Only top level fields of Company are supported.
2873
+ # Corresponds to the JSON property `updateMask`
2874
+ # @return [String]
2875
+ attr_accessor :update_mask
2876
+
2877
+ def initialize(**args)
2878
+ update!(**args)
2879
+ end
2880
+
2881
+ # Update properties of this object
2882
+ def update!(**args)
2883
+ @company = args[:company] if args.key?(:company)
2884
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
2885
+ end
2886
+ end
2887
+
2888
+ # Input only. Update job request.
2889
+ class UpdateJobRequest
2890
+ include Google::Apis::Core::Hashable
2891
+
2892
+ # A Job resource represents a job posting (also referred to as a "job listing"
2893
+ # or "job requisition"). A job belongs to a Company, which is the hiring entity
2894
+ # responsible for the job.
2895
+ # Corresponds to the JSON property `job`
2896
+ # @return [Google::Apis::JobsV3p1beta1::Job]
2897
+ attr_accessor :job
2898
+
2899
+ # Optional but strongly recommended to be provided for the best service
2900
+ # experience. If update_mask is provided, only the specified fields in job are
2901
+ # updated. Otherwise all the fields are updated. A field mask to restrict the
2902
+ # fields that are updated. Only top level fields of Job are supported.
2903
+ # Corresponds to the JSON property `updateMask`
2904
+ # @return [String]
2905
+ attr_accessor :update_mask
2906
+
2907
+ def initialize(**args)
2908
+ update!(**args)
2909
+ end
2910
+
2911
+ # Update properties of this object
2912
+ def update!(**args)
2913
+ @job = args[:job] if args.key?(:job)
2914
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
2915
+ end
2916
+ end
2917
+ end
2918
+ end
2919
+ end