Class RouterBgpPeer.Builder (1.88.0)

public static final class RouterBgpPeer.Builder extends GeneratedMessageV3.Builder<RouterBgpPeer.Builder> implements RouterBgpPeerOrBuilder

Protobuf type google.cloud.compute.v1.RouterBgpPeer

Static Methods

getDescriptor()

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

Methods

addAdvertisedGroups(String value)

public RouterBgpPeer.Builder addAdvertisedGroups(String value)

User-specified list of prefix groups to advertise in custom mode, which currently supports the following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This excludes any routes learned for subnets that use VPC Network Peering. 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
Name Description
value String

The advertisedGroups to add.

Returns
Type Description
RouterBgpPeer.Builder

This builder for chaining.

addAdvertisedGroupsBytes(ByteString value)

public RouterBgpPeer.Builder addAdvertisedGroupsBytes(ByteString value)

User-specified list of prefix groups to advertise in custom mode, which currently supports the following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This excludes any routes learned for subnets that use VPC Network Peering. 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
Name Description
value ByteString

The bytes of the advertisedGroups to add.

Returns
Type Description
RouterBgpPeer.Builder

This builder for chaining.

addAdvertisedIpRanges(RouterAdvertisedIpRange value)

public RouterBgpPeer.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 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
Name Description
value RouterAdvertisedIpRange
Returns
Type Description
RouterBgpPeer.Builder

addAdvertisedIpRanges(RouterAdvertisedIpRange.Builder builderForValue)

public RouterBgpPeer.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 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
Name Description
builderForValue RouterAdvertisedIpRange.Builder
Returns
Type Description
RouterBgpPeer.Builder

addAdvertisedIpRanges(int index, RouterAdvertisedIpRange value)

public RouterBgpPeer.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 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;

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

addAdvertisedIpRanges(int index, RouterAdvertisedIpRange.Builder builderForValue)

public RouterBgpPeer.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 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;

Parameters
Name Description
index int
builderForValue RouterAdvertisedIpRange.Builder
Returns
Type Description
RouterBgpPeer.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 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
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 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
Name Description
index int
Returns
Type Description
RouterAdvertisedIpRange.Builder

addAllAdvertisedGroups(Iterable<String> values)

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

User-specified list of prefix groups to advertise in custom mode, which currently supports the following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This excludes any routes learned for subnets that use VPC Network Peering. 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
Name Description
values Iterable<String>

The advertisedGroups to add.

Returns
Type Description
RouterBgpPeer.Builder

This builder for chaining.

addAllAdvertisedIpRanges(Iterable<? extends RouterAdvertisedIpRange> values)

public RouterBgpPeer.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 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
Name Description
values Iterable<? extends com.google.cloud.compute.v1.RouterAdvertisedIpRange>
Returns
Type Description
RouterBgpPeer.Builder

addAllCustomLearnedIpRanges(Iterable<? extends RouterBgpPeerCustomLearnedIpRange> values)

public RouterBgpPeer.Builder addAllCustomLearnedIpRanges(Iterable<? extends RouterBgpPeerCustomLearnedIpRange> values)

A list of user-defined custom learned route IP address ranges for a BGP session.

repeated .google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange custom_learned_ip_ranges = 481363012;

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

addAllExportPolicies(Iterable<String> values)

public RouterBgpPeer.Builder addAllExportPolicies(Iterable<String> values)

List of export policies applied to this peer, in the order they must be evaluated. The name must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type.

repeated string export_policies = 134084987;

Parameter
Name Description
values Iterable<String>

The exportPolicies to add.

Returns
Type Description
RouterBgpPeer.Builder

This builder for chaining.

addAllImportPolicies(Iterable<String> values)

public RouterBgpPeer.Builder addAllImportPolicies(Iterable<String> values)

List of import policies applied to this peer, in the order they must be evaluated. The name must correspond to an existing policy that has ROUTE_POLICY_TYPE_IMPORT type.

repeated string import_policies = 451147946;

Parameter
Name Description
values Iterable<String>

The importPolicies to add.

Returns
Type Description
RouterBgpPeer.Builder

This builder for chaining.

addCustomLearnedIpRanges(RouterBgpPeerCustomLearnedIpRange value)

public RouterBgpPeer.Builder addCustomLearnedIpRanges(RouterBgpPeerCustomLearnedIpRange value)

A list of user-defined custom learned route IP address ranges for a BGP session.

repeated .google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange custom_learned_ip_ranges = 481363012;

Parameter
Name Description
value RouterBgpPeerCustomLearnedIpRange
Returns
Type Description
RouterBgpPeer.Builder

addCustomLearnedIpRanges(RouterBgpPeerCustomLearnedIpRange.Builder builderForValue)

public RouterBgpPeer.Builder addCustomLearnedIpRanges(RouterBgpPeerCustomLearnedIpRange.Builder builderForValue)

A list of user-defined custom learned route IP address ranges for a BGP session.

repeated .google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange custom_learned_ip_ranges = 481363012;

Parameter
Name Description
builderForValue RouterBgpPeerCustomLearnedIpRange.Builder
Returns
Type Description
RouterBgpPeer.Builder

addCustomLearnedIpRanges(int index, RouterBgpPeerCustomLearnedIpRange value)

public RouterBgpPeer.Builder addCustomLearnedIpRanges(int index, RouterBgpPeerCustomLearnedIpRange value)

A list of user-defined custom learned route IP address ranges for a BGP session.

repeated .google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange custom_learned_ip_ranges = 481363012;

Parameters
Name Description
index int
value RouterBgpPeerCustomLearnedIpRange
Returns
Type Description
RouterBgpPeer.Builder

addCustomLearnedIpRanges(int index, RouterBgpPeerCustomLearnedIpRange.Builder builderForValue)

public RouterBgpPeer.Builder addCustomLearnedIpRanges(int index, RouterBgpPeerCustomLearnedIpRange.Builder builderForValue)

A list of user-defined custom learned route IP address ranges for a BGP session.

repeated .google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange custom_learned_ip_ranges = 481363012;

Parameters
Name Description
index int
builderForValue RouterBgpPeerCustomLearnedIpRange.Builder
Returns
Type Description
RouterBgpPeer.Builder

addCustomLearnedIpRangesBuilder()

public RouterBgpPeerCustomLearnedIpRange.Builder addCustomLearnedIpRangesBuilder()

A list of user-defined custom learned route IP address ranges for a BGP session.

repeated .google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange custom_learned_ip_ranges = 481363012;

Returns
Type Description
RouterBgpPeerCustomLearnedIpRange.Builder

addCustomLearnedIpRangesBuilder(int index)

public RouterBgpPeerCustomLearnedIpRange.Builder addCustomLearnedIpRangesBuilder(int index)

A list of user-defined custom learned route IP address ranges for a BGP session.

repeated .google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange custom_learned_ip_ranges = 481363012;

Parameter
Name Description
index int
Returns
Type Description
RouterBgpPeerCustomLearnedIpRange.Builder

addExportPolicies(String value)

public RouterBgpPeer.Builder addExportPolicies(String value)

List of export policies applied to this peer, in the order they must be evaluated. The name must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type.

repeated string export_policies = 134084987;

Parameter
Name Description
value String

The exportPolicies to add.

Returns
Type Description
RouterBgpPeer.Builder

This builder for chaining.

addExportPoliciesBytes(ByteString value)