Enum PluginActionConfig.TriggerMode

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

public static enum PluginActionConfig.TriggerMode extends Enum<PluginActionConfig.TriggerMode> implements com.google.protobuf.ProtocolMessageEnum
 Execution mode of the action.
 
Protobuf enum google.cloud.apihub.v1.PluginActionConfig.TriggerMode
  • Enum Constant Details

    • TRIGGER_MODE_UNSPECIFIED

      public static final PluginActionConfig.TriggerMode TRIGGER_MODE_UNSPECIFIED
       Default unspecified mode.
       
      TRIGGER_MODE_UNSPECIFIED = 0;
    • API_HUB_ON_DEMAND_TRIGGER

      public static final PluginActionConfig.TriggerMode API_HUB_ON_DEMAND_TRIGGER
       This action can be executed by invoking
       [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction]
       API with the given action id. To support this, the plugin hosting service
       should handle this action id as part of execute call.
       
      API_HUB_ON_DEMAND_TRIGGER = 1;
    • API_HUB_SCHEDULE_TRIGGER

      public static final PluginActionConfig.TriggerMode API_HUB_SCHEDULE_TRIGGER
       This action will be executed on schedule by invoking
       [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction]
       API with the given action id. To set the schedule, the user can provide
       the cron expression in the
       [PluginAction][PluginAction.schedule_cron_expression] field for a given
       plugin instance. To support this, the plugin hosting service should
       handle this action id as part of execute call.
       Note, on demand execution will be supported by default in this trigger
       mode.
       
      API_HUB_SCHEDULE_TRIGGER = 2;
    • NON_API_HUB_MANAGED

      public static final PluginActionConfig.TriggerMode NON_API_HUB_MANAGED
       The execution of this plugin is not handled by API hub. In this case,
       the plugin hosting service need not handle this action id as part of
       the execute call.
       
      NON_API_HUB_MANAGED = 3;
    • UNRECOGNIZED

      public static final PluginActionConfig.TriggerMode UNRECOGNIZED
  • Field Details

    • TRIGGER_MODE_UNSPECIFIED_VALUE

      public static final int TRIGGER_MODE_UNSPECIFIED_VALUE
       Default unspecified mode.
       
      TRIGGER_MODE_UNSPECIFIED = 0;
      See Also:
    • API_HUB_ON_DEMAND_TRIGGER_VALUE

      public static final int API_HUB_ON_DEMAND_TRIGGER_VALUE
       This action can be executed by invoking
       [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction]
       API with the given action id. To support this, the plugin hosting service
       should handle this action id as part of execute call.
       
      API_HUB_ON_DEMAND_TRIGGER = 1;
      See Also:
    • API_HUB_SCHEDULE_TRIGGER_VALUE

      public static final int API_HUB_SCHEDULE_TRIGGER_VALUE
       This action will be executed on schedule by invoking
       [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction]
       API with the given action id. To set the schedule, the user can provide
       the cron expression in the
       [PluginAction][PluginAction.schedule_cron_expression] field for a given
       plugin instance. To support this, the plugin hosting service should
       handle this action id as part of execute call.
       Note, on demand execution will be supported by default in this trigger
       mode.
       
      API_HUB_SCHEDULE_TRIGGER = 2;
      See Also:
    • NON_API_HUB_MANAGED_VALUE

      public static final int NON_API_HUB_MANAGED_VALUE
       The execution of this plugin is not handled by API hub. In this case,
       the plugin hosting service need not handle this action id as part of
       the execute call.
       
      NON_API_HUB_MANAGED = 3;
      See Also:
  • Method Details

    • values

      public static PluginActionConfig.TriggerMode[] 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 PluginActionConfig.TriggerMode 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 PluginActionConfig.TriggerMode 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 PluginActionConfig.TriggerMode 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<PluginActionConfig.TriggerMode> 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 PluginActionConfig.TriggerMode 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