Enum PluginInstanceAction.State

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

public static enum PluginInstanceAction.State extends Enum<PluginInstanceAction.State> implements com.google.protobuf.ProtocolMessageEnum
 State represents the state of the plugin instance action.
 
Protobuf enum google.cloud.apihub.v1.PluginInstanceAction.State
  • Enum Constant Details

    • STATE_UNSPECIFIED

      public static final PluginInstanceAction.State STATE_UNSPECIFIED
       Default unspecified state.
       
      STATE_UNSPECIFIED = 0;
    • ENABLED

      public static final PluginInstanceAction.State ENABLED
       The action is enabled in the plugin instance i.e., executions can
       be triggered for this action.
       
      ENABLED = 1;
    • DISABLED

      public static final PluginInstanceAction.State DISABLED
       The action is disabled in the plugin instance i.e., no executions
       can be triggered for this action. This state indicates that the user
       explicitly disabled the instance, and no further action is needed unless
       the user wants to re-enable it.
       
      DISABLED = 2;
    • ENABLING

      public static final PluginInstanceAction.State ENABLING
       The action in the plugin instance is being enabled.
       
      ENABLING = 3;
    • DISABLING

      public static final PluginInstanceAction.State DISABLING
       The action in the plugin instance is being disabled.
       
      DISABLING = 4;
    • ERROR

      public static final PluginInstanceAction.State ERROR
       The ERROR state can come while enabling/disabling plugin instance action.
       Users can retrigger enable, disable via
       [EnablePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.EnablePluginInstanceAction]
       and
       [DisablePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.DisablePluginInstanceAction]
       to restore the action back to enabled/disabled state. Note enable/disable
       on actions can only be triggered if plugin instance is in Active state.
       
      ERROR = 5;
    • UNRECOGNIZED

      public static final PluginInstanceAction.State UNRECOGNIZED
  • Field Details

    • STATE_UNSPECIFIED_VALUE

      public static final int STATE_UNSPECIFIED_VALUE
       Default unspecified state.
       
      STATE_UNSPECIFIED = 0;
      See Also:
    • ENABLED_VALUE

      public static final int ENABLED_VALUE
       The action is enabled in the plugin instance i.e., executions can
       be triggered for this action.
       
      ENABLED = 1;
      See Also:
    • DISABLED_VALUE

      public static final int DISABLED_VALUE
       The action is disabled in the plugin instance i.e., no executions
       can be triggered for this action. This state indicates that the user
       explicitly disabled the instance, and no further action is needed unless
       the user wants to re-enable it.
       
      DISABLED = 2;
      See Also:
    • ENABLING_VALUE

      public static final int ENABLING_VALUE
       The action in the plugin instance is being enabled.
       
      ENABLING = 3;
      See Also:
    • DISABLING_VALUE

      public static final int DISABLING_VALUE
       The action in the plugin instance is being disabled.
       
      DISABLING = 4;
      See Also:
    • ERROR_VALUE

      public static final int ERROR_VALUE
       The ERROR state can come while enabling/disabling plugin instance action.
       Users can retrigger enable, disable via
       [EnablePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.EnablePluginInstanceAction]
       and
       [DisablePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.DisablePluginInstanceAction]
       to restore the action back to enabled/disabled state. Note enable/disable
       on actions can only be triggered if plugin instance is in Active state.
       
      ERROR = 5;
      See Also:
  • Method Details

    • values

      public static PluginInstanceAction.State[] 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 PluginInstanceAction.State 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 PluginInstanceAction.State 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 PluginInstanceAction.State 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<PluginInstanceAction.State> 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 PluginInstanceAction.State 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