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

RoutingVPC contains information about the VPC networks associated
with the spokes of a Network Connectivity Center hub.

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

## Namespace

Google \\ Cloud \\ NetworkConnectivity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ uri` | `string` The URI of the VPC network. |
| `↳ required_for_new_site_to_site_data_transfer_spokes` | `bool` Output only. If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true. |

### getUri

The URI of the VPC network.

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

### setUri

The URI of the VPC network.

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

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

### getRequiredForNewSiteToSiteDataTransferSpokes

Output only. If true, indicates that this VPC network is currently
associated with spokes that use the data transfer feature (spokes where the
site_to_site_data_transfer field is set to true). If you create new spokes
that use data transfer, they must be associated with this VPC network. At
most, one VPC network will have this field set to true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setRequiredForNewSiteToSiteDataTransferSpokes

Output only. If true, indicates that this VPC network is currently
associated with spokes that use the data transfer feature (spokes where the
site_to_site_data_transfer field is set to true). If you create new spokes
that use data transfer, they must be associated with this VPC network. At
most, one VPC network will have this field set to true.

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

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