Enum PluginInstance.State

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

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

    • STATE_UNSPECIFIED

      public static final PluginInstance.State STATE_UNSPECIFIED
       Default unspecified state.
       
      STATE_UNSPECIFIED = 0;
    • CREATING

      public static final PluginInstance.State CREATING
       The plugin instance is being created.
       
      CREATING = 1;
    • ACTIVE

      public static final PluginInstance.State ACTIVE
       The plugin instance is active and ready for executions. This is the only
       state where executions can run on the plugin instance.
       
      ACTIVE = 2;
    • APPLYING_CONFIG

      public static final PluginInstance.State APPLYING_CONFIG
       The updated config that contains
       [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config]
       and [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] is
       being applied.
       
      APPLYING_CONFIG = 3;
    • ERROR

      public static final PluginInstance.State ERROR
       The ERROR state can come while applying config. Users
       can retrigger
       [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig]
       to restore the plugin instance back to active state. Note, In case the
       ERROR state happens while applying config (auth_config,
       additional_config), the plugin instance will reflect the config which was
       trying to be applied while error happened. In order to overwrite, trigger
       ApplyConfig with a new config.
       
      ERROR = 4;
    • FAILED

      public static final PluginInstance.State FAILED
       The plugin instance is in a failed state. This indicates that an
       unrecoverable error occurred during a previous operation (Create,
       Delete).
       
      FAILED = 5;
    • DELETING

      public static final PluginInstance.State DELETING
       The plugin instance is being deleted. Delete is only possible if there is
       no other operation running on the plugin instance and plugin instance
       action.
       
      DELETING = 6;
    • UNRECOGNIZED

      public static final PluginInstance.State UNRECOGNIZED
  • Field Details

    • STATE_UNSPECIFIED_VALUE

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

      public static final int CREATING_VALUE
       The plugin instance is being created.
       
      CREATING = 1;
      See Also:
    • ACTIVE_VALUE

      public static final int ACTIVE_VALUE
       The plugin instance is active and ready for executions. This is the only
       state where executions can run on the plugin instance.
       
      ACTIVE = 2;
      See Also:
    • APPLYING_CONFIG_VALUE

      public static final int APPLYING_CONFIG_VALUE
       The updated config that contains
       [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config]
       and [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] is
       being applied.
       
      APPLYING_CONFIG = 3;
      See Also:
    • ERROR_VALUE

      public static final int ERROR_VALUE
       The ERROR state can come while applying config. Users
       can retrigger
       [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig]
       to restore the plugin instance back to active state. Note, In case the
       ERROR state happens while applying config (auth_config,
       additional_config), the plugin instance will reflect the config which was
       trying to be applied while error happened. In order to overwrite, trigger
       ApplyConfig with a new config.
       
      ERROR = 4;
      See Also:
    • FAILED_VALUE

      public static final int FAILED_VALUE
       The plugin instance is in a failed state. This indicates that an
       unrecoverable error occurred during a previous operation (Create,
       Delete).
       
      FAILED = 5;
      See Also:
    • DELETING_VALUE

      public static final int DELETING_VALUE
       The plugin instance is being deleted. Delete is only possible if there is
       no other operation running on the plugin instance and plugin instance
       action.
       
      DELETING = 6;
      See Also:
  • Method Details

    • values

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