java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
io.envoyproxy.envoy.extensions.http.custom_response.redirect_policy.v3.RedirectPolicy.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RedirectPolicyOrBuilder, Cloneable
Enclosing class:
RedirectPolicy

public static final class RedirectPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder> implements RedirectPolicyOrBuilder
 Custom response policy to internally redirect the original response to a different
 upstream.
 [#next-free-field: 7]
 
Protobuf type envoy.extensions.http.custom_response.redirect_policy.v3.RedirectPolicy
  • Method Details

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

      public RedirectPolicy.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<RedirectPolicy.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<RedirectPolicy.Builder>
    • getDefaultInstanceForType

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

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

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

      public RedirectPolicy.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<RedirectPolicy.Builder>
    • setField

      public RedirectPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
    • clearField

      public RedirectPolicy.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<RedirectPolicy.Builder>
    • clearOneof

      public RedirectPolicy.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<RedirectPolicy.Builder>
    • setRepeatedField

      public RedirectPolicy.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<RedirectPolicy.Builder>
    • addRepeatedField

      public RedirectPolicy.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<RedirectPolicy.Builder>
    • mergeFrom

      public RedirectPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RedirectPolicy.Builder>
    • mergeFrom

      public RedirectPolicy.Builder mergeFrom(RedirectPolicy other)
    • isInitialized

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

      public RedirectPolicy.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<RedirectPolicy.Builder>
      Throws:
      IOException
    • getRedirectActionSpecifierCase

      public RedirectPolicy.RedirectActionSpecifierCase getRedirectActionSpecifierCase()
      Specified by:
      getRedirectActionSpecifierCase in interface RedirectPolicyOrBuilder
    • clearRedirectActionSpecifier

      public RedirectPolicy.Builder clearRedirectActionSpecifier()
    • hasUri

      public boolean hasUri()
       The Http URI to redirect the original request to, to get the custom
       response.
       It should be a full FQDN with protocol, host and path.
      
       Example:
      
       .. code-block:: yaml
      
          uri: https://www.mydomain.com/path/to/404.txt
       
      string uri = 1 [(.validate.rules) = { ... }
      Specified by:
      hasUri in interface RedirectPolicyOrBuilder
      Returns:
      Whether the uri field is set.
    • getUri

      public String getUri()
       The Http URI to redirect the original request to, to get the custom
       response.
       It should be a full FQDN with protocol, host and path.
      
       Example:
      
       .. code-block:: yaml
      
          uri: https://www.mydomain.com/path/to/404.txt
       
      string uri = 1 [(.validate.rules) = { ... }
      Specified by:
      getUri in interface RedirectPolicyOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       The Http URI to redirect the original request to, to get the custom
       response.
       It should be a full FQDN with protocol, host and path.
      
       Example:
      
       .. code-block:: yaml
      
          uri: https://www.mydomain.com/path/to/404.txt
       
      string uri = 1 [(.validate.rules) = { ... }
      Specified by:
      getUriBytes in interface RedirectPolicyOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public RedirectPolicy.Builder setUri(String value)
       The Http URI to redirect the original request to, to get the custom
       response.
       It should be a full FQDN with protocol, host and path.
      
       Example:
      
       .. code-block:: yaml
      
          uri: https://www.mydomain.com/path/to/404.txt
       
      string uri = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public RedirectPolicy.Builder clearUri()
       The Http URI to redirect the original request to, to get the custom
       response.
       It should be a full FQDN with protocol, host and path.
      
       Example:
      
       .. code-block:: yaml
      
          uri: https://www.mydomain.com/path/to/404.txt
       
      string uri = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setUriBytes

      public RedirectPolicy.Builder setUriBytes(com.google.protobuf.ByteString value)
       The Http URI to redirect the original request to, to get the custom
       response.
       It should be a full FQDN with protocol, host and path.
      
       Example:
      
       .. code-block:: yaml
      
          uri: https://www.mydomain.com/path/to/404.txt
       
      string uri = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • hasRedirectAction

      public boolean hasRedirectAction()
       Specify elements of the redirect url individually.
       Note: Do not specify the ``response_code`` field in ``redirect_action``, use
       ``status_code`` instead.
       The following fields in ``redirect_action`` are currently not supported,
       and specifying them will cause the config to be rejected:
       - ``prefix_rewrite``
       - ``regex_rewrite``
       
      .envoy.config.route.v3.RedirectAction redirect_action = 2;
      Specified by:
      hasRedirectAction in interface RedirectPolicyOrBuilder
      Returns:
      Whether the redirectAction field is set.
    • getRedirectAction

      public RedirectAction getRedirectAction()
       Specify elements of the redirect url individually.
       Note: Do not specify the ``response_code`` field in ``redirect_action``, use
       ``status_code`` instead.
       The following fields in ``redirect_action`` are currently not supported,
       and specifying them will cause the config to be rejected:
       - ``prefix_rewrite``
       - ``regex_rewrite``
       
      .envoy.config.route.v3.RedirectAction redirect_action = 2;
      Specified by:
      getRedirectAction in interface RedirectPolicyOrBuilder
      Returns:
      The redirectAction.
    • setRedirectAction

      public RedirectPolicy.Builder setRedirectAction(RedirectAction value)
       Specify elements of the redirect url individually.
       Note: Do not specify the ``response_code`` field in ``redirect_action``, use
       ``status_code`` instead.
       The following fields in ``redirect_action`` are currently not supported,
       and specifying them will cause the config to be rejected:
       - ``prefix_rewrite``
       - ``regex_rewrite``
       
      .envoy.config.route.v3.RedirectAction redirect_action = 2;
    • setRedirectAction

      public RedirectPolicy.Builder setRedirectAction(RedirectAction.Builder builderForValue)
       Specify elements of the redirect url individually.
       Note: Do not specify the ``response_code`` field in ``redirect_action``, use
       ``status_code`` instead.
       The following fields in ``redirect_action`` are currently not supported,
       and specifying them will cause the config to be rejected:
       - ``prefix_rewrite``
       - ``regex_rewrite``
       
      .envoy.config.route.v3.RedirectAction redirect_action = 2;
    • mergeRedirectAction

      public RedirectPolicy.Builder mergeRedirectAction(RedirectAction value)
       Specify elements of the redirect url individually.
       Note: Do not specify the ``response_code`` field in ``redirect_action``, use
       ``status_code`` instead.
       The following fields in ``redirect_action`` are currently not supported,
       and specifying them will cause the config to be rejected:
       - ``prefix_rewrite``
       - ``regex_rewrite``
       
      .envoy.config.route.v3.RedirectAction redirect_action = 2;
    • clearRedirectAction

      public RedirectPolicy.Builder clearRedirectAction()
       Specify elements of the redirect url individually.
       Note: Do not specify the ``response_code`` field in ``redirect_action``, use
       ``status_code`` instead.
       The following fields in ``redirect_action`` are currently not supported,
       and specifying them will cause the config to be rejected:
       - ``prefix_rewrite``
       - ``regex_rewrite``
       
      .envoy.config.route.v3.RedirectAction redirect_action = 2;
    • getRedirectActionBuilder

      public RedirectAction.Builder getRedirectActionBuilder()
       Specify elements of the redirect url individually.
       Note: Do not specify the ``response_code`` field in ``redirect_action``, use
       ``status_code`` instead.
       The following fields in ``redirect_action`` are currently not supported,
       and specifying them will cause the config to be rejected:
       - ``prefix_rewrite``
       - ``regex_rewrite``
       
      .envoy.config.route.v3.RedirectAction redirect_action = 2;
    • getRedirectActionOrBuilder

      public RedirectActionOrBuilder getRedirectActionOrBuilder()
       Specify elements of the redirect url individually.
       Note: Do not specify the ``response_code`` field in ``redirect_action``, use
       ``status_code`` instead.
       The following fields in ``redirect_action`` are currently not supported,
       and specifying them will cause the config to be rejected:
       - ``prefix_rewrite``
       - ``regex_rewrite``
       
      .envoy.config.route.v3.RedirectAction redirect_action = 2;
      Specified by:
      getRedirectActionOrBuilder in interface RedirectPolicyOrBuilder
    • hasStatusCode

      public boolean hasStatusCode()
       The new response status code if specified. This is used to override the
       status code of the response from the new upstream if it is not an error status.
       
      .google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
      Specified by:
      hasStatusCode in interface RedirectPolicyOrBuilder
      Returns:
      Whether the statusCode field is set.
    • getStatusCode

      public com.google.protobuf.UInt32Value getStatusCode()
       The new response status code if specified. This is used to override the
       status code of the response from the new upstream if it is not an error status.
       
      .google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
      Specified by:
      getStatusCode in interface RedirectPolicyOrBuilder
      Returns:
      The statusCode.
    • setStatusCode

      public RedirectPolicy.Builder setStatusCode(com.google.protobuf.UInt32Value value)
       The new response status code if specified. This is used to override the
       status code of the response from the new upstream if it is not an error status.
       
      .google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
    • setStatusCode

      public RedirectPolicy.Builder setStatusCode(com.google.protobuf.UInt32Value.Builder builderForValue)
       The new response status code if specified. This is used to override the
       status code of the response from the new upstream if it is not an error status.
       
      .google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
    • mergeStatusCode

      public RedirectPolicy.Builder mergeStatusCode(com.google.protobuf.UInt32Value value)
       The new response status code if specified. This is used to override the
       status code of the response from the new upstream if it is not an error status.
       
      .google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
    • clearStatusCode

      public RedirectPolicy.Builder clearStatusCode()
       The new response status code if specified. This is used to override the
       status code of the response from the new upstream if it is not an error status.
       
      .google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
    • getStatusCodeBuilder

      public com.google.protobuf.UInt32Value.Builder getStatusCodeBuilder()
       The new response status code if specified. This is used to override the
       status code of the response from the new upstream if it is not an error status.
       
      .google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
    • getStatusCodeOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getStatusCodeOrBuilder()
       The new response status code if specified. This is used to override the
       status code of the response from the new upstream if it is not an error status.
       
      .google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }
      Specified by:
      getStatusCodeOrBuilder in interface RedirectPolicyOrBuilder
    • getResponseHeadersToAddList

      public List<HeaderValueOption> getResponseHeadersToAddList()
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
      Specified by:
      getResponseHeadersToAddList in interface RedirectPolicyOrBuilder
    • getResponseHeadersToAddCount

      public int getResponseHeadersToAddCount()
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
      Specified by:
      getResponseHeadersToAddCount in interface RedirectPolicyOrBuilder
    • getResponseHeadersToAdd

      public HeaderValueOption getResponseHeadersToAdd(int index)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
      Specified by:
      getResponseHeadersToAdd in interface RedirectPolicyOrBuilder
    • setResponseHeadersToAdd

      public RedirectPolicy.Builder setResponseHeadersToAdd(int index, HeaderValueOption value)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • setResponseHeadersToAdd

      public RedirectPolicy.Builder setResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • addResponseHeadersToAdd

      public RedirectPolicy.Builder addResponseHeadersToAdd(HeaderValueOption value)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • addResponseHeadersToAdd

      public RedirectPolicy.Builder addResponseHeadersToAdd(int index, HeaderValueOption value)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • addResponseHeadersToAdd

      public RedirectPolicy.Builder addResponseHeadersToAdd(HeaderValueOption.Builder builderForValue)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • addResponseHeadersToAdd

      public RedirectPolicy.Builder addResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • addAllResponseHeadersToAdd

      public RedirectPolicy.Builder addAllResponseHeadersToAdd(Iterable<? extends HeaderValueOption> values)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • clearResponseHeadersToAdd

      public RedirectPolicy.Builder clearResponseHeadersToAdd()
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • removeResponseHeadersToAdd

      public RedirectPolicy.Builder removeResponseHeadersToAdd(int index)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • getResponseHeadersToAddBuilder

      public HeaderValueOption.Builder getResponseHeadersToAddBuilder(int index)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • getResponseHeadersToAddOrBuilder

      public HeaderValueOptionOrBuilder getResponseHeadersToAddOrBuilder(int index)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
      Specified by:
      getResponseHeadersToAddOrBuilder in interface RedirectPolicyOrBuilder
    • getResponseHeadersToAddOrBuilderList

      public List<? extends HeaderValueOptionOrBuilder> getResponseHeadersToAddOrBuilderList()
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
      Specified by:
      getResponseHeadersToAddOrBuilderList in interface RedirectPolicyOrBuilder
    • addResponseHeadersToAddBuilder

      public HeaderValueOption.Builder addResponseHeadersToAddBuilder()
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • addResponseHeadersToAddBuilder

      public HeaderValueOption.Builder addResponseHeadersToAddBuilder(int index)
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • getResponseHeadersToAddBuilderList

      public List<HeaderValueOption.Builder> getResponseHeadersToAddBuilderList()
       HTTP headers to add to the response. This allows the
       response policy to append, to add or to override headers of
       the original response for local body, or the custom response from the
       remote body, before it is sent to a downstream client.
       Note that these are not applied if the redirected response is an error
       response.
       
      repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }
    • getRequestHeadersToAddList

      public List<HeaderValueOption> getRequestHeadersToAddList()
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
      Specified by:
      getRequestHeadersToAddList in interface RedirectPolicyOrBuilder
    • getRequestHeadersToAddCount

      public int getRequestHeadersToAddCount()
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
      Specified by:
      getRequestHeadersToAddCount in interface RedirectPolicyOrBuilder
    • getRequestHeadersToAdd

      public HeaderValueOption getRequestHeadersToAdd(int index)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
      Specified by:
      getRequestHeadersToAdd in interface RedirectPolicyOrBuilder
    • setRequestHeadersToAdd

      public RedirectPolicy.Builder setRequestHeadersToAdd(int index, HeaderValueOption value)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • setRequestHeadersToAdd

      public RedirectPolicy.Builder setRequestHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • addRequestHeadersToAdd

      public RedirectPolicy.Builder addRequestHeadersToAdd(HeaderValueOption value)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • addRequestHeadersToAdd

      public RedirectPolicy.Builder addRequestHeadersToAdd(int index, HeaderValueOption value)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • addRequestHeadersToAdd

      public RedirectPolicy.Builder addRequestHeadersToAdd(HeaderValueOption.Builder builderForValue)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • addRequestHeadersToAdd

      public RedirectPolicy.Builder addRequestHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • addAllRequestHeadersToAdd

      public RedirectPolicy.Builder addAllRequestHeadersToAdd(Iterable<? extends HeaderValueOption> values)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • clearRequestHeadersToAdd

      public RedirectPolicy.Builder clearRequestHeadersToAdd()
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • removeRequestHeadersToAdd

      public RedirectPolicy.Builder removeRequestHeadersToAdd(int index)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • getRequestHeadersToAddBuilder

      public HeaderValueOption.Builder getRequestHeadersToAddBuilder(int index)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • getRequestHeadersToAddOrBuilder

      public HeaderValueOptionOrBuilder getRequestHeadersToAddOrBuilder(int index)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
      Specified by:
      getRequestHeadersToAddOrBuilder in interface RedirectPolicyOrBuilder
    • getRequestHeadersToAddOrBuilderList

      public List<? extends HeaderValueOptionOrBuilder> getRequestHeadersToAddOrBuilderList()
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
      Specified by:
      getRequestHeadersToAddOrBuilderList in interface RedirectPolicyOrBuilder
    • addRequestHeadersToAddBuilder

      public HeaderValueOption.Builder addRequestHeadersToAddBuilder()
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • addRequestHeadersToAddBuilder

      public HeaderValueOption.Builder addRequestHeadersToAddBuilder(int index)
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • getRequestHeadersToAddBuilderList

      public List<HeaderValueOption.Builder> getRequestHeadersToAddBuilderList()
       HTTP headers to add to the request before it is internally redirected.
       
      repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }
    • hasModifyRequestHeadersAction

      public boolean hasModifyRequestHeadersAction()
       Custom action to modify request headers before selection of the
       redirected route.
       [#comment: TODO(pradeepcrao) add an extension category.]
       
      .envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6;
      Specified by:
      hasModifyRequestHeadersAction in interface RedirectPolicyOrBuilder
      Returns:
      Whether the modifyRequestHeadersAction field is set.
    • getModifyRequestHeadersAction

      public TypedExtensionConfig getModifyRequestHeadersAction()
       Custom action to modify request headers before selection of the
       redirected route.
       [#comment: TODO(pradeepcrao) add an extension category.]
       
      .envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6;
      Specified by:
      getModifyRequestHeadersAction in interface RedirectPolicyOrBuilder
      Returns:
      The modifyRequestHeadersAction.
    • setModifyRequestHeadersAction

      public RedirectPolicy.Builder setModifyRequestHeadersAction(TypedExtensionConfig value)
       Custom action to modify request headers before selection of the
       redirected route.
       [#comment: TODO(pradeepcrao) add an extension category.]
       
      .envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6;
    • setModifyRequestHeadersAction

      public RedirectPolicy.Builder setModifyRequestHeadersAction(TypedExtensionConfig.Builder builderForValue)
       Custom action to modify request headers before selection of the
       redirected route.
       [#comment: TODO(pradeepcrao) add an extension category.]
       
      .envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6;
    • mergeModifyRequestHeadersAction

      public RedirectPolicy.Builder mergeModifyRequestHeadersAction(TypedExtensionConfig value)
       Custom action to modify request headers before selection of the
       redirected route.
       [#comment: TODO(pradeepcrao) add an extension category.]
       
      .envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6;
    • clearModifyRequestHeadersAction

      public RedirectPolicy.Builder clearModifyRequestHeadersAction()
       Custom action to modify request headers before selection of the
       redirected route.
       [#comment: TODO(pradeepcrao) add an extension category.]
       
      .envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6;
    • getModifyRequestHeadersActionBuilder

      public TypedExtensionConfig.Builder getModifyRequestHeadersActionBuilder()
       Custom action to modify request headers before selection of the
       redirected route.
       [#comment: TODO(pradeepcrao) add an extension category.]
       
      .envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6;
    • getModifyRequestHeadersActionOrBuilder

      public TypedExtensionConfigOrBuilder getModifyRequestHeadersActionOrBuilder()
       Custom action to modify request headers before selection of the
       redirected route.
       [#comment: TODO(pradeepcrao) add an extension category.]
       
      .envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6;
      Specified by:
      getModifyRequestHeadersActionOrBuilder in interface RedirectPolicyOrBuilder
    • setUnknownFields

      public final RedirectPolicy.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<RedirectPolicy.Builder>
    • mergeUnknownFields

      public final RedirectPolicy.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<RedirectPolicy.Builder>