Class ExternalVpnGatewayInterface.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExternalVpnGatewayInterface.Builder>
com.google.cloud.compute.v1.ExternalVpnGatewayInterface.Builder
All Implemented Interfaces:
ExternalVpnGatewayInterfaceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExternalVpnGatewayInterface

public static final class ExternalVpnGatewayInterface.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExternalVpnGatewayInterface.Builder> implements ExternalVpnGatewayInterfaceOrBuilder
 The interface for the external VPN gateway.
 
Protobuf type google.cloud.compute.v1.ExternalVpnGatewayInterface
  • 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<ExternalVpnGatewayInterface.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<ExternalVpnGatewayInterface.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<ExternalVpnGatewayInterface.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ExternalVpnGatewayInterface.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<ExternalVpnGatewayInterface.Builder>
    • mergeFrom

    • isInitialized

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

      public ExternalVpnGatewayInterface.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<ExternalVpnGatewayInterface.Builder>
      Throws:
      IOException
    • hasId

      public boolean hasId()
       The numeric ID of this interface.
       The allowed input values for this id for different redundancy types of
       external VPN gateway:
      
       - SINGLE_IP_INTERNALLY_REDUNDANT - 0
       - TWO_IPS_REDUNDANCY - 0, 1
       - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3
       
      optional uint32 id = 3355;
      Specified by:
      hasId in interface ExternalVpnGatewayInterfaceOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public int getId()
       The numeric ID of this interface.
       The allowed input values for this id for different redundancy types of
       external VPN gateway:
      
       - SINGLE_IP_INTERNALLY_REDUNDANT - 0
       - TWO_IPS_REDUNDANCY - 0, 1
       - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3
       
      optional uint32 id = 3355;
      Specified by:
      getId in interface ExternalVpnGatewayInterfaceOrBuilder
      Returns:
      The id.
    • setId

      public ExternalVpnGatewayInterface.Builder setId(int value)
       The numeric ID of this interface.
       The allowed input values for this id for different redundancy types of
       external VPN gateway:
      
       - SINGLE_IP_INTERNALLY_REDUNDANT - 0
       - TWO_IPS_REDUNDANCY - 0, 1
       - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3
       
      optional uint32 id = 3355;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

       The numeric ID of this interface.
       The allowed input values for this id for different redundancy types of
       external VPN gateway:
      
       - SINGLE_IP_INTERNALLY_REDUNDANT - 0
       - TWO_IPS_REDUNDANCY - 0, 1
       - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3
       
      optional uint32 id = 3355;
      Returns:
      This builder for chaining.
    • hasIpAddress

      public boolean hasIpAddress()
       IP address of the interface in the external VPN gateway. Only IPv4 is
       supported. This IP address can be either from your on-premise gateway or
       another Cloud provider's VPN gateway, it cannot be an IP address from
       Google Compute Engine.
       
      optional string ip_address = 406272220;
      Specified by:
      hasIpAddress in interface ExternalVpnGatewayInterfaceOrBuilder
      Returns:
      Whether the ipAddress field is set.
    • getIpAddress

      public String getIpAddress()
       IP address of the interface in the external VPN gateway. Only IPv4 is
       supported. This IP address can be either from your on-premise gateway or
       another Cloud provider's VPN gateway, it cannot be an IP address from
       Google Compute Engine.
       
      optional string ip_address = 406272220;
      Specified by:
      getIpAddress in interface ExternalVpnGatewayInterfaceOrBuilder
      Returns:
      The ipAddress.
    • getIpAddressBytes

      public com.google.protobuf.ByteString getIpAddressBytes()
       IP address of the interface in the external VPN gateway. Only IPv4 is
       supported. This IP address can be either from your on-premise gateway or
       another Cloud provider's VPN gateway, it cannot be an IP address from
       Google Compute Engine.
       
      optional string ip_address = 406272220;
      Specified by:
      getIpAddressBytes in interface ExternalVpnGatewayInterfaceOrBuilder
      Returns:
      The bytes for ipAddress.
    • setIpAddress

      public ExternalVpnGatewayInterface.Builder setIpAddress(String value)
       IP address of the interface in the external VPN gateway. Only IPv4 is
       supported. This IP address can be either from your on-premise gateway or
       another Cloud provider's VPN gateway, it cannot be an IP address from
       Google Compute Engine.
       
      optional string ip_address = 406272220;
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

      public ExternalVpnGatewayInterface.Builder clearIpAddress()
       IP address of the interface in the external VPN gateway. Only IPv4 is
       supported. This IP address can be either from your on-premise gateway or
       another Cloud provider's VPN gateway, it cannot be an IP address from
       Google Compute Engine.
       
      optional string ip_address = 406272220;
      Returns:
      This builder for chaining.
    • setIpAddressBytes

      public ExternalVpnGatewayInterface.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
       IP address of the interface in the external VPN gateway. Only IPv4 is
       supported. This IP address can be either from your on-premise gateway or
       another Cloud provider's VPN gateway, it cannot be an IP address from
       Google Compute Engine.
       
      optional string ip_address = 406272220;
      Parameters:
      value - The bytes for ipAddress to set.
      Returns:
      This builder for chaining.
    • hasIpv6Address

      public boolean hasIpv6Address()
       IPv6 address of the interface in the external VPN gateway. This IPv6
       address can be either from your on-premise gateway or another Cloud
       provider's VPN gateway, it cannot be an IP address from Google Compute
       Engine. Must specify an IPv6 address (not IPV4-mapped) using any format
       described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format
       is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
       
      optional string ipv6_address = 341563804;
      Specified by:
      hasIpv6Address in interface ExternalVpnGatewayInterfaceOrBuilder
      Returns:
      Whether the ipv6Address field is set.
    • getIpv6Address

      public String getIpv6Address()
       IPv6 address of the interface in the external VPN gateway. This IPv6
       address can be either from your on-premise gateway or another Cloud
       provider's VPN gateway, it cannot be an IP address from Google Compute
       Engine. Must specify an IPv6 address (not IPV4-mapped) using any format
       described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format
       is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
       
      optional string ipv6_address = 341563804;
      Specified by:
      getIpv6Address in interface ExternalVpnGatewayInterfaceOrBuilder
      Returns:
      The ipv6Address.
    • getIpv6AddressBytes

      public com.google.protobuf.ByteString getIpv6AddressBytes()
       IPv6 address of the interface in the external VPN gateway. This IPv6
       address can be either from your on-premise gateway or another Cloud
       provider's VPN gateway, it cannot be an IP address from Google Compute
       Engine. Must specify an IPv6 address (not IPV4-mapped) using any format
       described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format
       is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
       
      optional string ipv6_address = 341563804;
      Specified by:
      getIpv6AddressBytes in interface ExternalVpnGatewayInterfaceOrBuilder
      Returns:
      The bytes for ipv6Address.
    • setIpv6Address

      public ExternalVpnGatewayInterface.Builder setIpv6Address(String value)
       IPv6 address of the interface in the external VPN gateway. This IPv6
       address can be either from your on-premise gateway or another Cloud
       provider's VPN gateway, it cannot be an IP address from Google Compute
       Engine. Must specify an IPv6 address (not IPV4-mapped) using any format
       described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format
       is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
       
      optional string ipv6_address = 341563804;
      Parameters:
      value - The ipv6Address to set.
      Returns:
      This builder for chaining.
    • clearIpv6Address

      public ExternalVpnGatewayInterface.Builder clearIpv6Address()
       IPv6 address of the interface in the external VPN gateway. This IPv6
       address can be either from your on-premise gateway or another Cloud
       provider's VPN gateway, it cannot be an IP address from Google Compute
       Engine. Must specify an IPv6 address (not IPV4-mapped) using any format
       described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format
       is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
       
      optional string ipv6_address = 341563804;
      Returns:
      This builder for chaining.
    • setIpv6AddressBytes

      public ExternalVpnGatewayInterface.Builder setIpv6AddressBytes(com.google.protobuf.ByteString value)
       IPv6 address of the interface in the external VPN gateway. This IPv6
       address can be either from your on-premise gateway or another Cloud
       provider's VPN gateway, it cannot be an IP address from Google Compute
       Engine. Must specify an IPv6 address (not IPV4-mapped) using any format
       described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format
       is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
       
      optional string ipv6_address = 341563804;
      Parameters:
      value - The bytes for ipv6Address to set.
      Returns:
      This builder for chaining.