Class Router.Builder (1.91.0)

public static final class Router.Builder extends GeneratedMessageV3.Builder<Router.Builder> implements RouterOrBuilder

Represents a Cloud Router resource.

For more information about Cloud Router, read theCloud Router overview.

Protobuf type google.cloud.compute.v1.Router

Implements

RouterOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllBgpPeers(Iterable<? extends RouterBgpPeer> values)

public Router.Builder addAllBgpPeers(Iterable<? extends RouterBgpPeer> values)

BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer toRFC4273.

repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;

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

addAllInterfaces(Iterable<? extends RouterInterface> values)

public Router.Builder addAllInterfaces(Iterable<? extends RouterInterface> values)

Router interfaces. To create a BGP peer that uses a router interface, the interface must have one of the following fields specified:

- linkedVpnTunnel
- linkedInterconnectAttachment
- subnetwork

You can create a router interface without any of these fields specified. However, you cannot create a BGP peer that uses that interface.

repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;

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

addAllMd5AuthenticationKeys(Iterable<? extends RouterMd5AuthenticationKey> values)

public Router.Builder addAllMd5AuthenticationKeys(Iterable<? extends RouterMd5AuthenticationKey> values)

Keys used for MD5 authentication.

repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;

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

addAllNats(Iterable<? extends RouterNat> values)

public Router.Builder addAllNats(Iterable<? extends RouterNat> values)

A list of NAT services created in this router.

repeated .google.cloud.compute.v1.RouterNat nats = 3373938;

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

addBgpPeers(RouterBgpPeer value)

public Router.Builder addBgpPeers(RouterBgpPeer value)

BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer toRFC4273.

repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;

Parameter
Name Description
value RouterBgpPeer
Returns
Type Description
Router.Builder

addBgpPeers(RouterBgpPeer.Builder builderForValue)

public Router.Builder addBgpPeers(RouterBgpPeer.Builder builderForValue)

BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer toRFC4273.

repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;

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

addBgpPeers(int index, RouterBgpPeer value)

public Router.Builder addBgpPeers(int index, RouterBgpPeer value)

BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer toRFC4273.

repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;

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

addBgpPeers(int index, RouterBgpPeer.Builder builderForValue)

public Router.Builder addBgpPeers(int index, RouterBgpPeer.Builder builderForValue)

BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer toRFC4273.

repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;

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

addBgpPeersBuilder()

public RouterBgpPeer.Builder addBgpPeersBuilder()

BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer toRFC4273.

repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;

Returns
Type Description
RouterBgpPeer.Builder

addBgpPeersBuilder(int index)

public RouterBgpPeer.Builder addBgpPeersBuilder(int index)

BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer toRFC4273.

repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;

Parameter
Name Description
index int
Returns
Type Description
RouterBgpPeer.Builder

addInterfaces(RouterInterface value)

public Router.Builder addInterfaces(RouterInterface value)

Router interfaces. To create a BGP peer that uses a router interface, the interface must have one of the following fields specified:

- linkedVpnTunnel
- linkedInterconnectAttachment
- subnetwork

You can create a router interface without any of these fields specified. However, you cannot create a BGP peer that uses that interface.

repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;

Parameter
Name Description
value RouterInterface
Returns
Type Description
Router.Builder

addInterfaces(RouterInterface.Builder builderForValue)

public Router.Builder addInterfaces(RouterInterface.Builder builderForValue)

Router interfaces. To create a BGP peer that uses a router interface, the interface must have one of the following fields specified:

- linkedVpnTunnel
- linkedInterconnectAttachment
- subnetwork

You can create a router interface without any of these fields specified. However, you cannot create a BGP peer that uses that interface.

repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;

Parameter
Name Description
builderForValue RouterInterface.Builder
Returns
Type Description
Router.Builder

addInterfaces(int index, RouterInterface value)

public Router.Builder addInterfaces(int index, RouterInterface value)

Router interfaces. To create a BGP peer that uses a router interface, the interface must have one of the following fields specified:

- linkedVpnTunnel
- linkedInterconnectAttachment
- subnetwork

You can create a router interface without any of these fields specified. However, you cannot create a BGP peer that uses that interface.

repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;

Parameters
Name Description
index int
value RouterInterface
Returns
Type Description
Router.Builder

addInterfaces(int index, RouterInterface.Builder builderForValue)

public Router.Builder addInterfaces(int index, RouterInterface.Builder builderForValue)

Router interfaces. To create a BGP peer that uses a router interface, the interface must have one of the following fields specified:

- linkedVpnTunnel
- linkedInterconnectAttachment
- subnetwork

You can create a router interface without any of these fields specified. However, you cannot create a BGP peer that uses that interface.

repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;

Parameters
Name Description
index int
builderForValue RouterInterface.Builder
Returns
Type Description
Router.Builder

addInterfacesBuilder()

public RouterInterface.Builder addInterfacesBuilder()

Router interfaces. To create a BGP peer that uses a router interface, the interface must have one of the following fields specified:

- linkedVpnTunnel
- linkedInterconnectAttachment
- subnetwork

You can create a router interface without any of these fields specified. However, you cannot create a BGP peer that uses that interface.

repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;

Returns
Type Description
RouterInterface.Builder

addInterfacesBuilder(int index)

public RouterInterface.Builder addInterfacesBuilder(int index)

Router interfaces. To create a BGP peer that uses a router interface, the interface must have one of the following fields specified:

- linkedVpnTunnel
- linkedInterconnectAttachment
- subnetwork

You can create a router interface without any of these fields specified. However, you cannot create a BGP peer that uses that interface.

repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;

Parameter
Name Description
index int
Returns
Type Description
RouterInterface.Builder

addMd5AuthenticationKeys(RouterMd5AuthenticationKey value)

public Router.Builder addMd5AuthenticationKeys(RouterMd5AuthenticationKey value)

Keys used for MD5 authentication.

repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;

Parameter
Name Description
value RouterMd5AuthenticationKey
Returns
Type Description
Router.Builder

addMd5AuthenticationKeys(RouterMd5AuthenticationKey.Builder builderForValue)

public Router.Builder addMd5AuthenticationKeys(RouterMd5AuthenticationKey.Builder builderForValue)

Keys used for MD5 authentication.

repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;

Parameter
Name Description
builderForValue RouterMd5AuthenticationKey.Builder
Returns
Type Description
Router.Builder

addMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey value)

public Router.Builder addMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey value)

Keys used for MD5 authentication.

repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;

Parameters
Name Description
index int
value RouterMd5AuthenticationKey
Returns
Type Description
Router.Builder

addMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey.Builder builderForValue)

public Router.Builder addMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey.Builder builderForValue)

Keys used for MD5 authentication.

repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;

Parameters
Name Description
index int
builderForValue RouterMd5AuthenticationKey.Builder
Returns
Type Description
Router.Builder

addMd5AuthenticationKeysBuilder()

public RouterMd5AuthenticationKey.Builder addMd5AuthenticationKeysBuilder()

Keys used for MD5 authentication.

repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;

Returns
Type Description
RouterMd5AuthenticationKey.Builder

addMd5AuthenticationKeysBuilder(int index)

public