Enum Subnetwork.Role

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

    public static enum Subnetwork.Role
    extends Enum<Subnetwork.Role>
    implements com.google.protobuf.ProtocolMessageEnum
     The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE 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.Subnetwork.Role
    • Enum Constant Detail

      • UNDEFINED_ROLE

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

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

        public static final Subnetwork.Role BACKUP
         The BACKUP subnet that could be promoted to ACTIVE.
         
        BACKUP = 341010882;
    • Field Detail

      • 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:
        Constant Field Values
      • ACTIVE_VALUE

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

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

      • values

        public static Subnetwork.Role[] 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.Role c : Subnetwork.Role.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.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 Subnetwork.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 Subnetwork.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<Subnetwork.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static Subnetwork.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