# Google Cloud Domains V1 Client - Class SearchDomainsRequest (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.5.5 0.4.2 0.3.1 0.2.11 Reference documentation and code samples for the Google Cloud Domains V1 Client class SearchDomainsRequest.

Request for the `SearchDomains` method.

Generated from protobuf message `google.cloud.domains.v1.SearchDomainsRequest`

## Namespace

Google \\ Cloud \\ Domains \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getQuery

Required. String used to search for available domain names.

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

### setQuery

Required. String used to search for available domain names.

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

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

### getLocation

Required. The location. Must be in the format `projects/*/locations/*`.

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

### setLocation

Required. The location. Must be in the format `projects/*/locations/*`.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `location` | `string` Required. The location. Must be in the format `projects/*/locations/*`. Please see DomainsClient::locationName() for help formatting this field. |
| `query` | `string` Required. String used to search for available domain names. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.SearchDomainsRequest` |   |