Class Router.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Router.Builder> implements RouterOrBuilder
 Represents a Cloud Router resource.

 For more information about Cloud Router, read theCloud
 Router overview.
 
Protobuf type google.cloud.compute.v1.Router
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Router.Builder>
    • clear

      public Router.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Router.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Router.Builder>
    • getDefaultInstanceForType

      public Router getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Router build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Router buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Router.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Router.Builder>
    • mergeFrom

      public Router.Builder mergeFrom(Router other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Router.Builder>
    • mergeFrom

      public Router.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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 interface RouterOrBuilder
    • 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 toRFC4273.
       
      repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;
      Specified by:
      getBgpPeersList in interface RouterOrBuilder
    • 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 toRFC4273.
       
      repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;
      Specified by:
      getBgpPeersCount in interface RouterOrBuilder
    • 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 toRFC4273.
       
      repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;
      Specified by:
      getBgpPeers in interface RouterOrBuilder
    • 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 toRFC4273.
       
      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 toRFC4273.
       
      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 toRFC4273.
       
      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 toRFC4273.
       
      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 toRFC4273.
       
      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 toRFC4273.
       
      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 toRFC4273.
       
      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 toRFC4273.
       
      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 toRFC4273.
       
      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 toRFC4273.
       
      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 toRFC4273.
       
      repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;
      Specified by:
      getBgpPeersOrBuilder in interface RouterOrBuilder
    • 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 toRFC4273.
       
      repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;
      Specified by:
      getBgpPeersOrBuilderList in interface RouterOrBuilder
    • addBgpPeersBuilder

      public RouterBgpPeer.Builder addBgpPeersBuilder()
       BGP information that must be configured into the routing stack to
       establish BGP peering. This information must specify the peer ASN and
       either the interface name, IP address, or peer IP address. Please refer toRFC4273.
       
      repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;
    • 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 toRFC4273.
       
      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 toRFC4273.
       
      repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface RouterOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface RouterOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface RouterOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • setCreationTimestamp

      public Router.Builder setCreationTimestamp(String value)
       Output only. [Output Only] Creation timestamp inRFC3339
       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. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public Router.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Creation timestamp inRFC3339
       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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
      Specified by:
      getInterfacesList in interface RouterOrBuilder
    • getInterfacesCount

      public int getInterfacesCount()
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
      Specified by:
      getInterfacesCount in interface RouterOrBuilder
    • getInterfaces

      public RouterInterface getInterfaces(int index)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
      Specified by:
      getInterfaces in interface RouterOrBuilder
    • setInterfaces

      public Router.Builder setInterfaces(int index, RouterInterface value)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • setInterfaces

      public Router.Builder setInterfaces(int index, RouterInterface.Builder builderForValue)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • addInterfaces

      public Router.Builder addInterfaces(RouterInterface value)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • addInterfaces

      public Router.Builder addInterfaces(int index, RouterInterface value)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • addInterfaces

      public Router.Builder addInterfaces(RouterInterface.Builder builderForValue)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • addInterfaces

      public Router.Builder addInterfaces(int index, RouterInterface.Builder builderForValue)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • addAllInterfaces

      public Router.Builder addAllInterfaces(Iterable<? extends RouterInterface> values)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • clearInterfaces

      public Router.Builder clearInterfaces()
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • removeInterfaces

      public Router.Builder removeInterfaces(int index)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • getInterfacesBuilder

      public RouterInterface.Builder getInterfacesBuilder(int index)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • getInterfacesOrBuilder

      public RouterInterfaceOrBuilder getInterfacesOrBuilder(int index)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
      Specified by:
      getInterfacesOrBuilder in interface RouterOrBuilder
    • getInterfacesOrBuilderList

      public List<? extends RouterInterfaceOrBuilder> getInterfacesOrBuilderList()
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
      Specified by:
      getInterfacesOrBuilderList in interface RouterOrBuilder
    • addInterfacesBuilder

      public RouterInterface.Builder addInterfacesBuilder()
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • addInterfacesBuilder

      public RouterInterface.Builder addInterfacesBuilder(int index)
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • getInterfacesBuilderList

      public List<RouterInterface.Builder> getInterfacesBuilderList()
       Router interfaces.
       To create a BGP peer that uses a router interface,
       the interface must have one of the following fields specified:
      
       - linkedVpnTunnel
       - linkedInterconnectAttachment
       - subnetwork
      
      
       You can create a router interface without any of these fields specified.
       However, you cannot create a BGP peer that uses that interface.
       
      repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562;
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] Type of resource. Always compute#router for
       routers.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface RouterOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of resource. Always compute#router for
       routers.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface RouterOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of resource. Always compute#router for
       routers.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface RouterOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public Router.Builder setKind(String value)
       Output only. [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. [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. [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 interface RouterOrBuilder
    • getMd5AuthenticationKeysCount

      public int getMd5AuthenticationKeysCount()
       Keys used for MD5 authentication.
       
      repeated .google.cloud.compute.v1.RouterMd5AuthenticationKey md5_authentication_keys = 71063322;
      Specified by:
      getMd5AuthenticationKeysCount in interface RouterOrBuilder
    • 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 interface RouterOrBuilder
    • 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 interface RouterOrBuilder
    • 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 interface RouterOrBuilder
    • 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 withRFC1035.
       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 interface RouterOrBuilder
      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 withRFC1035.
       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 interface RouterOrBuilder
      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 withRFC1035.
       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 interface RouterOrBuilder
      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 withRFC1035.
       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 withRFC1035.
       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 withRFC1035.
       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 interface RouterOrBuilder
    • 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 interface RouterOrBuilder
    • 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 interface RouterOrBuilder
    • 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 interface RouterOrBuilder
    • 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 interface RouterOrBuilder
    • 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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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.
    • hasParams

      public boolean hasParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.RouterParams params = 78313862;
      Specified by:
      hasParams in interface RouterOrBuilder
      Returns:
      Whether the params field is set.
    • getParams

      public RouterParams getParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.RouterParams params = 78313862;
      Specified by:
      getParams in interface RouterOrBuilder
      Returns:
      The params.
    • setParams

      public Router.Builder setParams(RouterParams value)
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.RouterParams params = 78313862;
    • setParams

      public Router.Builder setParams(RouterParams.Builder builderForValue)
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.RouterParams params = 78313862;
    • mergeParams

      public Router.Builder mergeParams(RouterParams value)
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.RouterParams params = 78313862;
    • clearParams

      public Router.Builder clearParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.RouterParams params = 78313862;
    • getParamsBuilder

      public RouterParams.Builder getParamsBuilder()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.RouterParams params = 78313862;
    • getParamsOrBuilder

      public RouterParamsOrBuilder getParamsOrBuilder()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.RouterParams params = 78313862;
      Specified by:
      getParamsOrBuilder in interface RouterOrBuilder
    • 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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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 interface RouterOrBuilder
      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.