Class RouterStatusBgpPeerStatus (1.11.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
TypeDescription
int

BFD_STATUS_FIELD_NUMBER

public static final int BFD_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

LINKED_VPN_TUNNEL_FIELD_NUMBER

public static final int LINKED_VPN_TUNNEL_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NUM_LEARNED_ROUTES_FIELD_NUMBER

public static final int NUM_LEARNED_ROUTES_FIELD_NUMBER
Field Value
TypeDescription
int

PEER_IP_ADDRESS_FIELD_NUMBER

public static final int PEER_IP_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

ROUTER_APPLIANCE_INSTANCE_FIELD_NUMBER

public static final int ROUTER_APPLIANCE_INSTANCE_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

UPTIME_FIELD_NUMBER

public static final int UPTIME_FIELD_NUMBER
Field Value
TypeDescription
int

UPTIME_SECONDS_FIELD_NUMBER

public static final int UPTIME_SECONDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RouterStatusBgpPeerStatus getDefaultInstance()
Returns
TypeDescription
RouterStatusBgpPeerStatus

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RouterStatusBgpPeerStatus.Builder newBuilder()
Returns
TypeDescription
RouterStatusBgpPeerStatus.Builder

newBuilder(RouterStatusBgpPeerStatus prototype)

public static RouterStatusBgpPeerStatus.Builder newBuilder(RouterStatusBgpPeerStatus prototype)
Parameter
NameDescription
prototypeRouterStatusBgpPeerStatus
Returns
TypeDescription
RouterStatusBgpPeerStatus.Builder

parseDelimitedFrom(InputStream input)

public static RouterStatusBgpPeerStatus parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RouterStatusBgpPeerStatus parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RouterStatusBgpPeerStatus parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RouterStatusBgpPeerStatus parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RouterStatusBgpPeerStatus parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RouterStatusBgpPeerStatus parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusBgpPeerStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusBgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RouterStatusBgpPeerStatus> parser()
Returns
TypeDescription
Parser<RouterStatusBgpPeerStatus>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Route

getAdvertisedRoutesCount()

public int getAdvertisedRoutesCount()

Routes that were advertised to the remote BGP peer

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.compute.v1.RouteOrBuilder>

getBfdStatus()

public BfdStatus getBfdStatus()

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

Returns
TypeDescription
BfdStatus

The bfdStatus.

getBfdStatusOrBuilder()

public BfdStatusOrBuilder getBfdStatusOrBuilder()

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

Returns
TypeDescription
BfdStatusOrBuilder

getDefaultInstanceForType()

public RouterStatusBgpPeerStatus getDefaultInstanceForType()
Returns
TypeDescription
RouterStatusBgpPeerStatus

getIpAddress()

public String getIpAddress()

IP address of the local BGP interface.

optional string ip_address = 406272220;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address of the local BGP interface.

optional string ip_address = 406272220;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getLinkedVpnTunnel()

public String getLinkedVpnTunnel()

URL of the VPN tunnel that this BGP peer controls.

optional string linked_vpn_tunnel = 352296953;

Returns
TypeDescription
String

The linkedVpnTunnel.

getLinkedVpnTunnelBytes()

public ByteString getLinkedVpnTunnelBytes()

URL of the VPN tunnel that this BGP peer controls.

optional string linked_vpn_tunnel = 352296953;

Returns
TypeDescription
ByteString

The bytes for linkedVpnTunnel.

getName()

public String getName()

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

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

optional string name = 3373707;

Returns
TypeDescription
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
TypeDescription
int

The numLearnedRoutes.

getParserForType()

public Parser<RouterStatusBgpPeerStatus> getParserForType()
Returns
TypeDescription
Parser<RouterStatusBgpPeerStatus>
Overrides

getPeerIpAddress()

public String getPeerIpAddress()

IP address of the remote BGP interface.

optional string peer_ip_address = 207735769;

Returns
TypeDescription
String

The peerIpAddress.

getPeerIpAddressBytes()

public ByteString getPeerIpAddressBytes()

IP address of the remote BGP interface.

optional string peer_ip_address = 207735769;

Returns
TypeDescription
ByteString

The bytes for peerIpAddress.

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
TypeDescription
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
TypeDescription
ByteString

The bytes for routerApplianceInstance.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for status.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The uptimeSeconds.

getUptimeSecondsBytes()

public ByteString getUptimeSecondsBytes()

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

optional string uptime_seconds = 104736040;

Returns
TypeDescription
ByteString

The bytes for uptimeSeconds.

hasBfdStatus()

public boolean hasBfdStatus()

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

Returns
TypeDescription
boolean

Whether the bfdStatus field is set.

hasIpAddress()

public boolean hasIpAddress()

IP address of the local BGP interface.

optional string ip_address = 406272220;

Returns
TypeDescription
boolean

Whether the ipAddress field is set.

hasLinkedVpnTunnel()

public boolean hasLinkedVpnTunnel()

URL of the VPN tunnel that this BGP peer controls.

optional string linked_vpn_tunnel = 352296953;

Returns
TypeDescription
boolean

Whether the linkedVpnTunnel field is set.

hasName()

public boolean hasName()

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

optional string name = 3373707;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the peerIpAddress 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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the status 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
TypeDescription
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
TypeDescription
boolean

Whether the uptimeSeconds field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RouterStatusBgpPeerStatus.Builder newBuilderForType()
Returns
TypeDescription
RouterStatusBgpPeerStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RouterStatusBgpPeerStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RouterStatusBgpPeerStatus.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RouterStatusBgpPeerStatus.Builder toBuilder()
Returns
TypeDescription
RouterStatusBgpPeerStatus.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException