# Google Cloud Edge Network V1 Client - Class RouterStatus (1.4.2)

1.4.2 (latest) 1.4.1 1.3.1 1.2.3 1.1.4 1.0.0 0.3.6 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Edge Network V1 Client class RouterStatus.

Describing the current status of a router.

Generated from protobuf message `google.cloud.edgenetwork.v1.RouterStatus`

## Namespace

Google \\ Cloud \\ EdgeNetwork \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ network` | `string` The canonical name of the network to which this router belongs. |
| `↳ bgp_peer_status` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-edgenetwork/latest/V1.RouterStatus.BgpPeerStatus>` A list of BgpPeerStatus objects, describing all BGP peers related to this router. |

### getNetwork

The canonical name of the network to which this router belongs.

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

### setNetwork

The canonical name of the network to which this router belongs.

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

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

### getBgpPeerStatus

A list of BgpPeerStatus objects, describing all BGP peers related to this
router.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-edgenetwork/latest/V1.RouterStatus.BgpPeerStatus>` |   |

### setBgpPeerStatus

A list of BgpPeerStatus objects, describing all BGP peers related to this
router.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-edgenetwork/latest/V1.RouterStatus.BgpPeerStatus>` |

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