Class RedisProxy.PrefixRoutes.Route.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.PrefixRoutes.Route.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.PrefixRoutes.Route.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public RedisProxy.PrefixRoutes.Route.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                      java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RedisProxy.PrefixRoutes.Route.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.PrefixRoutes.Route.Builder>
      • mergeFrom

        public RedisProxy.PrefixRoutes.Route.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws java.io.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.PrefixRoutes.Route.Builder>
        Throws:
        java.io.IOException
      • getPrefix

        public java.lang.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.
      • setPrefix

        public RedisProxy.PrefixRoutes.Route.Builder setPrefix​(java.lang.String value)
         String prefix that must match the beginning of the keys. Envoy will always favor the
         longest match.
         
        string prefix = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The prefix to set.
        Returns:
        This builder for chaining.
      • clearPrefix

        public RedisProxy.PrefixRoutes.Route.Builder clearPrefix()
         String prefix that must match the beginning of the keys. Envoy will always favor the
         longest match.
         
        string prefix = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setPrefixBytes

        public RedisProxy.PrefixRoutes.Route.Builder setPrefixBytes​(com.google.protobuf.ByteString value)
         String prefix that must match the beginning of the keys. Envoy will always favor the
         longest match.
         
        string prefix = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for prefix to set.
        Returns:
        This builder for chaining.
      • setRemovePrefix

        public RedisProxy.PrefixRoutes.Route.Builder setRemovePrefix​(boolean value)
         Indicates if the prefix needs to be removed from the key when forwarded.
         
        bool remove_prefix = 2;
        Parameters:
        value - The removePrefix to set.
        Returns:
        This builder for chaining.
      • clearRemovePrefix

        public RedisProxy.PrefixRoutes.Route.Builder clearRemovePrefix()
         Indicates if the prefix needs to be removed from the key when forwarded.
         
        bool remove_prefix = 2;
        Returns:
        This builder for chaining.
      • getCluster

        public java.lang.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.
      • setCluster

        public RedisProxy.PrefixRoutes.Route.Builder setCluster​(java.lang.String value)
         Upstream cluster to forward the command to.
         
        string cluster = 3 [(.validate.rules) = { ... }
        Parameters:
        value - The cluster to set.
        Returns:
        This builder for chaining.
      • clearCluster

        public RedisProxy.PrefixRoutes.Route.Builder clearCluster()
         Upstream cluster to forward the command to.
         
        string cluster = 3 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setClusterBytes

        public RedisProxy.PrefixRoutes.Route.Builder setClusterBytes​(com.google.protobuf.ByteString value)
         Upstream cluster to forward the command to.
         
        string cluster = 3 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for cluster to set.
        Returns:
        This builder for chaining.
      • 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
      • clearRequestMirrorPolicy

        public RedisProxy.PrefixRoutes.Route.Builder clearRequestMirrorPolicy()
         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;
      • removeRequestMirrorPolicy

        public RedisProxy.PrefixRoutes.Route.Builder removeRequestMirrorPolicy​(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;
      • getRequestMirrorPolicyBuilder

        public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder getRequestMirrorPolicyBuilder​(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;
      • addRequestMirrorPolicyBuilder

        public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder addRequestMirrorPolicyBuilder()
         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;
      • addRequestMirrorPolicyBuilder

        public RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder addRequestMirrorPolicyBuilder​(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;
      • getRequestMirrorPolicyBuilderList

        public java.util.List<RedisProxy.PrefixRoutes.Route.RequestMirrorPolicy.Builder> getRequestMirrorPolicyBuilderList()
         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;