Class Router.Builder (1.63.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 the Cloud 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 to RFC4273.

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 to RFC4273.

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 to RFC4273.

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 to RFC4273.

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 to RFC4273.

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 to RFC4273.

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 to RFC4273.

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 RouterMd5AuthenticationKey.Builder addMd5AuthenticationKeysBuilder(int index)

Keys used for MD5 authentication.

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

Parameter
Name Description
index int
Returns
Type Description
RouterMd5AuthenticationKey.Builder

addNats(RouterNat value)

public Router.Builder addNats(RouterNat value)

A list of NAT services created in this router.

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

Parameter
Name Description
value RouterNat
Returns
Type Description
Router.Builder

addNats(RouterNat.Builder builderForValue)

public Router.Builder addNats(RouterNat.Builder builderForValue)

A list of NAT services created in this router.

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

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

addNats(int index, RouterNat value)

public Router.Builder addNats(int index, RouterNat value)

A list of NAT services created in this router.

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

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

addNats(int index, RouterNat.Builder builderForValue)

public Router.Builder addNats(int index, RouterNat.Builder builderForValue)

A list of NAT services created in this router.

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

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

addNatsBuilder()

public RouterNat.Builder addNatsBuilder()

A list of NAT services created in this router.

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

Returns
Type Description
RouterNat.Builder

addNatsBuilder(int index)

public RouterNat.Builder addNatsBuilder(int index)

A list of NAT services created in this router.

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

Parameter
Name Description
index int
Returns
Type Description
RouterNat.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Router build()
Returns
Type Description
Router

buildPartial()

public Router buildPartial()
Returns
Type Description
Router

clear()

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

clearBgp()

public Router.Builder clearBgp()

BGP information specific to this router.

optional .google.cloud.compute.v1.RouterBgp bgp = 97483;

Returns
Type Description
Router.Builder

clearBgpPeers()

public Router.Builder clearBgpPeers()

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 to RFC4273.

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

Returns
Type Description
Router.Builder

clearCreationTimestamp()

public Router.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
Router.Builder

This builder for chaining.

clearDescription()

public Router.Builder clearDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
Router.Builder

This builder for chaining.

clearEncryptedInterconnectRouter()

public Router.Builder clearEncryptedInterconnectRouter()

Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).

optional bool encrypted_interconnect_router = 297996575;

Returns
Type Description
Router.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public Router.Builder clearId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
Router.Builder

This builder for chaining.

clearInterfaces()

public Router.Builder clearInterfaces()

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

clearKind()

public Router.Builder clearKind()

[Output Only] Type of resource. Always compute#router for routers.

optional string kind = 3292052;

Returns
Type Description
Router.Builder

This builder for chaining.

clearMd5AuthenticationKeys()

public Router.Builder clearMd5AuthenticationKeys()

Keys used for MD5 authentication.

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

Returns
Type Description
Router.Builder

clearName()

public Router.Builder clearName()

Name of the resource. Provided by the client when the resource is created. 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
Type Description
Router.Builder

This builder for chaining.

clearNats()

public Router.Builder clearNats()

A list of NAT services created in this router.

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

Returns
Type Description
Router.Builder

clearNetwork()

public Router.Builder clearNetwork()

URI of the network to which this router belongs.

optional string network = 232872494;

Returns
Type Description
Router.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegion()

public Router.Builder clearRegion()

[Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
Type Description
Router.Builder

This builder for chaining.

public Router.Builder clearSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
Router.Builder

This builder for chaining.

clone()

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

getBgp()

public RouterBgp getBgp()

BGP information specific to this router.

optional .google.cloud.compute.v1.RouterBgp bgp = 97483;

Returns
Type Description
RouterBgp

The bgp.

getBgpBuilder()

public RouterBgp.Builder getBgpBuilder()

BGP information specific to this router.

optional .google.cloud.compute.v1.RouterBgp bgp = 97483;

Returns
Type Description
RouterBgp.Builder

getBgpOrBuilder()

public RouterBgpOrBuilder getBgpOrBuilder()

BGP information specific to this router.

optional .google.cloud.compute.v1.RouterBgp bgp = 97483;

Returns
Type Description
RouterBgpOrBuilder

getBgpPeers(int index)

public RouterBgpPeer getBgpPeers(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 to RFC4273.

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

Parameter
Name Description
index int
Returns
Type Description
RouterBgpPeer

getBgpPeersBuilder(int index)

public RouterBgpPeer.Builder getBgpPeersBuilder(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 to RFC4273.

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

Parameter
Name Description
index int
Returns
Type Description
RouterBgpPeer.Builder

getBgpPeersBuilderList()

public List<RouterBgpPeer.Builder> getBgpPeersBuilderList()

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 to RFC4273.

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

Returns
Type Description
List<Builder>

getBgpPeersCount()

public int getBgpPeersCount()

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 to RFC4273.

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

Returns
Type Description
int

getBgpPeersList()

public List<RouterBgpPeer> getBgpPeersList()

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 to RFC4273.

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

Returns
Type Description
List<RouterBgpPeer>

getBgpPeersOrBuilder(int index)

public RouterBgpPeerOrBuilder getBgpPeersOrBuilder(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 to RFC4273.

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

Parameter
Name Description
index int
Returns
Type Description
RouterBgpPeerOrBuilder

getBgpPeersOrBuilderList()

public List<? extends RouterBgpPeerOrBuilder> getBgpPeersOrBuilderList()

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 to RFC4273.

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

Returns
Type Description
List<? extends com.google.cloud.compute.v1.RouterBgpPeerOrBuilder>

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public Router getDefaultInstanceForType()
Returns
Type Description
Router

getDescription()

public String getDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getEncryptedInterconnectRouter()

public boolean getEncryptedInterconnectRouter()

Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).

optional bool encrypted_interconnect_router = 297996575;

Returns
Type Description
boolean

The encryptedInterconnectRouter.

getId()

public long getId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
long

The id.

getInterfaces(int index)

public RouterInterface getInterfaces(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

getInterfacesBuilder(int index)

public RouterInterface.Builder getInterfacesBuilder(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

getInterfacesBuilderList()

public List<RouterInterface.Builder> getInterfacesBuilderList()

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
List<Builder>

getInterfacesCount()

public int getInterfacesCount()

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
int

getInterfacesList()

public List<RouterInterface> getInterfacesList()

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
List<RouterInterface>

getInterfacesOrBuilder(int index)

public RouterInterfaceOrBuilder getInterfacesOrBuilder(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
RouterInterfaceOrBuilder

getInterfacesOrBuilderList()

public List<? extends RouterInterfaceOrBuilder> getInterfacesOrBuilderList()

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
List<? extends com.google.cloud.compute.v1.RouterInterfaceOrBuilder>

getKind()

public String getKind()

[Output Only] Type of resource. Always compute#router for routers.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of resource. Always compute#router for routers.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getMd5AuthenticationKeys(int index)

public RouterMd5AuthenticationKey getMd5AuthenticationKeys(int index)

Keys used for MD5 authentication.

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

Parameter
Name Description
index int
Returns
Type Description
RouterMd5AuthenticationKey

getMd5AuthenticationKeysBuilder(int index)

public RouterMd5AuthenticationKey.Builder getMd5AuthenticationKeysBuilder(int index)

Keys used for MD5 authentication.

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

Parameter
Name Description
index int
Returns
Type Description
RouterMd5AuthenticationKey.Builder

getMd5AuthenticationKeysBuilderList()

public List<RouterMd5AuthenticationKey.Builder> getMd5AuthenticationKeysBuilderList()

Keys used for MD5 authentication.

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

Returns
Type Description
List<Builder>

getMd5AuthenticationKeysCount()

public int getMd5AuthenticationKeysCount()

Keys used for MD5 authentication.

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

Returns
Type Description
int

getMd5AuthenticationKeysList()

public List<RouterMd5AuthenticationKey> getMd5AuthenticationKeysList()

Keys used for MD5 authentication.

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

Returns
Type Description
List<RouterMd5AuthenticationKey>

getMd5AuthenticationKeysOrBuilder(int index)

public RouterMd5AuthenticationKeyOrBuilder getMd5AuthenticationKeysOrBuilder(int index)

Keys used for MD5 authentication.

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

Parameter
Name Description
index int
Returns
Type Description
RouterMd5AuthenticationKeyOrBuilder

getMd5AuthenticationKeysOrBuilderList()

public List<? extends RouterMd5AuthenticationKeyOrBuilder> getMd5AuthenticationKeysOrBuilderList()

Keys used for MD5 authentication.

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

Returns
Type Description
List<? extends com.google.cloud.compute.v1.RouterMd5AuthenticationKeyOrBuilder>

getName()

public String getName()

Name of the resource. Provided by the client when the resource is created. 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
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource. Provided by the client when the resource is created. 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
Type Description
ByteString

The bytes for name.

getNats(int index)

public RouterNat getNats(int index)

A list of NAT services created in this router.

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

Parameter
Name Description
index int
Returns
Type Description
RouterNat

getNatsBuilder(int index)

public RouterNat.Builder getNatsBuilder(int index)

A list of NAT services created in this router.

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

Parameter
Name Description
index int
Returns
Type Description
RouterNat.Builder

getNatsBuilderList()

public List<RouterNat.Builder> getNatsBuilderList()

A list of NAT services created in this router.

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

Returns
Type Description
List<Builder>

getNatsCount()

public int getNatsCount()

A list of NAT services created in this router.

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

Returns
Type Description
int

getNatsList()

public List<RouterNat> getNatsList()

A list of NAT services created in this router.

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

Returns
Type Description
List<RouterNat>

getNatsOrBuilder(int index)

public RouterNatOrBuilder getNatsOrBuilder(int index)

A list of NAT services created in this router.

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

Parameter
Name Description
index int
Returns
Type Description
RouterNatOrBuilder

getNatsOrBuilderList()

public List<? extends RouterNatOrBuilder> getNatsOrBuilderList()

A list of NAT services created in this router.

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

Returns
Type Description
List<? extends com.google.cloud.compute.v1.RouterNatOrBuilder>

getNetwork()

public String getNetwork()

URI of the network to which this router belongs.

optional string network = 232872494;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

URI of the network to which this router belongs.

optional string network = 232872494;

Returns
Type Description
ByteString

The bytes for network.

getRegion()

public String getRegion()

[Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

[Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
Type Description
ByteString

The bytes for region.

public String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
ByteString

The bytes for selfLink.

hasBgp()

public boolean hasBgp()

BGP information specific to this router.

optional .google.cloud.compute.v1.RouterBgp bgp = 97483;

Returns
Type Description
boolean

Whether the bgp field is set.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
boolean

Whether the description field is set.

hasEncryptedInterconnectRouter()

public boolean hasEncryptedInterconnectRouter()

Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).

optional bool encrypted_interconnect_router = 297996575;

Returns
Type Description
boolean

Whether the encryptedInterconnectRouter field is set.

hasId()

public boolean hasId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of resource. Always compute#router for routers.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasName()

public boolean hasName()

Name of the resource. Provided by the client when the resource is created. 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
Type Description
boolean

Whether the name field is set.

hasNetwork()

public boolean hasNetwork()

URI of the network to which this router belongs.

optional string network = 232872494;

Returns
Type Description
boolean

Whether the network field is set.

hasRegion()

public boolean hasRegion()

[Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
Type Description
boolean

Whether the region field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
boolean

Whether the selfLink field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBgp(RouterBgp value)

public Router.Builder mergeBgp(RouterBgp value)

BGP information specific to this router.

optional .google.cloud.compute.v1.RouterBgp bgp = 97483;

Parameter
Name Description
value RouterBgp
Returns
Type Description
Router.Builder

mergeFrom(Router other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBgpPeers(int index)

public Router.Builder removeBgpPeers(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 to RFC4273.

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

Parameter
Name Description
index int
Returns
Type Description
Router.Builder

removeInterfaces(int index)

public Router.Builder removeInterfaces(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
Router.Builder

removeMd5AuthenticationKeys(int index)

public Router.Builder removeMd5AuthenticationKeys(int index)

Keys used for MD5 authentication.

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

Parameter
Name Description
index int
Returns
Type Description
Router.Builder

removeNats(int index)

public Router.Builder removeNats(int index)

A list of NAT services created in this router.

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

Parameter
Name Description
index int
Returns
Type Description
Router.Builder

setBgp(RouterBgp value)

public Router.Builder setBgp(RouterBgp value)

BGP information specific to this router.

optional .google.cloud.compute.v1.RouterBgp bgp = 97483;

Parameter
Name Description
value RouterBgp
Returns
Type Description
Router.Builder

setBgp(RouterBgp.Builder builderForValue)

public Router.Builder setBgp(RouterBgp.Builder builderForValue)

BGP information specific to this router.

optional .google.cloud.compute.v1.RouterBgp bgp = 97483;

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

setBgpPeers(int index, RouterBgpPeer value)

public Router.Builder setBgpPeers(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 to RFC4273.

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

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

setBgpPeers(int index, RouterBgpPeer.Builder builderForValue)

public Router.Builder setBgpPeers(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 to RFC4273.

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

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

setCreationTimestamp(String value)

public Router.Builder setCreationTimestamp(String value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value String

The creationTimestamp to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public Router.Builder setCreationTimestampBytes(ByteString value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value ByteString

The bytes for creationTimestamp to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setDescription(String value)

public Router.Builder setDescription(String value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Router.Builder setDescriptionBytes(ByteString value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setEncryptedInterconnectRouter(boolean value)

public Router.Builder setEncryptedInterconnectRouter(boolean value)

Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).

optional bool encrypted_interconnect_router = 297996575;

Parameter
Name Description
value boolean

The encryptedInterconnectRouter to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(long value)

public Router.Builder setId(long value)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Parameter
Name Description
value long

The id to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setInterfaces(int index, RouterInterface value)

public Router.Builder setInterfaces(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

setInterfaces(int index, RouterInterface.Builder builderForValue)

public Router.Builder setInterfaces(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

setKind(String value)

public Router.Builder setKind(String value)

[Output Only] Type of resource. Always compute#router for routers.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setKindBytes(ByteString value)

public Router.Builder setKindBytes(ByteString value)

[Output Only] Type of resource. Always compute#router for routers.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey value)

public Router.Builder setMd5AuthenticationKeys(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

setMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey.Builder builderForValue)

public Router.Builder setMd5AuthenticationKeys(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

setName(String value)

public Router.Builder setName(String value)

Name of the resource. Provided by the client when the resource is created. 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;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Router.Builder setNameBytes(ByteString value)

Name of the resource. Provided by the client when the resource is created. 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;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setNats(int index, RouterNat value)

public Router.Builder setNats(int index, RouterNat value)

A list of NAT services created in this router.

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

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

setNats(int index, RouterNat.Builder builderForValue)

public Router.Builder setNats(int index, RouterNat.Builder builderForValue)

A list of NAT services created in this router.

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

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

setNetwork(String value)

public Router.Builder setNetwork(String value)

URI of the network to which this router belongs.

optional string network = 232872494;

Parameter
Name Description
value String

The network to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Router.Builder setNetworkBytes(ByteString value)

URI of the network to which this router belongs.

optional string network = 232872494;

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setRegion(String value)

public Router.Builder setRegion(String value)

[Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Parameter
Name Description
value String

The region to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public Router.Builder setRegionBytes(ByteString value)

[Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
Router.Builder

This builder for chaining.

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

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

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public Router.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
Name Description
value ByteString

The bytes for selfLink to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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