Class RouterBgpPeer (1.6.0-beta)

public final class RouterBgpPeer extends GeneratedMessageV3 implements RouterBgpPeerOrBuilder

Protobuf type google.cloud.compute.v1.RouterBgpPeer

Fields

ADVERTISED_GROUPS_FIELD_NUMBER

public static final int ADVERTISED_GROUPS_FIELD_NUMBER
Field Value
TypeDescription
int

ADVERTISED_IP_RANGES_FIELD_NUMBER

public static final int ADVERTISED_IP_RANGES_FIELD_NUMBER
Field Value
TypeDescription
int

ADVERTISED_ROUTE_PRIORITY_FIELD_NUMBER

public static final int ADVERTISED_ROUTE_PRIORITY_FIELD_NUMBER
Field Value
TypeDescription
int

ADVERTISE_MODE_FIELD_NUMBER

public static final int ADVERTISE_MODE_FIELD_NUMBER
Field Value
TypeDescription
int

BFD_FIELD_NUMBER

public static final int BFD_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_FIELD_NUMBER

public static final int ENABLE_FIELD_NUMBER
Field Value
TypeDescription
int

INTERFACE_NAME_FIELD_NUMBER

public static final int INTERFACE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

MANAGEMENT_TYPE_FIELD_NUMBER

public static final int MANAGEMENT_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PEER_ASN_FIELD_NUMBER

public static final int PEER_ASN_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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAdvertiseMode()

public String getAdvertiseMode()

User-specified flag to indicate which mode to use for advertisement. Check the AdvertiseMode enum for the list of possible values.

optional string advertise_mode = 312134331;

Returns
TypeDescription
String

The advertiseMode.

getAdvertiseModeBytes()

public ByteString getAdvertiseModeBytes()

User-specified flag to indicate which mode to use for advertisement. Check the AdvertiseMode enum for the list of possible values.

optional string advertise_mode = 312134331;

Returns
TypeDescription
ByteString

The bytes for advertiseMode.

getAdvertisedGroups(int index)

public String getAdvertisedGroups(int index)

User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. Check the AdvertisedGroups enum for the list of possible values.

repeated string advertised_groups = 21065526;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The advertisedGroups at the given index.

getAdvertisedGroupsBytes(int index)

public ByteString getAdvertisedGroupsBytes(int index)

User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. Check the AdvertisedGroups enum for the list of possible values.

repeated string advertised_groups = 21065526;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the advertisedGroups at the given index.

getAdvertisedGroupsCount()

public int getAdvertisedGroupsCount()

User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. Check the AdvertisedGroups enum for the list of possible values.

repeated string advertised_groups = 21065526;

Returns
TypeDescription
int

The count of advertisedGroups.

getAdvertisedGroupsList()

public ProtocolStringList getAdvertisedGroupsList()

User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. Check the AdvertisedGroups enum for the list of possible values.

repeated string advertised_groups = 21065526;

Returns
TypeDescription
ProtocolStringList

A list containing the advertisedGroups.

getAdvertisedIpRanges(int index)

public RouterAdvertisedIpRange getAdvertisedIpRanges(int index)

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.

repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;

Parameter
NameDescription
indexint
Returns
TypeDescription
RouterAdvertisedIpRange

getAdvertisedIpRangesCount()

public int getAdvertisedIpRangesCount()

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.

repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;

Returns
TypeDescription
int

getAdvertisedIpRangesList()

public List<RouterAdvertisedIpRange> getAdvertisedIpRangesList()

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.

repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;

Returns
TypeDescription
List<RouterAdvertisedIpRange>

getAdvertisedIpRangesOrBuilder(int index)

public RouterAdvertisedIpRangeOrBuilder getAdvertisedIpRangesOrBuilder(int index)

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.

repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;

Parameter
NameDescription
indexint
Returns
TypeDescription
RouterAdvertisedIpRangeOrBuilder

getAdvertisedIpRangesOrBuilderList()

public List<? extends RouterAdvertisedIpRangeOrBuilder> getAdvertisedIpRangesOrBuilderList()

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.

repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.RouterAdvertisedIpRangeOrBuilder>

getAdvertisedRoutePriority()

public int getAdvertisedRoutePriority()

The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.

optional uint32 advertised_route_priority = 186486332;

Returns
TypeDescription
int

The advertisedRoutePriority.

getBfd()

public RouterBgpPeerBfd getBfd()

BFD configuration for the BGP peering.

optional .google.cloud.compute.v1.RouterBgpPeerBfd bfd = 97440;

Returns
TypeDescription
RouterBgpPeerBfd

The bfd.

getBfdOrBuilder()

public RouterBgpPeerBfdOrBuilder getBfdOrBuilder()

BFD configuration for the BGP peering.

optional .google.cloud.compute.v1.RouterBgpPeerBfd bfd = 97440;

Returns
TypeDescription
RouterBgpPeerBfdOrBuilder

getDefaultInstance()

public static RouterBgpPeer getDefaultInstance()
Returns
TypeDescription
RouterBgpPeer

getDefaultInstanceForType()

public RouterBgpPeer getDefaultInstanceForType()
Returns
TypeDescription
RouterBgpPeer

getDescriptor()

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

getEnable()

public String getEnable()

The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. Check the Enable enum for the list of possible values.

optional string enable = 311764355;

Returns
TypeDescription
String

The enable.

getEnableBytes()

public ByteString getEnableBytes()

The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. Check the Enable enum for the list of possible values.

optional string enable = 311764355;

Returns
TypeDescription
ByteString

The bytes for enable.

getInterfaceName()

public String getInterfaceName()

Name of the interface the BGP peer is associated with.

optional string interface_name = 437854673;

Returns
TypeDescription
String

The interfaceName.

getInterfaceNameBytes()

public ByteString getInterfaceNameBytes()

Name of the interface the BGP peer is associated with.

optional string interface_name = 437854673;

Returns
TypeDescription
ByteString

The bytes for interfaceName.

getIpAddress()

public String getIpAddress()

IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.

optional string ip_address = 406272220;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.

optional string ip_address = 406272220;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getManagementType()

public String getManagementType()

[Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. Check the ManagementType enum for the list of possible values.

optional string management_type = 173703606;

Returns
TypeDescription
String

The managementType.

getManagementTypeBytes()

public ByteString getManagementTypeBytes()

[Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. Check the ManagementType enum for the list of possible values.

optional string management_type = 173703606;

Returns
TypeDescription
ByteString

The bytes for managementType.

getName()

public String getName()

Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getPeerAsn()

public int getPeerAsn()

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

optional uint32 peer_asn = 69573151;

Returns
TypeDescription
int

The peerAsn.

getPeerIpAddress()

public String getPeerIpAddress()

IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.

optional string peer_ip_address = 207735769;

Returns
TypeDescription
String

The peerIpAddress.

getPeerIpAddressBytes()

public ByteString getPeerIpAddressBytes()

IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.

optional string peer_ip_address = 207735769;

Returns
TypeDescription
ByteString

The bytes for peerIpAddress.

getRouterApplianceInstance()

public String getRouterApplianceInstance()

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 must be located in zones contained in the same region as this Cloud Router. 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()

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 must be located in zones contained in the same region as this Cloud Router. 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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAdvertiseMode()

public boolean hasAdvertiseMode()

User-specified flag to indicate which mode to use for advertisement. Check the AdvertiseMode enum for the list of possible values.

optional string advertise_mode = 312134331;

Returns
TypeDescription
boolean

Whether the advertiseMode field is set.

hasAdvertisedRoutePriority()

public boolean hasAdvertisedRoutePriority()

The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.

optional uint32 advertised_route_priority = 186486332;

Returns
TypeDescription
boolean

Whether the advertisedRoutePriority field is set.

hasBfd()

public boolean hasBfd()

BFD configuration for the BGP peering.

optional .google.cloud.compute.v1.RouterBgpPeerBfd bfd = 97440;

Returns
TypeDescription
boolean

Whether the bfd field is set.

hasEnable()

public boolean hasEnable()

The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. Check the Enable enum for the list of possible values.

optional string enable = 311764355;

Returns
TypeDescription
boolean

Whether the enable field is set.

hasInterfaceName()

public boolean hasInterfaceName()

Name of the interface the BGP peer is associated with.

optional string interface_name = 437854673;

Returns
TypeDescription
boolean

Whether the interfaceName field is set.

hasIpAddress()

public boolean hasIpAddress()

IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.

optional string ip_address = 406272220;

Returns
TypeDescription
boolean

Whether the ipAddress field is set.

hasManagementType()

public boolean hasManagementType()

[Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. Check the ManagementType enum for the list of possible values.

optional string management_type = 173703606;

Returns
TypeDescription
boolean

Whether the managementType field is set.

hasName()

public boolean hasName()

Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

hasPeerAsn()

public boolean hasPeerAsn()

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

optional uint32 peer_asn = 69573151;

Returns
TypeDescription
boolean

Whether the peerAsn field is set.

hasPeerIpAddress()

public boolean hasPeerIpAddress()

IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.

optional string peer_ip_address = 207735769;

Returns
TypeDescription
boolean

Whether the peerIpAddress field is set.

hasRouterApplianceInstance()

public boolean hasRouterApplianceInstance()

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 must be located in zones contained in the same region as this Cloud Router. 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.

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

newBuilder()

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

newBuilder(RouterBgpPeer prototype)

public static RouterBgpPeer.Builder newBuilder(RouterBgpPeer prototype)
Parameter
NameDescription
prototypeRouterBgpPeer
Returns
TypeDescription
RouterBgpPeer.Builder

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

toBuilder()

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

writeTo(CodedOutputStream output)

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