Class: Google::Apis::JobsV2::SearchJobsRequest
- Inherits:
-
Object
- Object
- Google::Apis::JobsV2::SearchJobsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/jobs_v2/classes.rb,
generated/google/apis/jobs_v2/representations.rb,
generated/google/apis/jobs_v2/representations.rb
Overview
Input only.
The Request body of the SearchJobs
call.
Instance Attribute Summary collapse
-
#disable_relevance_thresholding ⇒ Boolean
(also: #disable_relevance_thresholding?)
Optional.
-
#enable_broadening ⇒ Boolean
(also: #enable_broadening?)
Optional.
-
#enable_precise_result_size ⇒ Boolean
(also: #enable_precise_result_size?)
Optional.
-
#filters ⇒ Google::Apis::JobsV2::JobFilters
Input only.
-
#histogram_facets ⇒ Google::Apis::JobsV2::HistogramFacets
Input only.
-
#job_view ⇒ String
Optional.
-
#mode ⇒ String
Required.
-
#offset ⇒ Fixnum
Optional.
-
#order_by ⇒ String
Deprecated.
-
#page_size ⇒ Fixnum
Optional.
-
#page_token ⇒ String
Optional.
-
#query ⇒ Google::Apis::JobsV2::JobQuery
Input only.
-
#request_metadata ⇒ Google::Apis::JobsV2::RequestMetadata
Input only.
-
#sort_by ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SearchJobsRequest
constructor
A new instance of SearchJobsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SearchJobsRequest
Returns a new instance of SearchJobsRequest
3101 3102 3103 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3101 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disable_relevance_thresholding ⇒ Boolean Also known as: disable_relevance_thresholding?
Optional. Controls whether to disable relevance thresholding. Relevance
thresholding removes jobs that have low relevance in search results,
for example, removing "Assistant to the CEO" positions from the search
results of a search for "CEO".
Disabling relevance thresholding improves the accuracy of subsequent
search requests.
Defaults to false.
Corresponds to the JSON property disableRelevanceThresholding
2998 2999 3000 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 2998 def disable_relevance_thresholding @disable_relevance_thresholding end |
#enable_broadening ⇒ Boolean Also known as: enable_broadening?
Optional. Controls whether to broaden the search when it produces sparse
results.
Broadened queries append results to the end of the matching results
list.
Defaults to false.
Corresponds to the JSON property enableBroadening
3008 3009 3010 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3008 def enable_broadening @enable_broadening end |
#enable_precise_result_size ⇒ Boolean Also known as: enable_precise_result_size?
Optional. Controls if the search job request requires the return of a precise
count of the first 300 results. Setting this to true
ensures
consistency in the number of results per page. Best practice is to set this
value to true if a client allows users to jump directly to a
non-sequential search results page.
Enabling this flag may adversely impact performance.
Defaults to false.
Corresponds to the JSON property enablePreciseResultSize
3020 3021 3022 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3020 def enable_precise_result_size @enable_precise_result_size end |
#filters ⇒ Google::Apis::JobsV2::JobFilters
Input only.
Deprecated. Use JobQuery instead.
The filters required to perform a search query or histogram.
Corresponds to the JSON property filters
3028 3029 3030 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3028 def filters @filters end |
#histogram_facets ⇒ Google::Apis::JobsV2::HistogramFacets
Input only.
Histogram facets to be specified in SearchJobsRequest.
Corresponds to the JSON property histogramFacets
3034 3035 3036 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3034 def histogram_facets @histogram_facets end |
#job_view ⇒ String
Optional. The number of job attributes returned for jobs in the
search response. Defaults to JobView.SMALL if no value is specified.
Corresponds to the JSON property jobView
3040 3041 3042 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3040 def job_view @job_view end |
#mode ⇒ String
Required. Mode of a search.
Corresponds to the JSON property mode
3045 3046 3047 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3045 def mode @mode end |
#offset ⇒ Fixnum
Optional. An integer that specifies the current offset (that is, starting
result
location, amongst the jobs deemed by the API as relevant) in search
results. This field is only considered if page_token is unset.
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).
Corresponds to the JSON property offset
3057 3058 3059 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3057 def offset @offset end |
#order_by ⇒ String
Deprecated. Use sort_by instead.
Optional.
The criteria determining how search results are sorted.
Defaults to SortBy.RELEVANCE_DESC if no value is specified.
Corresponds to the JSON property orderBy
3065 3066 3067 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3065 def order_by @order_by end |
#page_size ⇒ Fixnum
Optional. A limit on the number of jobs returned in the search results.
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
3072 3073 3074 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3072 def page_size @page_size end |
#page_token ⇒ String
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.
Corresponds to the JSON property pageToken
3079 3080 3081 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3079 def page_token @page_token end |
#query ⇒ Google::Apis::JobsV2::JobQuery
Input only.
The query required to perform a search query or histogram.
Corresponds to the JSON property query
3085 3086 3087 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3085 def query @query end |
#request_metadata ⇒ Google::Apis::JobsV2::RequestMetadata
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.
Corresponds to the JSON property requestMetadata
3093 3094 3095 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3093 def @request_metadata end |
#sort_by ⇒ String
Optional. The criteria determining how search results are sorted.
Defaults to SortBy.RELEVANCE_DESC if no value is specified.
Corresponds to the JSON property sortBy
3099 3100 3101 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3099 def sort_by @sort_by end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 3106 def update!(**args) @disable_relevance_thresholding = args[:disable_relevance_thresholding] if args.key?(:disable_relevance_thresholding) @enable_broadening = args[:enable_broadening] if args.key?(:enable_broadening) @enable_precise_result_size = args[:enable_precise_result_size] if args.key?(:enable_precise_result_size) @filters = args[:filters] if args.key?(:filters) @histogram_facets = args[:histogram_facets] if args.key?(:histogram_facets) @job_view = args[:job_view] if args.key?(:job_view) @mode = args[:mode] if args.key?(:mode) @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) @query = args[:query] if args.key?(:query) @request_metadata = args[:request_metadata] if args.key?(:request_metadata) @sort_by = args[:sort_by] if args.key?(:sort_by) end |