Class: Google::Apis::JobsV2::GetHistogramRequest

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

Deprecated. Use SearchJobsRequest.histogram_facets instead to make a single call with both search and histogram. Input only. A request for the GetHistogram method.

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) ⇒ GetHistogramRequest

Returns a new instance of GetHistogramRequest



1383
1384
1385
# File 'generated/google/apis/jobs_v2/classes.rb', line 1383

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

Instance Attribute Details

#allow_broadeningBoolean Also known as: allow_broadening?

Optional. Controls whether to broaden the search to avoid too few results for a given query in instances where a search has sparse results. Results from a broadened query is a superset of the results from the original query. Defaults to false. Corresponds to the JSON property allowBroadening

Returns:

  • (Boolean)


1349
1350
1351
# File 'generated/google/apis/jobs_v2/classes.rb', line 1349

def allow_broadening
  @allow_broadening
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



1357
1358
1359
# File 'generated/google/apis/jobs_v2/classes.rb', line 1357

def filters
  @filters
end

#queryGoogle::Apis::JobsV2::JobQuery

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



1363
1364
1365
# File 'generated/google/apis/jobs_v2/classes.rb', line 1363

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



1371
1372
1373
# File 'generated/google/apis/jobs_v2/classes.rb', line 1371

def 
  @request_metadata
end

#search_typesArray<String>

Required. A list of facets that specify the histogram data to be calculated against and returned. Histogram response times can be slow, and counts can be approximations. This call may be temporarily or permanently removed prior to the production release of Cloud Job Discovery. Corresponds to the JSON property searchTypes

Returns:

  • (Array<String>)


1381
1382
1383
# File 'generated/google/apis/jobs_v2/classes.rb', line 1381

def search_types
  @search_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1388
1389
1390
1391
1392
1393
1394
# File 'generated/google/apis/jobs_v2/classes.rb', line 1388

def update!(**args)
  @allow_broadening = args[:allow_broadening] if args.key?(:allow_broadening)
  @filters = args[:filters] if args.key?(:filters)
  @query = args[:query] if args.key?(:query)
  @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
  @search_types = args[:search_types] if args.key?(:search_types)
end