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 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.