# Google Cloud Net App V1 Client - Class ListHostGroupsRequest (1.12.0)

1.12.0 (latest) 1.11.0 1.10.2 1.9.0 1.8.1 1.7.0 1.6.1 1.4.0 1.3.1 1.2.1 1.1.1 1.0.1 0.3.1 0.2.6 0.1.1 Reference documentation and code samples for the Google Cloud Net App V1 Client class ListHostGroupsRequest.

ListHostGroupsRequest for listing host groups.

Generated from protobuf message `google.cloud.netapp.v1.ListHostGroupsRequest`

## Namespace

Google \\ Cloud \\ NetApp \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Parent value for ListHostGroupsRequest |
| `↳ page_size` | `int` Optional. Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default. |
| `↳ page_token` | `string` Optional. A token identifying a page of results the server should return. |
| `↳ filter` | `string` Optional. Filter to apply to the request. |
| `↳ order_by` | `string` Optional. Hint for how to order the results |

### getParent

Required. Parent value for ListHostGroupsRequest

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

### setParent

Required. Parent value for ListHostGroupsRequest

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

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

### getPageSize

Optional. Requested page size. Server may return fewer items than
requested. If unspecified, the server will pick an appropriate default.

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

### setPageSize

Optional. Requested page size. Server may return fewer items than
requested. If unspecified, the server will pick an appropriate default.

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

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

### getPageToken

Optional. A token identifying a page of results the server should return.

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

### setPageToken

Optional. A token identifying a page of results the server should return.

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

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

### getFilter

Optional. Filter to apply to the request.

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

### setFilter

Optional. Filter to apply to the request.

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

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

### getOrderBy

Optional. Hint for how to order the results

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

### setOrderBy

Optional. Hint for how to order the results

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for ListHostGroupsRequest Please see NetAppClient::locationName() for help formatting this field. |

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