All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.extensions.wasm.v3.FailurePolicy Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/extensions/wasm/v3/wasm.proto

// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.extensions.wasm.v3;

/**
 * 
 * If there is a fatal error on the VM (e.g. exception, abort()), then the policy will be applied.
 * 
* * Protobuf enum {@code envoy.extensions.wasm.v3.FailurePolicy} */ public enum FailurePolicy implements com.google.protobuf.ProtocolMessageEnum { /** *
   * No policy is specified. The default policy will be used. The default policy is ``FAIL_CLOSED``.
   * 
* * UNSPECIFIED = 0; */ UNSPECIFIED(0), /** *
   * New plugin instance will be created for the new request if the VM is failed. Note this only
   * be applied to the following failures:
   *
   * * ``proxy_wasm::FailState::RuntimeError``
   *
   * This will fallback to the ``FAIL_CLOSED`` for all other failures.
   * 
* * FAIL_RELOAD = 1; */ FAIL_RELOAD(1), /** *
   * All plugins associated with the VM will return an HTTP 503 error.
   * 
* * FAIL_CLOSED = 2; */ FAIL_CLOSED(2), /** *
   * All plugins associated with the VM will be ignored and the filter chain will continue. This
   * makes sense when the plugin is optional.
   * 
* * FAIL_OPEN = 3; */ FAIL_OPEN(3), UNRECOGNIZED(-1), ; /** *
   * No policy is specified. The default policy will be used. The default policy is ``FAIL_CLOSED``.
   * 
* * UNSPECIFIED = 0; */ public static final int UNSPECIFIED_VALUE = 0; /** *
   * New plugin instance will be created for the new request if the VM is failed. Note this only
   * be applied to the following failures:
   *
   * * ``proxy_wasm::FailState::RuntimeError``
   *
   * This will fallback to the ``FAIL_CLOSED`` for all other failures.
   * 
* * FAIL_RELOAD = 1; */ public static final int FAIL_RELOAD_VALUE = 1; /** *
   * All plugins associated with the VM will return an HTTP 503 error.
   * 
* * FAIL_CLOSED = 2; */ public static final int FAIL_CLOSED_VALUE = 2; /** *
   * All plugins associated with the VM will be ignored and the filter chain will continue. This
   * makes sense when the plugin is optional.
   * 
* * FAIL_OPEN = 3; */ public static final int FAIL_OPEN_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FailurePolicy valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static FailurePolicy forNumber(int value) { switch (value) { case 0: return UNSPECIFIED; case 1: return FAIL_RELOAD; case 2: return FAIL_CLOSED; case 3: return FAIL_OPEN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< FailurePolicy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public FailurePolicy findValueByNumber(int number) { return FailurePolicy.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.envoyproxy.envoy.extensions.wasm.v3.WasmProto.getDescriptor().getEnumTypes().get(0); } private static final FailurePolicy[] VALUES = values(); public static FailurePolicy valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private FailurePolicy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:envoy.extensions.wasm.v3.FailurePolicy) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy