Enum UsableSubnetwork.Role

java.lang.Object
java.lang.Enum<UsableSubnetwork.Role>
com.google.cloud.compute.v1.UsableSubnetwork.Role
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<UsableSubnetwork.Role>
Enclosing class:
UsableSubnetwork

public static enum UsableSubnetwork.Role extends Enum<UsableSubnetwork.Role> implements com.google.protobuf.ProtocolMessageEnum
 The role of subnetwork. Currently, this field is only used when
 purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE
 subnetwork is one that is currently being used for Envoy-based load
 balancers in a region. A BACKUP subnetwork is one that is
 ready to be promoted to ACTIVE or is currently draining.
 This field can be updated with a patch request.
 
Protobuf enum google.cloud.compute.v1.UsableSubnetwork.Role
  • Enum Constant Details

    • UNDEFINED_ROLE

      public static final UsableSubnetwork.Role UNDEFINED_ROLE
       A value indicating that the enum field is not set.
       
      UNDEFINED_ROLE = 0;
    • ACTIVE

      public static final UsableSubnetwork.Role ACTIVE
       The ACTIVE subnet that is currently used.
       
      ACTIVE = 314733318;
    • BACKUP

      public static final UsableSubnetwork.Role BACKUP
       The BACKUP subnet that could be promoted to ACTIVE.
       
      BACKUP = 341010882;
    • UNRECOGNIZED

      public static final UsableSubnetwork.Role UNRECOGNIZED
  • Field Details

    • UNDEFINED_ROLE_VALUE

      public static final int UNDEFINED_ROLE_VALUE
       A value indicating that the enum field is not set.
       
      UNDEFINED_ROLE = 0;
      See Also:
    • ACTIVE_VALUE

      public static final int ACTIVE_VALUE
       The ACTIVE subnet that is currently used.
       
      ACTIVE = 314733318;
      See Also:
    • BACKUP_VALUE

      public static final int BACKUP_VALUE
       The BACKUP subnet that could be promoted to ACTIVE.
       
      BACKUP = 341010882;
      See Also:
  • Method Details

    • values

      public static UsableSubnetwork.Role[] 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 UsableSubnetwork.Role 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 UsableSubnetwork.Role 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 UsableSubnetwork.Role 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<UsableSubnetwork.Role> 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 UsableSubnetwork.Role 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