# Google Cloud Network Connectivity V1 Client - Class RejectHubSpokeResponse (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 RejectHubSpokeResponse.

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

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

## Namespace

Google \\ Cloud \\ NetworkConnectivity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ spoke` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.Spoke` The spoke that was operated on. |

### getSpoke

The spoke that was operated on.

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

### hasSpoke

### clearSpoke

### setSpoke

The spoke that was operated on.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.Spoke` |

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