Class RedisProxy.RedisFault

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RedisProxy.RedisFaultOrBuilder, Serializable
    Enclosing class:
    RedisProxy

    public static final class RedisProxy.RedisFault
    extends com.google.protobuf.GeneratedMessageV3
    implements RedisProxy.RedisFaultOrBuilder
     RedisFault defines faults used for fault injection.
     
    Protobuf type envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.RedisFault
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getFaultTypeValue

        public int getFaultTypeValue()
         Fault type.
         
        .envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.RedisFault.RedisFaultType fault_type = 1 [(.validate.rules) = { ... }
        Specified by:
        getFaultTypeValue in interface RedisProxy.RedisFaultOrBuilder
        Returns:
        The enum numeric value on the wire for faultType.
      • hasFaultEnabled

        public boolean hasFaultEnabled()
         Percentage of requests fault applies to.
         
        .envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... }
        Specified by:
        hasFaultEnabled in interface RedisProxy.RedisFaultOrBuilder
        Returns:
        Whether the faultEnabled field is set.
      • hasDelay

        public boolean hasDelay()
         Delay for all faults. If not set, defaults to zero
         
        .google.protobuf.Duration delay = 3;
        Specified by:
        hasDelay in interface RedisProxy.RedisFaultOrBuilder
        Returns:
        Whether the delay field is set.
      • getDelay

        public com.google.protobuf.Duration getDelay()
         Delay for all faults. If not set, defaults to zero
         
        .google.protobuf.Duration delay = 3;
        Specified by:
        getDelay in interface RedisProxy.RedisFaultOrBuilder
        Returns:
        The delay.
      • getDelayOrBuilder

        public com.google.protobuf.DurationOrBuilder getDelayOrBuilder()
         Delay for all faults. If not set, defaults to zero
         
        .google.protobuf.Duration delay = 3;
        Specified by:
        getDelayOrBuilder in interface RedisProxy.RedisFaultOrBuilder
      • getCommandsList

        public com.google.protobuf.ProtocolStringList 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;
        Specified by:
        getCommandsList in interface RedisProxy.RedisFaultOrBuilder
        Returns:
        A list containing the commands.
      • getCommandsCount

        public 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;
        Specified by:
        getCommandsCount in interface RedisProxy.RedisFaultOrBuilder
        Returns:
        The count of commands.
      • getCommands

        public 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;
        Specified by:
        getCommands in interface RedisProxy.RedisFaultOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The commands at the given index.
      • getCommandsBytes

        public 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;
        Specified by:
        getCommandsBytes in interface RedisProxy.RedisFaultOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the commands at the given index.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static RedisProxy.RedisFault parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RedisProxy.RedisFault parseFrom​(ByteBuffer data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RedisProxy.RedisFault parseFrom​(com.google.protobuf.ByteString data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RedisProxy.RedisFault parseFrom​(com.google.protobuf.ByteString data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RedisProxy.RedisFault parseFrom​(byte[] data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RedisProxy.RedisFault parseFrom​(byte[] data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public RedisProxy.RedisFault.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public RedisProxy.RedisFault.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected RedisProxy.RedisFault.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<RedisProxy.RedisFault> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public RedisProxy.RedisFault getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder