Package com.google.cloud.compute.v1
Class Router.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
- com.google.cloud.compute.v1.Router.Builder
-
- All Implemented Interfaces:
RouterOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Router
public static final class Router.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Router.Builder> implements RouterOrBuilder
Represents a Cloud Router resource. For more information about Cloud Router, read the Cloud Router overview.
Protobuf typegoogle.cloud.compute.v1.Router
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Router.Builder
addAllBgpPeers(Iterable<? extends RouterBgpPeer> values)
BGP information that must be configured into the routing stack to establish BGP peering.Router.Builder
addAllInterfaces(Iterable<? extends RouterInterface> values)
Router interfaces.Router.Builder
addAllMd5AuthenticationKeys(Iterable<? extends RouterMd5AuthenticationKey> values)
Keys used for MD5 authentication.Router.Builder
addAllNats(Iterable<? extends RouterNat> values)
A list of NAT services created in this router.Router.Builder
addBgpPeers(int index, RouterBgpPeer value)
BGP information that must be configured into the routing stack to establish BGP peering.Router.Builder
addBgpPeers(int index, RouterBgpPeer.Builder builderForValue)
BGP information that must be configured into the routing stack to establish BGP peering.Router.Builder
addBgpPeers(RouterBgpPeer value)
BGP information that must be configured into the routing stack to establish BGP peering.Router.Builder
addBgpPeers(RouterBgpPeer.Builder builderForValue)
BGP information that must be configured into the routing stack to establish BGP peering.RouterBgpPeer.Builder
addBgpPeersBuilder()
BGP information that must be configured into the routing stack to establish BGP peering.RouterBgpPeer.Builder
addBgpPeersBuilder(int index)
BGP information that must be configured into the routing stack to establish BGP peering.Router.Builder
addInterfaces(int index, RouterInterface value)
Router interfaces.Router.Builder
addInterfaces(int index, RouterInterface.Builder builderForValue)
Router interfaces.Router.Builder
addInterfaces(RouterInterface value)
Router interfaces.Router.Builder
addInterfaces(RouterInterface.Builder builderForValue)
Router interfaces.RouterInterface.Builder
addInterfacesBuilder()
Router interfaces.RouterInterface.Builder
addInterfacesBuilder(int index)
Router interfaces.Router.Builder
addMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey value)
Keys used for MD5 authentication.Router.Builder
addMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey.Builder builderForValue)
Keys used for MD5 authentication.Router.Builder
addMd5AuthenticationKeys(RouterMd5AuthenticationKey value)
Keys used for MD5 authentication.Router.Builder
addMd5AuthenticationKeys(RouterMd5AuthenticationKey.Builder builderForValue)
Keys used for MD5 authentication.RouterMd5AuthenticationKey.Builder
addMd5AuthenticationKeysBuilder()
Keys used for MD5 authentication.RouterMd5AuthenticationKey.Builder
addMd5AuthenticationKeysBuilder(int index)
Keys used for MD5 authentication.Router.Builder
addNats(int index, RouterNat value)
A list of NAT services created in this router.Router.Builder
addNats(int index, RouterNat.Builder builderForValue)
A list of NAT services created in this router.Router.Builder
addNats(RouterNat value)
A list of NAT services created in this router.Router.Builder
addNats(RouterNat.Builder builderForValue)
A list of NAT services created in this router.RouterNat.Builder
addNatsBuilder()
A list of NAT services created in this router.RouterNat.Builder
addNatsBuilder(int index)
A list of NAT services created in this router.Router.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Router
build()
Router
buildPartial()
Router.Builder
clear()
Router.Builder
clearBgp()
BGP information specific to this router.Router.Builder
clearBgpPeers()
BGP information that must be configured into the routing stack to establish BGP peering.Router.Builder
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.Router.Builder
clearDescription()
An optional description of this resource.Router.Builder
clearEncryptedInterconnectRouter()
Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).Router.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Router.Builder
clearId()
[Output Only] The unique identifier for the resource.Router.Builder
clearInterfaces()
Router interfaces.Router.Builder
clearKind()
[Output Only] Type of resource.Router.Builder
clearMd5AuthenticationKeys()
Keys used for MD5 authentication.Router.Builder
clearName()
Name of the resource.Router.Builder
clearNats()
A list of NAT services created in this router.Router.Builder
clearNetwork()
URI of the network to which this router belongs.Router.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Router.Builder
clearRegion()
[Output Only] URI of the region where the router resides.Router.Builder
clearSelfLink()
[Output Only] Server-defined URL for the resource.Router.Builder
clone()
RouterBgp
getBgp()
BGP information specific to this router.RouterBgp.Builder
getBgpBuilder()
BGP information specific to this router.RouterBgpOrBuilder
getBgpOrBuilder()
BGP information specific to this router.RouterBgpPeer
getBgpPeers(int index)
BGP information that must be configured into the routing stack to establish BGP peering.RouterBgpPeer.Builder
getBgpPeersBuilder(int index)
BGP information that must be configured into the routing stack to establish BGP peering.List<RouterBgpPeer.Builder>
getBgpPeersBuilderList()
BGP information that must be configured into the routing stack to establish BGP peering.int
getBgpPeersCount()
BGP information that must be configured into the routing stack to establish BGP peering.List<RouterBgpPeer>
getBgpPeersList()
BGP information that must be configured into the routing stack to establish BGP peering.RouterBgpPeerOrBuilder
getBgpPeersOrBuilder(int index)
BGP information that must be configured into the routing stack to establish BGP peering.List<? extends RouterBgpPeerOrBuilder>
getBgpPeersOrBuilderList()
BGP information that must be configured into the routing stack to establish BGP peering.String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.Router
getDefaultInstanceForType()
String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getEncryptedInterconnectRouter()
Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).long
getId()
[Output Only] The unique identifier for the resource.RouterInterface
getInterfaces(int index)
Router interfaces.RouterInterface.Builder
getInterfacesBuilder(int index)
Router interfaces.List<RouterInterface.Builder>
getInterfacesBuilderList()
Router interfaces.int
getInterfacesCount()
Router interfaces.List<RouterInterface>
getInterfacesList()
Router interfaces.RouterInterfaceOrBuilder
getInterfacesOrBuilder(int index)
Router interfaces.List<? extends RouterInterfaceOrBuilder>
getInterfacesOrBuilderList()
Router interfaces.String
getKind()
[Output Only] Type of resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of resource.RouterMd5AuthenticationKey
getMd5AuthenticationKeys(int index)
Keys used for MD5 authentication.RouterMd5AuthenticationKey.Builder
getMd5AuthenticationKeysBuilder(int index)
Keys used for MD5 authentication.List<RouterMd5AuthenticationKey.Builder>
getMd5AuthenticationKeysBuilderList()
Keys used for MD5 authentication.int
getMd5AuthenticationKeysCount()
Keys used for MD5 authentication.List<RouterMd5AuthenticationKey>
getMd5AuthenticationKeysList()
Keys used for MD5 authentication.RouterMd5AuthenticationKeyOrBuilder
getMd5AuthenticationKeysOrBuilder(int index)
Keys used for MD5 authentication.List<? extends RouterMd5AuthenticationKeyOrBuilder>
getMd5AuthenticationKeysOrBuilderList()
Keys used for MD5 authentication.String
getName()
Name of the resource.com.google.protobuf.ByteString
getNameBytes()
Name of the resource.RouterNat
getNats(int index)
A list of NAT services created in this router.RouterNat.Builder
getNatsBuilder(int index)
A list of NAT services created in this router.List<RouterNat.Builder>
getNatsBuilderList()
A list of NAT services created in this router.int
getNatsCount()
A list of NAT services created in this router.List<RouterNat>
getNatsList()
A list of NAT services created in this router.RouterNatOrBuilder
getNatsOrBuilder(int index)
A list of NAT services created in this router.List<? extends RouterNatOrBuilder>
getNatsOrBuilderList()
A list of NAT services created in this router.String
getNetwork()
URI of the network to which this router belongs.com.google.protobuf.ByteString
getNetworkBytes()
URI of the network to which this router belongs.String
getRegion()
[Output Only] URI of the region where the router resides.com.google.protobuf.ByteString
getRegionBytes()
[Output Only] URI of the region where the router resides.String
getSelfLink()
[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.boolean
hasBgp()
BGP information specific to this router.boolean
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.boolean
hasDescription()
An optional description of this resource.boolean
hasEncryptedInterconnectRouter()
Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).boolean
hasId()
[Output Only] The unique identifier for the resource.boolean
hasKind()
[Output Only] Type of resource.boolean
hasName()
Name of the resource.boolean
hasNetwork()
URI of the network to which this router belongs.boolean
hasRegion()
[Output Only] URI of the region where the router resides.boolean
hasSelfLink()
[Output Only] Server-defined URL for the resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Router.Builder
mergeBgp(RouterBgp value)
BGP information specific to this router.Router.Builder
mergeFrom(Router other)
Router.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Router.Builder
mergeFrom(com.google.protobuf.Message other)
Router.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Router.Builder
removeBgpPeers(int index)
BGP information that must be configured into the routing stack to establish BGP peering.Router.Builder
removeInterfaces(int index)
Router interfaces.Router.Builder
removeMd5AuthenticationKeys(int index)
Keys used for MD5 authentication.Router.Builder
removeNats(int index)
A list of NAT services created in this router.Router.Builder
setBgp(RouterBgp value)
BGP information specific to this router.Router.Builder
setBgp(RouterBgp.Builder builderForValue)
BGP information specific to this router.Router.Builder
setBgpPeers(int index, RouterBgpPeer value)
BGP information that must be configured into the routing stack to establish BGP peering.Router.Builder
setBgpPeers(int index, RouterBgpPeer.Builder builderForValue)
BGP information that must be configured into the routing stack to establish BGP peering.Router.Builder
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.Router.Builder
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.Router.Builder
setDescription(String value)
An optional description of this resource.Router.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.Router.Builder
setEncryptedInterconnectRouter(boolean value)
Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).Router.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Router.Builder
setId(long value)
[Output Only] The unique identifier for the resource.Router.Builder
setInterfaces(int index, RouterInterface value)
Router interfaces.Router.Builder
setInterfaces(int index, RouterInterface.Builder builderForValue)
Router interfaces.Router.Builder
setKind(String value)
[Output Only] Type of resource.Router.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of resource.Router.Builder
setMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey value)
Keys used for MD5 authentication.Router.Builder
setMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey.Builder builderForValue)
Keys used for MD5 authentication.Router.Builder
setName(String value)
Name of the resource.Router.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.Router.Builder
setNats(int index, RouterNat value)
A list of NAT services created in this router.Router.Builder
setNats(int index, RouterNat.Builder builderForValue)
A list of NAT services created in this router.Router.Builder
setNetwork(String value)
URI of the network to which this router belongs.Router.Builder
setNetworkBytes(com.google.protobuf.ByteString value)
URI of the network to which this router belongs.Router.Builder
setRegion(String value)
[Output Only] URI of the region where the router resides.Router.Builder
setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URI of the region where the router resides.Router.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Router.Builder
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.Router.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.Router.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
clear
public Router.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
getDefaultInstanceForType
public Router getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Router build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Router buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Router.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
setField
public Router.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
clearField
public Router.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
clearOneof
public Router.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
setRepeatedField
public Router.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
addRepeatedField
public Router.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
mergeFrom
public Router.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Router.Builder>
-
mergeFrom
public Router.Builder mergeFrom(Router other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
mergeFrom
public Router.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Router.Builder>
- Throws:
IOException
-
hasBgp
public boolean hasBgp()
BGP information specific to this router.
optional .google.cloud.compute.v1.RouterBgp bgp = 97483;
- Specified by:
hasBgp
in interfaceRouterOrBuilder
- Returns:
- Whether the bgp field is set.
-
getBgp
public RouterBgp getBgp()
BGP information specific to this router.
optional .google.cloud.compute.v1.RouterBgp bgp = 97483;
- Specified by:
getBgp
in interfaceRouterOrBuilder
- Returns:
- The bgp.
-
setBgp
public Router.Builder setBgp(RouterBgp value)
BGP information specific to this router.
optional .google.cloud.compute.v1.RouterBgp bgp = 97483;
-
setBgp
public Router.Builder setBgp(RouterBgp.Builder builderForValue)
BGP information specific to this router.
optional .google.cloud.compute.v1.RouterBgp bgp = 97483;
-
mergeBgp
public Router.Builder mergeBgp(RouterBgp value)
BGP information specific to this router.
optional .google.cloud.compute.v1.RouterBgp bgp = 97483;
-
clearBgp
public Router.Builder clearBgp()
BGP information specific to this router.
optional .google.cloud.compute.v1.RouterBgp bgp = 97483;
-
getBgpBuilder
public RouterBgp.Builder getBgpBuilder()
BGP information specific to this router.
optional .google.cloud.compute.v1.RouterBgp bgp = 97483;
-
getBgpOrBuilder
public RouterBgpOrBuilder getBgpOrBuilder()
BGP information specific to this router.
optional .google.cloud.compute.v1.RouterBgp bgp = 97483;
- Specified by:
getBgpOrBuilder
in interfaceRouterOrBuilder
-
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;
- Specified by:
getBgpPeersList
in interfaceRouterOrBuilder
-
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;
- Specified by:
getBgpPeersCount
in interfaceRouterOrBuilder
-
getBgpPeers
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;
- Specified by:
getBgpPeers
in interfaceRouterOrBuilder
-
setBgpPeers
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;
-
setBgpPeers
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;
-
addBgpPeers
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;
-
addBgpPeers
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;
-
addBgpPeers
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;
-
addBgpPeers
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;
-
addAllBgpPeers
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;
-
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;
-
removeBgpPeers
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;
-
getBgpPeersBuilder
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;
-
getBgpPeersOrBuilder
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;
- Specified by:
getBgpPeersOrBuilder
in interfaceRouterOrBuilder
-
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;
- Specified by:
getBgpPeersOrBuilderList
in interfaceRouterOrBuilder
-
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;
-
addBgpPeersBuilder
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;
-
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;
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfaceRouterOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfaceRouterOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfaceRouterOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public Router.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public Router.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public Router.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceRouterOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceRouterOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceRouterOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public Router.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Parameters:
value
- The description to set.- Returns:
- 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:
- This builder for chaining.
-
setDescriptionBytes
public Router.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasEncryptedInterconnectRouter
public boolean hasEncryptedInterconnectRouter()
Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).
optional bool encrypted_interconnect_router = 297996575;
- Specified by:
hasEncryptedInterconnectRouter
in interfaceRouterOrBuilder
- Returns:
- Whether the encryptedInterconnectRouter field is set.
-
getEncryptedInterconnectRouter
public boolean getEncryptedInterconnectRouter()
Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).
optional bool encrypted_interconnect_router = 297996575;
- Specified by:
getEncryptedInterconnectRouter
in interfaceRouterOrBuilder
- Returns:
- The encryptedInterconnectRouter.
-
setEncryptedInterconnectRouter
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;
- Parameters:
value
- The encryptedInterconnectRouter to set.- Returns:
- 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:
- This builder for chaining.
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfaceRouterOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfaceRouterOrBuilder
- Returns:
- The id.
-
setId
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;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;
- Specified by:
getInterfacesList
in interfaceRouterOrBuilder
-
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;
- Specified by:
getInterfacesCount
in interfaceRouterOrBuilder
-
getInterfaces
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;
- Specified by:
getInterfaces
in interfaceRouterOrBuilder
-
setInterfaces
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;
-
setInterfaces
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;
-
addInterfaces
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;
-
addInterfaces
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;
-
addInterfaces
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;
-
addInterfaces
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;
-
addAllInterfaces
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;
-
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;
-
removeInterfaces
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;
-
getInterfacesBuilder
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;
-
getInterfacesOrBuilder
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;
- Specified by:
getInterfacesOrBuilder
in interfaceRouterOrBuilder
-
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;
- Specified by:
getInterfacesOrBuilderList
in interfaceRouterOrBuilder
-
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;
-
addInterfacesBuilder
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;
-
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;
-
hasKind
public boolean hasKind()
[Output Only] Type of resource. Always compute#router for routers.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceRouterOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of resource. Always compute#router for routers.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceRouterOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of resource. Always compute#router for routers.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceRouterOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public Router.Builder setKind(String value)
[Output Only] Type of resource. Always compute#router for routers.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Router.Builder clearKind()
[Output Only] Type of resource. Always compute#router for routers.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public Router.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of resource. Always compute#router for routers.
optional string kind = 3292052;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
getMd5AuthenticationKeysList
public List<RouterMd5AuthenticationKey> getMd5AuthenticationKeysList()
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
- Specified by:
getMd5AuthenticationKeysList
in interfaceRouterOrBuilder
-
getMd5AuthenticationKeysCount
public int getMd5AuthenticationKeysCount()
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
- Specified by:
getMd5AuthenticationKeysCount
in interfaceRouterOrBuilder
-
getMd5AuthenticationKeys
public RouterMd5AuthenticationKey getMd5AuthenticationKeys(int index)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
- Specified by:
getMd5AuthenticationKeys
in interfaceRouterOrBuilder
-
setMd5AuthenticationKeys
public Router.Builder setMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey value)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
setMd5AuthenticationKeys
public Router.Builder setMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey.Builder builderForValue)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
addMd5AuthenticationKeys
public Router.Builder addMd5AuthenticationKeys(RouterMd5AuthenticationKey value)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
addMd5AuthenticationKeys
public Router.Builder addMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey value)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
addMd5AuthenticationKeys
public Router.Builder addMd5AuthenticationKeys(RouterMd5AuthenticationKey.Builder builderForValue)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
addMd5AuthenticationKeys
public Router.Builder addMd5AuthenticationKeys(int index, RouterMd5AuthenticationKey.Builder builderForValue)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
addAllMd5AuthenticationKeys
public Router.Builder addAllMd5AuthenticationKeys(Iterable<? extends RouterMd5AuthenticationKey> values)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
clearMd5AuthenticationKeys
public Router.Builder clearMd5AuthenticationKeys()
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
removeMd5AuthenticationKeys
public Router.Builder removeMd5AuthenticationKeys(int index)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
getMd5AuthenticationKeysBuilder
public RouterMd5AuthenticationKey.Builder getMd5AuthenticationKeysBuilder(int index)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
getMd5AuthenticationKeysOrBuilder
public RouterMd5AuthenticationKeyOrBuilder getMd5AuthenticationKeysOrBuilder(int index)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
- Specified by:
getMd5AuthenticationKeysOrBuilder
in interfaceRouterOrBuilder
-
getMd5AuthenticationKeysOrBuilderList
public List<? extends RouterMd5AuthenticationKeyOrBuilder> getMd5AuthenticationKeysOrBuilderList()
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
- Specified by:
getMd5AuthenticationKeysOrBuilderList
in interfaceRouterOrBuilder
-
addMd5AuthenticationKeysBuilder
public RouterMd5AuthenticationKey.Builder addMd5AuthenticationKeysBuilder()
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
addMd5AuthenticationKeysBuilder
public RouterMd5AuthenticationKey.Builder addMd5AuthenticationKeysBuilder(int index)
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
getMd5AuthenticationKeysBuilderList
public List<RouterMd5AuthenticationKey.Builder> getMd5AuthenticationKeysBuilderList()
Keys used for MD5 authentication.
repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
-
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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
hasName
in interfaceRouterOrBuilder
- Returns:
- Whether the name field is set.
-
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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
getName
in interfaceRouterOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
getNameBytes
in interfaceRouterOrBuilder
- Returns:
- The bytes for name.
-
setName
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]([-a-z0-9]*[a-z0-9])?` 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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
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]([-a-z0-9]*[a-z0-9])?` 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:
- This builder for chaining.
-
setNameBytes
public Router.Builder setNameBytes(com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getNatsList
public List<RouterNat> getNatsList()
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
- Specified by:
getNatsList
in interfaceRouterOrBuilder
-
getNatsCount
public int getNatsCount()
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
- Specified by:
getNatsCount
in interfaceRouterOrBuilder
-
getNats
public RouterNat getNats(int index)
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
- Specified by:
getNats
in interfaceRouterOrBuilder
-
setNats
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;
-
setNats
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;
-
addNats
public Router.Builder addNats(RouterNat value)
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
-
addNats
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;
-
addNats
public Router.Builder addNats(RouterNat.Builder builderForValue)
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
-
addNats
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;
-
addAllNats
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;
-
clearNats
public Router.Builder clearNats()
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
-
removeNats
public Router.Builder removeNats(int index)
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
-
getNatsBuilder
public RouterNat.Builder getNatsBuilder(int index)
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
-
getNatsOrBuilder
public RouterNatOrBuilder getNatsOrBuilder(int index)
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
- Specified by:
getNatsOrBuilder
in interfaceRouterOrBuilder
-
getNatsOrBuilderList
public List<? extends RouterNatOrBuilder> getNatsOrBuilderList()
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
- Specified by:
getNatsOrBuilderList
in interfaceRouterOrBuilder
-
addNatsBuilder
public RouterNat.Builder addNatsBuilder()
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
-
addNatsBuilder
public RouterNat.Builder addNatsBuilder(int index)
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
-
getNatsBuilderList
public List<RouterNat.Builder> getNatsBuilderList()
A list of NAT services created in this router.
repeated .google.cloud.compute.v1.RouterNat nats = 3373938;
-
hasNetwork
public boolean hasNetwork()
URI of the network to which this router belongs.
optional string network = 232872494;
- Specified by:
hasNetwork
in interfaceRouterOrBuilder
- Returns:
- Whether the network field is set.
-
getNetwork
public String getNetwork()
URI of the network to which this router belongs.
optional string network = 232872494;
- Specified by:
getNetwork
in interfaceRouterOrBuilder
- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
URI of the network to which this router belongs.
optional string network = 232872494;
- Specified by:
getNetworkBytes
in interfaceRouterOrBuilder
- Returns:
- The bytes for network.
-
setNetwork
public Router.Builder setNetwork(String value)
URI of the network to which this router belongs.
optional string network = 232872494;
- Parameters:
value
- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
public Router.Builder clearNetwork()
URI of the network to which this router belongs.
optional string network = 232872494;
- Returns:
- This builder for chaining.
-
setNetworkBytes
public Router.Builder setNetworkBytes(com.google.protobuf.ByteString value)
URI of the network to which this router belongs.
optional string network = 232872494;
- Parameters:
value
- The bytes for network to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasRegion
in interfaceRouterOrBuilder
- Returns:
- Whether the region field is set.
-
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;
- Specified by:
getRegion
in interfaceRouterOrBuilder
- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.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;
- Specified by:
getRegionBytes
in interfaceRouterOrBuilder
- Returns:
- The bytes for region.
-
setRegion
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;
- Parameters:
value
- The region to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setRegionBytes
public Router.Builder setRegionBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for region to set.- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfaceRouterOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfaceRouterOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfaceRouterOrBuilder
- Returns:
- The bytes for selfLink.
-
setSelfLink
public Router.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public Router.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public Router.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Router.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
mergeUnknownFields
public final Router.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
-