# Interface Router.BgpPeerOrBuilder (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 Router.BgpPeerOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getInterface()

    public abstract String getInterface()

Name of the RouterInterface the BGP peer is associated with.

`string interface = 2;`

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

### getInterfaceBytes()

    public abstract ByteString getInterfaceBytes()

Name of the RouterInterface the BGP peer is associated with.

`string interface = 2;`

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

### getInterfaceIpv4Cidr()

    public abstract String getInterfaceIpv4Cidr()

IP range of the interface within Google.

`string interface_ipv4_cidr = 3;`

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

### getInterfaceIpv4CidrBytes()

    public abstract ByteString getInterfaceIpv4CidrBytes()

IP range of the interface within Google.

`string interface_ipv4_cidr = 3;`

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

### getInterfaceIpv6Cidr()

    public abstract String getInterfaceIpv6Cidr()

IPv6 range of the interface within Google.

`string interface_ipv6_cidr = 7;`

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

### getInterfaceIpv6CidrBytes()

    public abstract ByteString getInterfaceIpv6CidrBytes()

IPv6 range of the interface within Google.

`string interface_ipv6_cidr = 7;`

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

### getLocalAsn()

    public abstract int getLocalAsn()

Output only. Local BGP Autonomous System Number (ASN).
This field is ST_NOT_REQUIRED because it stores private ASNs, which are
meaningless outside the zone in which they are being used.

`uint32 local_asn = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getName()

    public abstract String getName()

Name of this BGP peer. Unique within the Zones 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 Zones 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. |

### getPeerAsn()

    public abstract int getPeerAsn()

Peer BGP Autonomous System Number (ASN). Each BGP interface may use
a different value.

`uint32 peer_asn = 5;`

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

### getPeerIpv4Cidr()

    public abstract String getPeerIpv4Cidr()

IP range of the BGP interface outside Google.

`string peer_ipv4_cidr = 4;`

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

### getPeerIpv4CidrBytes()

    public abstract ByteString getPeerIpv4CidrBytes()

IP range of the BGP interface outside Google.

`string peer_ipv4_cidr = 4;`

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

### getPeerIpv6Cidr()

    public abstract String getPeerIpv6Cidr()

IPv6 range of the BGP interface outside Google.

`string peer_ipv6_cidr = 6;`

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

### getPeerIpv6CidrBytes()

    public abstract ByteString getPeerIpv6CidrBytes()

IPv6 range of the BGP interface outside Google.

`string peer_ipv6_cidr = 6;`

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