Class RouterStatusBgpPeerStatus (1.59.0)

public final class RouterStatusBgpPeerStatus extends GeneratedMessageV3 implements RouterStatusBgpPeerStatusOrBuilder

Protobuf type google.cloud.compute.v1.RouterStatusBgpPeerStatus

Static Fields

ADVERTISED_ROUTES_FIELD_NUMBER

public static final int ADVERTISED_ROUTES_FIELD_NUMBER
Field Value
Type Description
int

BFD_STATUS_FIELD_NUMBER

public static final int BFD_STATUS_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_IPV4_FIELD_NUMBER

public static final int ENABLE_IPV4_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_IPV6_FIELD_NUMBER

public static final int ENABLE_IPV6_FIELD_NUMBER
Field Value
Type Description
int

IPV4_NEXTHOP_ADDRESS_FIELD_NUMBER

public static final int IPV4_NEXTHOP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

IPV6_NEXTHOP_ADDRESS_FIELD_NUMBER

public static final int IPV6_NEXTHOP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

LINKED_VPN_TUNNEL_FIELD_NUMBER

public static final int LINKED_VPN_TUNNEL_FIELD_NUMBER
Field Value
Type Description
int

MD5_AUTH_ENABLED_FIELD_NUMBER

public static final int MD5_AUTH_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NUM_LEARNED_ROUTES_FIELD_NUMBER

public static final int NUM_LEARNED_ROUTES_FIELD_NUMBER
Field Value
Type Description
int

PEER_IPV4_NEXTHOP_ADDRESS_FIELD_NUMBER

public static final int PEER_IPV4_NEXTHOP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

PEER_IPV6_NEXTHOP_ADDRESS_FIELD_NUMBER

public static final int PEER_IPV6_NEXTHOP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

PEER_IP_ADDRESS_FIELD_NUMBER

public static final int PEER_IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

ROUTER_APPLIANCE_INSTANCE_FIELD_NUMBER

public static final int ROUTER_APPLIANCE_INSTANCE_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

STATUS_REASON_FIELD_NUMBER

public static final int STATUS_REASON_FIELD_NUMBER
Field Value
Type Description
int

UPTIME_FIELD_NUMBER

public static final int UPTIME_FIELD_NUMBER
Field Value
Type Description
int

UPTIME_SECONDS_FIELD_NUMBER

public static final int UPTIME_SECONDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RouterStatusBgpPeerStatus getDefaultInstance()
Returns
Type Description
RouterStatusBgpPeerStatus

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RouterStatusBgpPeerStatus.Builder newBuilder()
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

newBuilder(RouterStatusBgpPeerStatus prototype)

public static RouterStatusBgpPeerStatus.Builder newBuilder(RouterStatusBgpPeerStatus prototype)
Parameter
Name Description
prototype RouterStatusBgpPeerStatus
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

parseDelimitedFrom(InputStream input)

public static RouterStatusBgpPeerStatus parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RouterStatusBgpPeerStatus parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RouterStatusBgpPeerStatus parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RouterStatusBgpPeerStatus parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RouterStatusBgpPeerStatus parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RouterStatusBgpPeerStatus parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusBgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RouterStatusBgpPeerStatus> parser()
Returns
Type Description
Parser<RouterStatusBgpPeerStatus>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAdvertisedRoutes(int index)

public Route getAdvertisedRoutes(int index)

Routes that were advertised to the remote BGP peer

repeated .google.cloud.compute.v1.Route advertised_routes = 333393068;

Parameter
Name Description
index int
Returns
Type Description
Route

getAdvertisedRoutesCount()

public int getAdvertisedRoutesCount()

Routes that were advertised to the remote BGP peer

repeated .google.cloud.compute.v1.Route advertised_routes = 333393068;

Returns
Type Description
int

getAdvertisedRoutesList()

public List<Route> getAdvertisedRoutesList()

Routes that were advertised to the remote BGP peer

repeated .google.cloud.compute.v1.Route advertised_routes = 333393068;

Returns
Type Description
List<Route>

getAdvertisedRoutesOrBuilder(int index)

public RouteOrBuilder getAdvertisedRoutesOrBuilder(int index)

Routes that were advertised to the remote BGP peer

repeated .google.cloud.compute.v1.Route advertised_routes = 333393068;

Parameter
Name Description
index int
Returns
Type Description
RouteOrBuilder

getAdvertisedRoutesOrBuilderList()

public List<? extends RouteOrBuilder> getAdvertisedRoutesOrBuilderList()

Routes that were advertised to the remote BGP peer

repeated .google.cloud.compute.v1.Route advertised_routes = 333393068;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.RouteOrBuilder>

getBfdStatus()

public BfdStatus getBfdStatus()

optional .google.cloud.compute.v1.BfdStatus bfd_status = 395631729;

Returns
Type Description
BfdStatus

The bfdStatus.

getBfdStatusOrBuilder()

public BfdStatusOrBuilder getBfdStatusOrBuilder()

optional .google.cloud.compute.v1.BfdStatus bfd_status = 395631729;

Returns
Type Description
BfdStatusOrBuilder

getDefaultInstanceForType()

public RouterStatusBgpPeerStatus getDefaultInstanceForType()
Returns
Type Description
RouterStatusBgpPeerStatus

getEnableIpv4()

public boolean getEnableIpv4()

Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4.

optional bool enable_ipv4 = 181467937;

Returns
Type Description
boolean

The enableIpv4.

getEnableIpv6()

public boolean getEnableIpv6()

Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6.

optional bool enable_ipv6 = 181467939;

Returns
Type Description
boolean

The enableIpv6.

getIpAddress()

public String getIpAddress()

IP address of the local BGP interface.

optional string ip_address = 406272220;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address of the local BGP interface.

optional string ip_address = 406272220;

Returns
Type Description
ByteString

The bytes for ipAddress.

getIpv4NexthopAddress()

public String getIpv4NexthopAddress()

IPv4 address of the local BGP interface.

optional string ipv4_nexthop_address = 5703377;

Returns
Type Description
String

The ipv4NexthopAddress.

getIpv4NexthopAddressBytes()

public ByteString getIpv4NexthopAddressBytes()

IPv4 address of the local BGP interface.

optional string ipv4_nexthop_address = 5703377;

Returns
Type Description
ByteString

The bytes for ipv4NexthopAddress.

getIpv6NexthopAddress()

public String getIpv6NexthopAddress()

IPv6 address of the local BGP interface.

optional string ipv6_nexthop_address = 27968211;

Returns
Type Description
String

The ipv6NexthopAddress.

getIpv6NexthopAddressBytes()

public ByteString getIpv6NexthopAddressBytes()

IPv6 address of the local BGP interface.

optional string ipv6_nexthop_address = 27968211;

Returns
Type Description
ByteString

The bytes for ipv6NexthopAddress.

getLinkedVpnTunnel()

public String getLinkedVpnTunnel()

URL of the VPN tunnel that this BGP peer controls.

optional string linked_vpn_tunnel = 352296953;

Returns
Type Description
String

The linkedVpnTunnel.

getLinkedVpnTunnelBytes()

public ByteString getLinkedVpnTunnelBytes()

URL of the VPN tunnel that this BGP peer controls.

optional string linked_vpn_tunnel = 352296953;

Returns
Type Description
ByteString

The bytes for linkedVpnTunnel.

getMd5AuthEnabled()

public boolean getMd5AuthEnabled()

Informs whether MD5 authentication is enabled on this BGP peer.

optional bool md5_auth_enabled = 451152075;

Returns
Type Description
boolean

The md5AuthEnabled.

getName()

public String getName()

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

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getNumLearnedRoutes()

public int getNumLearnedRoutes()

Number of routes learned from the remote BGP Peer.

optional uint32 num_learned_routes = 135457535;

Returns
Type Description
int

The numLearnedRoutes.

getParserForType()

public Parser<RouterStatusBgpPeerStatus> getParserForType()
Returns
Type Description
Parser<RouterStatusBgpPeerStatus>
Overrides

getPeerIpAddress()

public String getPeerIpAddress()

IP address of the remote BGP interface.

optional string peer_ip_address = 207735769;

Returns
Type Description
String

The peerIpAddress.

getPeerIpAddressBytes()

public ByteString getPeerIpAddressBytes()

IP address of the remote BGP interface.

optional string peer_ip_address = 207735769;

Returns
Type Description
ByteString

The bytes for peerIpAddress.

getPeerIpv4NexthopAddress()

public String getPeerIpv4NexthopAddress()

IPv4 address of the remote BGP interface.

optional string peer_ipv4_nexthop_address = 469221774;

Returns
Type Description
String

The peerIpv4NexthopAddress.

getPeerIpv4NexthopAddressBytes()

public ByteString getPeerIpv4NexthopAddressBytes()

IPv4 address of the remote BGP interface.

optional string peer_ipv4_nexthop_address = 469221774;

Returns
Type Description
ByteString

The bytes for peerIpv4NexthopAddress.

getPeerIpv6NexthopAddress()

public String getPeerIpv6NexthopAddress()

IPv6 address of the remote BGP interface.

optional string peer_ipv6_nexthop_address = 491486608;

Returns
Type Description
String

The peerIpv6NexthopAddress.

getPeerIpv6NexthopAddressBytes()

public ByteString getPeerIpv6NexthopAddressBytes()

IPv6 address of the remote BGP interface.

optional string peer_ipv6_nexthop_address = 491486608;

Returns
Type Description
ByteString

The bytes for peerIpv6NexthopAddress.

getRouterApplianceInstance()

public String getRouterApplianceInstance()

[Output only] URI of the VM instance that is used as third-party router appliances such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer side of the BGP session.

optional string router_appliance_instance = 468312989;

Returns
Type Description
String

The routerApplianceInstance.

getRouterApplianceInstanceBytes()

public ByteString getRouterApplianceInstanceBytes()

[Output only] URI of the VM instance that is used as third-party router appliances such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer side of the BGP session.

optional string router_appliance_instance = 468312989;

Returns
Type Description
ByteString

The bytes for routerApplianceInstance.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public String getState()

The state of the BGP session. For a list of possible values for this field, see BGP session states.

optional string state = 109757585;

Returns
Type Description
String

The state.

getStateBytes()

public ByteString getStateBytes()

The state of the BGP session. For a list of possible values for this field, see BGP session states.

optional string state = 109757585;

Returns
Type Description
ByteString

The bytes for state.

getStatus()

public String getStatus()

Status of the BGP peer: {UP, DOWN} Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

Status of the BGP peer: {UP, DOWN} Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
ByteString

The bytes for status.

getStatusReason()

public String getStatusReason()

Indicates why particular status was returned. Check the StatusReason enum for the list of possible values.

optional string status_reason = 342706993;

Returns
Type Description
String

The statusReason.

getStatusReasonBytes()

public ByteString getStatusReasonBytes()

Indicates why particular status was returned. Check the StatusReason enum for the list of possible values.

optional string status_reason = 342706993;

Returns
Type Description
ByteString

The bytes for statusReason.

getUptime()

public String getUptime()

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

optional string uptime = 235379688;

Returns
Type Description
String

The uptime.

getUptimeBytes()

public ByteString getUptimeBytes()

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

optional string uptime = 235379688;

Returns
Type Description
ByteString

The bytes for uptime.

getUptimeSeconds()

public String getUptimeSeconds()

Time this session has been up, in seconds. Format: 145

optional string uptime_seconds = 104736040;

Returns
Type Description
String

The uptimeSeconds.

getUptimeSecondsBytes()

public ByteString getUptimeSecondsBytes()

Time this session has been up, in seconds. Format: 145

optional string uptime_seconds = 104736040;

Returns
Type Description
ByteString

The bytes for uptimeSeconds.

hasBfdStatus()

public boolean hasBfdStatus()

optional .google.cloud.compute.v1.BfdStatus bfd_status = 395631729;

Returns
Type Description
boolean

Whether the bfdStatus field is set.

hasEnableIpv4()

public boolean hasEnableIpv4()

Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4.

optional bool enable_ipv4 = 181467937;

Returns
Type Description
boolean

Whether the enableIpv4 field is set.

hasEnableIpv6()

public boolean hasEnableIpv6()

Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6.

optional bool enable_ipv6 = 181467939;

Returns
Type Description
boolean

Whether the enableIpv6 field is set.

hasIpAddress()

public boolean hasIpAddress()

IP address of the local BGP interface.

optional string ip_address = 406272220;

Returns
Type Description
boolean

Whether the ipAddress field is set.

hasIpv4NexthopAddress()

public boolean hasIpv4NexthopAddress()

IPv4 address of the local BGP interface.

optional string ipv4_nexthop_address = 5703377;

Returns
Type Description
boolean

Whether the ipv4NexthopAddress field is set.

hasIpv6NexthopAddress()

public boolean hasIpv6NexthopAddress()

IPv6 address of the local BGP interface.

optional string ipv6_nexthop_address = 27968211;

Returns
Type Description
boolean

Whether the ipv6NexthopAddress field is set.

hasLinkedVpnTunnel()

public boolean hasLinkedVpnTunnel()

URL of the VPN tunnel that this BGP peer controls.

optional string linked_vpn_tunnel = 352296953;

Returns
Type Description
boolean

Whether the linkedVpnTunnel field is set.

hasMd5AuthEnabled()

public boolean hasMd5AuthEnabled()

Informs whether MD5 authentication is enabled on this BGP peer.

optional bool md5_auth_enabled = 451152075;

Returns
Type Description
boolean

Whether the md5AuthEnabled field is set.

hasName()

public boolean hasName()

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

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasNumLearnedRoutes()

public boolean hasNumLearnedRoutes()

Number of routes learned from the remote BGP Peer.

optional uint32 num_learned_routes = 135457535;

Returns
Type Description
boolean

Whether the numLearnedRoutes field is set.

hasPeerIpAddress()

public boolean hasPeerIpAddress()

IP address of the remote BGP interface.

optional string peer_ip_address = 207735769;

Returns
Type Description
boolean

Whether the peerIpAddress field is set.

hasPeerIpv4NexthopAddress()

public boolean hasPeerIpv4NexthopAddress()

IPv4 address of the remote BGP interface.

optional string peer_ipv4_nexthop_address = 469221774;

Returns
Type Description
boolean

Whether the peerIpv4NexthopAddress field is set.

hasPeerIpv6NexthopAddress()

public boolean hasPeerIpv6NexthopAddress()

IPv6 address of the remote BGP interface.

optional string peer_ipv6_nexthop_address = 491486608;

Returns
Type Description
boolean

Whether the peerIpv6NexthopAddress field is set.

hasRouterApplianceInstance()

public boolean hasRouterApplianceInstance()

[Output only] URI of the VM instance that is used as third-party router appliances such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer side of the BGP session.

optional string router_appliance_instance = 468312989;

Returns
Type Description
boolean

Whether the routerApplianceInstance field is set.

hasState()

public boolean hasState()

The state of the BGP session. For a list of possible values for this field, see BGP session states.

optional string state = 109757585;

Returns
Type Description
boolean

Whether the state field is set.

hasStatus()

public boolean hasStatus()

Status of the BGP peer: {UP, DOWN} Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
boolean

Whether the status field is set.

hasStatusReason()

public boolean hasStatusReason()

Indicates why particular status was returned. Check the StatusReason enum for the list of possible values.

optional string status_reason = 342706993;

Returns
Type Description
boolean

Whether the statusReason field is set.

hasUptime()

public boolean hasUptime()

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

optional string uptime = 235379688;

Returns
Type Description
boolean

Whether the uptime field is set.

hasUptimeSeconds()

public boolean hasUptimeSeconds()

Time this session has been up, in seconds. Format: 145

optional string uptime_seconds = 104736040;

Returns
Type Description
boolean

Whether the uptimeSeconds field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RouterStatusBgpPeerStatus.Builder newBuilderForType()
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RouterStatusBgpPeerStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RouterStatusBgpPeerStatus.Builder toBuilder()
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException