# Interface RouterStatus.BgpPeerStatusOrBuilder (0.61.0)

0.61.0 (latest) 0.59.0 0.56.0 0.55.0 0.53.0 0.51.0 0.50.0 0.49.0 0.48.0 0.46.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.38.0 0.36.0 0.35.0 0.32.0 0.31.0 0.30.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public static interface RouterStatus.BgpPeerStatusOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getIpAddress()

    public abstract String getIpAddress()

IP address of the local BGP interface.

`string ip_address = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The ipAddress. |

### getIpAddressBytes()

    public abstract ByteString getIpAddressBytes()

IP address of the local BGP interface.

`string ip_address = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for ipAddress. |

### getName()

    public abstract String getName()

Name of this BGP peer. Unique within the Routers resource.

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Name of this BGP peer. Unique within the Routers resource.

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getPeerIpAddress()

    public abstract String getPeerIpAddress()

IP address of the remote BGP interface.

`string peer_ip_address = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The peerIpAddress. |

### getPeerIpAddressBytes()

    public abstract ByteString getPeerIpAddressBytes()

IP address of the remote BGP interface.

`string peer_ip_address = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for peerIpAddress. |

### getPrefixCounter()

    public abstract RouterStatus.PrefixCounter getPrefixCounter()

A collection of counts for prefixes.

`.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-edgenetwork/latest/com.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter` | The prefixCounter. |

### getPrefixCounterOrBuilder()

    public abstract RouterStatus.PrefixCounterOrBuilder getPrefixCounterOrBuilder()

A collection of counts for prefixes.

`.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-edgenetwork/latest/com.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounterOrBuilder` |   |

### getState()

    public abstract String getState()

BGP state as specified in RFC1771.

`string state = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The state. |

### getStateBytes()

    public abstract ByteString getStateBytes()

BGP state as specified in RFC1771.

`string state = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for state. |

### getStatus()

    public abstract RouterStatus.BgpPeerStatus.BgpStatus getStatus()

The current status of BGP.

`.google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus status = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-edgenetwork/latest/com.google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus` | The status. |

### getStatusValue()

    public abstract int getStatusValue()

The current status of BGP.

`.google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus status = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for status. |

### getUptime()

    public abstract String getUptime()

Time this session has been up.
Format:
14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

`string uptime = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The uptime. |

### getUptimeBytes()

    public abstract ByteString getUptimeBytes()

Time this session has been up.
Format:
14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

`string uptime = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for uptime. |

### getUptimeSeconds()

    public abstract long getUptimeSeconds()

Time this session has been up, in seconds.

`int64 uptime_seconds = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The uptimeSeconds. |

### hasPrefixCounter()

    public abstract boolean hasPrefixCounter()

A collection of counts for prefixes.

`.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the prefixCounter field is set. |