# Google Cloud Talent Solution V4 Client - Class SearchJobsResponse (2.3.0)

2.3.0 (latest) 2.2.1 2.1.3 2.0.2 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Talent Solution V4 Client class SearchJobsResponse.

Response for SearchJob method.

Generated from protobuf message `google.cloud.talent.v4.SearchJobsResponse`

## Namespace

Google \\ Cloud \\ Talent \\ V4

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ matching_jobs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SearchJobsResponse.MatchingJob>` The Job entities that match the specified [SearchJobsRequest](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SearchJobsRequest). |
| `↳ histogram_query_results` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.HistogramQueryResult>` The histogram results that match with specified [SearchJobsRequest.histogram_queries](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SearchJobsRequest#_Google_Cloud_Talent_V4_SearchJobsRequest__getHistogramQueries__). |
| `↳ next_page_token` | `string` The token that specifies the starting position of the next page of results. This field is empty if there are no more results. |
| `↳ location_filters` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location>` The location filters that the service applied to the specified query. If any filters are lat-lng based, the [Location.location_type](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location#_Google_Cloud_Talent_V4_Location__getLocationType__) is [Location.LocationType.LOCATION_TYPE_UNSPECIFIED](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location.LocationType#_Google_Cloud_Talent_V4_Location_LocationType__LOCATION_TYPE_UNSPECIFIED). |
| `↳ total_size` | `int` Number of jobs that match the specified query. Note: This size is precise only if the total is less than 100,000. |
| `↳ metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.ResponseMetadata` Additional information for the API invocation, such as the request tracking id. |
| `↳ broadened_query_jobs_count` | `int` 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. |
| `↳ spell_correction` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SpellingCorrection` The spell checking result, and correction. |

### getMatchingJobs

The Job entities that match the specified
[SearchJobsRequest](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SearchJobsRequest).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SearchJobsResponse.MatchingJob>` |   |

### setMatchingJobs

The Job entities that match the specified
[SearchJobsRequest](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SearchJobsRequest).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SearchJobsResponse.MatchingJob>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHistogramQueryResults

The histogram results that match with specified
[SearchJobsRequest.histogram_queries](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SearchJobsRequest#_Google_Cloud_Talent_V4_SearchJobsRequest__getHistogramQueries__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.HistogramQueryResult>` |   |

### setHistogramQueryResults

The histogram results that match with specified
[SearchJobsRequest.histogram_queries](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SearchJobsRequest#_Google_Cloud_Talent_V4_SearchJobsRequest__getHistogramQueries__).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.HistogramQueryResult>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNextPageToken

The token that specifies the starting position of the next page of results.

This field is empty if there are no more results.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNextPageToken

The token that specifies the starting position of the next page of results.

This field is empty if there are no more results.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLocationFilters

The location filters that the service applied to the specified query. If
any filters are lat-lng based, the
[Location.location_type](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location#_Google_Cloud_Talent_V4_Location__getLocationType__) is
[Location.LocationType.LOCATION_TYPE_UNSPECIFIED](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location.LocationType#_Google_Cloud_Talent_V4_Location_LocationType__LOCATION_TYPE_UNSPECIFIED).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location>` |   |

### setLocationFilters

The location filters that the service applied to the specified query. If
any filters are lat-lng based, the
[Location.location_type](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location#_Google_Cloud_Talent_V4_Location__getLocationType__) is
[Location.LocationType.LOCATION_TYPE_UNSPECIFIED](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location.LocationType#_Google_Cloud_Talent_V4_Location_LocationType__LOCATION_TYPE_UNSPECIFIED).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTotalSize

Number of jobs that match the specified query.

Note: This size is precise only if the total is less than 100,000.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setTotalSize

Number of jobs that match the specified query.

Note: This size is precise only if the total is less than 100,000.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMetadata

Additional information for the API invocation, such as the request
tracking id.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.ResponseMetadata|null` |   |

### hasMetadata

### clearMetadata

### setMetadata

Additional information for the API invocation, such as the request
tracking id.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.ResponseMetadata` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBroadenedQueryJobsCount

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setBroadenedQueryJobsCount

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSpellCorrection

The spell checking result, and correction.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SpellingCorrection|null` |   |

### hasSpellCorrection

### clearSpellCorrection

### setSpellCorrection

The spell checking result, and correction.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.SpellingCorrection` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |