Class Router.Builder (1.26.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.RouterBgpPeer>
Returns
TypeDescription
Router.Builder

addAllInterfaces(Iterable<? extends RouterInterface> values)

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

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.RouterInterface>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.RouterMd5AuthenticationKey>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.RouterNat>
Returns
TypeDescription
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
NameDescription
valueRouterBgpPeer
Returns
TypeDescription
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
NameDescription
builderForValueRouterBgpPeer.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRouterBgpPeer
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouterBgpPeer.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RouterBgpPeer.Builder

addInterfaces(RouterInterface value)

public Router.Builder addInterfaces(RouterInterface value)

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameter
NameDescription
valueRouterInterface
Returns
TypeDescription
Router.Builder

addInterfaces(RouterInterface.Builder builderForValue)

public Router.Builder addInterfaces(RouterInterface.Builder builderForValue)

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameter
NameDescription
builderForValueRouterInterface.Builder
Returns
TypeDescription
Router.Builder

addInterfaces(int index, RouterInterface value)

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

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameters
NameDescription
indexint
valueRouterInterface
Returns
TypeDescription
Router.Builder

addInterfaces(int index, RouterInterface.Builder builderForValue)

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

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameters
NameDescription
indexint
builderForValueRouterInterface.Builder
Returns
TypeDescription
Router.Builder

addInterfacesBuilder()

public RouterInterface.Builder addInterfacesBuilder()

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Returns
TypeDescription
RouterInterface.Builder

addInterfacesBuilder(int index)

public RouterInterface.Builder addInterfacesBuilder(int index)

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueRouterMd5AuthenticationKey
Returns
TypeDescription
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
NameDescription
builderForValueRouterMd5AuthenticationKey.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRouterMd5AuthenticationKey
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouterMd5AuthenticationKey.Builder
Returns
TypeDescription
Router.Builder

addMd5AuthenticationKeysBuilder()

public RouterMd5AuthenticationKey.Builder addMd5AuthenticationKeysBuilder()

Keys used for MD5 authentication.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueRouterNat
Returns
TypeDescription
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
NameDescription
builderForValueRouterNat.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRouterNat
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouterNat.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RouterNat.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Router.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Router.Builder
Overrides

build()

public Router build()
Returns
TypeDescription
Router

buildPartial()

public Router buildPartial()
Returns
TypeDescription
Router

clear()

public Router.Builder clear()
Returns
TypeDescription
Router.Builder
Overrides

clearBgp()

public Router.Builder clearBgp()

BGP information specific to this router.

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

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

clearCreationTimestamp()

public Router.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Router.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Router.Builder

This builder for chaining.

clearInterfaces()

public Router.Builder clearInterfaces()

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Returns
TypeDescription
Router.Builder

clearKind()

public Router.Builder clearKind()

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

optional string kind = 3292052;

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

clearNetwork()

public Router.Builder clearNetwork()

URI of the network to which this router belongs.

optional string network = 232872494;

Returns
TypeDescription
Router.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Router.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Router.Builder

This builder for chaining.

public Router.Builder clearSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
Router.Builder

This builder for chaining.

clone()

public Router.Builder clone()
Returns
TypeDescription
Router.Builder
Overrides

getBgp()

public RouterBgp getBgp()

BGP information specific to this router.

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

Returns
TypeDescription
RouterBgp

The bgp.

getBgpBuilder()

public RouterBgp.Builder getBgpBuilder()

BGP information specific to this router.

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

Returns
TypeDescription
RouterBgp.Builder

getBgpOrBuilder()

public RouterBgpOrBuilder getBgpOrBuilder()

BGP information specific to this router.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public Router getDefaultInstanceForType()
Returns
TypeDescription
Router

getDescription()

public String getDescription()

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

optional string description = 422937596;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
long

The id.

getInterfaces(int index)

public RouterInterface getInterfaces(int index)

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RouterInterface

getInterfacesBuilder(int index)

public RouterInterface.Builder getInterfacesBuilder(int index)

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RouterInterface.Builder

getInterfacesBuilderList()

public List<RouterInterface.Builder> getInterfacesBuilderList()

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Returns
TypeDescription
List<Builder>

getInterfacesCount()

public int getInterfacesCount()

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Returns
TypeDescription
int

getInterfacesList()

public List<RouterInterface> getInterfacesList()

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Returns
TypeDescription
List<RouterInterface>

getInterfacesOrBuilder(int index)

public RouterInterfaceOrBuilder getInterfacesOrBuilder(int index)

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RouterInterfaceOrBuilder

getInterfacesOrBuilderList()

public List<? extends RouterInterfaceOrBuilder> getInterfacesOrBuilderList()

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Returns
TypeDescription
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
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

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

optional string kind = 3292052;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RouterMd5AuthenticationKey.Builder

getMd5AuthenticationKeysBuilderList()

public List<RouterMd5AuthenticationKey.Builder> getMd5AuthenticationKeysBuilderList()

Keys used for MD5 authentication.

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

Returns
TypeDescription
List<Builder>

getMd5AuthenticationKeysCount()

public int getMd5AuthenticationKeysCount()

Keys used for MD5 authentication.

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

Returns
TypeDescription
int

getMd5AuthenticationKeysList()

public List<RouterMd5AuthenticationKey> getMd5AuthenticationKeysList()

Keys used for MD5 authentication.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RouterMd5AuthenticationKeyOrBuilder

getMd5AuthenticationKeysOrBuilderList()

public List<? extends RouterMd5AuthenticationKeyOrBuilder> getMd5AuthenticationKeysOrBuilderList()

Keys used for MD5 authentication.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getNatsCount()

public int getNatsCount()

A list of NAT services created in this router.

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

Returns
TypeDescription
int

getNatsList()

public List<RouterNat> getNatsList()

A list of NAT services created in this router.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

URI of the network to which this router belongs.

optional string network = 232872494;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for region.

public String getSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

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

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

hasBgp()

public boolean hasBgp()

BGP information specific to this router.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the region field is set.

public boolean hasSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueRouterBgp
Returns
TypeDescription
Router.Builder

mergeFrom(Router other)

public Router.Builder mergeFrom(Router other)
Parameter
NameDescription
otherRouter
Returns
TypeDescription
Router.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Router.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Router.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Router.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Router.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Router.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Router.Builder

removeInterfaces(int index)

public Router.Builder removeInterfaces(int index)

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueRouterBgp
Returns
TypeDescription
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
NameDescription
builderForValueRouterBgp.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRouterBgpPeer
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouterBgpPeer.Builder
Returns
TypeDescription
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
NameDescription
valueString

The creationTimestamp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for creationTimestamp to set.

Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The encryptedInterconnectRouter to set.

Returns
TypeDescription
Router.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Router.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The id to set.

Returns
TypeDescription
Router.Builder

This builder for chaining.

setInterfaces(int index, RouterInterface value)

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

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameters
NameDescription
indexint
valueRouterInterface
Returns
TypeDescription
Router.Builder

setInterfaces(int index, RouterInterface.Builder builderForValue)

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

Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both.

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

Parameters
NameDescription
indexint
builderForValueRouterInterface.Builder
Returns
TypeDescription
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
NameDescription
valueString

The kind to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
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
NameDescription
indexint
valueRouterMd5AuthenticationKey
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouterMd5AuthenticationKey.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint
valueRouterNat
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouterNat.Builder
Returns
TypeDescription
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
NameDescription
valueString

The network to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Router.Builder
Overrides
public Router.Builder setSelfLink(String value)

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

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
Router.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Router.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Router.Builder
Overrides