Class RouterInterface.Builder

  • All Implemented Interfaces:
    RouterInterfaceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    RouterInterface

    public static final class RouterInterface.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
    implements RouterInterfaceOrBuilder
     
    Protobuf type google.cloud.compute.v1.RouterInterface
    • Method Detail

      • 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.Builder<RouterInterface.Builder>
      • clear

        public RouterInterface.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.GeneratedMessageV3.Builder<RouterInterface.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.GeneratedMessageV3.Builder<RouterInterface.Builder>
      • getDefaultInstanceForType

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

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

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

        public RouterInterface.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
      • setField

        public RouterInterface.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
      • clearField

        public RouterInterface.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
      • clearOneof

        public RouterInterface.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
      • setRepeatedField

        public RouterInterface.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
      • addRepeatedField

        public RouterInterface.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
      • mergeFrom

        public RouterInterface.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<RouterInterface.Builder>
      • isInitialized

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

        public RouterInterface.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<RouterInterface.Builder>
        Throws:
        IOException
      • 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.
      • setIpRange

        public RouterInterface.Builder setIpRange​(String value)
         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;
        Parameters:
        value - The ipRange to set.
        Returns:
        This builder for chaining.
      • clearIpRange

        public RouterInterface.Builder clearIpRange()
         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;
        Returns:
        This builder for chaining.
      • setIpRangeBytes

        public RouterInterface.Builder setIpRangeBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for ipRange to set.
        Returns:
        This builder for chaining.
      • 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.
      • setLinkedInterconnectAttachment

        public RouterInterface.Builder setLinkedInterconnectAttachment​(String value)
         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;
        Parameters:
        value - The linkedInterconnectAttachment to set.
        Returns:
        This builder for chaining.
      • clearLinkedInterconnectAttachment

        public RouterInterface.Builder clearLinkedInterconnectAttachment()
         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;
        Returns:
        This builder for chaining.
      • setLinkedInterconnectAttachmentBytes

        public RouterInterface.Builder setLinkedInterconnectAttachmentBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for linkedInterconnectAttachment to set.
        Returns:
        This builder for chaining.
      • 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.
      • setLinkedVpnTunnel

        public RouterInterface.Builder setLinkedVpnTunnel​(String value)
         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;
        Parameters:
        value - The linkedVpnTunnel to set.
        Returns:
        This builder for chaining.
      • clearLinkedVpnTunnel

        public RouterInterface.Builder clearLinkedVpnTunnel()
         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;
        Returns:
        This builder for chaining.
      • setLinkedVpnTunnelBytes

        public RouterInterface.Builder setLinkedVpnTunnelBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for linkedVpnTunnel to set.
        Returns:
        This builder for chaining.
      • 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.
      • setManagementType

        public RouterInterface.Builder setManagementType​(String value)
         [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;
        Parameters:
        value - The managementType to set.
        Returns:
        This builder for chaining.
      • clearManagementType

        public RouterInterface.Builder clearManagementType()
         [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;
        Returns:
        This builder for chaining.
      • setManagementTypeBytes

        public RouterInterface.Builder setManagementTypeBytes​(com.google.protobuf.ByteString value)
         [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;
        Parameters:
        value - The bytes for managementType to set.
        Returns:
        This builder for chaining.
      • 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.
      • setName

        public RouterInterface.Builder setName​(String value)
         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;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public RouterInterface.Builder clearName()
         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;
        Returns:
        This builder for chaining.
      • setNameBytes

        public RouterInterface.Builder setNameBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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.
      • setPrivateIpAddress

        public RouterInterface.Builder setPrivateIpAddress​(String value)
         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;
        Parameters:
        value - The privateIpAddress to set.
        Returns:
        This builder for chaining.
      • clearPrivateIpAddress

        public RouterInterface.Builder clearPrivateIpAddress()
         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;
        Returns:
        This builder for chaining.
      • setPrivateIpAddressBytes

        public RouterInterface.Builder setPrivateIpAddressBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for privateIpAddress to set.
        Returns:
        This builder for chaining.
      • 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.
      • setRedundantInterface

        public RouterInterface.Builder setRedundantInterface​(String value)
         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;
        Parameters:
        value - The redundantInterface to set.
        Returns:
        This builder for chaining.
      • clearRedundantInterface

        public RouterInterface.Builder clearRedundantInterface()
         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;
        Returns:
        This builder for chaining.
      • setRedundantInterfaceBytes

        public RouterInterface.Builder setRedundantInterfaceBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for redundantInterface to set.
        Returns:
        This builder for chaining.
      • 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.
      • setSubnetwork

        public RouterInterface.Builder setSubnetwork​(String value)
         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;
        Parameters:
        value - The subnetwork to set.
        Returns:
        This builder for chaining.
      • clearSubnetwork

        public RouterInterface.Builder clearSubnetwork()
         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;
        Returns:
        This builder for chaining.
      • setSubnetworkBytes

        public RouterInterface.Builder setSubnetworkBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for subnetwork to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final RouterInterface.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
      • mergeUnknownFields

        public final RouterInterface.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>