Enum ServiceConfig.SecurityLevel

java.lang.Object
java.lang.Enum<ServiceConfig.SecurityLevel>
com.google.cloud.functions.v2.ServiceConfig.SecurityLevel
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ServiceConfig.SecurityLevel>
Enclosing class:
ServiceConfig

public static enum ServiceConfig.SecurityLevel extends Enum<ServiceConfig.SecurityLevel> implements com.google.protobuf.ProtocolMessageEnum
 Available security level settings.

 This enforces security protocol on function URL.

 Security level is only configurable for 1st Gen functions, If unspecified,
 SECURE_OPTIONAL will be used. 2nd Gen functions are SECURE_ALWAYS ONLY.
 
Protobuf enum google.cloud.functions.v2.ServiceConfig.SecurityLevel
  • Enum Constant Details

    • SECURITY_LEVEL_UNSPECIFIED

      public static final ServiceConfig.SecurityLevel SECURITY_LEVEL_UNSPECIFIED
       Unspecified.
       
      SECURITY_LEVEL_UNSPECIFIED = 0;
    • SECURE_ALWAYS

      public static final ServiceConfig.SecurityLevel SECURE_ALWAYS
       Requests for a URL that match this handler that do not use HTTPS are
       automatically redirected to the HTTPS URL with the same path. Query
       parameters are reserved for the redirect.
       
      SECURE_ALWAYS = 1;
    • SECURE_OPTIONAL

      public static final ServiceConfig.SecurityLevel SECURE_OPTIONAL
       Both HTTP and HTTPS requests with URLs that match the handler succeed
       without redirects. The application can examine the request to determine
       which protocol was used and respond accordingly.
       
      SECURE_OPTIONAL = 2;
    • UNRECOGNIZED

      public static final ServiceConfig.SecurityLevel UNRECOGNIZED
  • Field Details

    • SECURITY_LEVEL_UNSPECIFIED_VALUE

      public static final int SECURITY_LEVEL_UNSPECIFIED_VALUE
       Unspecified.
       
      SECURITY_LEVEL_UNSPECIFIED = 0;
      See Also:
    • SECURE_ALWAYS_VALUE

      public static final int SECURE_ALWAYS_VALUE
       Requests for a URL that match this handler that do not use HTTPS are
       automatically redirected to the HTTPS URL with the same path. Query
       parameters are reserved for the redirect.
       
      SECURE_ALWAYS = 1;
      See Also:
    • SECURE_OPTIONAL_VALUE

      public static final int SECURE_OPTIONAL_VALUE
       Both HTTP and HTTPS requests with URLs that match the handler succeed
       without redirects. The application can examine the request to determine
       which protocol was used and respond accordingly.
       
      SECURE_OPTIONAL = 2;
      See Also:
  • Method Details

    • values

      public static ServiceConfig.SecurityLevel[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ServiceConfig.SecurityLevel 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 ServiceConfig.SecurityLevel 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 ServiceConfig.SecurityLevel 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<ServiceConfig.SecurityLevel> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ServiceConfig.SecurityLevel 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