Package com.google.cloud.apihub.v1
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 Summary
Enum ConstantsEnum ConstantDescriptionThis action can be executed by invoking [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction] API with the given action id.This action will be executed on schedule by invoking [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction] API with the given action id.The execution of this plugin is not handled by API hub.Default unspecified mode. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis action can be executed by invoking [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction] API with the given action id.static final intThis action will be executed on schedule by invoking [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction] API with the given action id.static final intThe execution of this plugin is not handled by API hub.static final intDefault unspecified mode. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PluginActionConfig.TriggerMode>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static PluginActionConfig.TriggerMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TRIGGER_MODE_UNSPECIFIED
Default unspecified mode.
TRIGGER_MODE_UNSPECIFIED = 0; -
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
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
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
-
-
Field Details
-
TRIGGER_MODE_UNSPECIFIED_VALUE
public static final int TRIGGER_MODE_UNSPECIFIED_VALUEDefault unspecified mode.
TRIGGER_MODE_UNSPECIFIED = 0;- See Also:
-
API_HUB_ON_DEMAND_TRIGGER_VALUE
public static final int API_HUB_ON_DEMAND_TRIGGER_VALUEThis 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_VALUEThis 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_VALUEThe 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
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<PluginActionConfig.TriggerMode> 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 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 nameNullPointerException- if the argument is null
-