Interface RedisProxy.PrefixRoutes.RouteOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RedisProxy.PrefixRoutes.Route,RedisProxy.PrefixRoutes.Route.Builder
- Enclosing class:
- RedisProxy.PrefixRoutes
public static interface RedisProxy.PrefixRoutes.RouteOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionUpstream cluster to forward the command to.com.google.protobuf.ByteStringUpstream cluster to forward the command to.Indicates how redis key should be formatted.com.google.protobuf.ByteStringIndicates how redis key should be formatted.String prefix that must match the beginning of the keys.com.google.protobuf.ByteStringString prefix that must match the beginning of the keys.Indicates that the route has a read command policyIndicates that the route has a read command policybooleanIndicates if the prefix needs to be removed from the key when forwarded.getRequestMirrorPolicy(int index) Indicates that the route has a request mirroring policy.intIndicates that the route has a request mirroring policy.Indicates that the route has a request mirroring policy.getRequestMirrorPolicyOrBuilder(int index) Indicates that the route has a request mirroring policy.Indicates that the route has a request mirroring policy.booleanIndicates that the route has a read command policyMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getPrefix
String getPrefix()String prefix that must match the beginning of the keys. Envoy will always favor the longest match.
string prefix = 1 [(.validate.rules) = { ... }- Returns:
- The prefix.
-
getPrefixBytes
com.google.protobuf.ByteString getPrefixBytes()String prefix that must match the beginning of the keys. Envoy will always favor the longest match.
string prefix = 1 [(.validate.rules) = { ... }- Returns:
- The bytes for prefix.
-
getRemovePrefix
boolean getRemovePrefix()Indicates if the prefix needs to be removed from the key when forwarded.
bool remove_prefix = 2;- Returns:
- The removePrefix.
-
getCluster
String getCluster()Upstream cluster to forward the command to.
string cluster = 3 [(.validate.rules) = { ... }- Returns:
- The cluster.
-
getClusterBytes
com.google.protobuf.ByteString getClusterBytes()Upstream cluster to forward the command to.
string cluster = 3 [(.validate.rules) = { ... }- Returns:
- The bytes for cluster.
-
getRequestMirrorPolicyList
List<RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy> getRequestMirrorPolicyList()Indicates that the route has a request mirroring policy.
repeated .envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy request_mirror_policy = 4; -
getRequestMirrorPolicy
Indicates that the route has a request mirroring policy.
repeated .envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy request_mirror_policy = 4; -
getRequestMirrorPolicyCount
int getRequestMirrorPolicyCount()Indicates that the route has a request mirroring policy.
repeated .envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy request_mirror_policy = 4; -
getRequestMirrorPolicyOrBuilderList
List<? extends RedisProxy.PrefixRoutes.Route.RequestMirrorPolicyOrBuilder> getRequestMirrorPolicyOrBuilderList()Indicates that the route has a request mirroring policy.
repeated .envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy request_mirror_policy = 4; -
getRequestMirrorPolicyOrBuilder
RedisProxy.PrefixRoutes.Route.RequestMirrorPolicyOrBuilder getRequestMirrorPolicyOrBuilder(int index) Indicates that the route has a request mirroring policy.
repeated .envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy request_mirror_policy = 4; -
getKeyFormatter
String getKeyFormatter()Indicates how redis key should be formatted. To substitute redis key into the formatting expression, use %KEY% as a string replacement command.
string key_formatter = 5;- Returns:
- The keyFormatter.
-
getKeyFormatterBytes
com.google.protobuf.ByteString getKeyFormatterBytes()Indicates how redis key should be formatted. To substitute redis key into the formatting expression, use %KEY% as a string replacement command.
string key_formatter = 5;- Returns:
- The bytes for keyFormatter.
-
hasReadCommandPolicy
boolean hasReadCommandPolicy()Indicates that the route has a read command policy
.envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route.ReadCommandPolicy read_command_policy = 6;- Returns:
- Whether the readCommandPolicy field is set.
-
getReadCommandPolicy
RedisProxy.PrefixRoutes.Route.ReadCommandPolicy getReadCommandPolicy()Indicates that the route has a read command policy
.envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route.ReadCommandPolicy read_command_policy = 6;- Returns:
- The readCommandPolicy.
-
getReadCommandPolicyOrBuilder
RedisProxy.PrefixRoutes.Route.ReadCommandPolicyOrBuilder getReadCommandPolicyOrBuilder()Indicates that the route has a read command policy
.envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route.ReadCommandPolicy read_command_policy = 6;
-