Class RedisProxy.RedisFault.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
io.envoyproxy.envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.RedisFault.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RedisProxy.RedisFaultOrBuilder,Cloneable
- Enclosing class:
- RedisProxy.RedisFault
public static final class RedisProxy.RedisFault.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
implements RedisProxy.RedisFaultOrBuilder
RedisFault defines faults used for fault injection.Protobuf type
envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.RedisFault-
Method Summary
Modifier and TypeMethodDescriptionaddAllCommands(Iterable<String> values) Commands fault is restricted to, if any.addCommands(String value) Commands fault is restricted to, if any.addCommandsBytes(com.google.protobuf.ByteString value) Commands fault is restricted to, if any.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Commands fault is restricted to, if any.Delay for all faults.Percentage of requests fault applies to.Fault type.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()getCommands(int index) Commands fault is restricted to, if any.com.google.protobuf.ByteStringgetCommandsBytes(int index) Commands fault is restricted to, if any.intCommands fault is restricted to, if any.com.google.protobuf.ProtocolStringListCommands fault is restricted to, if any.com.google.protobuf.DurationgetDelay()Delay for all faults.com.google.protobuf.Duration.BuilderDelay for all faults.com.google.protobuf.DurationOrBuilderDelay for all faults.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorPercentage of requests fault applies to.Percentage of requests fault applies to.Percentage of requests fault applies to.Fault type.intFault type.booleanhasDelay()Delay for all faults.booleanPercentage of requests fault applies to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeDelay(com.google.protobuf.Duration value) Delay for all faults.Percentage of requests fault applies to.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RedisProxy.RedisFault other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCommands(int index, String value) Commands fault is restricted to, if any.setDelay(com.google.protobuf.Duration value) Delay for all faults.setDelay(com.google.protobuf.Duration.Builder builderForValue) Delay for all faults.Percentage of requests fault applies to.setFaultEnabled(RuntimeFractionalPercent.Builder builderForValue) Percentage of requests fault applies to.Fault type.setFaultTypeValue(int value) Fault type.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
-
setField
public RedisProxy.RedisFault.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
-
clearField
public RedisProxy.RedisFault.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
-
clearOneof
public RedisProxy.RedisFault.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
-
addRepeatedField
public RedisProxy.RedisFault.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RedisProxy.RedisFault.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getFaultTypeValuein interfaceRedisProxy.RedisFaultOrBuilder- Returns:
- The enum numeric value on the wire for faultType.
-
setFaultTypeValue
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.
-
getFaultType
Fault type.
.envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.RedisFault.RedisFaultType fault_type = 1 [(.validate.rules) = { ... }- Specified by:
getFaultTypein interfaceRedisProxy.RedisFaultOrBuilder- Returns:
- The faultType.
-
setFaultType
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
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:
hasFaultEnabledin interfaceRedisProxy.RedisFaultOrBuilder- Returns:
- Whether the faultEnabled field is set.
-
getFaultEnabled
Percentage of requests fault applies to.
.envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... }- Specified by:
getFaultEnabledin interfaceRedisProxy.RedisFaultOrBuilder- Returns:
- The faultEnabled.
-
setFaultEnabled
Percentage of requests fault applies to.
.envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... } -
setFaultEnabled
public RedisProxy.RedisFault.Builder setFaultEnabled(RuntimeFractionalPercent.Builder builderForValue) Percentage of requests fault applies to.
.envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... } -
mergeFaultEnabled
Percentage of requests fault applies to.
.envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... } -
clearFaultEnabled
Percentage of requests fault applies to.
.envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... } -
getFaultEnabledBuilder
Percentage of requests fault applies to.
.envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... } -
getFaultEnabledOrBuilder
Percentage of requests fault applies to.
.envoy.config.core.v3.RuntimeFractionalPercent fault_enabled = 2 [(.validate.rules) = { ... }- Specified by:
getFaultEnabledOrBuilderin interfaceRedisProxy.RedisFaultOrBuilder
-
hasDelay
public boolean hasDelay()Delay for all faults. If not set, defaults to zero
.google.protobuf.Duration delay = 3;- Specified by:
hasDelayin interfaceRedisProxy.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:
getDelayin interfaceRedisProxy.RedisFaultOrBuilder- Returns:
- The delay.
-
setDelay
Delay for all faults. If not set, defaults to zero
.google.protobuf.Duration delay = 3; -
setDelay
Delay for all faults. If not set, defaults to zero
.google.protobuf.Duration delay = 3; -
mergeDelay
Delay for all faults. If not set, defaults to zero
.google.protobuf.Duration delay = 3; -
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:
getDelayOrBuilderin interfaceRedisProxy.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:
getCommandsListin interfaceRedisProxy.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:
getCommandsCountin interfaceRedisProxy.RedisFaultOrBuilder- Returns:
- The count of commands.
-
getCommands
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:
getCommandsin interfaceRedisProxy.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:
getCommandsBytesin interfaceRedisProxy.RedisFaultOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the commands at the given index.
-
setCommands
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
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
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
-
mergeUnknownFields
public final RedisProxy.RedisFault.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.RedisFault.Builder>
-