Class RedisProxy.RedisFault

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RedisProxy.RedisFaultOrBuilder, java.io.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
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RedisProxy.RedisFault.Builder
      RedisFault defines faults used for fault injection.
      static class  RedisProxy.RedisFault.RedisFaultType
      Protobuf enum envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.RedisFault.RedisFaultType
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int COMMANDS_FIELD_NUMBER  
      static int DELAY_FIELD_NUMBER  
      static int FAULT_ENABLED_FIELD_NUMBER  
      static int FAULT_TYPE_FIELD_NUMBER  
      • Fields inherited from class com.google.protobuf.GeneratedMessageV3

        alwaysUseFieldBuilders, unknownFields
      • Fields inherited from class com.google.protobuf.AbstractMessage

        memoizedSize
      • Fields inherited from class com.google.protobuf.AbstractMessageLite

        memoizedHashCode
    • Method Detail

      • newInstance

        protected java.lang.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 java.lang.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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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​(java.nio.ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RedisProxy.RedisFault parseFrom​(java.nio.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
      • parseFrom

        public static RedisProxy.RedisFault parseFrom​(java.io.InputStream input)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static RedisProxy.RedisFault parseFrom​(java.io.InputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static RedisProxy.RedisFault parseDelimitedFrom​(java.io.InputStream input)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static RedisProxy.RedisFault parseDelimitedFrom​(java.io.InputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static RedisProxy.RedisFault parseFrom​(com.google.protobuf.CodedInputStream input)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static RedisProxy.RedisFault parseFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • 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