Interface RedisProxy.RedisFaultOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RedisProxy.RedisFault,RedisProxy.RedisFault.Builder
- Enclosing class:
- RedisProxy
public static interface RedisProxy.RedisFaultOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetCommands(int index) Commands fault is restricted to, if any.com.google.protobuf.ByteStringgetCommandsBytes(int index) Commands fault is restricted to, if any.intCommands fault is restricted to, if any.Commands fault is restricted to, if any.com.google.protobuf.DurationgetDelay()Delay for all faults.com.google.protobuf.DurationOrBuilderDelay for all faults.Percentage of requests fault applies to.Percentage of requests fault applies to.Fault type.intFault type.booleanhasDelay()Delay for all faults.booleanPercentage of requests fault applies to.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getFaultTypeValue
int getFaultTypeValue()Fault type.
.envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.RedisFault.RedisFaultType fault_type = 1 [(.validate.rules) = { ... }- Returns:
- The enum numeric value on the wire for faultType.
-
getFaultType
RedisProxy.RedisFault.RedisFaultType getFaultType()Fault type.
.envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.RedisFault.RedisFaultType fault_type = 1 [(.validate.rules) = { ... }- Returns:
- The faultType.
-
hasFaultEnabled
boolean hasFaultEnabled()Percentage of requests fault applies to.
.envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... }- Returns:
- Whether the faultEnabled field is set.
-
getFaultEnabled
RuntimeFractionalPercent getFaultEnabled()Percentage of requests fault applies to.
.envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... }- Returns:
- The faultEnabled.
-
getFaultEnabledOrBuilder
RuntimeFractionalPercentOrBuilder getFaultEnabledOrBuilder()Percentage of requests fault applies to.
.envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... } -
hasDelay
boolean hasDelay()Delay for all faults. If not set, defaults to zero
.google.protobuf.Duration delay = 3;- Returns:
- Whether the delay field is set.
-
getDelay
com.google.protobuf.Duration getDelay()Delay for all faults. If not set, defaults to zero
.google.protobuf.Duration delay = 3;- Returns:
- The delay.
-
getDelayOrBuilder
com.google.protobuf.DurationOrBuilder getDelayOrBuilder()Delay for all faults. If not set, defaults to zero
.google.protobuf.Duration delay = 3; -
getCommandsList
Commands fault is restricted to, if any. If not set, fault applies to all commands other than auth and ping (due to special handling of those commands in Envoy).
repeated string commands = 4;- Returns:
- A list containing the commands.
-
getCommandsCount
int getCommandsCount()Commands fault is restricted to, if any. If not set, fault applies to all commands other than auth and ping (due to special handling of those commands in Envoy).
repeated string commands = 4;- Returns:
- The count of commands.
-
getCommands
Commands fault is restricted to, if any. If not set, fault applies to all commands other than auth and ping (due to special handling of those commands in Envoy).
repeated string commands = 4;- Parameters:
index- The index of the element to return.- Returns:
- The commands at the given index.
-
getCommandsBytes
com.google.protobuf.ByteString getCommandsBytes(int index) Commands fault is restricted to, if any. If not set, fault applies to all commands other than auth and ping (due to special handling of those commands in Envoy).
repeated string commands = 4;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the commands at the given index.
-