Class RedisProxy.PrefixRoutes.Route

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RedisProxy.PrefixRoutes.RouteOrBuilder, Serializable
Enclosing class:
RedisProxy.PrefixRoutes

public static final class RedisProxy.PrefixRoutes.Route extends com.google.protobuf.GeneratedMessageV3 implements RedisProxy.PrefixRoutes.RouteOrBuilder
 [#next-free-field: 7]
 
Protobuf type envoy.extensions.filters.network.redis_proxy.v3.RedisProxy.PrefixRoutes.Route
See Also:
  • Field Details

    • PREFIX_FIELD_NUMBER

      public static final int PREFIX_FIELD_NUMBER
      See Also:
    • REMOVE_PREFIX_FIELD_NUMBER

      public static final int REMOVE_PREFIX_FIELD_NUMBER
      See Also:
    • CLUSTER_FIELD_NUMBER

      public static final int CLUSTER_FIELD_NUMBER
      See Also:
    • REQUEST_MIRROR_POLICY_FIELD_NUMBER

      public static final int REQUEST_MIRROR_POLICY_FIELD_NUMBER
      See Also:
    • KEY_FORMATTER_FIELD_NUMBER

      public static final int KEY_FORMATTER_FIELD_NUMBER
      See Also:
    • READ_COMMAND_POLICY_FIELD_NUMBER

      public static final int READ_COMMAND_POLICY_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance 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
    • getPrefix

      public String getPrefix()
       String prefix that must match the beginning of the keys. Envoy will always favor the
       longest match.
       
      string prefix = 1 [(.validate.rules) = { ... }
      Specified by:
      getPrefix in interface RedisProxy.PrefixRoutes.RouteOrBuilder
      Returns:
      The prefix.
    • getPrefixBytes

      public 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) = { ... }
      Specified by:
      getPrefixBytes in interface RedisProxy.PrefixRoutes.RouteOrBuilder
      Returns:
      The bytes for prefix.
    • getRemovePrefix

      public boolean getRemovePrefix()
       Indicates if the prefix needs to be removed from the key when forwarded.
       
      bool remove_prefix = 2;
      Specified by:
      getRemovePrefix in interface RedisProxy.PrefixRoutes.RouteOrBuilder
      Returns:
      The removePrefix.
    • getCluster

      public String getCluster()
       Upstream cluster to forward the command to.
       
      string cluster = 3 [(.validate.rules) = { ... }
      Specified by:
      getCluster in interface RedisProxy.PrefixRoutes.RouteOrBuilder
      Returns:
      The cluster.
    • getClusterBytes

      public com.google.protobuf.ByteString getClusterBytes()
       Upstream cluster to forward the command to.
       
      string cluster = 3 [(.validate.rules) = { ... }
      Specified by:
      getClusterBytes in interface RedisProxy.PrefixRoutes.RouteOrBuilder
      Returns:
      The bytes for cluster.
    • getRequestMirrorPolicyList

      public 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;
      Specified by:
      getRequestMirrorPolicyList in interface RedisProxy.PrefixRoutes.RouteOrBuilder
    • getRequestMirrorPolicyOrBuilderList

      public 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;
      Specified by:
      getRequestMirrorPolicyOrBuilderList in interface RedisProxy.PrefixRoutes.RouteOrBuilder
    • getRequestMirrorPolicyCount

      public 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;
      Specified by:
      getRequestMirrorPolicyCount in interface RedisProxy.PrefixRoutes.RouteOrBuilder
    • getRequestMirrorPolicy

      public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy getRequestMirrorPolicy(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;
      Specified by:
      getRequestMirrorPolicy in interface RedisProxy.PrefixRoutes.RouteOrBuilder
    • getRequestMirrorPolicyOrBuilder

      public 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;
      Specified by:
      getRequestMirrorPolicyOrBuilder in interface RedisProxy.PrefixRoutes.RouteOrBuilder
    • getKeyFormatter

      public 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;
      Specified by:
      getKeyFormatter in interface RedisProxy.PrefixRoutes.RouteOrBuilder
      Returns:
      The keyFormatter.
    • getKeyFormatterBytes

      public 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;
      Specified by:
      getKeyFormatterBytes in interface RedisProxy.PrefixRoutes.RouteOrBuilder
      Returns:
      The bytes for keyFormatter.
    • hasReadCommandPolicy

      public 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;
      Specified by:
      hasReadCommandPolicy in interface RedisProxy.PrefixRoutes.RouteOrBuilder
      Returns:
      Whether the readCommandPolicy field is set.
    • getReadCommandPolicy

      public 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;
      Specified by:
      getReadCommandPolicy in interface RedisProxy.PrefixRoutes.RouteOrBuilder
      Returns:
      The readCommandPolicy.
    • getReadCommandPolicyOrBuilder

      public 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;
      Specified by:
      getReadCommandPolicyOrBuilder in interface RedisProxy.PrefixRoutes.RouteOrBuilder
    • 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.PrefixRoutes.Route parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static RedisProxy.PrefixRoutes.Route 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.PrefixRoutes.Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

      public static RedisProxy.PrefixRoutes.Route parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RedisProxy.PrefixRoutes.Route parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RedisProxy.PrefixRoutes.Route parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RedisProxy.PrefixRoutes.Route parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RedisProxy.PrefixRoutes.Route parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RedisProxy.PrefixRoutes.Route parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RedisProxy.PrefixRoutes.Route.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RedisProxy.PrefixRoutes.Route.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RedisProxy.PrefixRoutes.Route.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static RedisProxy.PrefixRoutes.Route getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RedisProxy.PrefixRoutes.Route> parser()
    • getParserForType

      public com.google.protobuf.Parser<RedisProxy.PrefixRoutes.Route> 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.PrefixRoutes.Route getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder