Class RouterStatusBgpPeerStatus.Builder (1.64.0)

public static final class RouterStatusBgpPeerStatus.Builder extends GeneratedMessageV3.Builder<RouterStatusBgpPeerStatus.Builder> implements RouterStatusBgpPeerStatusOrBuilder

Protobuf type google.cloud.compute.v1.RouterStatusBgpPeerStatus

Static Methods

getDescriptor()

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

Methods

addAdvertisedRoutes(Route value)

public RouterStatusBgpPeerStatus.Builder addAdvertisedRoutes(Route value)

Routes that were advertised to the remote BGP peer

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

Parameter
Name Description
value Route
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

addAdvertisedRoutes(Route.Builder builderForValue)

public RouterStatusBgpPeerStatus.Builder addAdvertisedRoutes(Route.Builder builderForValue)

Routes that were advertised to the remote BGP peer

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

Parameter
Name Description
builderForValue Route.Builder
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

addAdvertisedRoutes(int index, Route value)

public RouterStatusBgpPeerStatus.Builder addAdvertisedRoutes(int index, Route value)

Routes that were advertised to the remote BGP peer

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

Parameters
Name Description
index int
value Route
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

addAdvertisedRoutes(int index, Route.Builder builderForValue)

public RouterStatusBgpPeerStatus.Builder addAdvertisedRoutes(int index, Route.Builder builderForValue)

Routes that were advertised to the remote BGP peer

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

Parameters
Name Description
index int
builderForValue Route.Builder
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

addAdvertisedRoutesBuilder()

public Route.Builder addAdvertisedRoutesBuilder()

Routes that were advertised to the remote BGP peer

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

Returns
Type Description
Route.Builder

addAdvertisedRoutesBuilder(int index)

public Route.Builder addAdvertisedRoutesBuilder(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.Builder

addAllAdvertisedRoutes(Iterable<? extends Route> values)

public RouterStatusBgpPeerStatus.Builder addAllAdvertisedRoutes(Iterable<? extends Route> values)

Routes that were advertised to the remote BGP peer

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.Route>
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RouterStatusBgpPeerStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
Overrides

build()

public RouterStatusBgpPeerStatus build()
Returns
Type Description
RouterStatusBgpPeerStatus

buildPartial()

public RouterStatusBgpPeerStatus buildPartial()
Returns
Type Description
RouterStatusBgpPeerStatus

clear()

public RouterStatusBgpPeerStatus.Builder clear()
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
Overrides

clearAdvertisedRoutes()

public RouterStatusBgpPeerStatus.Builder clearAdvertisedRoutes()

Routes that were advertised to the remote BGP peer

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

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

clearBfdStatus()

public RouterStatusBgpPeerStatus.Builder clearBfdStatus()

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

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

clearEnableIpv4()

public RouterStatusBgpPeerStatus.Builder clearEnableIpv4()

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
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearEnableIpv6()

public RouterStatusBgpPeerStatus.Builder clearEnableIpv6()

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
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RouterStatusBgpPeerStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
Overrides

clearIpAddress()

public RouterStatusBgpPeerStatus.Builder clearIpAddress()

IP address of the local BGP interface.

optional string ip_address = 406272220;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearIpv4NexthopAddress()

public RouterStatusBgpPeerStatus.Builder clearIpv4NexthopAddress()

IPv4 address of the local BGP interface.

optional string ipv4_nexthop_address = 5703377;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearIpv6NexthopAddress()

public RouterStatusBgpPeerStatus.Builder clearIpv6NexthopAddress()

IPv6 address of the local BGP interface.

optional string ipv6_nexthop_address = 27968211;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearLinkedVpnTunnel()

public RouterStatusBgpPeerStatus.Builder clearLinkedVpnTunnel()

URL of the VPN tunnel that this BGP peer controls.

optional string linked_vpn_tunnel = 352296953;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearMd5AuthEnabled()

public RouterStatusBgpPeerStatus.Builder clearMd5AuthEnabled()

Informs whether MD5 authentication is enabled on this BGP peer.

optional bool md5_auth_enabled = 451152075;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearName()

public RouterStatusBgpPeerStatus.Builder clearName()

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

optional string name = 3373707;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearNumLearnedRoutes()

public RouterStatusBgpPeerStatus.Builder clearNumLearnedRoutes()

Number of routes learned from the remote BGP Peer.

optional uint32 num_learned_routes = 135457535;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RouterStatusBgpPeerStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
Overrides

clearPeerIpAddress()

public RouterStatusBgpPeerStatus.Builder clearPeerIpAddress()

IP address of the remote BGP interface.

optional string peer_ip_address = 207735769;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearPeerIpv4NexthopAddress()

public RouterStatusBgpPeerStatus.Builder clearPeerIpv4NexthopAddress()

IPv4 address of the remote BGP interface.

optional string peer_ipv4_nexthop_address = 469221774;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearPeerIpv6NexthopAddress()

public RouterStatusBgpPeerStatus.Builder clearPeerIpv6NexthopAddress()

IPv6 address of the remote BGP interface.

optional string peer_ipv6_nexthop_address = 491486608;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearRouterApplianceInstance()

public RouterStatusBgpPeerStatus.Builder clearRouterApplianceInstance()

[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
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearState()

public RouterStatusBgpPeerStatus.Builder clearState()

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
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearStatus()

public RouterStatusBgpPeerStatus.Builder clearStatus()

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

optional string status = 181260274;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearStatusReason()

public RouterStatusBgpPeerStatus.Builder clearStatusReason()

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

optional string status_reason = 342706993;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearUptime()

public RouterStatusBgpPeerStatus.Builder clearUptime()

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
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clearUptimeSeconds()

public RouterStatusBgpPeerStatus.Builder clearUptimeSeconds()

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

optional string uptime_seconds = 104736040;

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

clone()

public RouterStatusBgpPeerStatus.Builder clone()
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
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

getAdvertisedRoutesBuilder(int index)

public Route.Builder getAdvertisedRoutesBuilder(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.Builder

getAdvertisedRoutesBuilderList()

public List<Route.Builder> getAdvertisedRoutesBuilderList()

Routes that were advertised to the remote BGP peer

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

Returns
Type Description
List<Builder>

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.

getBfdStatusBuilder()

public BfdStatus.Builder getBfdStatusBuilder()

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

Returns
Type Description
BfdStatus.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBfdStatus(BfdStatus value)

public RouterStatusBgpPeerStatus.Builder mergeBfdStatus(BfdStatus value)

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

Parameter
Name Description
value BfdStatus
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

mergeFrom(RouterStatusBgpPeerStatus other)

public RouterStatusBgpPeerStatus.Builder mergeFrom(RouterStatusBgpPeerStatus other)
Parameter
Name Description
other RouterStatusBgpPeerStatus
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RouterStatusBgpPeerStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RouterStatusBgpPeerStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RouterStatusBgpPeerStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
Overrides

removeAdvertisedRoutes(int index)

public RouterStatusBgpPeerStatus.Builder removeAdvertisedRoutes(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
RouterStatusBgpPeerStatus.Builder

setAdvertisedRoutes(int index, Route value)

public RouterStatusBgpPeerStatus.Builder setAdvertisedRoutes(int index, Route value)

Routes that were advertised to the remote BGP peer

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

Parameters
Name Description
index int
value Route
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

setAdvertisedRoutes(int index, Route.Builder builderForValue)

public RouterStatusBgpPeerStatus.Builder setAdvertisedRoutes(int index, Route.Builder builderForValue)

Routes that were advertised to the remote BGP peer

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

Parameters
Name Description
index int
builderForValue Route.Builder
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

setBfdStatus(BfdStatus value)

public RouterStatusBgpPeerStatus.Builder setBfdStatus(BfdStatus value)

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

Parameter
Name Description
value BfdStatus
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

setBfdStatus(BfdStatus.Builder builderForValue)

public RouterStatusBgpPeerStatus.Builder setBfdStatus(BfdStatus.Builder builderForValue)

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

Parameter
Name Description
builderForValue BfdStatus.Builder
Returns
Type Description
RouterStatusBgpPeerStatus.Builder

setEnableIpv4(boolean value)

public RouterStatusBgpPeerStatus.Builder setEnableIpv4(boolean value)

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

optional bool enable_ipv4 = 181467937;

Parameter
Name Description
value boolean

The enableIpv4 to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setEnableIpv6(boolean value)

public RouterStatusBgpPeerStatus.Builder setEnableIpv6(boolean value)

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

optional bool enable_ipv6 = 181467939;

Parameter
Name Description
value boolean

The enableIpv6 to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RouterStatusBgpPeerStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
Overrides

setIpAddress(String value)

public RouterStatusBgpPeerStatus.Builder setIpAddress(String value)

IP address of the local BGP interface.

optional string ip_address = 406272220;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setIpAddressBytes(ByteString value)

IP address of the local BGP interface.

optional string ip_address = 406272220;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setIpv4NexthopAddress(String value)

public RouterStatusBgpPeerStatus.Builder setIpv4NexthopAddress(String value)

IPv4 address of the local BGP interface.

optional string ipv4_nexthop_address = 5703377;

Parameter
Name Description
value String

The ipv4NexthopAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setIpv4NexthopAddressBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setIpv4NexthopAddressBytes(ByteString value)

IPv4 address of the local BGP interface.

optional string ipv4_nexthop_address = 5703377;

Parameter
Name Description
value ByteString

The bytes for ipv4NexthopAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setIpv6NexthopAddress(String value)

public RouterStatusBgpPeerStatus.Builder setIpv6NexthopAddress(String value)

IPv6 address of the local BGP interface.

optional string ipv6_nexthop_address = 27968211;

Parameter
Name Description
value String

The ipv6NexthopAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setIpv6NexthopAddressBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setIpv6NexthopAddressBytes(ByteString value)

IPv6 address of the local BGP interface.

optional string ipv6_nexthop_address = 27968211;

Parameter
Name Description
value ByteString

The bytes for ipv6NexthopAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setLinkedVpnTunnel(String value)

public RouterStatusBgpPeerStatus.Builder setLinkedVpnTunnel(String value)

URL of the VPN tunnel that this BGP peer controls.

optional string linked_vpn_tunnel = 352296953;

Parameter
Name Description
value String

The linkedVpnTunnel to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setLinkedVpnTunnelBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setLinkedVpnTunnelBytes(ByteString value)

URL of the VPN tunnel that this BGP peer controls.

optional string linked_vpn_tunnel = 352296953;

Parameter
Name Description
value ByteString

The bytes for linkedVpnTunnel to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setMd5AuthEnabled(boolean value)

public RouterStatusBgpPeerStatus.Builder setMd5AuthEnabled(boolean value)

Informs whether MD5 authentication is enabled on this BGP peer.

optional bool md5_auth_enabled = 451152075;

Parameter
Name Description
value boolean

The md5AuthEnabled to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setName(String value)

public RouterStatusBgpPeerStatus.Builder setName(String value)

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

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setNameBytes(ByteString value)

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

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setNumLearnedRoutes(int value)

public RouterStatusBgpPeerStatus.Builder setNumLearnedRoutes(int value)

Number of routes learned from the remote BGP Peer.

optional uint32 num_learned_routes = 135457535;

Parameter
Name Description
value int

The numLearnedRoutes to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setPeerIpAddress(String value)

public RouterStatusBgpPeerStatus.Builder setPeerIpAddress(String value)

IP address of the remote BGP interface.

optional string peer_ip_address = 207735769;

Parameter
Name Description
value String

The peerIpAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setPeerIpAddressBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setPeerIpAddressBytes(ByteString value)

IP address of the remote BGP interface.

optional string peer_ip_address = 207735769;

Parameter
Name Description
value ByteString

The bytes for peerIpAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setPeerIpv4NexthopAddress(String value)

public RouterStatusBgpPeerStatus.Builder setPeerIpv4NexthopAddress(String value)

IPv4 address of the remote BGP interface.

optional string peer_ipv4_nexthop_address = 469221774;

Parameter
Name Description
value String

The peerIpv4NexthopAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setPeerIpv4NexthopAddressBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setPeerIpv4NexthopAddressBytes(ByteString value)

IPv4 address of the remote BGP interface.

optional string peer_ipv4_nexthop_address = 469221774;

Parameter
Name Description
value ByteString

The bytes for peerIpv4NexthopAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setPeerIpv6NexthopAddress(String value)

public RouterStatusBgpPeerStatus.Builder setPeerIpv6NexthopAddress(String value)

IPv6 address of the remote BGP interface.

optional string peer_ipv6_nexthop_address = 491486608;

Parameter
Name Description
value String

The peerIpv6NexthopAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setPeerIpv6NexthopAddressBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setPeerIpv6NexthopAddressBytes(ByteString value)

IPv6 address of the remote BGP interface.

optional string peer_ipv6_nexthop_address = 491486608;

Parameter
Name Description
value ByteString

The bytes for peerIpv6NexthopAddress to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RouterStatusBgpPeerStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
Overrides

setRouterApplianceInstance(String value)

public RouterStatusBgpPeerStatus.Builder setRouterApplianceInstance(String value)

[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;

Parameter
Name Description
value String

The routerApplianceInstance to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setRouterApplianceInstanceBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setRouterApplianceInstanceBytes(ByteString value)

[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;

Parameter
Name Description
value ByteString

The bytes for routerApplianceInstance to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setState(String value)

public RouterStatusBgpPeerStatus.Builder setState(String value)

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

optional string state = 109757585;

Parameter
Name Description
value String

The state to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setStateBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setStateBytes(ByteString value)

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

optional string state = 109757585;

Parameter
Name Description
value ByteString

The bytes for state to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setStatus(String value)

public RouterStatusBgpPeerStatus.Builder setStatus(String value)

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

optional string status = 181260274;

Parameter
Name Description
value String

The status to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setStatusBytes(ByteString value)

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

optional string status = 181260274;

Parameter
Name Description
value ByteString

The bytes for status to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setStatusReason(String value)

public RouterStatusBgpPeerStatus.Builder setStatusReason(String value)

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

optional string status_reason = 342706993;

Parameter
Name Description
value String

The statusReason to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setStatusReasonBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setStatusReasonBytes(ByteString value)

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

optional string status_reason = 342706993;

Parameter
Name Description
value ByteString

The bytes for statusReason to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RouterStatusBgpPeerStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RouterStatusBgpPeerStatus.Builder
Overrides

setUptime(String value)

public RouterStatusBgpPeerStatus.Builder setUptime(String value)

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

optional string uptime = 235379688;

Parameter
Name Description
value String

The uptime to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setUptimeBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setUptimeBytes(ByteString value)

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

optional string uptime = 235379688;

Parameter
Name Description
value ByteString

The bytes for uptime to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setUptimeSeconds(String value)

public RouterStatusBgpPeerStatus.Builder setUptimeSeconds(String value)

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

optional string uptime_seconds = 104736040;

Parameter
Name Description
value String

The uptimeSeconds to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.

setUptimeSecondsBytes(ByteString value)

public RouterStatusBgpPeerStatus.Builder setUptimeSecondsBytes(ByteString value)

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

optional string uptime_seconds = 104736040;

Parameter
Name Description
value ByteString

The bytes for uptimeSeconds to set.

Returns
Type Description
RouterStatusBgpPeerStatus.Builder

This builder for chaining.