# Google Cloud Talent Solution V4 Client - Class CompleteQueryRequest (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 CompleteQueryRequest.

Auto-complete parameters.

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

## Namespace

Google \\ Cloud \\ Talent \\ V4

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ tenant` | `string` Required. Resource name of tenant the completion is performed within. The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar". |
| `↳ query` | `string` Required. The query used to generate suggestions. The maximum number of allowed characters is 255. |
| `↳ language_codes` | `string[]` The list of languages of the query. This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of allowed characters is 255. |
| `↳ page_size` | `int` Required. Completion result count. The maximum allowed page size is 10. |
| `↳ company` | `string` If provided, restricts completion to specified company. The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for example, "projects/foo/tenants/bar/companies/baz". |
| `↳ scope` | `int` The scope of the completion. The defaults is CompletionScope.PUBLIC. |
| `↳ type` | `int` The completion topic. The default is [CompletionType.COMBINED](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompleteQueryRequest.CompletionType#_Google_Cloud_Talent_V4_CompleteQueryRequest_CompletionType__COMBINED). |

### getTenant

Required. Resource name of tenant the completion is performed within.

The format is "projects/{project_id}/tenants/{tenant_id}", for example,
"projects/foo/tenants/bar".

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

### setTenant

Required. Resource name of tenant the completion is performed within.

The format is "projects/{project_id}/tenants/{tenant_id}", for example,
"projects/foo/tenants/bar".

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

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

### getQuery

Required. The query used to generate suggestions.

The maximum number of allowed characters is 255.

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

### setQuery

Required. The query used to generate suggestions.

The maximum number of allowed characters is 255.

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

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

### getLanguageCodes

The list of languages of the query. This is
the BCP-47 language code, such as "en-US" or "sr-Latn".

For more information, see
[Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
The maximum number of allowed characters is 255.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setLanguageCodes

The list of languages of the query. This is
the BCP-47 language code, such as "en-US" or "sr-Latn".

For more information, see
[Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
The maximum number of allowed characters is 255.

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

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

### getPageSize

Required. Completion result count.

The maximum allowed page size is 10.

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

### setPageSize

Required. Completion result count.

The maximum allowed page size is 10.

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

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

### getCompany

If provided, restricts completion to specified company.

The format is
"projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
example, "projects/foo/tenants/bar/companies/baz".

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

### setCompany

If provided, restricts completion to specified company.

The format is
"projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
example, "projects/foo/tenants/bar/companies/baz".

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

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

### getScope

The scope of the completion. The defaults is
CompletionScope.PUBLIC.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CompletionScope](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompleteQueryRequest.CompletionScope). |

### setScope

The scope of the completion. The defaults is
CompletionScope.PUBLIC.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CompletionScope](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompleteQueryRequest.CompletionScope). |

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

### getType

The completion topic. The default is
[CompletionType.COMBINED](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompleteQueryRequest.CompletionType#_Google_Cloud_Talent_V4_CompleteQueryRequest_CompletionType__COMBINED).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CompletionType](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompleteQueryRequest.CompletionType). |

### setType

The completion topic. The default is
[CompletionType.COMBINED](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompleteQueryRequest.CompletionType#_Google_Cloud_Talent_V4_CompleteQueryRequest_CompletionType__COMBINED).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CompletionType](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompleteQueryRequest.CompletionType). |

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