Enum Subnetwork.Purpose

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Subnetwork.Purpose>
    Enclosing class:
    Subnetwork

    public static enum Subnetwork.Purpose
    extends Enum<Subnetwork.Purpose>
    implements com.google.protobuf.ProtocolMessageEnum
     The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
     
    Protobuf enum google.cloud.compute.v1.Subnetwork.Purpose
    • Enum Constant Detail

      • UNDEFINED_PURPOSE

        public static final Subnetwork.Purpose UNDEFINED_PURPOSE
         A value indicating that the enum field is not set.
         
        UNDEFINED_PURPOSE = 0;
      • INTERNAL_HTTPS_LOAD_BALANCER

        public static final Subnetwork.Purpose INTERNAL_HTTPS_LOAD_BALANCER
         Subnet reserved for Internal HTTP(S) Load Balancing.
         
        INTERNAL_HTTPS_LOAD_BALANCER = 248748889;
      • PRIVATE

        public static final Subnetwork.Purpose PRIVATE
         Regular user created or automatically created subnet.
         
        PRIVATE = 403485027;
      • PRIVATE_RFC_1918

        public static final Subnetwork.Purpose PRIVATE_RFC_1918
         Regular user created or automatically created subnet.
         
        PRIVATE_RFC_1918 = 254902107;
      • PRIVATE_SERVICE_CONNECT

        public static final Subnetwork.Purpose PRIVATE_SERVICE_CONNECT
         Subnetworks created for Private Service Connect in the producer network.
         
        PRIVATE_SERVICE_CONNECT = 48134724;
      • REGIONAL_MANAGED_PROXY

        public static final Subnetwork.Purpose REGIONAL_MANAGED_PROXY
         Subnetwork used for Regional Internal/External HTTP(S) Load Balancing.
         
        REGIONAL_MANAGED_PROXY = 153049966;
    • Field Detail

      • UNDEFINED_PURPOSE_VALUE

        public static final int UNDEFINED_PURPOSE_VALUE
         A value indicating that the enum field is not set.
         
        UNDEFINED_PURPOSE = 0;
        See Also:
        Constant Field Values
      • INTERNAL_HTTPS_LOAD_BALANCER_VALUE

        public static final int INTERNAL_HTTPS_LOAD_BALANCER_VALUE
         Subnet reserved for Internal HTTP(S) Load Balancing.
         
        INTERNAL_HTTPS_LOAD_BALANCER = 248748889;
        See Also:
        Constant Field Values
      • PRIVATE_VALUE

        public static final int PRIVATE_VALUE
         Regular user created or automatically created subnet.
         
        PRIVATE = 403485027;
        See Also:
        Constant Field Values
      • PRIVATE_RFC_1918_VALUE

        public static final int PRIVATE_RFC_1918_VALUE
         Regular user created or automatically created subnet.
         
        PRIVATE_RFC_1918 = 254902107;
        See Also:
        Constant Field Values
      • PRIVATE_SERVICE_CONNECT_VALUE

        public static final int PRIVATE_SERVICE_CONNECT_VALUE
         Subnetworks created for Private Service Connect in the producer network.
         
        PRIVATE_SERVICE_CONNECT = 48134724;
        See Also:
        Constant Field Values
      • REGIONAL_MANAGED_PROXY_VALUE

        public static final int REGIONAL_MANAGED_PROXY_VALUE
         Subnetwork used for Regional Internal/External HTTP(S) Load Balancing.
         
        REGIONAL_MANAGED_PROXY = 153049966;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Subnetwork.Purpose[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Subnetwork.Purpose c : Subnetwork.Purpose.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Subnetwork.Purpose valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static Subnetwork.Purpose valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static Subnetwork.Purpose forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<Subnetwork.Purpose> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static Subnetwork.Purpose valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null