# Cloud Talent Solution V4beta1 API - Class Google::Cloud::Talent::V4beta1::CompleteQueryRequest (v0.19.0)

0.19.0 (latest) 0.18.1 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.2 0.9.0 0.8.1 0.7.0 0.6.1 0.5.0 0.4.6 Reference documentation and code samples for the Cloud Talent Solution V4beta1 API class Google::Cloud::Talent::V4beta1::CompleteQueryRequest.

Auto-complete parameters.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #company

    def company() -> ::String

**Returns**

- (::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".

  If tenant id is unspecified, the default tenant is used, for
  example, "projects/foo".

### #company=

    def company=(value) -> ::String

**Parameter**

- **value** (::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".

  If tenant id is unspecified, the default tenant is used, for
  example, "projects/foo".
**Returns**

- (::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".

  If tenant id is unspecified, the default tenant is used, for
  example, "projects/foo".

### #language_codes

    def language_codes() -> ::Array<::String>

**Returns**

- (::Array\<::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.

### #language_codes=

    def language_codes=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::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.
**Returns**

- (::Array\<::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

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Required. Completion result count.

  The maximum allowed page size is 10.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. Completion result count.


  The maximum allowed page size is 10.
**Returns**

- (::Integer) --- Required. Completion result count.

  The maximum allowed page size is 10.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. Resource name of tenant the completion is performed within.

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

  If tenant id is unspecified, the default tenant is used, for
  example, "projects/foo".

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Resource name of tenant the completion is performed within.


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

  If tenant id is unspecified, the default tenant is used, for
  example, "projects/foo".
**Returns**

- (::String) --- Required. Resource name of tenant the completion is performed within.

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

  If tenant id is unspecified, the default tenant is used, for
  example, "projects/foo".

### #query

    def query() -> ::String

**Returns**

- (::String) --- Required. The query used to generate suggestions.

  The maximum number of allowed characters is 255.

### #query=

    def query=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The query used to generate suggestions.


  The maximum number of allowed characters is 255.
**Returns**

- (::String) --- Required. The query used to generate suggestions.

  The maximum number of allowed characters is 255.

### #scope

    def scope() -> ::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope

**Returns**

- ([::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionScope)) --- The scope of the completion. The defaults is [CompletionScope.PUBLIC](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionScope#Google__Cloud__Talent__V4beta1__CompleteQueryRequest__CompletionScope__PUBLIC "Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope::PUBLIC (constant)").

### #scope=

    def scope=(value) -> ::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope

**Parameter**

- **value** ([::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionScope)) --- The scope of the completion. The defaults is [CompletionScope.PUBLIC](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionScope#Google__Cloud__Talent__V4beta1__CompleteQueryRequest__CompletionScope__PUBLIC "Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope::PUBLIC (constant)").
**Returns**

- ([::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionScope)) --- The scope of the completion. The defaults is [CompletionScope.PUBLIC](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionScope#Google__Cloud__Talent__V4beta1__CompleteQueryRequest__CompletionScope__PUBLIC "Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope::PUBLIC (constant)").

### #type

    def type() -> ::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType

**Returns**

- ([::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionType)) --- The completion topic. The default is [CompletionType.COMBINED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionType#Google__Cloud__Talent__V4beta1__CompleteQueryRequest__CompletionType__COMBINED "Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED (constant)").

### #type=

    def type=(value) -> ::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType

**Parameter**

- **value** ([::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionType)) --- The completion topic. The default is [CompletionType.COMBINED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionType#Google__Cloud__Talent__V4beta1__CompleteQueryRequest__CompletionType__COMBINED "Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED (constant)").
**Returns**

- ([::Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionType)) --- The completion topic. The default is [CompletionType.COMBINED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompleteQueryRequest-CompletionType#Google__Cloud__Talent__V4beta1__CompleteQueryRequest__CompletionType__COMBINED "Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED (constant)").