2018-08-23 00:36:00 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module JobsV3
|
|
|
|
|
|
|
|
# Application related details of a job posting.
|
|
|
|
class ApplicationInfo
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional but at least one of uris, emails or instruction must be specified.
|
|
|
|
# Use this field to specify email address(es) to which resumes or applications
|
|
|
|
# can be sent. The maximum number of allowed characters for each entry is 255.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `emails`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :emails
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional but at least one of uris, emails or instruction must be specified.
|
|
|
|
# Use this field to provide instructions, such as "Mail your application to ...",
|
|
|
|
# that a candidate can follow to apply for the job. This field accepts and
|
|
|
|
# sanitizes HTML input, and also accepts bold, italic, ordered list, and
|
|
|
|
# unordered list markup tags. The maximum number of allowed characters is 3,000.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `instruction`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :instruction
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional but at least one of uris, emails or instruction must be specified.
|
|
|
|
# Use this URI field to direct an applicant to a website, for example to link to
|
|
|
|
# an online application form. The maximum number of allowed characters for each
|
|
|
|
# entry is 2,000.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `uris`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :uris
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@emails = args[:emails] if args.key?(:emails)
|
|
|
|
@instruction = args[:instruction] if args.key?(:instruction)
|
|
|
|
@uris = args[:uris] if args.key?(:uris)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Batch delete jobs request.
|
2018-08-23 00:36:00 +00:00
|
|
|
class BatchDeleteJobsRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Required. The filter string specifies the jobs to be deleted. Supported
|
|
|
|
# operator: =, AND The fields eligible for filtering are: * `companyName` (
|
|
|
|
# Required) * `requisitionId` (Required) Sample Query: companyName = "projects/
|
|
|
|
# api-test-project/companies/123" AND requisitionId = "req-1"
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `filter`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :filter
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@filter = args[:filter] if args.key?(:filter)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Represents starting and ending value of a range in double.
|
|
|
|
class BucketRange
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Starting value of the bucket range.
|
|
|
|
# Corresponds to the JSON property `from`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :from
|
|
|
|
|
|
|
|
# Ending value of the bucket range.
|
|
|
|
# Corresponds to the JSON property `to`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :to
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@from = args[:from] if args.key?(:from)
|
|
|
|
@to = args[:to] if args.key?(:to)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Represents count of jobs within one bucket.
|
|
|
|
class BucketizedCount
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Number of jobs whose numeric field value fall into `range`.
|
|
|
|
# Corresponds to the JSON property `count`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :count
|
|
|
|
|
|
|
|
# Represents starting and ending value of a range in double.
|
|
|
|
# Corresponds to the JSON property `range`
|
|
|
|
# @return [Google::Apis::JobsV3::BucketRange]
|
|
|
|
attr_accessor :range
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@count = args[:count] if args.key?(:count)
|
|
|
|
@range = args[:range] if args.key?(:range)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-01-29 00:37:08 +00:00
|
|
|
# An event issued when an end user interacts with the application that
|
|
|
|
# implements Cloud Talent Solution. Providing this information improves the
|
2020-09-14 23:21:28 +00:00
|
|
|
# quality of search and recommendation for the API clients, enabling the service
|
|
|
|
# to perform optimally. The number of events sent must be consistent with other
|
|
|
|
# calls, such as job searches, issued to the service by the client.
|
2019-01-29 00:37:08 +00:00
|
|
|
class ClientEvent
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. The timestamp of the event.
|
2019-01-29 00:37:08 +00:00
|
|
|
# Corresponds to the JSON property `createTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :create_time
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. A unique identifier, generated by the client application. This `
|
2020-09-14 23:21:28 +00:00
|
|
|
# event_id` is used to establish the relationship between different events (see
|
|
|
|
# parent_event_id).
|
2019-01-29 00:37:08 +00:00
|
|
|
# Corresponds to the JSON property `eventId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :event_id
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. Extra information about this event. Used for storing information
|
2020-09-14 23:21:28 +00:00
|
|
|
# with no matching field in event payload, for example, user application
|
|
|
|
# specific context or details. At most 20 keys are supported. The maximum total
|
|
|
|
# size of all keys and values is 2 KB.
|
2019-01-29 00:37:08 +00:00
|
|
|
# Corresponds to the JSON property `extraInfo`
|
|
|
|
# @return [Hash<String,String>]
|
|
|
|
attr_accessor :extra_info
|
|
|
|
|
|
|
|
# An event issued when a job seeker interacts with the application that
|
|
|
|
# implements Cloud Talent Solution.
|
|
|
|
# Corresponds to the JSON property `jobEvent`
|
|
|
|
# @return [Google::Apis::JobsV3::JobEvent]
|
|
|
|
attr_accessor :job_event
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The event_id of an event that resulted in the current event. For
|
2020-09-14 23:21:28 +00:00
|
|
|
# example, a Job view event usually follows a parent impression event: A job
|
|
|
|
# seeker first does a search where a list of jobs appears (impression). The job
|
|
|
|
# seeker then selects a result and views the description of a particular job (
|
|
|
|
# Job view).
|
2019-01-29 00:37:08 +00:00
|
|
|
# Corresponds to the JSON property `parentEventId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :parent_event_id
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. A unique ID generated in the API responses. It can be found in
|
2019-01-29 00:37:08 +00:00
|
|
|
# ResponseMetadata.request_id.
|
|
|
|
# Corresponds to the JSON property `requestId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :request_id
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
|
|
@event_id = args[:event_id] if args.key?(:event_id)
|
|
|
|
@extra_info = args[:extra_info] if args.key?(:extra_info)
|
|
|
|
@job_event = args[:job_event] if args.key?(:job_event)
|
|
|
|
@parent_event_id = args[:parent_event_id] if args.key?(:parent_event_id)
|
|
|
|
@request_id = args[:request_id] if args.key?(:request_id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Parameters needed for commute search.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CommuteFilter
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. If true, jobs without "precise" addresses (street level addresses or
|
2020-09-14 23:21:28 +00:00
|
|
|
# GPS coordinates) might also be returned. For city and coarser level addresses,
|
|
|
|
# text matching is used. If this field is set to false or is not specified, only
|
|
|
|
# jobs that include precise addresses are returned by Commute Search. Note: If `
|
|
|
|
# allow_imprecise_addresses` is set to true, Commute Search is not able to
|
|
|
|
# calculate accurate commute times to jobs with city level and coarser address
|
|
|
|
# information. Jobs with imprecise addresses will return a `travel_duration`
|
|
|
|
# time of 0 regardless of distance from the job seeker.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `allowImpreciseAddresses`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :allow_imprecise_addresses
|
|
|
|
alias_method :allow_imprecise_addresses?, :allow_imprecise_addresses
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. The method of transportation for which to calculate the commute time.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `commuteMethod`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :commute_method
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Represents a time of day. The date and time zone are either not significant or
|
|
|
|
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
2018-08-23 00:36:00 +00:00
|
|
|
# types are google.type.Date and `google.protobuf.Timestamp`.
|
|
|
|
# Corresponds to the JSON property `departureTime`
|
|
|
|
# @return [Google::Apis::JobsV3::TimeOfDay]
|
|
|
|
attr_accessor :departure_time
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. Specifies the traffic density to use when calculating commute time.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `roadTraffic`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :road_traffic
|
|
|
|
|
feat: Automated regeneration of jobs v3 client (#1622)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-12-03 02:40:00,377 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-jobs-v3
nothing to commit, working tree clean
2020-12-03 02:40:00,406 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v3
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v3
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.8
Installing tzinfo 1.2.8
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.50.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Installing mime-types-data 3.2020.1104
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.10.0
Installing rspec-support 3.10.0
Fetching rspec-core 3.10.0
Installing rspec-core 3.10.0
Fetching rspec-expectations 3.10.0
Installing rspec-expectations 3.10.0
Fetching rspec-mocks 3.10.0
Installing rspec-mocks 3.10.0
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.20.1
Installing parallel 1.20.1
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.3
Installing powerpack 0.1.3
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=jobs.v3 --names-out=/workspace/api_names_out.yaml
Loading jobs, version v3 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/jobs.v3.json
conflict google/apis/jobs_v3.rb
<le/apis/jobs_v3.rb? (enter "h" for help) [Ynaqdhm] a
force google/apis/jobs_v3.rb
identical google/apis/jobs_v3/service.rb
conflict google/apis/jobs_v3/classes.rb
force google/apis/jobs_v3/classes.rb
conflict google/apis/jobs_v3/representations.rb
force google/apis/jobs_v3/representations.rb
identical /workspace/api_names_out.yaml
2020-12-03 02:40:24,747 synthtool [DEBUG] > Wrote metadata to generated/google/apis/jobs_v3/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/jobs_v3/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/7b006b37-fae5-4e1c-9d57-231db3ac031c/targets
- [ ] To automatically regenerate this PR, check this box.
2020-12-03 10:56:08 +00:00
|
|
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
|
|
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
2020-09-14 23:21:28 +00:00
|
|
|
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
|
|
|
# within normalized ranges.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `startCoordinates`
|
|
|
|
# @return [Google::Apis::JobsV3::LatLng]
|
|
|
|
attr_accessor :start_coordinates
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. The maximum travel time in seconds. The maximum allowed value is `
|
2020-09-14 23:21:28 +00:00
|
|
|
# 3600s` (one hour). Format is `123s`.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `travelDuration`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :travel_duration
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@allow_imprecise_addresses = args[:allow_imprecise_addresses] if args.key?(:allow_imprecise_addresses)
|
|
|
|
@commute_method = args[:commute_method] if args.key?(:commute_method)
|
|
|
|
@departure_time = args[:departure_time] if args.key?(:departure_time)
|
|
|
|
@road_traffic = args[:road_traffic] if args.key?(:road_traffic)
|
|
|
|
@start_coordinates = args[:start_coordinates] if args.key?(:start_coordinates)
|
|
|
|
@travel_duration = args[:travel_duration] if args.key?(:travel_duration)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Commute details related to this job.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CommuteInfo
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. A resource that represents a location with full geographic
|
|
|
|
# information.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `jobLocation`
|
|
|
|
# @return [Google::Apis::JobsV3::Location]
|
|
|
|
attr_accessor :job_location
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# The number of seconds required to travel to the job location from the query
|
|
|
|
# location. A duration of 0 seconds indicates that the job is not reachable
|
|
|
|
# within the requested duration, but was returned as part of an expanded query.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `travelDuration`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :travel_duration
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@job_location = args[:job_location] if args.key?(:job_location)
|
|
|
|
@travel_duration = args[:travel_duration] if args.key?(:travel_duration)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A Company resource represents a company in the service. A company is the
|
|
|
|
# entity that owns job postings, that is, the hiring entity responsible for
|
|
|
|
# employing applicants for the job position.
|
|
|
|
class Company
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The URI to employer's career site or careers page on the employer's
|
2020-09-14 23:21:28 +00:00
|
|
|
# web site, for example, "https://careers.google.com".
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `careerSiteUri`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :career_site_uri
|
|
|
|
|
|
|
|
# Derived details about the company.
|
|
|
|
# Corresponds to the JSON property `derivedInfo`
|
|
|
|
# @return [Google::Apis::JobsV3::CompanyDerivedInfo]
|
|
|
|
attr_accessor :derived_info
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. The display name of the company, for example, "Google LLC".
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `displayName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :display_name
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Equal Employment Opportunity legal disclaimer text to be associated
|
|
|
|
# with all jobs, and typically to be displayed in all roles. The maximum number
|
|
|
|
# of allowed characters is 500.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `eeoText`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :eeo_text
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. Client side company identifier, used to uniquely identify the
|
2020-09-14 23:21:28 +00:00
|
|
|
# company. The maximum number of allowed characters is 255.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `externalId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :external_id
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The street address of the company's main headquarters, which may be
|
2020-09-14 23:21:28 +00:00
|
|
|
# different from the job location. The service attempts to geolocate the
|
|
|
|
# provided address, and populates a more specific location wherever possible in
|
|
|
|
# DerivedInfo.headquarters_location.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `headquartersAddress`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :headquarters_address
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. Set to true if it is the hiring agency that post jobs for other
|
2020-09-14 23:21:28 +00:00
|
|
|
# employers. Defaults to false if not provided.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `hiringAgency`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :hiring_agency
|
|
|
|
alias_method :hiring_agency?, :hiring_agency
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. A URI that hosts the employer's company logo.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `imageUri`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :image_uri
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. A list of keys of filterable Job.custom_attributes, whose
|
2020-09-14 23:21:28 +00:00
|
|
|
# corresponding `string_values` are used in keyword search. Jobs with `
|
|
|
|
# string_values` under these specified field keys are returned if any of the
|
|
|
|
# values matches the search keyword. Custom field values with parenthesis,
|
|
|
|
# brackets and special symbols won't be properly searchable, and those keyword
|
|
|
|
# queries need to be surrounded by quotes.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `keywordSearchableJobCustomAttributes`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :keyword_searchable_job_custom_attributes
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Required during company update. The resource name for a company. This is
|
|
|
|
# generated by the service when a company is created. The format is "projects/`
|
|
|
|
# project_id`/companies/`company_id`", for example, "projects/api-test-project/
|
|
|
|
# companies/foo".
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The employer's company size.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `size`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :size
|
|
|
|
|
|
|
|
# Output only. Indicates whether a company is flagged to be suspended from
|
|
|
|
# public availability by the service when job content appears suspicious,
|
|
|
|
# abusive, or spammy.
|
|
|
|
# Corresponds to the JSON property `suspended`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :suspended
|
|
|
|
alias_method :suspended?, :suspended
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The URI representing the company's primary web site or home page,
|
2020-09-14 23:21:28 +00:00
|
|
|
# for example, "https://www.google.com". The maximum number of allowed
|
|
|
|
# characters is 255.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `websiteUri`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :website_uri
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@career_site_uri = args[:career_site_uri] if args.key?(:career_site_uri)
|
|
|
|
@derived_info = args[:derived_info] if args.key?(:derived_info)
|
|
|
|
@display_name = args[:display_name] if args.key?(:display_name)
|
|
|
|
@eeo_text = args[:eeo_text] if args.key?(:eeo_text)
|
|
|
|
@external_id = args[:external_id] if args.key?(:external_id)
|
|
|
|
@headquarters_address = args[:headquarters_address] if args.key?(:headquarters_address)
|
|
|
|
@hiring_agency = args[:hiring_agency] if args.key?(:hiring_agency)
|
|
|
|
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
|
|
|
@keyword_searchable_job_custom_attributes = args[:keyword_searchable_job_custom_attributes] if args.key?(:keyword_searchable_job_custom_attributes)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@size = args[:size] if args.key?(:size)
|
|
|
|
@suspended = args[:suspended] if args.key?(:suspended)
|
|
|
|
@website_uri = args[:website_uri] if args.key?(:website_uri)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Derived details about the company.
|
|
|
|
class CompanyDerivedInfo
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. A resource that represents a location with full geographic
|
|
|
|
# information.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `headquartersLocation`
|
|
|
|
# @return [Google::Apis::JobsV3::Location]
|
|
|
|
attr_accessor :headquarters_location
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@headquarters_location = args[:headquarters_location] if args.key?(:headquarters_location)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# A compensation entry that represents one component of compensation, such as
|
|
|
|
# base pay, bonus, or other compensation type. Annualization: One compensation
|
|
|
|
# entry can be annualized if - it contains valid amount or range. - and its
|
|
|
|
# expected_units_per_year is set or can be derived. Its annualized range is
|
|
|
|
# determined as (amount or range) times expected_units_per_year.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CompensationEntry
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Represents an amount of money with its currency type.
|
|
|
|
# Corresponds to the JSON property `amount`
|
|
|
|
# @return [Google::Apis::JobsV3::Money]
|
|
|
|
attr_accessor :amount
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Compensation description. For example, could indicate equity terms
|
|
|
|
# or provide additional context to an estimated bonus.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `description`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :description
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Expected number of units paid each year. If not specified, when Job.
|
|
|
|
# employment_types is FULLTIME, a default value is inferred based on unit.
|
|
|
|
# Default values: - HOURLY: 2080 - DAILY: 260 - WEEKLY: 52 - MONTHLY: 12 -
|
|
|
|
# ANNUAL: 1
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `expectedUnitsPerYear`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :expected_units_per_year
|
|
|
|
|
|
|
|
# Compensation range.
|
|
|
|
# Corresponds to the JSON property `range`
|
|
|
|
# @return [Google::Apis::JobsV3::CompensationRange]
|
|
|
|
attr_accessor :range
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Compensation type. Default is CompensationUnit.
|
|
|
|
# COMPENSATION_TYPE_UNSPECIFIED.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Frequency of the specified amount. Default is CompensationUnit.
|
|
|
|
# COMPENSATION_UNIT_UNSPECIFIED.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `unit`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :unit
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@amount = args[:amount] if args.key?(:amount)
|
|
|
|
@description = args[:description] if args.key?(:description)
|
|
|
|
@expected_units_per_year = args[:expected_units_per_year] if args.key?(:expected_units_per_year)
|
|
|
|
@range = args[:range] if args.key?(:range)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
@unit = args[:unit] if args.key?(:unit)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Filter on job compensation type and amount.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CompensationFilter
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. If set to true, jobs with unspecified compensation range fields are
|
2019-06-03 00:37:37 +00:00
|
|
|
# included.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `includeJobsWithUnspecifiedCompensationRange`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :include_jobs_with_unspecified_compensation_range
|
|
|
|
alias_method :include_jobs_with_unspecified_compensation_range?, :include_jobs_with_unspecified_compensation_range
|
|
|
|
|
|
|
|
# Compensation range.
|
|
|
|
# Corresponds to the JSON property `range`
|
|
|
|
# @return [Google::Apis::JobsV3::CompensationRange]
|
|
|
|
attr_accessor :range
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. Type of filter.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Required. Specify desired `base compensation entry's` CompensationInfo.
|
|
|
|
# CompensationUnit.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `units`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :units
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@include_jobs_with_unspecified_compensation_range = args[:include_jobs_with_unspecified_compensation_range] if args.key?(:include_jobs_with_unspecified_compensation_range)
|
|
|
|
@range = args[:range] if args.key?(:range)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
@units = args[:units] if args.key?(:units)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Compensation based histogram request.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CompensationHistogramRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Use this field to specify bucketing option for the histogram
|
|
|
|
# search response.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `bucketingOption`
|
|
|
|
# @return [Google::Apis::JobsV3::NumericBucketingOption]
|
|
|
|
attr_accessor :bucketing_option
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. Type of the request, representing which field the histogramming
|
2020-09-14 23:21:28 +00:00
|
|
|
# should be performed over. A single request can only specify one histogram of
|
|
|
|
# each `CompensationHistogramRequestType`.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@bucketing_option = args[:bucketing_option] if args.key?(:bucketing_option)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Compensation based histogram result.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CompensationHistogramResult
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Custom numeric bucketing result.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `result`
|
|
|
|
# @return [Google::Apis::JobsV3::NumericBucketingResult]
|
|
|
|
attr_accessor :result
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Type of the request, corresponding to CompensationHistogramRequest.type.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@result = args[:result] if args.key?(:result)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Job compensation details.
|
|
|
|
class CompensationInfo
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Compensation range.
|
|
|
|
# Corresponds to the JSON property `annualizedBaseCompensationRange`
|
|
|
|
# @return [Google::Apis::JobsV3::CompensationRange]
|
|
|
|
attr_accessor :annualized_base_compensation_range
|
|
|
|
|
|
|
|
# Compensation range.
|
|
|
|
# Corresponds to the JSON property `annualizedTotalCompensationRange`
|
|
|
|
# @return [Google::Apis::JobsV3::CompensationRange]
|
|
|
|
attr_accessor :annualized_total_compensation_range
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Job compensation information. At most one entry can be of type
|
|
|
|
# CompensationInfo.CompensationType.BASE, which is referred as ** base
|
|
|
|
# compensation entry ** for the job.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `entries`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::CompensationEntry>]
|
|
|
|
attr_accessor :entries
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@annualized_base_compensation_range = args[:annualized_base_compensation_range] if args.key?(:annualized_base_compensation_range)
|
|
|
|
@annualized_total_compensation_range = args[:annualized_total_compensation_range] if args.key?(:annualized_total_compensation_range)
|
|
|
|
@entries = args[:entries] if args.key?(:entries)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Compensation range.
|
|
|
|
class CompensationRange
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Represents an amount of money with its currency type.
|
|
|
|
# Corresponds to the JSON property `maxCompensation`
|
|
|
|
# @return [Google::Apis::JobsV3::Money]
|
|
|
|
attr_accessor :max_compensation
|
|
|
|
|
|
|
|
# Represents an amount of money with its currency type.
|
|
|
|
# Corresponds to the JSON property `minCompensation`
|
|
|
|
# @return [Google::Apis::JobsV3::Money]
|
|
|
|
attr_accessor :min_compensation
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@max_compensation = args[:max_compensation] if args.key?(:max_compensation)
|
|
|
|
@min_compensation = args[:min_compensation] if args.key?(:min_compensation)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Response of auto-complete query.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CompleteQueryResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Results of the matching job/company candidates.
|
|
|
|
# Corresponds to the JSON property `completionResults`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::CompletionResult>]
|
|
|
|
attr_accessor :completion_results
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Additional information returned to client, such as debugging
|
|
|
|
# information.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::JobsV3::ResponseMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@completion_results = args[:completion_results] if args.key?(:completion_results)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Resource that represents completion results.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CompletionResult
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The URI of the company image for CompletionType.COMPANY_NAME.
|
|
|
|
# Corresponds to the JSON property `imageUri`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :image_uri
|
|
|
|
|
|
|
|
# The suggestion for the query.
|
|
|
|
# Corresponds to the JSON property `suggestion`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :suggestion
|
|
|
|
|
|
|
|
# The completion topic.
|
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
|
|
|
@suggestion = args[:suggestion] if args.key?(:suggestion)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-01-29 00:37:08 +00:00
|
|
|
# The report event request.
|
|
|
|
class CreateClientEventRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# An event issued when an end user interacts with the application that
|
|
|
|
# implements Cloud Talent Solution. Providing this information improves the
|
2020-09-14 23:21:28 +00:00
|
|
|
# quality of search and recommendation for the API clients, enabling the service
|
|
|
|
# to perform optimally. The number of events sent must be consistent with other
|
|
|
|
# calls, such as job searches, issued to the service by the client.
|
2019-01-29 00:37:08 +00:00
|
|
|
# Corresponds to the JSON property `clientEvent`
|
|
|
|
# @return [Google::Apis::JobsV3::ClientEvent]
|
|
|
|
attr_accessor :client_event
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@client_event = args[:client_event] if args.key?(:client_event)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. The Request of the CreateCompany method.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CreateCompanyRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# A Company resource represents a company in the service. A company is the
|
|
|
|
# entity that owns job postings, that is, the hiring entity responsible for
|
|
|
|
# employing applicants for the job position.
|
|
|
|
# Corresponds to the JSON property `company`
|
|
|
|
# @return [Google::Apis::JobsV3::Company]
|
|
|
|
attr_accessor :company
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@company = args[:company] if args.key?(:company)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Create job request.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CreateJobRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# A Job resource represents a job posting (also referred to as a "job listing"
|
2020-09-14 23:21:28 +00:00
|
|
|
# or "job requisition"). A job belongs to a Company, which is the hiring entity
|
|
|
|
# responsible for the job.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `job`
|
|
|
|
# @return [Google::Apis::JobsV3::Job]
|
|
|
|
attr_accessor :job
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@job = args[:job] if args.key?(:job)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Custom attribute values that are either filterable or non-filterable.
|
|
|
|
class CustomAttribute
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-13 00:38:22 +00:00
|
|
|
# Optional. If the `filterable` flag is true, the custom field values may be
|
2020-09-14 23:21:28 +00:00
|
|
|
# used for custom attribute filters JobQuery.custom_attribute_filter. If false,
|
|
|
|
# these values may not be used for custom attribute filters. Default is false.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `filterable`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :filterable
|
|
|
|
alias_method :filterable?, :filterable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional but exactly one of string_values or long_values must be specified.
|
|
|
|
# This field is used to perform number range search. (`EQ`, `GT`, `GE`, `LE`, `
|
|
|
|
# LT`) over filterable `long_value`. Currently at most 1 long_values is
|
|
|
|
# supported.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `longValues`
|
|
|
|
# @return [Array<Fixnum>]
|
|
|
|
attr_accessor :long_values
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional but exactly one of string_values or long_values must be specified.
|
|
|
|
# This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or `
|
|
|
|
# CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum
|
|
|
|
# total number of 200 values is allowed, with each `string_value` has a byte
|
|
|
|
# size of no more than 500B. For unfilterable `string_values`, the maximum total
|
|
|
|
# byte size of unfilterable `string_values` is 50KB. Empty string is not allowed.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `stringValues`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :string_values
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@filterable = args[:filterable] if args.key?(:filterable)
|
|
|
|
@long_values = args[:long_values] if args.key?(:long_values)
|
|
|
|
@string_values = args[:string_values] if args.key?(:string_values)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Custom attributes histogram request. An error is thrown if neither
|
2020-09-14 23:21:28 +00:00
|
|
|
# string_value_histogram or long_value_histogram_bucketing_option has been
|
|
|
|
# defined.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CustomAttributeHistogramRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. Specifies the custom field key to perform a histogram on. If
|
2020-09-14 23:21:28 +00:00
|
|
|
# specified without `long_value_histogram_bucketing_option`, histogram on string
|
|
|
|
# values of the given `key` is triggered, otherwise histogram is performed on
|
|
|
|
# long values.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `key`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :key
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Use this field to specify bucketing option for the histogram
|
|
|
|
# search response.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `longValueHistogramBucketingOption`
|
|
|
|
# @return [Google::Apis::JobsV3::NumericBucketingOption]
|
|
|
|
attr_accessor :long_value_histogram_bucketing_option
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. If set to true, the response includes the histogram value for each
|
|
|
|
# key as a string.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `stringValueHistogram`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :string_value_histogram
|
|
|
|
alias_method :string_value_histogram?, :string_value_histogram
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@key = args[:key] if args.key?(:key)
|
|
|
|
@long_value_histogram_bucketing_option = args[:long_value_histogram_bucketing_option] if args.key?(:long_value_histogram_bucketing_option)
|
|
|
|
@string_value_histogram = args[:string_value_histogram] if args.key?(:string_value_histogram)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Custom attribute histogram result.
|
2018-08-23 00:36:00 +00:00
|
|
|
class CustomAttributeHistogramResult
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Stores the key of custom attribute the histogram is performed on.
|
|
|
|
# Corresponds to the JSON property `key`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :key
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Custom numeric bucketing result.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `longValueHistogramResult`
|
|
|
|
# @return [Google::Apis::JobsV3::NumericBucketingResult]
|
|
|
|
attr_accessor :long_value_histogram_result
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Stores a map from the values of string custom field associated with `key` to
|
|
|
|
# the number of jobs with that value in this histogram result.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `stringValueHistogramResult`
|
|
|
|
# @return [Hash<String,Fixnum>]
|
|
|
|
attr_accessor :string_value_histogram_result
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@key = args[:key] if args.key?(:key)
|
|
|
|
@long_value_histogram_result = args[:long_value_histogram_result] if args.key?(:long_value_histogram_result)
|
|
|
|
@string_value_histogram_result = args[:string_value_histogram_result] if args.key?(:string_value_histogram_result)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Device information collected from the job seeker, candidate, or other entity
|
|
|
|
# conducting the job search. Providing this information improves the quality of
|
|
|
|
# the search results across devices.
|
2018-08-23 00:36:00 +00:00
|
|
|
class DeviceInfo
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. Type of the device.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `deviceType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :device_type
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. A device-specific ID. The ID must be a unique identifier that
|
2018-08-23 00:36:00 +00:00
|
|
|
# distinguishes the device from other devices.
|
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :id
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@device_type = args[:device_type] if args.key?(:device_type)
|
|
|
|
@id = args[:id] if args.key?(:id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
|
|
# messages in your APIs. A typical example is to use it as the request or the
|
|
|
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
|
|
|
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
|
|
|
# `Empty` is empty JSON object ````.
|
2018-08-23 00:36:00 +00:00
|
|
|
class Empty
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Histogram facets to be specified in SearchJobsRequest.
|
2018-08-23 00:36:00 +00:00
|
|
|
class HistogramFacets
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Specifies compensation field-based histogram requests. Duplicate
|
|
|
|
# values of CompensationHistogramRequest.type are not allowed.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `compensationHistogramFacets`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::CompensationHistogramRequest>]
|
|
|
|
attr_accessor :compensation_histogram_facets
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Specifies the custom attributes histogram requests. Duplicate values
|
|
|
|
# of CustomAttributeHistogramRequest.key are not allowed.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `customAttributeHistogramFacets`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::CustomAttributeHistogramRequest>]
|
|
|
|
attr_accessor :custom_attribute_histogram_facets
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Specifies the simple type of histogram facets, for example, `
|
|
|
|
# COMPANY_SIZE`, `EMPLOYMENT_TYPE` etc.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `simpleHistogramFacets`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :simple_histogram_facets
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@compensation_histogram_facets = args[:compensation_histogram_facets] if args.key?(:compensation_histogram_facets)
|
|
|
|
@custom_attribute_histogram_facets = args[:custom_attribute_histogram_facets] if args.key?(:custom_attribute_histogram_facets)
|
|
|
|
@simple_histogram_facets = args[:simple_histogram_facets] if args.key?(:simple_histogram_facets)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Result of a histogram call. The response contains the histogram
|
|
|
|
# map for the search type specified by HistogramResult.field. The response is a
|
|
|
|
# map of each filter value to the corresponding count of jobs for that filter.
|
2018-08-23 00:36:00 +00:00
|
|
|
class HistogramResult
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The Histogram search filters.
|
|
|
|
# Corresponds to the JSON property `searchType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :search_type
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# A map from the values of field to the number of jobs with that value in this
|
|
|
|
# search result. Key: search type (filter names, such as the companyName).
|
2018-08-23 00:36:00 +00:00
|
|
|
# Values: the count of jobs that match the filter for this search.
|
|
|
|
# Corresponds to the JSON property `values`
|
|
|
|
# @return [Hash<String,Fixnum>]
|
|
|
|
attr_accessor :values
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@search_type = args[:search_type] if args.key?(:search_type)
|
|
|
|
@values = args[:values] if args.key?(:values)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Histogram results that match HistogramFacets specified in
|
2018-08-23 00:36:00 +00:00
|
|
|
# SearchJobsRequest.
|
|
|
|
class HistogramResults
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Specifies compensation field-based histogram results that match
|
|
|
|
# HistogramFacets.compensation_histogram_requests.
|
|
|
|
# Corresponds to the JSON property `compensationHistogramResults`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::CompensationHistogramResult>]
|
|
|
|
attr_accessor :compensation_histogram_results
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Specifies histogram results for custom attributes that match HistogramFacets.
|
|
|
|
# custom_attribute_histogram_facets.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `customAttributeHistogramResults`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::CustomAttributeHistogramResult>]
|
|
|
|
attr_accessor :custom_attribute_histogram_results
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Specifies histogram results that matches HistogramFacets.
|
|
|
|
# simple_histogram_facets.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `simpleHistogramResults`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::HistogramResult>]
|
|
|
|
attr_accessor :simple_histogram_results
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@compensation_histogram_results = args[:compensation_histogram_results] if args.key?(:compensation_histogram_results)
|
|
|
|
@custom_attribute_histogram_results = args[:custom_attribute_histogram_results] if args.key?(:custom_attribute_histogram_results)
|
|
|
|
@simple_histogram_results = args[:simple_histogram_results] if args.key?(:simple_histogram_results)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A Job resource represents a job posting (also referred to as a "job listing"
|
2020-09-14 23:21:28 +00:00
|
|
|
# or "job requisition"). A job belongs to a Company, which is the hiring entity
|
|
|
|
# responsible for the job.
|
2018-08-23 00:36:00 +00:00
|
|
|
class Job
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional but strongly recommended for the best service experience. Location(s)
|
|
|
|
# where the employer is looking to hire for this job posting. Specifying the
|
|
|
|
# full street address(es) of the hiring location enables better API results,
|
|
|
|
# especially job searches by commute time. At most 50 locations are allowed for
|
|
|
|
# best search performance. If a job has more locations, it is suggested to split
|
|
|
|
# it into multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes 'ReqA-1'
|
|
|
|
# , 'ReqA-2', etc.) as multiple jobs with the same company_name, language_code
|
|
|
|
# and requisition_id are not allowed. If the original requisition_id must be
|
|
|
|
# preserved, a custom field should be used for storage. It is also suggested to
|
|
|
|
# group the locations that close to each other in the same job for better search
|
|
|
|
# experience. The maximum number of allowed characters is 500.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `addresses`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :addresses
|
|
|
|
|
|
|
|
# Application related details of a job posting.
|
|
|
|
# Corresponds to the JSON property `applicationInfo`
|
|
|
|
# @return [Google::Apis::JobsV3::ApplicationInfo]
|
|
|
|
attr_accessor :application_info
|
|
|
|
|
|
|
|
# Output only. Display name of the company listing the job.
|
|
|
|
# Corresponds to the JSON property `companyDisplayName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :company_display_name
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Required. The resource name of the company listing the job, such as "projects/
|
|
|
|
# api-test-project/companies/foo".
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `companyName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :company_name
|
|
|
|
|
|
|
|
# Job compensation details.
|
|
|
|
# Corresponds to the JSON property `compensationInfo`
|
|
|
|
# @return [Google::Apis::JobsV3::CompensationInfo]
|
|
|
|
attr_accessor :compensation_info
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. A map of fields to hold both filterable and non-filterable custom
|
2020-09-14 23:21:28 +00:00
|
|
|
# job attributes that are not covered by the provided structured fields. The
|
|
|
|
# keys of the map are strings up to 64 bytes and must match the pattern: a-zA-Z*.
|
|
|
|
# For example, key0LikeThis or KEY_1_LIKE_THIS. At most 100 filterable and at
|
|
|
|
# most 100 unfilterable keys are supported. For filterable `string_values`,
|
|
|
|
# across all keys at most 200 values are allowed, with each string no more than
|
|
|
|
# 255 characters. For unfilterable `string_values`, the maximum total size of `
|
|
|
|
# string_values` across all keys is 50KB.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `customAttributes`
|
|
|
|
# @return [Hash<String,Google::Apis::JobsV3::CustomAttribute>]
|
|
|
|
attr_accessor :custom_attributes
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The desired education degrees for the job, such as Bachelors,
|
|
|
|
# Masters.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `degreeTypes`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :degree_types
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The department or functional area within the company with the open
|
2020-09-14 23:21:28 +00:00
|
|
|
# position. The maximum number of allowed characters is 255.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `department`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :department
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Derived details about the job posting.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `derivedInfo`
|
|
|
|
# @return [Google::Apis::JobsV3::JobDerivedInfo]
|
|
|
|
attr_accessor :derived_info
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. The description of the job, which typically includes a multi-
|
2020-09-14 23:21:28 +00:00
|
|
|
# paragraph description of the company and related information. Separate fields
|
|
|
|
# are provided on the job object for responsibilities, qualifications, and other
|
|
|
|
# job characteristics. Use of these separate job fields is recommended. This
|
|
|
|
# field accepts and sanitizes HTML input, and also accepts bold, italic, ordered
|
|
|
|
# list, and unordered list markup tags. The maximum number of allowed characters
|
|
|
|
# is 100,000.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `description`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :description
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. The employment type(s) of a job, for example, full time or part time.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `employmentTypes`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :employment_types
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. A description of bonus, commission, and other compensation
|
2020-09-14 23:21:28 +00:00
|
|
|
# incentives associated with the job not including salary or pay. The maximum
|
|
|
|
# number of allowed characters is 10,000.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `incentives`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :incentives
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The benefits included with the job.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `jobBenefits`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :job_benefits
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The end timestamp of the job. Typically this field is used for
|
2020-09-14 23:21:28 +00:00
|
|
|
# contracting engagements. Invalid timestamps are ignored.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `jobEndTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :job_end_time
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The experience level associated with the job, such as "Entry Level".
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `jobLevel`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :job_level
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The start timestamp of the job in UTC time zone. Typically this
|
2020-09-14 23:21:28 +00:00
|
|
|
# field is used for contracting engagements. Invalid timestamps are ignored.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `jobStartTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :job_start_time
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. The language of the posting. This field is distinct from any
|
|
|
|
# requirements for fluency that are associated with the job. Language codes must
|
|
|
|
# be in BCP-47 format, such as "en-US" or "sr-Latn". For more information, see [
|
|
|
|
# Tags for Identifying Languages](https://tools.ietf.org/html/bcp47)`: class="
|
|
|
|
# external" target="_blank" `. If this field is unspecified and Job.description
|
|
|
|
# is present, detected language code based on Job.description is assigned,
|
|
|
|
# otherwise defaults to 'en_US'.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `languageCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :language_code
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Required during job update. The resource name for the job. This is generated
|
|
|
|
# by the service when a job is created. The format is "projects/`project_id`/
|
|
|
|
# jobs/`job_id`", for example, "projects/api-test-project/jobs/1234". Use of
|
|
|
|
# this field in job queries and API calls is preferred over the use of
|
2018-08-23 00:36:00 +00:00
|
|
|
# requisition_id since this value is unique.
|
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
# Output only. The timestamp when this job posting was created.
|
|
|
|
# Corresponds to the JSON property `postingCreateTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :posting_create_time
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional but strongly recommended for the best service experience. The
|
|
|
|
# expiration timestamp of the job. After this timestamp, the job is marked as
|
|
|
|
# expired, and it no longer appears in search results. The expired job can't be
|
|
|
|
# deleted or listed by the DeleteJob and ListJobs APIs, but it can be retrieved
|
|
|
|
# with the GetJob API or updated with the UpdateJob API. An expired job can be
|
|
|
|
# updated and opened again by using a future expiration timestamp. Updating an
|
|
|
|
# expired job fails if there is another existing open job with same company_name,
|
|
|
|
# language_code and requisition_id. The expired jobs are retained in our system
|
|
|
|
# for 90 days. However, the overall expired job count cannot exceed 3 times the
|
|
|
|
# maximum of open jobs count over the past week, otherwise jobs with earlier
|
|
|
|
# expire time are cleaned first. Expired jobs are no longer accessible after
|
|
|
|
# they are cleaned out. Invalid timestamps are ignored, and treated as expire
|
|
|
|
# time not provided. Timestamp before the instant request is made is considered
|
|
|
|
# valid, the job will be treated as expired immediately. If this value is not
|
|
|
|
# provided at the time of job creation or is invalid, the job posting expires
|
|
|
|
# after 30 days from the job's creation time. For example, if the job was
|
|
|
|
# created on 2017/01/01 13:00AM UTC with an unspecified expiration date, the job
|
|
|
|
# expires after 2017/01/31 13:00AM UTC. If this value is not provided on job
|
|
|
|
# update, it depends on the field masks set by UpdateJobRequest.update_mask. If
|
|
|
|
# the field masks include expiry_time, or the masks are empty meaning that every
|
|
|
|
# field is updated, the job posting expires after 30 days from the job's last
|
2018-08-23 00:36:00 +00:00
|
|
|
# update time. Otherwise the expiration date isn't updated.
|
|
|
|
# Corresponds to the JSON property `postingExpireTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :posting_expire_time
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The timestamp this job posting was most recently published. The
|
2020-09-14 23:21:28 +00:00
|
|
|
# default value is the time the request arrives at the server. Invalid
|
|
|
|
# timestamps are ignored.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `postingPublishTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :posting_publish_time
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The job PostingRegion (for example, state, country) throughout which
|
2020-09-14 23:21:28 +00:00
|
|
|
# the job is available. If this field is set, a LocationFilter in a search query
|
|
|
|
# within the job region finds this job posting if an exact location match isn't
|
|
|
|
# specified. If this field is set to PostingRegion.NATION or PostingRegion.
|
|
|
|
# ADMINISTRATIVE_AREA, setting job Job.addresses to the same location level as
|
|
|
|
# this field is strongly recommended.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `postingRegion`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :posting_region
|
|
|
|
|
|
|
|
# Output only. The timestamp when this job posting was last updated.
|
|
|
|
# Corresponds to the JSON property `postingUpdateTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :posting_update_time
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Options for job processing.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `processingOptions`
|
|
|
|
# @return [Google::Apis::JobsV3::ProcessingOptions]
|
|
|
|
attr_accessor :processing_options
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. A promotion value of the job, as determined by the client. The value
|
|
|
|
# determines the sort order of the jobs returned when searching for jobs using
|
|
|
|
# the featured jobs search call, with higher promotional values being returned
|
|
|
|
# first and ties being resolved by relevance sort. Only the jobs with a
|
|
|
|
# promotionValue >0 are returned in a FEATURED_JOB_SEARCH. Default value is 0,
|
|
|
|
# and negative values are treated as 0.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `promotionValue`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :promotion_value
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. A description of the qualifications required to perform the job. The
|
|
|
|
# use of this field is recommended as an alternative to using the more general
|
|
|
|
# description field. This field accepts and sanitizes HTML input, and also
|
|
|
|
# accepts bold, italic, ordered list, and unordered list markup tags. The
|
|
|
|
# maximum number of allowed characters is 10,000.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `qualifications`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :qualifications
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. The requisition ID, also referred to as the posting ID, assigned by
|
2020-09-14 23:21:28 +00:00
|
|
|
# the client to identify a job. This field is intended to be used by clients for
|
|
|
|
# client identification and tracking of postings. A job is not allowed to be
|
|
|
|
# created if there is another job with the same [company_name], language_code
|
|
|
|
# and requisition_id. The maximum number of allowed characters is 255.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `requisitionId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :requisition_id
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. A description of job responsibilities. The use of this field is
|
2020-09-14 23:21:28 +00:00
|
|
|
# recommended as an alternative to using the more general description field.
|
|
|
|
# This field accepts and sanitizes HTML input, and also accepts bold, italic,
|
|
|
|
# ordered list, and unordered list markup tags. The maximum number of allowed
|
|
|
|
# characters is 10,000.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `responsibilities`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :responsibilities
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Required. The title of the job, such as "Software Engineer" The maximum number
|
|
|
|
# of allowed characters is 500.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `title`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :title
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Deprecated. The job is only visible to the owner. The visibility of the job.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Defaults to Visibility.ACCOUNT_ONLY if not specified.
|
|
|
|
# Corresponds to the JSON property `visibility`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :visibility
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@addresses = args[:addresses] if args.key?(:addresses)
|
|
|
|
@application_info = args[:application_info] if args.key?(:application_info)
|
|
|
|
@company_display_name = args[:company_display_name] if args.key?(:company_display_name)
|
|
|
|
@company_name = args[:company_name] if args.key?(:company_name)
|
|
|
|
@compensation_info = args[:compensation_info] if args.key?(:compensation_info)
|
|
|
|
@custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
|
|
|
|
@degree_types = args[:degree_types] if args.key?(:degree_types)
|
|
|
|
@department = args[:department] if args.key?(:department)
|
|
|
|
@derived_info = args[:derived_info] if args.key?(:derived_info)
|
|
|
|
@description = args[:description] if args.key?(:description)
|
|
|
|
@employment_types = args[:employment_types] if args.key?(:employment_types)
|
|
|
|
@incentives = args[:incentives] if args.key?(:incentives)
|
|
|
|
@job_benefits = args[:job_benefits] if args.key?(:job_benefits)
|
|
|
|
@job_end_time = args[:job_end_time] if args.key?(:job_end_time)
|
|
|
|
@job_level = args[:job_level] if args.key?(:job_level)
|
|
|
|
@job_start_time = args[:job_start_time] if args.key?(:job_start_time)
|
|
|
|
@language_code = args[:language_code] if args.key?(:language_code)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@posting_create_time = args[:posting_create_time] if args.key?(:posting_create_time)
|
|
|
|
@posting_expire_time = args[:posting_expire_time] if args.key?(:posting_expire_time)
|
|
|
|
@posting_publish_time = args[:posting_publish_time] if args.key?(:posting_publish_time)
|
|
|
|
@posting_region = args[:posting_region] if args.key?(:posting_region)
|
|
|
|
@posting_update_time = args[:posting_update_time] if args.key?(:posting_update_time)
|
|
|
|
@processing_options = args[:processing_options] if args.key?(:processing_options)
|
|
|
|
@promotion_value = args[:promotion_value] if args.key?(:promotion_value)
|
|
|
|
@qualifications = args[:qualifications] if args.key?(:qualifications)
|
|
|
|
@requisition_id = args[:requisition_id] if args.key?(:requisition_id)
|
|
|
|
@responsibilities = args[:responsibilities] if args.key?(:responsibilities)
|
|
|
|
@title = args[:title] if args.key?(:title)
|
|
|
|
@visibility = args[:visibility] if args.key?(:visibility)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Derived details about the job posting.
|
2018-08-23 00:36:00 +00:00
|
|
|
class JobDerivedInfo
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Job categories derived from Job.title and Job.description.
|
|
|
|
# Corresponds to the JSON property `jobCategories`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :job_categories
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Structured locations of the job, resolved from Job.addresses. locations are
|
|
|
|
# exactly matched to Job.addresses in the same order.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `locations`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::Location>]
|
|
|
|
attr_accessor :locations
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@job_categories = args[:job_categories] if args.key?(:job_categories)
|
|
|
|
@locations = args[:locations] if args.key?(:locations)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-01-29 00:37:08 +00:00
|
|
|
# An event issued when a job seeker interacts with the application that
|
|
|
|
# implements Cloud Talent Solution.
|
|
|
|
class JobEvent
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Required. The job name(s) associated with this event. For example, if this is
|
|
|
|
# an impression event, this field contains the identifiers of all jobs shown to
|
|
|
|
# the job seeker. If this was a view event, this field contains the identifier
|
|
|
|
# of the viewed job.
|
2019-01-29 00:37:08 +00:00
|
|
|
# Corresponds to the JSON property `jobs`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :jobs
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. The type of the event (see JobEventType).
|
2019-01-29 00:37:08 +00:00
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@jobs = args[:jobs] if args.key?(:jobs)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. The query required to perform a search query.
|
2018-08-23 00:36:00 +00:00
|
|
|
class JobQuery
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Parameters needed for commute search.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `commuteFilter`
|
|
|
|
# @return [Google::Apis::JobsV3::CommuteFilter]
|
|
|
|
attr_accessor :commute_filter
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. This filter specifies the exact company display name of the jobs to
|
|
|
|
# search against. If a value isn't specified, jobs within the search results are
|
|
|
|
# associated with any company. If multiple values are specified, jobs within the
|
|
|
|
# search results may be associated with any of the specified companies. At most
|
|
|
|
# 20 company display name filters are allowed.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `companyDisplayNames`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :company_display_names
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. This filter specifies the company entities to search against. If a
|
|
|
|
# value isn't specified, jobs are searched for against all companies. If
|
|
|
|
# multiple values are specified, jobs are searched against the companies
|
|
|
|
# specified. The format is "projects/`project_id`/companies/`company_id`", for
|
|
|
|
# example, "projects/api-test-project/companies/foo". At most 20 company filters
|
|
|
|
# are allowed.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `companyNames`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :company_names
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Filter on job compensation type and amount.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `compensationFilter`
|
|
|
|
# @return [Google::Apis::JobsV3::CompensationFilter]
|
|
|
|
attr_accessor :compensation_filter
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. This filter specifies a structured syntax to match against the Job.
|
|
|
|
# custom_attributes marked as `filterable`. The syntax for this expression is a
|
|
|
|
# subset of SQL syntax. Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `
|
|
|
|
# >=` where the left of the operator is a custom field key and the right of the
|
|
|
|
# operator is a number or a quoted string. You must escape backslash (\\) and
|
|
|
|
# quote (\") characters. Supported functions are `LOWER([field_name])` to
|
2018-10-05 00:36:22 +00:00
|
|
|
# perform a case insensitive match and `EMPTY([field_name])` to filter on the
|
2020-09-14 23:21:28 +00:00
|
|
|
# existence of a key. Boolean expressions (AND/OR/NOT) are supported up to 3
|
|
|
|
# levels of nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum
|
|
|
|
# of 100 comparisons or functions are allowed in the expression. The expression
|
|
|
|
# must be < 6000 bytes in length. Sample Query: `(LOWER(driving_license)="class \
|
|
|
|
# "a\"" OR EMPTY(driving_license)) AND driving_years > 10`
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `customAttributeFilter`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :custom_attribute_filter
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. This flag controls the spell-check feature. If false, the service
|
|
|
|
# attempts to correct a misspelled query, for example, "enginee" is corrected to
|
|
|
|
# "engineer". Defaults to false: a spell check is performed.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `disableSpellCheck`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :disable_spell_check
|
|
|
|
alias_method :disable_spell_check?, :disable_spell_check
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The employment type filter specifies the employment type of jobs to
|
2020-09-14 23:21:28 +00:00
|
|
|
# search against, such as EmploymentType.FULL_TIME. If a value is not specified,
|
|
|
|
# jobs in the search results includes any employment type. If multiple values
|
|
|
|
# are specified, jobs in the search results include any of the specified
|
|
|
|
# employment types.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `employmentTypes`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :employment_types
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The category filter specifies the categories of jobs to search
|
2020-09-14 23:21:28 +00:00
|
|
|
# against. See Category for more information. If a value is not specified, jobs
|
|
|
|
# from any category are searched against. If multiple values are specified, jobs
|
|
|
|
# from any of the specified categories are searched against.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `jobCategories`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :job_categories
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. This filter specifies the locale of jobs to search against, for
|
|
|
|
# example, "en-US". If a value isn't specified, the search results can contain
|
|
|
|
# jobs in any locale. Language codes should be in BCP-47 format, such as "en-US"
|
|
|
|
# or "sr-Latn". For more information, see [Tags for Identifying Languages](https:
|
|
|
|
# //tools.ietf.org/html/bcp47). At most 10 language code filters are allowed.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `languageCodes`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :language_codes
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The location filter specifies geo-regions containing the jobs to
|
2020-09-14 23:21:28 +00:00
|
|
|
# search against. See LocationFilter for more information. If a location value
|
|
|
|
# isn't specified, jobs fitting the other search criteria are retrieved
|
|
|
|
# regardless of where they're located. If multiple values are specified, jobs
|
|
|
|
# are retrieved from any of the specified locations. If different values are
|
|
|
|
# specified for the LocationFilter.distance_in_miles parameter, the maximum
|
|
|
|
# provided distance is used for all locations. At most 5 location filters are
|
|
|
|
# allowed.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `locationFilters`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::LocationFilter>]
|
|
|
|
attr_accessor :location_filters
|
|
|
|
|
|
|
|
# Message representing a period of time between two timestamps.
|
|
|
|
# Corresponds to the JSON property `publishTimeRange`
|
|
|
|
# @return [Google::Apis::JobsV3::TimestampRange]
|
|
|
|
attr_accessor :publish_time_range
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The query string that matches against the job title, description,
|
2020-09-14 23:21:28 +00:00
|
|
|
# and location fields. The maximum number of allowed characters is 255.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `query`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :query
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# The language code of query. For example, "en-US". This field helps to better
|
|
|
|
# interpret the query. If a value isn't specified, the query language code is
|
|
|
|
# automatically detected, which may not be accurate. Language code should be in
|
|
|
|
# BCP-47 format, such as "en-US" or "sr-Latn". For more information, see [Tags
|
|
|
|
# for Identifying Languages](https://tools.ietf.org/html/bcp47).
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `queryLanguageCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :query_language_code
|
|
|
|
|
2018-08-23 00:36:00 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@commute_filter = args[:commute_filter] if args.key?(:commute_filter)
|
|
|
|
@company_display_names = args[:company_display_names] if args.key?(:company_display_names)
|
|
|
|
@company_names = args[:company_names] if args.key?(:company_names)
|
|
|
|
@compensation_filter = args[:compensation_filter] if args.key?(:compensation_filter)
|
|
|
|
@custom_attribute_filter = args[:custom_attribute_filter] if args.key?(:custom_attribute_filter)
|
|
|
|
@disable_spell_check = args[:disable_spell_check] if args.key?(:disable_spell_check)
|
|
|
|
@employment_types = args[:employment_types] if args.key?(:employment_types)
|
|
|
|
@job_categories = args[:job_categories] if args.key?(:job_categories)
|
|
|
|
@language_codes = args[:language_codes] if args.key?(:language_codes)
|
|
|
|
@location_filters = args[:location_filters] if args.key?(:location_filters)
|
|
|
|
@publish_time_range = args[:publish_time_range] if args.key?(:publish_time_range)
|
|
|
|
@query = args[:query] if args.key?(:query)
|
2019-11-01 00:37:15 +00:00
|
|
|
@query_language_code = args[:query_language_code] if args.key?(:query_language_code)
|
2018-08-23 00:36:00 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
feat: Automated regeneration of jobs v3 client (#1622)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-12-03 02:40:00,377 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-jobs-v3
nothing to commit, working tree clean
2020-12-03 02:40:00,406 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v3
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v3
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.8
Installing tzinfo 1.2.8
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.50.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Installing mime-types-data 3.2020.1104
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.10.0
Installing rspec-support 3.10.0
Fetching rspec-core 3.10.0
Installing rspec-core 3.10.0
Fetching rspec-expectations 3.10.0
Installing rspec-expectations 3.10.0
Fetching rspec-mocks 3.10.0
Installing rspec-mocks 3.10.0
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.20.1
Installing parallel 1.20.1
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.3
Installing powerpack 0.1.3
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=jobs.v3 --names-out=/workspace/api_names_out.yaml
Loading jobs, version v3 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/jobs.v3.json
conflict google/apis/jobs_v3.rb
<le/apis/jobs_v3.rb? (enter "h" for help) [Ynaqdhm] a
force google/apis/jobs_v3.rb
identical google/apis/jobs_v3/service.rb
conflict google/apis/jobs_v3/classes.rb
force google/apis/jobs_v3/classes.rb
conflict google/apis/jobs_v3/representations.rb
force google/apis/jobs_v3/representations.rb
identical /workspace/api_names_out.yaml
2020-12-03 02:40:24,747 synthtool [DEBUG] > Wrote metadata to generated/google/apis/jobs_v3/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/jobs_v3/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/7b006b37-fae5-4e1c-9d57-231db3ac031c/targets
- [ ] To automatically regenerate this PR, check this box.
2020-12-03 10:56:08 +00:00
|
|
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
|
|
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
2020-09-14 23:21:28 +00:00
|
|
|
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
|
|
|
# within normalized ranges.
|
2018-08-23 00:36:00 +00:00
|
|
|
class LatLng
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
|
|
|
# Corresponds to the JSON property `latitude`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :latitude
|
|
|
|
|
|
|
|
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
|
|
|
# Corresponds to the JSON property `longitude`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :longitude
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@latitude = args[:latitude] if args.key?(:latitude)
|
|
|
|
@longitude = args[:longitude] if args.key?(:longitude)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. The List companies response object.
|
2018-08-23 00:36:00 +00:00
|
|
|
class ListCompaniesResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Companies for the current client.
|
|
|
|
# Corresponds to the JSON property `companies`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::Company>]
|
|
|
|
attr_accessor :companies
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Additional information returned to client, such as debugging
|
|
|
|
# information.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::JobsV3::ResponseMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
|
|
|
# A token to retrieve the next page of results.
|
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@companies = args[:companies] if args.key?(:companies)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. List jobs response.
|
2018-08-23 00:36:00 +00:00
|
|
|
class ListJobsResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# The Jobs for a given company. The maximum number of items returned is based on
|
|
|
|
# the limit field provided in the request.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `jobs`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::Job>]
|
|
|
|
attr_accessor :jobs
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Additional information returned to client, such as debugging
|
|
|
|
# information.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::JobsV3::ResponseMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
|
|
|
# A token to retrieve the next page of results.
|
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@jobs = args[:jobs] if args.key?(:jobs)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. A resource that represents a location with full geographic
|
|
|
|
# information.
|
2018-08-23 00:36:00 +00:00
|
|
|
class Location
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
feat: Automated regeneration of jobs v3 client (#1622)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-12-03 02:40:00,377 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-jobs-v3
nothing to commit, working tree clean
2020-12-03 02:40:00,406 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v3
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v3
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.8
Installing tzinfo 1.2.8
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.50.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Installing mime-types-data 3.2020.1104
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.10.0
Installing rspec-support 3.10.0
Fetching rspec-core 3.10.0
Installing rspec-core 3.10.0
Fetching rspec-expectations 3.10.0
Installing rspec-expectations 3.10.0
Fetching rspec-mocks 3.10.0
Installing rspec-mocks 3.10.0
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.20.1
Installing parallel 1.20.1
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.3
Installing powerpack 0.1.3
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=jobs.v3 --names-out=/workspace/api_names_out.yaml
Loading jobs, version v3 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/jobs.v3.json
conflict google/apis/jobs_v3.rb
<le/apis/jobs_v3.rb? (enter "h" for help) [Ynaqdhm] a
force google/apis/jobs_v3.rb
identical google/apis/jobs_v3/service.rb
conflict google/apis/jobs_v3/classes.rb
force google/apis/jobs_v3/classes.rb
conflict google/apis/jobs_v3/representations.rb
force google/apis/jobs_v3/representations.rb
identical /workspace/api_names_out.yaml
2020-12-03 02:40:24,747 synthtool [DEBUG] > Wrote metadata to generated/google/apis/jobs_v3/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/jobs_v3/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/7b006b37-fae5-4e1c-9d57-231db3ac031c/targets
- [ ] To automatically regenerate this PR, check this box.
2020-12-03 10:56:08 +00:00
|
|
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
|
|
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
2020-09-14 23:21:28 +00:00
|
|
|
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
|
|
|
# within normalized ranges.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `latLng`
|
|
|
|
# @return [Google::Apis::JobsV3::LatLng]
|
|
|
|
attr_accessor :lat_lng
|
|
|
|
|
|
|
|
# The type of a location, which corresponds to the address lines field of
|
|
|
|
# PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of
|
|
|
|
# LocationType#NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of
|
|
|
|
# LocationType#LOCALITY.
|
|
|
|
# Corresponds to the JSON property `locationType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :location_type
|
|
|
|
|
|
|
|
# Represents a postal address, e.g. for postal delivery or payments addresses.
|
|
|
|
# Given a postal address, a postal service can deliver items to a premise, P.O.
|
2020-09-14 23:21:28 +00:00
|
|
|
# Box or similar. It is not intended to model geographical locations (roads,
|
|
|
|
# towns, mountains). In typical usage an address would be created via user input
|
|
|
|
# or from importing existing data, depending on the type of process. Advice on
|
|
|
|
# address input / editing: - Use an i18n-ready address widget such as https://
|
|
|
|
# github.com/google/libaddressinput) - Users should not be presented with UI
|
|
|
|
# elements for input or editing of fields outside countries where that field is
|
|
|
|
# used. For more guidance on how to use this schema, please see: https://support.
|
|
|
|
# google.com/business/answer/6397478
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `postalAddress`
|
|
|
|
# @return [Google::Apis::JobsV3::PostalAddress]
|
|
|
|
attr_accessor :postal_address
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Radius in miles of the job location. This value is derived from the location
|
|
|
|
# bounding box in which a circle with the specified radius centered from LatLng
|
|
|
|
# covers the area associated with the job location. For example, currently, "
|
|
|
|
# Mountain View, CA, USA" has a radius of 6.17 miles.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `radiusInMiles`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :radius_in_miles
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
|
|
|
@location_type = args[:location_type] if args.key?(:location_type)
|
|
|
|
@postal_address = args[:postal_address] if args.key?(:postal_address)
|
|
|
|
@radius_in_miles = args[:radius_in_miles] if args.key?(:radius_in_miles)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Geographic region of the search.
|
2018-08-23 00:36:00 +00:00
|
|
|
class LocationFilter
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The address name, such as "Mountain View" or "Bay Area".
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `address`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :address
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. The distance_in_miles is applied when the location being searched
|
2020-09-14 23:21:28 +00:00
|
|
|
# for is identified as a city or smaller. When the location being searched for
|
|
|
|
# is a state or larger, this field is ignored.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `distanceInMiles`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :distance_in_miles
|
|
|
|
|
feat: Automated regeneration of jobs v3 client (#1622)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-12-03 02:40:00,377 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-jobs-v3
nothing to commit, working tree clean
2020-12-03 02:40:00,406 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v3
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v3
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.8
Installing tzinfo 1.2.8
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.50.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Installing mime-types-data 3.2020.1104
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.10.0
Installing rspec-support 3.10.0
Fetching rspec-core 3.10.0
Installing rspec-core 3.10.0
Fetching rspec-expectations 3.10.0
Installing rspec-expectations 3.10.0
Fetching rspec-mocks 3.10.0
Installing rspec-mocks 3.10.0
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.20.1
Installing parallel 1.20.1
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.3
Installing powerpack 0.1.3
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=jobs.v3 --names-out=/workspace/api_names_out.yaml
Loading jobs, version v3 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/jobs.v3.json
conflict google/apis/jobs_v3.rb
<le/apis/jobs_v3.rb? (enter "h" for help) [Ynaqdhm] a
force google/apis/jobs_v3.rb
identical google/apis/jobs_v3/service.rb
conflict google/apis/jobs_v3/classes.rb
force google/apis/jobs_v3/classes.rb
conflict google/apis/jobs_v3/representations.rb
force google/apis/jobs_v3/representations.rb
identical /workspace/api_names_out.yaml
2020-12-03 02:40:24,747 synthtool [DEBUG] > Wrote metadata to generated/google/apis/jobs_v3/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/jobs_v3/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/7b006b37-fae5-4e1c-9d57-231db3ac031c/targets
- [ ] To automatically regenerate this PR, check this box.
2020-12-03 10:56:08 +00:00
|
|
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
|
|
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
2020-09-14 23:21:28 +00:00
|
|
|
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
|
|
|
# within normalized ranges.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `latLng`
|
|
|
|
# @return [Google::Apis::JobsV3::LatLng]
|
|
|
|
attr_accessor :lat_lng
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. CLDR region code of the country/region of the address. This is used
|
2018-08-23 00:36:00 +00:00
|
|
|
# to address ambiguity of the user-input location, for example, "Liverpool"
|
2020-09-14 23:21:28 +00:00
|
|
|
# against "Liverpool, NY, US" or "Liverpool, UK". Set this field if all the jobs
|
|
|
|
# to search against are from a same region, or jobs are world-wide, but the job
|
|
|
|
# seeker is from a specific region. See http://cldr.unicode.org/ and http://www.
|
|
|
|
# unicode.org/cldr/charts/30/supplemental/territory_information.html for details.
|
|
|
|
# Example: "CH" for Switzerland.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `regionCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :region_code
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Allows the client to return jobs without a set location,
|
|
|
|
# specifically, telecommuting jobs (telecommuting is considered by the service
|
|
|
|
# as a special location. Job.posting_region indicates if a job permits
|
|
|
|
# telecommuting. If this field is set to TelecommutePreference.
|
|
|
|
# TELECOMMUTE_ALLOWED, telecommuting jobs are searched, and address and lat_lng
|
|
|
|
# are ignored. If not set or set to TelecommutePreference.TELECOMMUTE_EXCLUDED,
|
|
|
|
# telecommute job are not searched. This filter can be used by itself to search
|
|
|
|
# exclusively for telecommuting jobs, or it can be combined with another
|
|
|
|
# location filter to search for a combination of job locations, such as "
|
|
|
|
# Mountain View" or "telecommuting" jobs. However, when used in combination with
|
|
|
|
# other location filters, telecommuting jobs can be treated as less relevant
|
|
|
|
# than other jobs in the search response.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `telecommutePreference`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :telecommute_preference
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@address = args[:address] if args.key?(:address)
|
|
|
|
@distance_in_miles = args[:distance_in_miles] if args.key?(:distance_in_miles)
|
|
|
|
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
|
|
|
@region_code = args[:region_code] if args.key?(:region_code)
|
|
|
|
@telecommute_preference = args[:telecommute_preference] if args.key?(:telecommute_preference)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Job entry with metadata inside SearchJobsResponse.
|
2018-08-23 00:36:00 +00:00
|
|
|
class MatchingJob
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Commute details related to this job.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `commuteInfo`
|
|
|
|
# @return [Google::Apis::JobsV3::CommuteInfo]
|
|
|
|
attr_accessor :commute_info
|
|
|
|
|
|
|
|
# A Job resource represents a job posting (also referred to as a "job listing"
|
2020-09-14 23:21:28 +00:00
|
|
|
# or "job requisition"). A job belongs to a Company, which is the hiring entity
|
|
|
|
# responsible for the job.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `job`
|
|
|
|
# @return [Google::Apis::JobsV3::Job]
|
|
|
|
attr_accessor :job
|
|
|
|
|
|
|
|
# A summary of the job with core information that's displayed on the search
|
|
|
|
# results listing page.
|
|
|
|
# Corresponds to the JSON property `jobSummary`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :job_summary
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Contains snippets of text from the Job.job_title field most closely matching a
|
|
|
|
# search query's keywords, if available. The matching query keywords are
|
|
|
|
# enclosed in HTML bold tags.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `jobTitleSnippet`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :job_title_snippet
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Contains snippets of text from the Job.description and similar fields that
|
|
|
|
# most closely match a search query's keywords, if available. All HTML tags in
|
|
|
|
# the original fields are stripped when returned in this field, and matching
|
|
|
|
# query keywords are enclosed in HTML bold tags.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `searchTextSnippet`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :search_text_snippet
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@commute_info = args[:commute_info] if args.key?(:commute_info)
|
|
|
|
@job = args[:job] if args.key?(:job)
|
|
|
|
@job_summary = args[:job_summary] if args.key?(:job_summary)
|
|
|
|
@job_title_snippet = args[:job_title_snippet] if args.key?(:job_title_snippet)
|
|
|
|
@search_text_snippet = args[:search_text_snippet] if args.key?(:search_text_snippet)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Message representing input to a Mendel server for debug forcing. See go/mendel-
|
|
|
|
# debug-forcing for more details. Next ID: 2
|
2019-11-01 00:37:15 +00:00
|
|
|
class MendelDebugInput
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# When a request spans multiple servers, a MendelDebugInput may travel with the
|
|
|
|
# request and take effect in all the servers. This field is a map of namespaces
|
|
|
|
# to NamespacedMendelDebugInput protos. In a single server, up to two
|
|
|
|
# NamespacedMendelDebugInput protos are applied: 1. NamespacedMendelDebugInput
|
|
|
|
# with the global namespace (key == ""). 2. NamespacedMendelDebugInput with the
|
|
|
|
# server's namespace. When both NamespacedMendelDebugInput protos are present,
|
|
|
|
# they are merged. See go/mendel-debug-forcing for more details.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `namespacedDebugInput`
|
|
|
|
# @return [Hash<String,Google::Apis::JobsV3::NamespacedDebugInput>]
|
|
|
|
attr_accessor :namespaced_debug_input
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@namespaced_debug_input = args[:namespaced_debug_input] if args.key?(:namespaced_debug_input)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-08-23 00:36:00 +00:00
|
|
|
# Represents an amount of money with its currency type.
|
|
|
|
class Money
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
feat: Automated regeneration of jobs v3 client (#1622)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-12-03 02:40:00,377 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-jobs-v3
nothing to commit, working tree clean
2020-12-03 02:40:00,406 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v3
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v3
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.8
Installing tzinfo 1.2.8
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.50.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Installing mime-types-data 3.2020.1104
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.10.0
Installing rspec-support 3.10.0
Fetching rspec-core 3.10.0
Installing rspec-core 3.10.0
Fetching rspec-expectations 3.10.0
Installing rspec-expectations 3.10.0
Fetching rspec-mocks 3.10.0
Installing rspec-mocks 3.10.0
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.20.1
Installing parallel 1.20.1
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.3
Installing powerpack 0.1.3
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=jobs.v3 --names-out=/workspace/api_names_out.yaml
Loading jobs, version v3 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/jobs.v3.json
conflict google/apis/jobs_v3.rb
<le/apis/jobs_v3.rb? (enter "h" for help) [Ynaqdhm] a
force google/apis/jobs_v3.rb
identical google/apis/jobs_v3/service.rb
conflict google/apis/jobs_v3/classes.rb
force google/apis/jobs_v3/classes.rb
conflict google/apis/jobs_v3/representations.rb
force google/apis/jobs_v3/representations.rb
identical /workspace/api_names_out.yaml
2020-12-03 02:40:24,747 synthtool [DEBUG] > Wrote metadata to generated/google/apis/jobs_v3/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/jobs_v3/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/7b006b37-fae5-4e1c-9d57-231db3ac031c/targets
- [ ] To automatically regenerate this PR, check this box.
2020-12-03 10:56:08 +00:00
|
|
|
# The three-letter currency code defined in ISO 4217.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `currencyCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :currency_code
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Number of nano (10^-9) units of the amount. The value must be between -999,999,
|
|
|
|
# 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
|
|
|
|
# positive or zero. If `units` is zero, `nanos` can be positive, zero, or
|
|
|
|
# negative. If `units` is negative, `nanos` must be negative or zero. For
|
|
|
|
# example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `nanos`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :nanos
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# The whole units of the amount. For example if `currencyCode` is `"USD"`, then
|
|
|
|
# 1 unit is one US dollar.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `units`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :units
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
|
|
|
@nanos = args[:nanos] if args.key?(:nanos)
|
|
|
|
@units = args[:units] if args.key?(:units)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-11-01 00:37:15 +00:00
|
|
|
# Next ID: 15
|
|
|
|
class NamespacedDebugInput
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Set of experiment names to be absolutely forced. These experiments will be
|
|
|
|
# forced without evaluating the conditions.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `absolutelyForcedExpNames`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :absolutely_forced_exp_names
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Set of experiment tags to be absolutely forced. The experiments with these
|
|
|
|
# tags will be forced without evaluating the conditions.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `absolutelyForcedExpTags`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :absolutely_forced_exp_tags
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Set of experiment ids to be absolutely forced. These ids will be forced
|
|
|
|
# without evaluating the conditions.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `absolutelyForcedExps`
|
|
|
|
# @return [Array<Fixnum>]
|
|
|
|
attr_accessor :absolutely_forced_exps
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Set of experiment names to be conditionally forced. These experiments will be
|
|
|
|
# forced only if their conditions and their parent domain's conditions are true.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `conditionallyForcedExpNames`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :conditionally_forced_exp_names
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Set of experiment tags to be conditionally forced. The experiments with these
|
|
|
|
# tags will be forced only if their conditions and their parent domain's
|
|
|
|
# conditions are true.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `conditionallyForcedExpTags`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :conditionally_forced_exp_tags
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Set of experiment ids to be conditionally forced. These ids will be forced
|
|
|
|
# only if their conditions and their parent domain's conditions are true.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `conditionallyForcedExps`
|
|
|
|
# @return [Array<Fixnum>]
|
|
|
|
attr_accessor :conditionally_forced_exps
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# If true, disable automatic enrollment selection (at all diversion points).
|
|
|
|
# Automatic enrollment selection means experiment selection process based on the
|
|
|
|
# experiment's automatic enrollment condition. This does not disable selection
|
|
|
|
# of forced experiments.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `disableAutomaticEnrollmentSelection`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :disable_automatic_enrollment_selection
|
|
|
|
alias_method :disable_automatic_enrollment_selection?, :disable_automatic_enrollment_selection
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Set of experiment names to be disabled. If an experiment is disabled, it is
|
|
|
|
# never selected nor forced. If an aggregate experiment is disabled, its
|
|
|
|
# partitions are disabled together. If an experiment with an enrollment is
|
|
|
|
# disabled, the enrollment is disabled together. If a name corresponds to a
|
|
|
|
# domain, the domain itself and all descendant experiments and domains are
|
|
|
|
# disabled together.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `disableExpNames`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :disable_exp_names
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Set of experiment tags to be disabled. All experiments that are tagged with
|
|
|
|
# one or more of these tags are disabled. If an experiment is disabled, it is
|
|
|
|
# never selected nor forced. If an aggregate experiment is disabled, its
|
|
|
|
# partitions are disabled together. If an experiment with an enrollment is
|
|
|
|
# disabled, the enrollment is disabled together.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `disableExpTags`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :disable_exp_tags
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Set of experiment ids to be disabled. If an experiment is disabled, it is
|
|
|
|
# never selected nor forced. If an aggregate experiment is disabled, its
|
|
|
|
# partitions are disabled together. If an experiment with an enrollment is
|
|
|
|
# disabled, the enrollment is disabled together. If an ID corresponds to a
|
|
|
|
# domain, the domain itself and all descendant experiments and domains are
|
|
|
|
# disabled together.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `disableExps`
|
|
|
|
# @return [Array<Fixnum>]
|
|
|
|
attr_accessor :disable_exps
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# If true, disable manual enrollment selection (at all diversion points). Manual
|
|
|
|
# enrollment selection means experiment selection process based on the request's
|
|
|
|
# manual enrollment states (a.k.a. opt-in experiments). This does not disable
|
|
|
|
# selection of forced experiments.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `disableManualEnrollmentSelection`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :disable_manual_enrollment_selection
|
|
|
|
alias_method :disable_manual_enrollment_selection?, :disable_manual_enrollment_selection
|
|
|
|
|
|
|
|
# If true, disable organic experiment selection (at all diversion points).
|
|
|
|
# Organic selection means experiment selection process based on traffic
|
2020-09-14 23:21:28 +00:00
|
|
|
# allocation and diversion condition evaluation. This does not disable selection
|
|
|
|
# of forced experiments. This is useful in cases when it is not known whether
|
|
|
|
# experiment selection behavior is responsible for a error or breakage.
|
|
|
|
# Disabling organic selection may help to isolate the cause of a given problem.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `disableOrganicSelection`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :disable_organic_selection
|
|
|
|
alias_method :disable_organic_selection?, :disable_organic_selection
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Flags to force in a particular experiment state. Map from flag name to flag
|
|
|
|
# value.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `forcedFlags`
|
|
|
|
# @return [Hash<String,String>]
|
|
|
|
attr_accessor :forced_flags
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Rollouts to force in a particular experiment state. Map from rollout name to
|
|
|
|
# rollout value.
|
2019-11-01 00:37:15 +00:00
|
|
|
# Corresponds to the JSON property `forcedRollouts`
|
|
|
|
# @return [Hash<String,Boolean>]
|
|
|
|
attr_accessor :forced_rollouts
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@absolutely_forced_exp_names = args[:absolutely_forced_exp_names] if args.key?(:absolutely_forced_exp_names)
|
|
|
|
@absolutely_forced_exp_tags = args[:absolutely_forced_exp_tags] if args.key?(:absolutely_forced_exp_tags)
|
|
|
|
@absolutely_forced_exps = args[:absolutely_forced_exps] if args.key?(:absolutely_forced_exps)
|
|
|
|
@conditionally_forced_exp_names = args[:conditionally_forced_exp_names] if args.key?(:conditionally_forced_exp_names)
|
|
|
|
@conditionally_forced_exp_tags = args[:conditionally_forced_exp_tags] if args.key?(:conditionally_forced_exp_tags)
|
|
|
|
@conditionally_forced_exps = args[:conditionally_forced_exps] if args.key?(:conditionally_forced_exps)
|
|
|
|
@disable_automatic_enrollment_selection = args[:disable_automatic_enrollment_selection] if args.key?(:disable_automatic_enrollment_selection)
|
|
|
|
@disable_exp_names = args[:disable_exp_names] if args.key?(:disable_exp_names)
|
|
|
|
@disable_exp_tags = args[:disable_exp_tags] if args.key?(:disable_exp_tags)
|
|
|
|
@disable_exps = args[:disable_exps] if args.key?(:disable_exps)
|
|
|
|
@disable_manual_enrollment_selection = args[:disable_manual_enrollment_selection] if args.key?(:disable_manual_enrollment_selection)
|
|
|
|
@disable_organic_selection = args[:disable_organic_selection] if args.key?(:disable_organic_selection)
|
|
|
|
@forced_flags = args[:forced_flags] if args.key?(:forced_flags)
|
|
|
|
@forced_rollouts = args[:forced_rollouts] if args.key?(:forced_rollouts)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Use this field to specify bucketing option for the histogram
|
|
|
|
# search response.
|
2018-08-23 00:36:00 +00:00
|
|
|
class NumericBucketingOption
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. Two adjacent values form a histogram bucket. Values should be in
|
2018-08-23 00:36:00 +00:00
|
|
|
# ascending order. For example, if [5, 10, 15] are provided, four buckets are
|
2020-09-14 23:21:28 +00:00
|
|
|
# created: (-inf, 5), 5, 10), [10, 15), [15, inf). At most 20 [buckets_bound is
|
|
|
|
# supported.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `bucketBounds`
|
|
|
|
# @return [Array<Float>]
|
|
|
|
attr_accessor :bucket_bounds
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. If set to true, the histogram result includes minimum/maximum value
|
|
|
|
# of the numeric field.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `requiresMinMax`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :requires_min_max
|
|
|
|
alias_method :requires_min_max?, :requires_min_max
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@bucket_bounds = args[:bucket_bounds] if args.key?(:bucket_bounds)
|
|
|
|
@requires_min_max = args[:requires_min_max] if args.key?(:requires_min_max)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Custom numeric bucketing result.
|
2018-08-23 00:36:00 +00:00
|
|
|
class NumericBucketingResult
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Count within each bucket. Its size is the length of NumericBucketingOption.
|
|
|
|
# bucket_bounds plus 1.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `counts`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::BucketizedCount>]
|
|
|
|
attr_accessor :counts
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Stores the maximum value of the numeric field. Is populated only if [
|
|
|
|
# NumericBucketingOption.requires_min_max] is set to true.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `maxValue`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :max_value
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Stores the minimum value of the numeric field. Will be populated only if [
|
|
|
|
# NumericBucketingOption.requires_min_max] is set to true.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `minValue`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :min_value
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@counts = args[:counts] if args.key?(:counts)
|
|
|
|
@max_value = args[:max_value] if args.key?(:max_value)
|
|
|
|
@min_value = args[:min_value] if args.key?(:min_value)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Represents a postal address, e.g. for postal delivery or payments addresses.
|
|
|
|
# Given a postal address, a postal service can deliver items to a premise, P.O.
|
2020-09-14 23:21:28 +00:00
|
|
|
# Box or similar. It is not intended to model geographical locations (roads,
|
|
|
|
# towns, mountains). In typical usage an address would be created via user input
|
|
|
|
# or from importing existing data, depending on the type of process. Advice on
|
|
|
|
# address input / editing: - Use an i18n-ready address widget such as https://
|
|
|
|
# github.com/google/libaddressinput) - Users should not be presented with UI
|
|
|
|
# elements for input or editing of fields outside countries where that field is
|
|
|
|
# used. For more guidance on how to use this schema, please see: https://support.
|
|
|
|
# google.com/business/answer/6397478
|
2018-08-23 00:36:00 +00:00
|
|
|
class PostalAddress
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Unstructured address lines describing the lower levels of an address. Because
|
|
|
|
# values in address_lines do not have type information and may sometimes contain
|
|
|
|
# multiple values in a single field (e.g. "Austin, TX"), it is important that
|
|
|
|
# the line order is clear. The order of address lines should be "envelope order"
|
|
|
|
# for the country/region of the address. In places where this can vary (e.g.
|
|
|
|
# Japan), address_language is used to make it explicit (e.g. "ja" for large-to-
|
|
|
|
# small ordering and "ja-Latn" or "en" for small-to-large). This way, the most
|
|
|
|
# specific line of an address can be selected based on the language. The minimum
|
|
|
|
# permitted structural representation of an address consists of a region_code
|
|
|
|
# with all remaining information placed in the address_lines. It would be
|
|
|
|
# possible to format such an address very approximately without geocoding, but
|
|
|
|
# no semantic reasoning could be made about any of the address components until
|
|
|
|
# it was at least partially resolved. Creating an address only containing a
|
|
|
|
# region_code and address_lines, and then geocoding is the recommended way to
|
|
|
|
# handle completely unstructured addresses (as opposed to guessing which parts
|
|
|
|
# of the address should be localities or administrative areas).
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `addressLines`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :address_lines
|
|
|
|
|
|
|
|
# Optional. Highest administrative subdivision which is used for postal
|
2020-09-14 23:21:28 +00:00
|
|
|
# addresses of a country or region. For example, this can be a state, a province,
|
|
|
|
# an oblast, or a prefecture. Specifically, for Spain this is the province and
|
|
|
|
# not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many
|
|
|
|
# countries don't use an administrative area in postal addresses. E.g. in
|
|
|
|
# Switzerland this should be left unpopulated.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `administrativeArea`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :administrative_area
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. BCP-47 language code of the contents of this address (if known).
|
|
|
|
# This is often the UI language of the input form or is expected to match one of
|
|
|
|
# the languages used in the address' country/region, or their transliterated
|
|
|
|
# equivalents. This can affect formatting in certain countries, but is not
|
|
|
|
# critical to the correctness of the data and will never affect any validation
|
|
|
|
# or other non-formatting related operations. If this value is not known, it
|
|
|
|
# should be omitted (rather than specifying a possibly incorrect default).
|
2018-08-23 00:36:00 +00:00
|
|
|
# Examples: "zh-Hant", "ja", "ja-Latn", "en".
|
|
|
|
# Corresponds to the JSON property `languageCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :language_code
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Generally refers to the city/town portion of the address. Examples:
|
|
|
|
# US city, IT comune, UK post town. In regions of the world where localities are
|
|
|
|
# not well defined or do not fit into this structure well, leave locality empty
|
|
|
|
# and use address_lines.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `locality`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :locality
|
|
|
|
|
|
|
|
# Optional. The name of the organization at the address.
|
|
|
|
# Corresponds to the JSON property `organization`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :organization
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Postal code of the address. Not all countries use or require postal
|
|
|
|
# codes to be present, but where they are used, they may trigger additional
|
|
|
|
# validation with other parts of the address (e.g. state/zip validation in the U.
|
|
|
|
# S.A.).
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `postalCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :postal_code
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. The recipient at the address. This field may, under certain
|
|
|
|
# circumstances, contain multiline information. For example, it might contain "
|
|
|
|
# care of" information.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `recipients`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :recipients
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Required. CLDR region code of the country/region of the address. This is never
|
|
|
|
# inferred and it is up to the user to ensure the value is correct. See http://
|
|
|
|
# cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/
|
|
|
|
# territory_information.html for details. Example: "CH" for Switzerland.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `regionCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :region_code
|
|
|
|
|
|
|
|
# The schema revision of the `PostalAddress`. This must be set to 0, which is
|
2020-09-14 23:21:28 +00:00
|
|
|
# the latest revision. All new revisions **must** be backward compatible with
|
|
|
|
# old revisions.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `revision`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :revision
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Additional, country-specific, sorting code. This is not used in most
|
|
|
|
# regions. Where it is used, the value is either a string like "CEDEX",
|
|
|
|
# optionally followed by a number (e.g. "CEDEX 7"), or just a number alone,
|
|
|
|
# representing the "sector code" (Jamaica), "delivery area indicator" (Malawi)
|
|
|
|
# or "post office indicator" (e.g. Côte d'Ivoire).
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `sortingCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :sorting_code
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Sublocality of the address. For example, this can be neighborhoods,
|
|
|
|
# boroughs, districts.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `sublocality`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :sublocality
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@address_lines = args[:address_lines] if args.key?(:address_lines)
|
|
|
|
@administrative_area = args[:administrative_area] if args.key?(:administrative_area)
|
|
|
|
@language_code = args[:language_code] if args.key?(:language_code)
|
|
|
|
@locality = args[:locality] if args.key?(:locality)
|
|
|
|
@organization = args[:organization] if args.key?(:organization)
|
|
|
|
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
|
|
|
@recipients = args[:recipients] if args.key?(:recipients)
|
|
|
|
@region_code = args[:region_code] if args.key?(:region_code)
|
|
|
|
@revision = args[:revision] if args.key?(:revision)
|
|
|
|
@sorting_code = args[:sorting_code] if args.key?(:sorting_code)
|
|
|
|
@sublocality = args[:sublocality] if args.key?(:sublocality)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Options for job processing.
|
2018-08-23 00:36:00 +00:00
|
|
|
class ProcessingOptions
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. If set to `true`, the service does not attempt to resolve a more
|
|
|
|
# precise address for the job.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `disableStreetAddressResolution`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :disable_street_address_resolution
|
|
|
|
alias_method :disable_street_address_resolution?, :disable_street_address_resolution
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Option for job HTML content sanitization. Applied fields are: *
|
|
|
|
# description * applicationInfo.instruction * incentives * qualifications *
|
|
|
|
# responsibilities HTML tags in these fields may be stripped if sanitiazation is
|
|
|
|
# not disabled. Defaults to HtmlSanitization.SIMPLE_FORMATTING_ONLY.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `htmlSanitization`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :html_sanitization
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@disable_street_address_resolution = args[:disable_street_address_resolution] if args.key?(:disable_street_address_resolution)
|
|
|
|
@html_sanitization = args[:html_sanitization] if args.key?(:html_sanitization)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Meta information related to the job searcher or entity conducting
|
|
|
|
# the job search. This information is used to improve the performance of the
|
|
|
|
# service.
|
2018-08-23 00:36:00 +00:00
|
|
|
class RequestMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Device information collected from the job seeker, candidate, or other entity
|
|
|
|
# conducting the job search. Providing this information improves the quality of
|
|
|
|
# the search results across devices.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `deviceInfo`
|
|
|
|
# @return [Google::Apis::JobsV3::DeviceInfo]
|
|
|
|
attr_accessor :device_info
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. The client-defined scope or source of the service call, which
|
2020-09-14 23:21:28 +00:00
|
|
|
# typically is the domain on which the service has been implemented and is
|
|
|
|
# currently being run. For example, if the service is being run by client *Foo,
|
|
|
|
# Inc.*, on job board www.foo.com and career site www.bar.com, then this field
|
|
|
|
# is set to "foo.com" for use on the job board, and "bar.com" for use on the
|
|
|
|
# career site. If this field isn't available for some reason, send "UNKNOWN".
|
|
|
|
# Any improvements to the model for a particular tenant site rely on this field
|
|
|
|
# being set correctly to a domain. The maximum number of allowed characters is
|
|
|
|
# 255.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `domain`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :domain
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Required. A unique session identification string. A session is defined as the
|
2020-09-14 23:21:28 +00:00
|
|
|
# duration of an end user's interaction with the service over a certain period.
|
|
|
|
# Obfuscate this field for privacy concerns before providing it to the service.
|
|
|
|
# If this field is not available for some reason, send "UNKNOWN". Note that any
|
|
|
|
# improvements to the model for a particular tenant site, rely on this field
|
|
|
|
# being set correctly to some unique session_id. The maximum number of allowed
|
|
|
|
# characters is 255.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `sessionId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :session_id
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Required. A unique user identification string, as determined by the client. To
|
|
|
|
# have the strongest positive impact on search quality make sure the client-
|
|
|
|
# level is unique. Obfuscate this field for privacy concerns before providing it
|
|
|
|
# to the service. If this field is not available for some reason, send "UNKNOWN".
|
|
|
|
# Note that any improvements to the model for a particular tenant site, rely on
|
|
|
|
# this field being set correctly to a unique user_id. The maximum number of
|
|
|
|
# allowed characters is 255.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `userId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :user_id
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@device_info = args[:device_info] if args.key?(:device_info)
|
|
|
|
@domain = args[:domain] if args.key?(:domain)
|
|
|
|
@session_id = args[:session_id] if args.key?(:session_id)
|
|
|
|
@user_id = args[:user_id] if args.key?(:user_id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Additional information returned to client, such as debugging
|
|
|
|
# information.
|
2018-08-23 00:36:00 +00:00
|
|
|
class ResponseMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# A unique id associated with this call. This id is logged for tracking purposes.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `requestId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :request_id
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@request_id = args[:request_id] if args.key?(:request_id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. The Request body of the `SearchJobs` call.
|
2018-08-23 00:36:00 +00:00
|
|
|
class SearchJobsRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. Controls whether to disable exact keyword match on Job.job_title,
|
2020-09-14 23:21:28 +00:00
|
|
|
# Job.description, Job.company_display_name, Job.locations, Job.qualifications.
|
|
|
|
# When disable keyword match is turned off, a keyword match returns jobs that do
|
|
|
|
# not match given category filters when there are matching keywords. For example,
|
|
|
|
# the query "program manager," a result is returned even if the job posting has
|
|
|
|
# the title "software developer," which does not fall into "program manager"
|
|
|
|
# ontology, but does have "program manager" appearing in its description. For
|
|
|
|
# queries like "cloud" that does not contain title or location specific ontology,
|
|
|
|
# jobs with "cloud" keyword matches are returned regardless of this flag's
|
|
|
|
# value. Please use Company.keyword_searchable_custom_fields or Company.
|
|
|
|
# keyword_searchable_custom_attributes if company specific globally matched
|
|
|
|
# custom field/attribute string values is needed. Enabling keyword match
|
|
|
|
# improves recall of subsequent search requests. Defaults to false.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `disableKeywordMatch`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :disable_keyword_match
|
|
|
|
alias_method :disable_keyword_match?, :disable_keyword_match
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. Controls whether highly similar jobs are returned next to each other
|
2020-09-14 23:21:28 +00:00
|
|
|
# in the search results. Jobs are identified as highly similar based on their
|
|
|
|
# titles, job categories, and locations. Highly similar results are clustered so
|
|
|
|
# that only one representative job of the cluster is displayed to the job seeker
|
|
|
|
# higher up in the results, with the other jobs being displayed lower down in
|
|
|
|
# the results. Defaults to DiversificationLevel.SIMPLE if no value is specified.
|
2018-12-15 00:36:30 +00:00
|
|
|
# Corresponds to the JSON property `diversificationLevel`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :diversification_level
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. Controls whether to broaden the search when it produces sparse
|
2020-09-14 23:21:28 +00:00
|
|
|
# results. Broadened queries append results to the end of the matching results
|
|
|
|
# list. Defaults to false.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `enableBroadening`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :enable_broadening
|
|
|
|
alias_method :enable_broadening?, :enable_broadening
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Histogram facets to be specified in SearchJobsRequest.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `histogramFacets`
|
|
|
|
# @return [Google::Apis::JobsV3::HistogramFacets]
|
|
|
|
attr_accessor :histogram_facets
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. The query required to perform a search query.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `jobQuery`
|
|
|
|
# @return [Google::Apis::JobsV3::JobQuery]
|
|
|
|
attr_accessor :job_query
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. The desired job attributes returned for jobs in the search response.
|
|
|
|
# Defaults to JobView.SMALL if no value is specified.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `jobView`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :job_view
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. An integer that specifies the current offset (that is, starting
|
2020-09-14 23:21:28 +00:00
|
|
|
# result location, amongst the jobs deemed by the API as relevant) in search
|
|
|
|
# results. This field is only considered if page_token is unset. The maximum
|
|
|
|
# allowed value is 5000. Otherwise an error is thrown. For example, 0 means to
|
|
|
|
# return results starting from the first matching job, and 10 means to return
|
|
|
|
# from the 11th job. This can be used for pagination, (for example, pageSize =
|
|
|
|
# 10 and offset = 10 means to return from the second page).
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `offset`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :offset
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. The criteria determining how search results are sorted. Default is "
|
|
|
|
# relevance desc". Supported options are: * `"relevance desc"`: By relevance
|
|
|
|
# descending, as determined by the API algorithms. Relevance thresholding of
|
|
|
|
# query results is only available with this ordering. * `"posting_publish_time
|
|
|
|
# desc"`: By Job.posting_publish_time descending. * `"posting_update_time desc"`:
|
|
|
|
# By Job.posting_update_time descending. * `"title"`: By Job.title ascending. *
|
|
|
|
# `"title desc"`: By Job.title descending. * `"annualized_base_compensation"`:
|
|
|
|
# By job's CompensationInfo.annualized_base_compensation_range ascending. Jobs
|
|
|
|
# whose annualized base compensation is unspecified are put at the end of search
|
|
|
|
# results. * `"annualized_base_compensation desc"`: By job's CompensationInfo.
|
|
|
|
# annualized_base_compensation_range descending. Jobs whose annualized base
|
|
|
|
# compensation is unspecified are put at the end of search results. * `"
|
|
|
|
# annualized_total_compensation"`: By job's CompensationInfo.
|
|
|
|
# annualized_total_compensation_range ascending. Jobs whose annualized base
|
|
|
|
# compensation is unspecified are put at the end of search results. * `"
|
|
|
|
# annualized_total_compensation desc"`: By job's CompensationInfo.
|
|
|
|
# annualized_total_compensation_range descending. Jobs whose annualized base
|
|
|
|
# compensation is unspecified are put at the end of search results.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `orderBy`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :order_by
|
|
|
|
|
2019-07-19 00:38:19 +00:00
|
|
|
# Optional. A limit on the number of jobs returned in the search results.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Increasing this value above the default value of 10 can increase search
|
|
|
|
# response time. The value can be between 1 and 100.
|
|
|
|
# Corresponds to the JSON property `pageSize`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :page_size
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. The token specifying the current offset within search results. See
|
|
|
|
# SearchJobsResponse.next_page_token for an explanation of how to obtain the
|
|
|
|
# next set of query results.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `pageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :page_token
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Meta information related to the job searcher or entity conducting
|
|
|
|
# the job search. This information is used to improve the performance of the
|
|
|
|
# service.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `requestMetadata`
|
|
|
|
# @return [Google::Apis::JobsV3::RequestMetadata]
|
|
|
|
attr_accessor :request_metadata
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# This field is deprecated.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `requirePreciseResultSize`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :require_precise_result_size
|
|
|
|
alias_method :require_precise_result_size?, :require_precise_result_size
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional. Mode of a search. Defaults to SearchMode.JOB_SEARCH.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `searchMode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :search_mode
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@disable_keyword_match = args[:disable_keyword_match] if args.key?(:disable_keyword_match)
|
2018-12-15 00:36:30 +00:00
|
|
|
@diversification_level = args[:diversification_level] if args.key?(:diversification_level)
|
2018-08-23 00:36:00 +00:00
|
|
|
@enable_broadening = args[:enable_broadening] if args.key?(:enable_broadening)
|
|
|
|
@histogram_facets = args[:histogram_facets] if args.key?(:histogram_facets)
|
|
|
|
@job_query = args[:job_query] if args.key?(:job_query)
|
|
|
|
@job_view = args[:job_view] if args.key?(:job_view)
|
|
|
|
@offset = args[:offset] if args.key?(:offset)
|
|
|
|
@order_by = args[:order_by] if args.key?(:order_by)
|
|
|
|
@page_size = args[:page_size] if args.key?(:page_size)
|
|
|
|
@page_token = args[:page_token] if args.key?(:page_token)
|
|
|
|
@request_metadata = args[:request_metadata] if args.key?(:request_metadata)
|
|
|
|
@require_precise_result_size = args[:require_precise_result_size] if args.key?(:require_precise_result_size)
|
|
|
|
@search_mode = args[:search_mode] if args.key?(:search_mode)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Response for SearchJob method.
|
2018-08-23 00:36:00 +00:00
|
|
|
class SearchJobsResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# If query broadening is enabled, we may append additional results from the
|
|
|
|
# broadened query. This number indicates how many of the jobs returned in the
|
2020-09-14 23:21:28 +00:00
|
|
|
# jobs field are from the broadened query. These results are always at the end
|
|
|
|
# of the jobs list. In particular, a value of 0, or if the field isn't set, all
|
|
|
|
# the jobs in the jobs list are from the original (without broadening) query. If
|
|
|
|
# this field is non-zero, subsequent requests with offset after this result set
|
|
|
|
# should contain all broadened results.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `broadenedQueryJobsCount`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :broadened_query_jobs_count
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# An estimation of the number of jobs that match the specified query. This
|
|
|
|
# number is not guaranteed to be accurate. For accurate results, see
|
|
|
|
# SearchJobsResponse.total_size.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `estimatedTotalSize`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :estimated_total_size
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Histogram results that match HistogramFacets specified in
|
2018-08-23 00:36:00 +00:00
|
|
|
# SearchJobsRequest.
|
|
|
|
# Corresponds to the JSON property `histogramResults`
|
|
|
|
# @return [Google::Apis::JobsV3::HistogramResults]
|
|
|
|
attr_accessor :histogram_results
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# The location filters that the service applied to the specified query. If any
|
|
|
|
# filters are lat-lng based, the JobLocation.location_type is JobLocation.
|
|
|
|
# LocationType#LOCATION_TYPE_UNSPECIFIED.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `locationFilters`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::Location>]
|
|
|
|
attr_accessor :location_filters
|
|
|
|
|
|
|
|
# The Job entities that match the specified SearchJobsRequest.
|
|
|
|
# Corresponds to the JSON property `matchingJobs`
|
|
|
|
# @return [Array<Google::Apis::JobsV3::MatchingJob>]
|
|
|
|
attr_accessor :matching_jobs
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Additional information returned to client, such as debugging
|
|
|
|
# information.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::JobsV3::ResponseMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
|
|
|
# The token that specifies the starting position of the next page of results.
|
|
|
|
# This field is empty if there are no more results.
|
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Spell check result.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `spellCorrection`
|
|
|
|
# @return [Google::Apis::JobsV3::SpellingCorrection]
|
|
|
|
attr_accessor :spell_correction
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# The precise result count with limit 100,000.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `totalSize`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :total_size
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@broadened_query_jobs_count = args[:broadened_query_jobs_count] if args.key?(:broadened_query_jobs_count)
|
|
|
|
@estimated_total_size = args[:estimated_total_size] if args.key?(:estimated_total_size)
|
|
|
|
@histogram_results = args[:histogram_results] if args.key?(:histogram_results)
|
|
|
|
@location_filters = args[:location_filters] if args.key?(:location_filters)
|
|
|
|
@matching_jobs = args[:matching_jobs] if args.key?(:matching_jobs)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
@spell_correction = args[:spell_correction] if args.key?(:spell_correction)
|
|
|
|
@total_size = args[:total_size] if args.key?(:total_size)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Output only. Spell check result.
|
2018-08-23 00:36:00 +00:00
|
|
|
class SpellingCorrection
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Indicates if the query was corrected by the spell checker.
|
|
|
|
# Corresponds to the JSON property `corrected`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :corrected
|
|
|
|
alias_method :corrected?, :corrected
|
|
|
|
|
|
|
|
# Correction output consisting of the corrected keyword string.
|
|
|
|
# Corresponds to the JSON property `correctedText`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :corrected_text
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@corrected = args[:corrected] if args.key?(:corrected)
|
|
|
|
@corrected_text = args[:corrected_text] if args.key?(:corrected_text)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Represents a time of day. The date and time zone are either not significant or
|
|
|
|
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
2018-08-23 00:36:00 +00:00
|
|
|
# types are google.type.Date and `google.protobuf.Timestamp`.
|
|
|
|
class TimeOfDay
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to
|
|
|
|
# allow the value "24:00:00" for scenarios like business closing time.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `hours`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :hours
|
|
|
|
|
|
|
|
# Minutes of hour of day. Must be from 0 to 59.
|
|
|
|
# Corresponds to the JSON property `minutes`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :minutes
|
|
|
|
|
|
|
|
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
|
|
|
# Corresponds to the JSON property `nanos`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :nanos
|
|
|
|
|
|
|
|
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
|
|
|
# allow the value 60 if it allows leap-seconds.
|
|
|
|
# Corresponds to the JSON property `seconds`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :seconds
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@hours = args[:hours] if args.key?(:hours)
|
|
|
|
@minutes = args[:minutes] if args.key?(:minutes)
|
|
|
|
@nanos = args[:nanos] if args.key?(:nanos)
|
|
|
|
@seconds = args[:seconds] if args.key?(:seconds)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Message representing a period of time between two timestamps.
|
|
|
|
class TimestampRange
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# End of the period.
|
|
|
|
# Corresponds to the JSON property `endTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :end_time
|
|
|
|
|
|
|
|
# Begin of the period.
|
|
|
|
# Corresponds to the JSON property `startTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :start_time
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@end_time = args[:end_time] if args.key?(:end_time)
|
|
|
|
@start_time = args[:start_time] if args.key?(:start_time)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Request for updating a specified company.
|
2018-08-23 00:36:00 +00:00
|
|
|
class UpdateCompanyRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# A Company resource represents a company in the service. A company is the
|
|
|
|
# entity that owns job postings, that is, the hiring entity responsible for
|
|
|
|
# employing applicants for the job position.
|
|
|
|
# Corresponds to the JSON property `company`
|
|
|
|
# @return [Google::Apis::JobsV3::Company]
|
|
|
|
attr_accessor :company
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Optional but strongly recommended for the best service experience. If
|
|
|
|
# update_mask is provided, only the specified fields in company are updated.
|
|
|
|
# Otherwise all the fields are updated. A field mask to specify the company
|
|
|
|
# fields to be updated. Only top level fields of Company are supported.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `updateMask`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :update_mask
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@company = args[:company] if args.key?(:company)
|
|
|
|
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-09-14 23:21:28 +00:00
|
|
|
# Input only. Update job request.
|
2018-08-23 00:36:00 +00:00
|
|
|
class UpdateJobRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# A Job resource represents a job posting (also referred to as a "job listing"
|
2020-09-14 23:21:28 +00:00
|
|
|
# or "job requisition"). A job belongs to a Company, which is the hiring entity
|
|
|
|
# responsible for the job.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `job`
|
|
|
|
# @return [Google::Apis::JobsV3::Job]
|
|
|
|
attr_accessor :job
|
|
|
|
|
|
|
|
# Optional but strongly recommended to be provided for the best service
|
2020-09-14 23:21:28 +00:00
|
|
|
# experience. If update_mask is provided, only the specified fields in job are
|
|
|
|
# updated. Otherwise all the fields are updated. A field mask to restrict the
|
|
|
|
# fields that are updated. Only top level fields of Job are supported.
|
2018-08-23 00:36:00 +00:00
|
|
|
# Corresponds to the JSON property `updateMask`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :update_mask
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@job = args[:job] if args.key?(:job)
|
|
|
|
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|