Package com.google.cloud.apihub.v1
Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionThe action is disabled in the plugin instance i.e., no executions can be triggered for this action.The action in the plugin instance is being disabled.The action is enabled in the plugin instance i.e., executions can be triggered for this action.The action in the plugin instance is being enabled.The ERROR state can come while enabling/disabling plugin instance action.Default unspecified state. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe action is disabled in the plugin instance i.e., no executions can be triggered for this action.static final intThe action in the plugin instance is being disabled.static final intThe action is enabled in the plugin instance i.e., executions can be triggered for this action.static final intThe action in the plugin instance is being enabled.static final intThe ERROR state can come while enabling/disabling plugin instance action.static final intDefault unspecified state. -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginInstanceAction.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PluginInstanceAction.State>static PluginInstanceAction.StatevalueOf(int value) Deprecated.static PluginInstanceAction.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static PluginInstanceAction.StateReturns the enum constant of this type with the specified name.static PluginInstanceAction.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
Default unspecified state.
STATE_UNSPECIFIED = 0; -
ENABLED
The action is enabled in the plugin instance i.e., executions can be triggered for this action.
ENABLED = 1; -
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
The action in the plugin instance is being enabled.
ENABLING = 3; -
DISABLING
The action in the plugin instance is being disabled.
DISABLING = 4; -
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
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEDefault unspecified state.
STATE_UNSPECIFIED = 0;- See Also:
-
ENABLED_VALUE
public static final int ENABLED_VALUEThe 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_VALUEThe 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_VALUEThe action in the plugin instance is being enabled.
ENABLING = 3;- See Also:
-
DISABLING_VALUE
public static final int DISABLING_VALUEThe action in the plugin instance is being disabled.
DISABLING = 4;- See Also:
-
ERROR_VALUE
public static final int ERROR_VALUEThe 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
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-