Class: Google::Apis::JobsV2::SearchJobsRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SearchJobsRequest

Returns a new instance of SearchJobsRequest



3139
3140
3141
# File 'generated/google/apis/jobs_v2/classes.rb', line 3139

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#disable_relevance_thresholdingBoolean Also known as: disable_relevance_thresholding?

Deprecated. Any value provided in this field will be ignored. 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

Returns:

  • (Boolean)


3031
3032
3033
# File 'generated/google/apis/jobs_v2/classes.rb', line 3031

def disable_relevance_thresholding
  @disable_relevance_thresholding
end

#enable_broadeningBoolean 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

Returns:

  • (Boolean)


3041
3042
3043
# File 'generated/google/apis/jobs_v2/classes.rb', line 3041

def enable_broadening
  @enable_broadening
end

#enable_precise_result_sizeBoolean 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

Returns:

  • (Boolean)


3054
3055
3056
# File 'generated/google/apis/jobs_v2/classes.rb', line 3054

def enable_precise_result_size
  @enable_precise_result_size
end

#filtersGoogle::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



3062
3063
3064
# File 'generated/google/apis/jobs_v2/classes.rb', line 3062

def filters
  @filters
end

#histogram_facetsGoogle::Apis::JobsV2::HistogramFacets

Input only. Histogram facets to be specified in SearchJobsRequest. Corresponds to the JSON property histogramFacets



3068
3069
3070
# File 'generated/google/apis/jobs_v2/classes.rb', line 3068

def histogram_facets
  @histogram_facets
end

#job_viewString

Optional. The number of job attributes that is returned for jobs in the search response. Defaults to JobView.SMALL if no value is specified. Corresponds to the JSON property jobView

Returns:

  • (String)


3075
3076
3077
# File 'generated/google/apis/jobs_v2/classes.rb', line 3075

def job_view
  @job_view
end

#modeString

Required. Mode of a search. Corresponds to the JSON property mode

Returns:

  • (String)


3081
3082
3083
# File 'generated/google/apis/jobs_v2/classes.rb', line 3081

def mode
  @mode
end

#offsetFixnum

Optional. An integer that specifies the current offset (i.e. starting result) 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

Returns:

  • (Fixnum)


3092
3093
3094
# File 'generated/google/apis/jobs_v2/classes.rb', line 3092

def offset
  @offset
end

#order_byString

Deprecated. Use sort_by instead. Optional. The criteria that determine how search results are sorted. Defaults to SortBy.RELEVANCE_DESC if no value is specified. Corresponds to the JSON property orderBy

Returns:

  • (String)


3100
3101
3102
# File 'generated/google/apis/jobs_v2/classes.rb', line 3100

def order_by
  @order_by
end

#page_sizeFixnum

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

Returns:

  • (Fixnum)


3108
3109
3110
# File 'generated/google/apis/jobs_v2/classes.rb', line 3108

def page_size
  @page_size
end

#page_tokenString

Optional. The token that specifies 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

Returns:

  • (String)


3116
3117
3118
# File 'generated/google/apis/jobs_v2/classes.rb', line 3116

def page_token
  @page_token
end

#queryGoogle::Apis::JobsV2::JobQuery

Input only. The query required to perform a search query or histogram. Corresponds to the JSON property query



3122
3123
3124
# File 'generated/google/apis/jobs_v2/classes.rb', line 3122

def query
  @query
end

#request_metadataGoogle::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



3130
3131
3132
# File 'generated/google/apis/jobs_v2/classes.rb', line 3130

def 
  @request_metadata
end

#sort_byString

Optional. The criteria that determine how search results are sorted. Defaults to SortBy.RELEVANCE_DESC if no value is specified. Corresponds to the JSON property sortBy

Returns:

  • (String)


3137
3138
3139
# File 'generated/google/apis/jobs_v2/classes.rb', line 3137

def sort_by
  @sort_by
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
# File 'generated/google/apis/jobs_v2/classes.rb', line 3144

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