Class RedisProxy.RedisFault.Builder

    • Method Detail

      • 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.Builder<RedisProxy.RedisFault.Builder>
      • clear

        public RedisProxy.RedisFault.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
      • getDefaultInstanceForType

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

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

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

        public RedisProxy.RedisFault.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
      • clearField

        public RedisProxy.RedisFault.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
      • clearOneof

        public RedisProxy.RedisFault.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
      • setRepeatedField

        public RedisProxy.RedisFault.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
      • addRepeatedField

        public RedisProxy.RedisFault.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
      • mergeFrom

        public RedisProxy.RedisFault.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RedisProxy.RedisFault.Builder>
        Throws:
        IOException
      • 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.
      • setFaultTypeValue

        public RedisProxy.RedisFault.Builder setFaultTypeValue​(int value)
         Fault type.
         
        .envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.RedisFault.RedisFaultType fault_type = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for faultType to set.
        Returns:
        This builder for chaining.
      • setFaultType

        public RedisProxy.RedisFault.Builder setFaultType​(RedisProxy.RedisFault.RedisFaultType value)
         Fault type.
         
        .envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.RedisFault.RedisFaultType fault_type = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The faultType to set.
        Returns:
        This builder for chaining.
      • clearFaultType

        public RedisProxy.RedisFault.Builder clearFaultType()
         Fault type.
         
        .envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.RedisFault.RedisFaultType fault_type = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • 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.
      • clearFaultEnabled

        public RedisProxy.RedisFault.Builder clearFaultEnabled()
         Percentage of requests fault applies to.
         
        .envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... }
      • getFaultEnabledBuilder

        public RuntimeFractionalPercent.Builder getFaultEnabledBuilder()
         Percentage of requests fault applies to.
         
        .envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... }
      • 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.
      • setDelay

        public RedisProxy.RedisFault.Builder setDelay​(com.google.protobuf.Duration value)
         Delay for all faults. If not set, defaults to zero
         
        .google.protobuf.Duration delay = 3;
      • setDelay

        public RedisProxy.RedisFault.Builder setDelay​(com.google.protobuf.Duration.Builder builderForValue)
         Delay for all faults. If not set, defaults to zero
         
        .google.protobuf.Duration delay = 3;
      • mergeDelay

        public RedisProxy.RedisFault.Builder mergeDelay​(com.google.protobuf.Duration value)
         Delay for all faults. If not set, defaults to zero
         
        .google.protobuf.Duration delay = 3;
      • clearDelay

        public RedisProxy.RedisFault.Builder clearDelay()
         Delay for all faults. If not set, defaults to zero
         
        .google.protobuf.Duration delay = 3;
      • getDelayBuilder

        public com.google.protobuf.Duration.Builder getDelayBuilder()
         Delay for all faults. If not set, defaults to zero
         
        .google.protobuf.Duration delay = 3;
      • 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.
      • setCommands

        public RedisProxy.RedisFault.Builder setCommands​(int index,
                                                         String value)
         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 to set the value at.
        value - The commands to set.
        Returns:
        This builder for chaining.
      • addCommands

        public RedisProxy.RedisFault.Builder addCommands​(String value)
         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:
        value - The commands to add.
        Returns:
        This builder for chaining.
      • addAllCommands

        public RedisProxy.RedisFault.Builder addAllCommands​(Iterable<String> values)
         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:
        values - The commands to add.
        Returns:
        This builder for chaining.
      • clearCommands

        public RedisProxy.RedisFault.Builder clearCommands()
         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:
        This builder for chaining.
      • addCommandsBytes

        public RedisProxy.RedisFault.Builder addCommandsBytes​(com.google.protobuf.ByteString value)
         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:
        value - The bytes of the commands to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final RedisProxy.RedisFault.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
      • mergeUnknownFields

        public final RedisProxy.RedisFault.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>