Class: Google::Apis::JobsV3::SearchJobsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/jobs_v3/classes.rb,
lib/google/apis/jobs_v3/representations.rb,
lib/google/apis/jobs_v3/representations.rb

Overview

Output only. Response for SearchJob method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchJobsResponse

Returns a new instance of SearchJobsResponse.



2328
2329
2330
# File 'lib/google/apis/jobs_v3/classes.rb', line 2328

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

Instance Attribute Details

#broadened_query_jobs_countFixnum

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 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. Corresponds to the JSON property broadenedQueryJobsCount

Returns:

  • (Fixnum)


2279
2280
2281
# File 'lib/google/apis/jobs_v3/classes.rb', line 2279

def broadened_query_jobs_count
  @broadened_query_jobs_count
end

#estimated_total_sizeFixnum

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. Corresponds to the JSON property estimatedTotalSize

Returns:

  • (Fixnum)


2286
2287
2288
# File 'lib/google/apis/jobs_v3/classes.rb', line 2286

def estimated_total_size
  @estimated_total_size
end

#histogram_resultsGoogle::Apis::JobsV3::HistogramResults

Output only. Histogram results that match HistogramFacets specified in SearchJobsRequest. Corresponds to the JSON property histogramResults



2292
2293
2294
# File 'lib/google/apis/jobs_v3/classes.rb', line 2292

def histogram_results
  @histogram_results
end

#location_filtersArray<Google::Apis::JobsV3::Location>

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. Corresponds to the JSON property locationFilters

Returns:



2299
2300
2301
# File 'lib/google/apis/jobs_v3/classes.rb', line 2299

def location_filters
  @location_filters
end

#matching_jobsArray<Google::Apis::JobsV3::MatchingJob>

The Job entities that match the specified SearchJobsRequest. Corresponds to the JSON property matchingJobs



2304
2305
2306
# File 'lib/google/apis/jobs_v3/classes.rb', line 2304

def matching_jobs
  @matching_jobs
end

#metadataGoogle::Apis::JobsV3::ResponseMetadata

Output only. Additional information returned to client, such as debugging information. Corresponds to the JSON property metadata



2310
2311
2312
# File 'lib/google/apis/jobs_v3/classes.rb', line 2310

def 
  @metadata
end

#next_page_tokenString

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

Returns:

  • (String)


2316
2317
2318
# File 'lib/google/apis/jobs_v3/classes.rb', line 2316

def next_page_token
  @next_page_token
end

#spell_correctionGoogle::Apis::JobsV3::SpellingCorrection

Output only. Spell check result. Corresponds to the JSON property spellCorrection



2321
2322
2323
# File 'lib/google/apis/jobs_v3/classes.rb', line 2321

def spell_correction
  @spell_correction
end

#total_sizeFixnum

The precise result count with limit 100,000. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


2326
2327
2328
# File 'lib/google/apis/jobs_v3/classes.rb', line 2326

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
# File 'lib/google/apis/jobs_v3/classes.rb', line 2333

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