Class HTTPFault
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.envoyproxy.envoy.extensions.filters.http.fault.v3.HTTPFault
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,HTTPFaultOrBuilder
,Serializable
public final class HTTPFault
extends com.google.protobuf.GeneratedMessage
implements HTTPFaultOrBuilder
[#next-free-field: 17]Protobuf type
envoy.extensions.filters.http.fault.v3.HTTPFault
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FaultAbort
static final int
static final int
static final int
static final int
private Object
private Object
private Object
private int
private static final HTTPFault
private FaultDelay
static final int
static final int
static final int
private Object
private Object
static final int
private boolean
static final int
private com.google.protobuf.LazyStringArrayList
static final int
private com.google.protobuf.Struct
private List
<HeaderMatcher> static final int
static final int
static final int
private com.google.protobuf.UInt32Value
private Object
private byte
private static final com.google.protobuf.Parser
<HTTPFault> static final int
static final int
private FaultRateLimit
private Object
private static final long
static final int
private Object
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAbort()
If specified, the filter will abort requests based on the values in the object.The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.If specified, the filter will abort requests based on the values in the object.The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.static HTTPFault
getDelay()
If specified, the filter will inject delays based on the values in the object.The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.If specified, the filter will inject delays based on the values in the object.The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.static final com.google.protobuf.Descriptors.Descriptor
boolean
To control whether stats storage is allocated dynamically for each downstream server.getDownstreamNodes
(int index) Faults are injected for the specified list of downstream hosts.com.google.protobuf.ByteString
getDownstreamNodesBytes
(int index) Faults are injected for the specified list of downstream hosts.int
Faults are injected for the specified list of downstream hosts.com.google.protobuf.ProtocolStringList
Faults are injected for the specified list of downstream hosts.com.google.protobuf.Struct
When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter.com.google.protobuf.StructOrBuilder
When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter.getHeaders
(int index) Specifies a set of headers that the filter should match on.int
Specifies a set of headers that the filter should match on.Specifies a set of headers that the filter should match on.getHeadersOrBuilder
(int index) Specifies a set of headers that the filter should match on.List
<? extends HeaderMatcherOrBuilder> Specifies a set of headers that the filter should match on.com.google.protobuf.UInt32Value
The maximum number of faults that can be active at a single time via the configured fault filter.com.google.protobuf.UInt32ValueOrBuilder
The maximum number of faults that can be active at a single time via the configured fault filter.The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.Parser
<HTTPFault> The response rate limit to be applied to the response body of the stream.The response rate limit to be applied to the response body of the stream.The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.int
Specifies the name of the (destination) upstream cluster that the filter should match on.com.google.protobuf.ByteString
Specifies the name of the (destination) upstream cluster that the filter should match on.boolean
hasAbort()
If specified, the filter will abort requests based on the values in the object.boolean
hasDelay()
If specified, the filter will inject delays based on the values in the object.boolean
When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter.int
hashCode()
boolean
The maximum number of faults that can be active at a single time via the configured fault filter.boolean
The response rate limit to be applied to the response body of the stream.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
static HTTPFault.Builder
static HTTPFault.Builder
newBuilder
(HTTPFault prototype) protected HTTPFault.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static HTTPFault
parseDelimitedFrom
(InputStream input) static HTTPFault
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HTTPFault
parseFrom
(byte[] data) static HTTPFault
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HTTPFault
parseFrom
(com.google.protobuf.ByteString data) static HTTPFault
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HTTPFault
parseFrom
(com.google.protobuf.CodedInputStream input) static HTTPFault
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HTTPFault
parseFrom
(InputStream input) static HTTPFault
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HTTPFault
parseFrom
(ByteBuffer data) static HTTPFault
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<HTTPFault> parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
DELAY_FIELD_NUMBER
public static final int DELAY_FIELD_NUMBER- See Also:
-
delay_
-
ABORT_FIELD_NUMBER
public static final int ABORT_FIELD_NUMBER- See Also:
-
abort_
-
UPSTREAM_CLUSTER_FIELD_NUMBER
public static final int UPSTREAM_CLUSTER_FIELD_NUMBER- See Also:
-
upstreamCluster_
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER- See Also:
-
headers_
-
DOWNSTREAM_NODES_FIELD_NUMBER
public static final int DOWNSTREAM_NODES_FIELD_NUMBER- See Also:
-
downstreamNodes_
private com.google.protobuf.LazyStringArrayList downstreamNodes_ -
MAX_ACTIVE_FAULTS_FIELD_NUMBER
public static final int MAX_ACTIVE_FAULTS_FIELD_NUMBER- See Also:
-
maxActiveFaults_
private com.google.protobuf.UInt32Value maxActiveFaults_ -
RESPONSE_RATE_LIMIT_FIELD_NUMBER
public static final int RESPONSE_RATE_LIMIT_FIELD_NUMBER- See Also:
-
responseRateLimit_
-
DELAY_PERCENT_RUNTIME_FIELD_NUMBER
public static final int DELAY_PERCENT_RUNTIME_FIELD_NUMBER- See Also:
-
delayPercentRuntime_
-
ABORT_PERCENT_RUNTIME_FIELD_NUMBER
public static final int ABORT_PERCENT_RUNTIME_FIELD_NUMBER- See Also:
-
abortPercentRuntime_
-
DELAY_DURATION_RUNTIME_FIELD_NUMBER
public static final int DELAY_DURATION_RUNTIME_FIELD_NUMBER- See Also:
-
delayDurationRuntime_
-
ABORT_HTTP_STATUS_RUNTIME_FIELD_NUMBER
public static final int ABORT_HTTP_STATUS_RUNTIME_FIELD_NUMBER- See Also:
-
abortHttpStatusRuntime_
-
MAX_ACTIVE_FAULTS_RUNTIME_FIELD_NUMBER
public static final int MAX_ACTIVE_FAULTS_RUNTIME_FIELD_NUMBER- See Also:
-
maxActiveFaultsRuntime_
-
RESPONSE_RATE_LIMIT_PERCENT_RUNTIME_FIELD_NUMBER
public static final int RESPONSE_RATE_LIMIT_PERCENT_RUNTIME_FIELD_NUMBER- See Also:
-
responseRateLimitPercentRuntime_
-
ABORT_GRPC_STATUS_RUNTIME_FIELD_NUMBER
public static final int ABORT_GRPC_STATUS_RUNTIME_FIELD_NUMBER- See Also:
-
abortGrpcStatusRuntime_
-
DISABLE_DOWNSTREAM_CLUSTER_STATS_FIELD_NUMBER
public static final int DISABLE_DOWNSTREAM_CLUSTER_STATS_FIELD_NUMBER- See Also:
-
disableDownstreamClusterStats_
private boolean disableDownstreamClusterStats_ -
FILTER_METADATA_FIELD_NUMBER
public static final int FILTER_METADATA_FIELD_NUMBER- See Also:
-
filterMetadata_
private com.google.protobuf.Struct filterMetadata_ -
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
HTTPFault
private HTTPFault(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
HTTPFault
private HTTPFault()
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
hasDelay
public boolean hasDelay()If specified, the filter will inject delays based on the values in the object.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 1;
- Specified by:
hasDelay
in interfaceHTTPFaultOrBuilder
- Returns:
- Whether the delay field is set.
-
getDelay
If specified, the filter will inject delays based on the values in the object.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 1;
- Specified by:
getDelay
in interfaceHTTPFaultOrBuilder
- Returns:
- The delay.
-
getDelayOrBuilder
If specified, the filter will inject delays based on the values in the object.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 1;
- Specified by:
getDelayOrBuilder
in interfaceHTTPFaultOrBuilder
-
hasAbort
public boolean hasAbort()If specified, the filter will abort requests based on the values in the object. At least ``abort`` or ``delay`` must be specified.
.envoy.extensions.filters.http.fault.v3.FaultAbort abort = 2;
- Specified by:
hasAbort
in interfaceHTTPFaultOrBuilder
- Returns:
- Whether the abort field is set.
-
getAbort
If specified, the filter will abort requests based on the values in the object. At least ``abort`` or ``delay`` must be specified.
.envoy.extensions.filters.http.fault.v3.FaultAbort abort = 2;
- Specified by:
getAbort
in interfaceHTTPFaultOrBuilder
- Returns:
- The abort.
-
getAbortOrBuilder
If specified, the filter will abort requests based on the values in the object. At least ``abort`` or ``delay`` must be specified.
.envoy.extensions.filters.http.fault.v3.FaultAbort abort = 2;
- Specified by:
getAbortOrBuilder
in interfaceHTTPFaultOrBuilder
-
getUpstreamCluster
Specifies the name of the (destination) upstream cluster that the filter should match on. Fault injection will be restricted to requests bound to the specific upstream cluster.
string upstream_cluster = 3;
- Specified by:
getUpstreamCluster
in interfaceHTTPFaultOrBuilder
- Returns:
- The upstreamCluster.
-
getUpstreamClusterBytes
public com.google.protobuf.ByteString getUpstreamClusterBytes()Specifies the name of the (destination) upstream cluster that the filter should match on. Fault injection will be restricted to requests bound to the specific upstream cluster.
string upstream_cluster = 3;
- Specified by:
getUpstreamClusterBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for upstreamCluster.
-
getHeadersList
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percentage <envoy_v3_api_field_extensions.filters.http.fault.v3.FaultAbort.percentage>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the ``value`` field is not in the config).
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;
- Specified by:
getHeadersList
in interfaceHTTPFaultOrBuilder
-
getHeadersOrBuilderList
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percentage <envoy_v3_api_field_extensions.filters.http.fault.v3.FaultAbort.percentage>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the ``value`` field is not in the config).
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;
- Specified by:
getHeadersOrBuilderList
in interfaceHTTPFaultOrBuilder
-
getHeadersCount
public int getHeadersCount()Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percentage <envoy_v3_api_field_extensions.filters.http.fault.v3.FaultAbort.percentage>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the ``value`` field is not in the config).
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;
- Specified by:
getHeadersCount
in interfaceHTTPFaultOrBuilder
-
getHeaders
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percentage <envoy_v3_api_field_extensions.filters.http.fault.v3.FaultAbort.percentage>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the ``value`` field is not in the config).
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;
- Specified by:
getHeaders
in interfaceHTTPFaultOrBuilder
-
getHeadersOrBuilder
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percentage <envoy_v3_api_field_extensions.filters.http.fault.v3.FaultAbort.percentage>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the ``value`` field is not in the config).
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;
- Specified by:
getHeadersOrBuilder
in interfaceHTTPFaultOrBuilder
-
getDownstreamNodesList
public com.google.protobuf.ProtocolStringList getDownstreamNodesList()Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;
- Specified by:
getDownstreamNodesList
in interfaceHTTPFaultOrBuilder
- Returns:
- A list containing the downstreamNodes.
-
getDownstreamNodesCount
public int getDownstreamNodesCount()Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;
- Specified by:
getDownstreamNodesCount
in interfaceHTTPFaultOrBuilder
- Returns:
- The count of downstreamNodes.
-
getDownstreamNodes
Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;
- Specified by:
getDownstreamNodes
in interfaceHTTPFaultOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The downstreamNodes at the given index.
-
getDownstreamNodesBytes
public com.google.protobuf.ByteString getDownstreamNodesBytes(int index) Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;
- Specified by:
getDownstreamNodesBytes
in interfaceHTTPFaultOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the downstreamNodes at the given index.
-
hasMaxActiveFaults
public boolean hasMaxActiveFaults()The maximum number of faults that can be active at a single time via the configured fault filter. Note that because this setting can be overridden at the route level, it's possible for the number of active faults to be greater than this value (if injected via a different route). If not specified, defaults to unlimited. This setting can be overridden via ``runtime <config_http_filters_fault_injection_runtime>`` and any faults that are not injected due to overflow will be indicated via the ``faults_overflow <config_http_filters_fault_injection_stats>`` stat. .. attention:: Like other :ref:`circuit breakers <arch_overview_circuit_break>` in Envoy, this is a fuzzy limit. It's possible for the number of active faults to rise slightly above the configured amount due to the implementation details.
.google.protobuf.UInt32Value max_active_faults = 6;
- Specified by:
hasMaxActiveFaults
in interfaceHTTPFaultOrBuilder
- Returns:
- Whether the maxActiveFaults field is set.
-
getMaxActiveFaults
public com.google.protobuf.UInt32Value getMaxActiveFaults()The maximum number of faults that can be active at a single time via the configured fault filter. Note that because this setting can be overridden at the route level, it's possible for the number of active faults to be greater than this value (if injected via a different route). If not specified, defaults to unlimited. This setting can be overridden via ``runtime <config_http_filters_fault_injection_runtime>`` and any faults that are not injected due to overflow will be indicated via the ``faults_overflow <config_http_filters_fault_injection_stats>`` stat. .. attention:: Like other :ref:`circuit breakers <arch_overview_circuit_break>` in Envoy, this is a fuzzy limit. It's possible for the number of active faults to rise slightly above the configured amount due to the implementation details.
.google.protobuf.UInt32Value max_active_faults = 6;
- Specified by:
getMaxActiveFaults
in interfaceHTTPFaultOrBuilder
- Returns:
- The maxActiveFaults.
-
getMaxActiveFaultsOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxActiveFaultsOrBuilder()The maximum number of faults that can be active at a single time via the configured fault filter. Note that because this setting can be overridden at the route level, it's possible for the number of active faults to be greater than this value (if injected via a different route). If not specified, defaults to unlimited. This setting can be overridden via ``runtime <config_http_filters_fault_injection_runtime>`` and any faults that are not injected due to overflow will be indicated via the ``faults_overflow <config_http_filters_fault_injection_stats>`` stat. .. attention:: Like other :ref:`circuit breakers <arch_overview_circuit_break>` in Envoy, this is a fuzzy limit. It's possible for the number of active faults to rise slightly above the configured amount due to the implementation details.
.google.protobuf.UInt32Value max_active_faults = 6;
- Specified by:
getMaxActiveFaultsOrBuilder
in interfaceHTTPFaultOrBuilder
-
hasResponseRateLimit
public boolean hasResponseRateLimit()The response rate limit to be applied to the response body of the stream. When configured, the percentage can be overridden by the :ref:`fault.http.rate_limit.response_percent <config_http_filters_fault_injection_runtime>` runtime key. .. attention:: This is a per-stream limit versus a connection level limit. This means that concurrent streams will each get an independent limit.
.envoy.extensions.filters.common.fault.v3.FaultRateLimit response_rate_limit = 7;
- Specified by:
hasResponseRateLimit
in interfaceHTTPFaultOrBuilder
- Returns:
- Whether the responseRateLimit field is set.
-
getResponseRateLimit
The response rate limit to be applied to the response body of the stream. When configured, the percentage can be overridden by the :ref:`fault.http.rate_limit.response_percent <config_http_filters_fault_injection_runtime>` runtime key. .. attention:: This is a per-stream limit versus a connection level limit. This means that concurrent streams will each get an independent limit.
.envoy.extensions.filters.common.fault.v3.FaultRateLimit response_rate_limit = 7;
- Specified by:
getResponseRateLimit
in interfaceHTTPFaultOrBuilder
- Returns:
- The responseRateLimit.
-
getResponseRateLimitOrBuilder
The response rate limit to be applied to the response body of the stream. When configured, the percentage can be overridden by the :ref:`fault.http.rate_limit.response_percent <config_http_filters_fault_injection_runtime>` runtime key. .. attention:: This is a per-stream limit versus a connection level limit. This means that concurrent streams will each get an independent limit.
.envoy.extensions.filters.common.fault.v3.FaultRateLimit response_rate_limit = 7;
- Specified by:
getResponseRateLimitOrBuilder
in interfaceHTTPFaultOrBuilder
-
getDelayPercentRuntime
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.delay.fixed_delay_percent
string delay_percent_runtime = 8;
- Specified by:
getDelayPercentRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The delayPercentRuntime.
-
getDelayPercentRuntimeBytes
public com.google.protobuf.ByteString getDelayPercentRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.delay.fixed_delay_percent
string delay_percent_runtime = 8;
- Specified by:
getDelayPercentRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for delayPercentRuntime.
-
getAbortPercentRuntime
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.abort_percent
string abort_percent_runtime = 9;
- Specified by:
getAbortPercentRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The abortPercentRuntime.
-
getAbortPercentRuntimeBytes
public com.google.protobuf.ByteString getAbortPercentRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.abort_percent
string abort_percent_runtime = 9;
- Specified by:
getAbortPercentRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for abortPercentRuntime.
-
getDelayDurationRuntime
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.delay.fixed_duration_ms
string delay_duration_runtime = 10;
- Specified by:
getDelayDurationRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The delayDurationRuntime.
-
getDelayDurationRuntimeBytes
public com.google.protobuf.ByteString getDelayDurationRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.delay.fixed_duration_ms
string delay_duration_runtime = 10;
- Specified by:
getDelayDurationRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for delayDurationRuntime.
-
getAbortHttpStatusRuntime
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.http_status
string abort_http_status_runtime = 11;
- Specified by:
getAbortHttpStatusRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The abortHttpStatusRuntime.
-
getAbortHttpStatusRuntimeBytes
public com.google.protobuf.ByteString getAbortHttpStatusRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.http_status
string abort_http_status_runtime = 11;
- Specified by:
getAbortHttpStatusRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for abortHttpStatusRuntime.
-
getMaxActiveFaultsRuntime
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.max_active_faults
string max_active_faults_runtime = 12;
- Specified by:
getMaxActiveFaultsRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The maxActiveFaultsRuntime.
-
getMaxActiveFaultsRuntimeBytes
public com.google.protobuf.ByteString getMaxActiveFaultsRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.max_active_faults
string max_active_faults_runtime = 12;
- Specified by:
getMaxActiveFaultsRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for maxActiveFaultsRuntime.
-
getResponseRateLimitPercentRuntime
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.rate_limit.response_percent
string response_rate_limit_percent_runtime = 13;
- Specified by:
getResponseRateLimitPercentRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The responseRateLimitPercentRuntime.
-
getResponseRateLimitPercentRuntimeBytes
public com.google.protobuf.ByteString getResponseRateLimitPercentRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.rate_limit.response_percent
string response_rate_limit_percent_runtime = 13;
- Specified by:
getResponseRateLimitPercentRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for responseRateLimitPercentRuntime.
-
getAbortGrpcStatusRuntime
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.grpc_status
string abort_grpc_status_runtime = 14;
- Specified by:
getAbortGrpcStatusRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The abortGrpcStatusRuntime.
-
getAbortGrpcStatusRuntimeBytes
public com.google.protobuf.ByteString getAbortGrpcStatusRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.grpc_status
string abort_grpc_status_runtime = 14;
- Specified by:
getAbortGrpcStatusRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for abortGrpcStatusRuntime.
-
getDisableDownstreamClusterStats
public boolean getDisableDownstreamClusterStats()To control whether stats storage is allocated dynamically for each downstream server. If set to true, "x-envoy-downstream-service-cluster" field of header will be ignored by this filter. If set to false, dynamic stats storage will be allocated for the downstream cluster name. Default value is false.
bool disable_downstream_cluster_stats = 15;
- Specified by:
getDisableDownstreamClusterStats
in interfaceHTTPFaultOrBuilder
- Returns:
- The disableDownstreamClusterStats.
-
hasFilterMetadata
public boolean hasFilterMetadata()When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter. This data can be logged as part of Access Logs using the :ref:`command operator <config_access_log_command_operators>` %DYNAMIC_METADATA(NAMESPACE)%, where NAMESPACE is the name of the fault filter.
.google.protobuf.Struct filter_metadata = 16;
- Specified by:
hasFilterMetadata
in interfaceHTTPFaultOrBuilder
- Returns:
- Whether the filterMetadata field is set.
-
getFilterMetadata
public com.google.protobuf.Struct getFilterMetadata()When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter. This data can be logged as part of Access Logs using the :ref:`command operator <config_access_log_command_operators>` %DYNAMIC_METADATA(NAMESPACE)%, where NAMESPACE is the name of the fault filter.
.google.protobuf.Struct filter_metadata = 16;
- Specified by:
getFilterMetadata
in interfaceHTTPFaultOrBuilder
- Returns:
- The filterMetadata.
-
getFilterMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getFilterMetadataOrBuilder()When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter. This data can be logged as part of Access Logs using the :ref:`command operator <config_access_log_command_operators>` %DYNAMIC_METADATA(NAMESPACE)%, where NAMESPACE is the name of the fault filter.
.google.protobuf.Struct filter_metadata = 16;
- Specified by:
getFilterMetadataOrBuilder
in interfaceHTTPFaultOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HTTPFault parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static HTTPFault parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static HTTPFault parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static HTTPFault parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HTTPFault.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-