# Google Cloud Network Connectivity V1 Client - Class ListHubSpokesRequest (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.0 2.2.2 2.1.2 2.0.2 1.5.5 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class ListHubSpokesRequest.

The request for
[HubService.ListHubSpokes](https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.Client.HubServiceClient#_Google_Cloud_NetworkConnectivity_V1_Client_HubServiceClient__listHubSpokes__).

Generated from protobuf message `google.cloud.networkconnectivity.v1.ListHubSpokesRequest`

## Namespace

Google \\ Cloud \\ NetworkConnectivity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the hub. |
| `↳ spoke_locations` | `string[]` A list of locations. Specify one of the following: `[global]`, a single region (for example, `[us-central1]`), or a combination of values (for example, `[global, us-central1, us-west1]`). If the spoke_locations field is populated, the list of results includes only spokes in the specified location. If the spoke_locations field is not populated, the list of results includes spokes in all locations. |
| `↳ page_size` | `int` The maximum number of results to return per page. |
| `↳ page_token` | `string` The page token. |
| `↳ filter` | `string` An expression that filters the list of results. |
| `↳ order_by` | `string` Sort the results by name or create_time. |
| `↳ view` | `int` The view of the spoke to return. The view that you use determines which spoke fields are included in the response. |

### getName

Required. The name of the hub.

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

### setName

Required. The name of the hub.

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

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

### getSpokeLocations

A list of locations.

Specify one of the following: `[global]`, a single region (for
example, `[us-central1]`), or a combination of
values (for example, `[global, us-central1, us-west1]`).
If the spoke_locations field is populated, the list of results
includes only spokes in the specified location.
If the spoke_locations field is not populated, the list of results
includes spokes in all locations.

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

### setSpokeLocations

A list of locations.

Specify one of the following: `[global]`, a single region (for
example, `[us-central1]`), or a combination of
values (for example, `[global, us-central1, us-west1]`).
If the spoke_locations field is populated, the list of results
includes only spokes in the specified location.
If the spoke_locations field is not populated, the list of results
includes spokes in all locations.

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

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

### getPageSize

The maximum number of results to return per page.

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

### setPageSize

The maximum number of results to return per page.

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

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

### getPageToken

The page token.

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

### setPageToken

The page token.

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

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

### getFilter

An expression that filters the list of results.

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

### setFilter

An expression that filters the list of results.

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

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

### getOrderBy

Sort the results by name or create_time.

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

### setOrderBy

Sort the results by name or create_time.

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

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

### getView

The view of the spoke to return.

The view that you use determines which spoke fields are included in the
response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SpokeView](https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.ListHubSpokesRequest.SpokeView). |

### setView

The view of the spoke to return.

The view that you use determines which spoke fields are included in the
response.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SpokeView](https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.ListHubSpokesRequest.SpokeView). |

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the hub. Please see HubServiceClient::hubName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.ListHubSpokesRequest` |   |