Class Router

  • All Implemented Interfaces:
    RouterOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Router
    extends com.google.protobuf.GeneratedMessageV3
    implements RouterOrBuilder
     Represents a Cloud Router resource. For more information about Cloud Router, read the Cloud Router overview.
     
    Protobuf type google.cloud.compute.v1.Router
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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 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 to RFC4273.
         
        repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;
        Specified by:
        getBgpPeersOrBuilderList 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 to RFC4273.
         
        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 to RFC4273.
         
        repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773;
        Specified by:
        getBgpPeers in interface RouterOrBuilder
      • 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 interface RouterOrBuilder
      • hasCreationTimestamp

        public boolean hasCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 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] Creation timestamp in RFC3339 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] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestampBytes in interface RouterOrBuilder
        Returns:
        The bytes for creationTimestamp.
      • 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.
      • 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.
      • 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.
      • 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 interface RouterOrBuilder
      • 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 interface RouterOrBuilder
      • 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 interface RouterOrBuilder
      • 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 interface RouterOrBuilder
      • 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 interface RouterOrBuilder
      • hasKind

        public boolean hasKind()
         [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] 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] Type of resource. Always compute#router for routers.
         
        optional string kind = 3292052;
        Specified by:
        getKindBytes in interface RouterOrBuilder
        Returns:
        The bytes for kind.
      • 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
      • 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 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 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 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 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 interface RouterOrBuilder
        Returns:
        The bytes for name.
      • 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
      • 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
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Router parseFrom​(ByteBuffer data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Router parseFrom​(ByteBuffer data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Router parseFrom​(com.google.protobuf.ByteString data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Router parseFrom​(com.google.protobuf.ByteString data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Router parseFrom​(byte[] data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Router parseFrom​(byte[] data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Router parseFrom​(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Router.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Router getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Router> parser()
      • getParserForType

        public com.google.protobuf.Parser<Router> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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