Class RouterInterface

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

    public final class RouterInterface
    extends com.google.protobuf.GeneratedMessageV3
    implements RouterInterfaceOrBuilder
     
    Protobuf type google.cloud.compute.v1.RouterInterface
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RouterInterface.Builder
      static class  RouterInterface.ManagementType
      [Output Only] The resource that configures and manages this interface.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • LINKED_INTERCONNECT_ATTACHMENT_FIELD_NUMBER

        public static final int LINKED_INTERCONNECT_ATTACHMENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LINKED_VPN_TUNNEL_FIELD_NUMBER

        public static final int LINKED_VPN_TUNNEL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MANAGEMENT_TYPE_FIELD_NUMBER

        public static final int MANAGEMENT_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRIVATE_IP_ADDRESS_FIELD_NUMBER

        public static final int PRIVATE_IP_ADDRESS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REDUNDANT_INTERFACE_FIELD_NUMBER

        public static final int REDUNDANT_INTERFACE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SUBNETWORK_FIELD_NUMBER

        public static final int SUBNETWORK_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • hasIpRange

        public boolean hasIpRange()
         IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface.
         
        optional string ip_range = 145092645;
        Specified by:
        hasIpRange in interface RouterInterfaceOrBuilder
        Returns:
        Whether the ipRange field is set.
      • getIpRange

        public String getIpRange()
         IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface.
         
        optional string ip_range = 145092645;
        Specified by:
        getIpRange in interface RouterInterfaceOrBuilder
        Returns:
        The ipRange.
      • getIpRangeBytes

        public com.google.protobuf.ByteString getIpRangeBytes()
         IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface.
         
        optional string ip_range = 145092645;
        Specified by:
        getIpRangeBytes in interface RouterInterfaceOrBuilder
        Returns:
        The bytes for ipRange.
      • hasLinkedInterconnectAttachment

        public boolean hasLinkedInterconnectAttachment()
         URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a virtual machine instance.
         
        optional string linked_interconnect_attachment = 501085518;
        Specified by:
        hasLinkedInterconnectAttachment in interface RouterInterfaceOrBuilder
        Returns:
        Whether the linkedInterconnectAttachment field is set.
      • getLinkedInterconnectAttachment

        public String getLinkedInterconnectAttachment()
         URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a virtual machine instance.
         
        optional string linked_interconnect_attachment = 501085518;
        Specified by:
        getLinkedInterconnectAttachment in interface RouterInterfaceOrBuilder
        Returns:
        The linkedInterconnectAttachment.
      • getLinkedInterconnectAttachmentBytes

        public com.google.protobuf.ByteString getLinkedInterconnectAttachmentBytes()
         URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a virtual machine instance.
         
        optional string linked_interconnect_attachment = 501085518;
        Specified by:
        getLinkedInterconnectAttachmentBytes in interface RouterInterfaceOrBuilder
        Returns:
        The bytes for linkedInterconnectAttachment.
      • hasLinkedVpnTunnel

        public boolean hasLinkedVpnTunnel()
         URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a virtual machine instance.
         
        optional string linked_vpn_tunnel = 352296953;
        Specified by:
        hasLinkedVpnTunnel in interface RouterInterfaceOrBuilder
        Returns:
        Whether the linkedVpnTunnel field is set.
      • getLinkedVpnTunnel

        public String getLinkedVpnTunnel()
         URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a virtual machine instance.
         
        optional string linked_vpn_tunnel = 352296953;
        Specified by:
        getLinkedVpnTunnel in interface RouterInterfaceOrBuilder
        Returns:
        The linkedVpnTunnel.
      • getLinkedVpnTunnelBytes

        public com.google.protobuf.ByteString getLinkedVpnTunnelBytes()
         URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a virtual machine instance.
         
        optional string linked_vpn_tunnel = 352296953;
        Specified by:
        getLinkedVpnTunnelBytes in interface RouterInterfaceOrBuilder
        Returns:
        The bytes for linkedVpnTunnel.
      • hasManagementType

        public boolean hasManagementType()
         [Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted.
         Check the ManagementType enum for the list of possible values.
         
        optional string management_type = 173703606;
        Specified by:
        hasManagementType in interface RouterInterfaceOrBuilder
        Returns:
        Whether the managementType field is set.
      • getManagementType

        public String getManagementType()
         [Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted.
         Check the ManagementType enum for the list of possible values.
         
        optional string management_type = 173703606;
        Specified by:
        getManagementType in interface RouterInterfaceOrBuilder
        Returns:
        The managementType.
      • getManagementTypeBytes

        public com.google.protobuf.ByteString getManagementTypeBytes()
         [Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted.
         Check the ManagementType enum for the list of possible values.
         
        optional string management_type = 173703606;
        Specified by:
        getManagementTypeBytes in interface RouterInterfaceOrBuilder
        Returns:
        The bytes for managementType.
      • hasName

        public boolean hasName()
         Name of this interface entry. 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 RouterInterfaceOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         Name of this interface entry. 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 RouterInterfaceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of this interface entry. 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 RouterInterfaceOrBuilder
        Returns:
        The bytes for name.
      • hasPrivateIpAddress

        public boolean hasPrivateIpAddress()
         The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM.
         
        optional string private_ip_address = 100854040;
        Specified by:
        hasPrivateIpAddress in interface RouterInterfaceOrBuilder
        Returns:
        Whether the privateIpAddress field is set.
      • getPrivateIpAddress

        public String getPrivateIpAddress()
         The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM.
         
        optional string private_ip_address = 100854040;
        Specified by:
        getPrivateIpAddress in interface RouterInterfaceOrBuilder
        Returns:
        The privateIpAddress.
      • getPrivateIpAddressBytes

        public com.google.protobuf.ByteString getPrivateIpAddressBytes()
         The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM.
         
        optional string private_ip_address = 100854040;
        Specified by:
        getPrivateIpAddressBytes in interface RouterInterfaceOrBuilder
        Returns:
        The bytes for privateIpAddress.
      • hasRedundantInterface

        public boolean hasRedundantInterface()
         Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface 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 redundant_interface = 523187303;
        Specified by:
        hasRedundantInterface in interface RouterInterfaceOrBuilder
        Returns:
        Whether the redundantInterface field is set.
      • getRedundantInterface

        public String getRedundantInterface()
         Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface 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 redundant_interface = 523187303;
        Specified by:
        getRedundantInterface in interface RouterInterfaceOrBuilder
        Returns:
        The redundantInterface.
      • getRedundantInterfaceBytes

        public com.google.protobuf.ByteString getRedundantInterfaceBytes()
         Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface 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 redundant_interface = 523187303;
        Specified by:
        getRedundantInterfaceBytes in interface RouterInterfaceOrBuilder
        Returns:
        The bytes for redundantInterface.
      • hasSubnetwork

        public boolean hasSubnetwork()
         The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.
         
        optional string subnetwork = 307827694;
        Specified by:
        hasSubnetwork in interface RouterInterfaceOrBuilder
        Returns:
        Whether the subnetwork field is set.
      • getSubnetwork

        public String getSubnetwork()
         The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.
         
        optional string subnetwork = 307827694;
        Specified by:
        getSubnetwork in interface RouterInterfaceOrBuilder
        Returns:
        The subnetwork.
      • getSubnetworkBytes

        public com.google.protobuf.ByteString getSubnetworkBytes()
         The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.
         
        optional string subnetwork = 307827694;
        Specified by:
        getSubnetworkBytes in interface RouterInterfaceOrBuilder
        Returns:
        The bytes for subnetwork.
      • 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 RouterInterface parseFrom​(ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<RouterInterface> 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 RouterInterface getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder