Class RouterBgp.Builder (1.61.0)

public static final class RouterBgp.Builder extends GeneratedMessageV3.Builder<RouterBgp.Builder> implements RouterBgpOrBuilder

Protobuf type google.cloud.compute.v1.RouterBgp

Implements

RouterBgpOrBuilder

Static Methods

getDescriptor()

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

Methods

addAdvertisedGroups(String value)

public RouterBgp.Builder addAdvertisedGroups(String value)

User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be 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
Name Description
value String

The advertisedGroups to add.

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

addAdvertisedGroupsBytes(ByteString value)

public RouterBgp.Builder addAdvertisedGroupsBytes(ByteString value)

User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be 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
Name Description
value ByteString

The bytes of the advertisedGroups to add.

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

addAdvertisedIpRanges(RouterAdvertisedIpRange value)

public RouterBgp.Builder addAdvertisedIpRanges(RouterAdvertisedIpRange value)

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be 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
Name Description
value RouterAdvertisedIpRange
Returns
Type Description
RouterBgp.Builder

addAdvertisedIpRanges(RouterAdvertisedIpRange.Builder builderForValue)

public RouterBgp.Builder addAdvertisedIpRanges(RouterAdvertisedIpRange.Builder builderForValue)

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be 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
Name Description
builderForValue RouterAdvertisedIpRange.Builder
Returns
Type Description
RouterBgp.Builder

addAdvertisedIpRanges(int index, RouterAdvertisedIpRange value)

public RouterBgp.Builder addAdvertisedIpRanges(int index, RouterAdvertisedIpRange value)

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be 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;

Parameters
Name Description
index int
value RouterAdvertisedIpRange
Returns
Type Description
RouterBgp.Builder

addAdvertisedIpRanges(int index, RouterAdvertisedIpRange.Builder builderForValue)

public RouterBgp.Builder addAdvertisedIpRanges(int index, RouterAdvertisedIpRange.Builder builderForValue)

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be 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;

Parameters
Name Description
index int
builderForValue RouterAdvertisedIpRange.Builder
Returns
Type Description
RouterBgp.Builder

addAdvertisedIpRangesBuilder()

public RouterAdvertisedIpRange.Builder addAdvertisedIpRangesBuilder()

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be 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
Type Description
RouterAdvertisedIpRange.Builder

addAdvertisedIpRangesBuilder(int index)

public RouterAdvertisedIpRange.Builder addAdvertisedIpRangesBuilder(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 is advertised to all peers of the router. These IP ranges will be 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
Name Description
index int
Returns
Type Description
RouterAdvertisedIpRange.Builder

addAllAdvertisedGroups(Iterable<String> values)

public RouterBgp.Builder addAllAdvertisedGroups(Iterable<String> values)

User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be 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
Name Description
values Iterable<String>

The advertisedGroups to add.

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

addAllAdvertisedIpRanges(Iterable<? extends RouterAdvertisedIpRange> values)

public RouterBgp.Builder addAllAdvertisedIpRanges(Iterable<? extends RouterAdvertisedIpRange> values)

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be 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
Name Description
values Iterable<? extends com.google.cloud.compute.v1.RouterAdvertisedIpRange>
Returns
Type Description
RouterBgp.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RouterBgp build()
Returns
Type Description
RouterBgp

buildPartial()

public RouterBgp buildPartial()
Returns
Type Description
RouterBgp

clear()

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

clearAdvertiseMode()

public RouterBgp.Builder clearAdvertiseMode()

User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. Check the AdvertiseMode enum for the list of possible values.

optional string advertise_mode = 312134331;

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

clearAdvertisedGroups()

public RouterBgp.Builder clearAdvertisedGroups()

User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be 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
Type Description
RouterBgp.Builder

This builder for chaining.

clearAdvertisedIpRanges()

public RouterBgp.Builder clearAdvertisedIpRanges()

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be 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
Type Description
RouterBgp.Builder

clearAsn()

public RouterBgp.Builder clearAsn()

Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN.

optional uint32 asn = 96892;

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIdentifierRange()

public RouterBgp.Builder clearIdentifierRange()

Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are over IPv6. It must not overlap with any IPv4 BGP session ranges. Other vendors commonly call this "router ID".

optional string identifier_range = 501573159;

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

clearKeepaliveInterval()

public RouterBgp.Builder clearKeepaliveInterval()

The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer's hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 20 and 60. The default is 20.

optional uint32 keepalive_interval = 276771516;

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public RouterBgp.Builder clone()
Returns
Type Description
RouterBgp.Builder
Overrides

getAdvertiseMode()

public String getAdvertiseMode()

User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. Check the AdvertiseMode enum for the list of possible values.

optional string advertise_mode = 312134331;

Returns
Type Description
String

The advertiseMode.

getAdvertiseModeBytes()

public ByteString getAdvertiseModeBytes()

User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. Check the AdvertiseMode enum for the list of possible values.

optional string advertise_mode = 312134331;

Returns
Type Description
ByteString

The bytes for advertiseMode.

getAdvertisedGroups(int index)

public String getAdvertisedGroups(int index)

User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be 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
Name Description
index int

The index of the element to return.

Returns
Type Description
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. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be 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
Name Description
index int

The index of the value to return.

Returns
Type Description
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. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be 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
Type Description
int

The count of advertisedGroups.

getAdvertisedGroupsList()

public ProtocolStringList getAdvertisedGroupsList()

User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be 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
Type Description
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 is advertised to all peers of the router. These IP ranges will be 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
Name Description
index int
Returns
Type Description
RouterAdvertisedIpRange

getAdvertisedIpRangesBuilder(int index)

public RouterAdvertisedIpRange.Builder getAdvertisedIpRangesBuilder(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 is advertised to all peers of the router. These IP ranges will be 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
Name Description
index int
Returns
Type Description
RouterAdvertisedIpRange.Builder

getAdvertisedIpRangesBuilderList()

public List<RouterAdvertisedIpRange.Builder> getAdvertisedIpRangesBuilderList()

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be 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
Type Description
List<Builder>

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 is advertised to all peers of the router. These IP ranges will be 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
Type Description
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 is advertised to all peers of the router. These IP ranges will be 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
Type Description
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 is advertised to all peers of the router. These IP ranges will be 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
Name Description
index int
Returns
Type Description
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 is advertised to all peers of the router. These IP ranges will be 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
Type Description
List<? extends com.google.cloud.compute.v1.RouterAdvertisedIpRangeOrBuilder>

getAsn()

public int getAsn()

Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN.

optional uint32 asn = 96892;

Returns
Type Description
int

The asn.

getDefaultInstanceForType()

public RouterBgp getDefaultInstanceForType()
Returns
Type Description
RouterBgp

getDescriptorForType()

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

getIdentifierRange()

public String getIdentifierRange()

Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are over IPv6. It must not overlap with any IPv4 BGP session ranges. Other vendors commonly call this "router ID".

optional string identifier_range = 501573159;

Returns
Type Description
String

The identifierRange.

getIdentifierRangeBytes()

public ByteString getIdentifierRangeBytes()

Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are over IPv6. It must not overlap with any IPv4 BGP session ranges. Other vendors commonly call this "router ID".

optional string identifier_range = 501573159;

Returns
Type Description
ByteString

The bytes for identifierRange.

getKeepaliveInterval()

public int getKeepaliveInterval()

The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer's hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 20 and 60. The default is 20.

optional uint32 keepalive_interval = 276771516;

Returns
Type Description
int

The keepaliveInterval.

hasAdvertiseMode()

public boolean hasAdvertiseMode()

User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. Check the AdvertiseMode enum for the list of possible values.

optional string advertise_mode = 312134331;

Returns
Type Description
boolean

Whether the advertiseMode field is set.

hasAsn()

public boolean hasAsn()

Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN.

optional uint32 asn = 96892;

Returns
Type Description
boolean

Whether the asn field is set.

hasIdentifierRange()

public boolean hasIdentifierRange()

Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are over IPv6. It must not overlap with any IPv4 BGP session ranges. Other vendors commonly call this "router ID".

optional string identifier_range = 501573159;

Returns
Type Description
boolean

Whether the identifierRange field is set.

hasKeepaliveInterval()

public boolean hasKeepaliveInterval()

The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer's hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 20 and 60. The default is 20.

optional uint32 keepalive_interval = 276771516;

Returns
Type Description
boolean

Whether the keepaliveInterval field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RouterBgp other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAdvertisedIpRanges(int index)

public RouterBgp.Builder removeAdvertisedIpRanges(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 is advertised to all peers of the router. These IP ranges will be 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
Name Description
index int
Returns
Type Description
RouterBgp.Builder

setAdvertiseMode(String value)

public RouterBgp.Builder setAdvertiseMode(String value)

User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. Check the AdvertiseMode enum for the list of possible values.

optional string advertise_mode = 312134331;

Parameter
Name Description
value String

The advertiseMode to set.

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

setAdvertiseModeBytes(ByteString value)

public RouterBgp.Builder setAdvertiseModeBytes(ByteString value)

User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. Check the AdvertiseMode enum for the list of possible values.

optional string advertise_mode = 312134331;

Parameter
Name Description
value ByteString

The bytes for advertiseMode to set.

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

setAdvertisedGroups(int index, String value)

public RouterBgp.Builder setAdvertisedGroups(int index, String value)

User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be 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;

Parameters
Name Description
index int

The index to set the value at.

value String

The advertisedGroups to set.

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

setAdvertisedIpRanges(int index, RouterAdvertisedIpRange value)

public RouterBgp.Builder setAdvertisedIpRanges(int index, RouterAdvertisedIpRange value)

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be 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;

Parameters
Name Description
index int
value RouterAdvertisedIpRange
Returns
Type Description
RouterBgp.Builder

setAdvertisedIpRanges(int index, RouterAdvertisedIpRange.Builder builderForValue)

public RouterBgp.Builder setAdvertisedIpRanges(int index, RouterAdvertisedIpRange.Builder builderForValue)

User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be 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;

Parameters
Name Description
index int
builderForValue RouterAdvertisedIpRange.Builder
Returns
Type Description
RouterBgp.Builder

setAsn(int value)

public RouterBgp.Builder setAsn(int value)

Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN.

optional uint32 asn = 96892;

Parameter
Name Description
value int

The asn to set.

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIdentifierRange(String value)

public RouterBgp.Builder setIdentifierRange(String value)

Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are over IPv6. It must not overlap with any IPv4 BGP session ranges. Other vendors commonly call this "router ID".

optional string identifier_range = 501573159;

Parameter
Name Description
value String

The identifierRange to set.

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

setIdentifierRangeBytes(ByteString value)

public RouterBgp.Builder setIdentifierRangeBytes(ByteString value)

Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are over IPv6. It must not overlap with any IPv4 BGP session ranges. Other vendors commonly call this "router ID".

optional string identifier_range = 501573159;

Parameter
Name Description
value ByteString

The bytes for identifierRange to set.

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

setKeepaliveInterval(int value)

public RouterBgp.Builder setKeepaliveInterval(int value)

The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer's hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 20 and 60. The default is 20.

optional uint32 keepalive_interval = 276771516;

Parameter
Name Description
value int

The keepaliveInterval to set.

Returns
Type Description
RouterBgp.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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