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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCommands(int index)Commands fault is restricted to, if any.com.google.protobuf.ByteStringgetCommandsBytes(int index)Commands fault is restricted to, if any.intgetCommandsCount()Commands fault is restricted to, if any.List<String>getCommandsList()Commands fault is restricted to, if any.com.google.protobuf.DurationgetDelay()Delay for all faults.com.google.protobuf.DurationOrBuildergetDelayOrBuilder()Delay for all faults.RuntimeFractionalPercentgetFaultEnabled()Percentage of requests fault applies to.RuntimeFractionalPercentOrBuildergetFaultEnabledOrBuilder()Percentage of requests fault applies to.RedisProxy.RedisFault.RedisFaultTypegetFaultType()Fault type.intgetFaultTypeValue()Fault type.booleanhasDelay()Delay for all faults.booleanhasFaultEnabled()Percentage of requests fault applies to.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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
List<String> 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
String getCommands(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 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.
-
-