Class RouteAction.RequestMirrorPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.RequestMirrorPolicy.Builder>
io.envoyproxy.envoy.config.route.v3.RouteAction.RequestMirrorPolicy.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RouteAction.RequestMirrorPolicyOrBuilder, Cloneable
Enclosing class:
RouteAction.RequestMirrorPolicy

public static final class RouteAction.RequestMirrorPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.RequestMirrorPolicy.Builder> implements RouteAction.RequestMirrorPolicyOrBuilder
 The router is capable of shadowing traffic from one cluster to another. The current
 implementation is "fire and forget," meaning Envoy will not wait for the shadow cluster to
 respond before returning the response from the primary cluster. All normal statistics are
 collected for the shadow cluster making this feature useful for testing.

 During shadowing, the host/authority header is altered such that ``-shadow`` is appended. This is
 useful for logging. For example, ``cluster1`` becomes ``cluster1-shadow``. This behavior can be
 disabled by setting ``disable_shadow_host_suffix_append`` to ``true``.

 .. note::

   Shadowing will not be triggered if the primary cluster does not exist.

 .. note::

   Shadowing doesn't support HTTP CONNECT and upgrades.
 [#next-free-field: 9]
 
Protobuf type envoy.config.route.v3.RouteAction.RequestMirrorPolicy
  • 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<RouteAction.RequestMirrorPolicy.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<RouteAction.RequestMirrorPolicy.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<RouteAction.RequestMirrorPolicy.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RouteAction.RequestMirrorPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<RouteAction.RequestMirrorPolicy.Builder>
    • setField

      public RouteAction.RequestMirrorPolicy.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<RouteAction.RequestMirrorPolicy.Builder>
    • clearField

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

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

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

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

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

    • isInitialized

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

      public RouteAction.RequestMirrorPolicy.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<RouteAction.RequestMirrorPolicy.Builder>
      Throws:
      IOException
    • getCluster

      public String getCluster()
       Only one of ``cluster`` and ``cluster_header`` can be specified.
       [#next-major-version: Need to add back the validation rule: (validate.rules).string = {min_len: 1}]
       Specifies the cluster that requests will be mirrored to. The cluster must
       exist in the cluster manager configuration.
       
      string cluster = 1 [(.udpa.annotations.field_migrate) = { ... }
      Specified by:
      getCluster in interface RouteAction.RequestMirrorPolicyOrBuilder
      Returns:
      The cluster.
    • getClusterBytes

      public com.google.protobuf.ByteString getClusterBytes()
       Only one of ``cluster`` and ``cluster_header`` can be specified.
       [#next-major-version: Need to add back the validation rule: (validate.rules).string = {min_len: 1}]
       Specifies the cluster that requests will be mirrored to. The cluster must
       exist in the cluster manager configuration.
       
      string cluster = 1 [(.udpa.annotations.field_migrate) = { ... }
      Specified by:
      getClusterBytes in interface RouteAction.RequestMirrorPolicyOrBuilder
      Returns:
      The bytes for cluster.
    • setCluster

       Only one of ``cluster`` and ``cluster_header`` can be specified.
       [#next-major-version: Need to add back the validation rule: (validate.rules).string = {min_len: 1}]
       Specifies the cluster that requests will be mirrored to. The cluster must
       exist in the cluster manager configuration.
       
      string cluster = 1 [(.udpa.annotations.field_migrate) = { ... }
      Parameters:
      value - The cluster to set.
      Returns:
      This builder for chaining.
    • clearCluster

       Only one of ``cluster`` and ``cluster_header`` can be specified.
       [#next-major-version: Need to add back the validation rule: (validate.rules).string = {min_len: 1}]
       Specifies the cluster that requests will be mirrored to. The cluster must
       exist in the cluster manager configuration.
       
      string cluster = 1 [(.udpa.annotations.field_migrate) = { ... }
      Returns:
      This builder for chaining.
    • setClusterBytes

      public RouteAction.RequestMirrorPolicy.Builder setClusterBytes(com.google.protobuf.ByteString value)
       Only one of ``cluster`` and ``cluster_header`` can be specified.
       [#next-major-version: Need to add back the validation rule: (validate.rules).string = {min_len: 1}]
       Specifies the cluster that requests will be mirrored to. The cluster must
       exist in the cluster manager configuration.
       
      string cluster = 1 [(.udpa.annotations.field_migrate) = { ... }
      Parameters:
      value - The bytes for cluster to set.
      Returns:
      This builder for chaining.
    • getClusterHeader

      public String getClusterHeader()
       Only one of ``cluster`` and ``cluster_header`` can be specified.
       Envoy will determine the cluster to route to by reading the value of the
       HTTP header named by cluster_header from the request headers. Only the first value in header is used,
       and no shadow request will happen if the value is not found in headers. Envoy will not wait for
       the shadow cluster to respond before returning the response from the primary cluster.
      
       .. attention::
      
         Internally, Envoy always uses the HTTP/2 ``:authority`` header to represent the HTTP/1
         ``Host`` header. Thus, if attempting to match on ``Host``, match on ``:authority`` instead.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string cluster_header = 5 [(.validate.rules) = { ... }
      Specified by:
      getClusterHeader in interface RouteAction.RequestMirrorPolicyOrBuilder
      Returns:
      The clusterHeader.
    • getClusterHeaderBytes

      public com.google.protobuf.ByteString getClusterHeaderBytes()
       Only one of ``cluster`` and ``cluster_header`` can be specified.
       Envoy will determine the cluster to route to by reading the value of the
       HTTP header named by cluster_header from the request headers. Only the first value in header is used,
       and no shadow request will happen if the value is not found in headers. Envoy will not wait for
       the shadow cluster to respond before returning the response from the primary cluster.
      
       .. attention::
      
         Internally, Envoy always uses the HTTP/2 ``:authority`` header to represent the HTTP/1
         ``Host`` header. Thus, if attempting to match on ``Host``, match on ``:authority`` instead.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string cluster_header = 5 [(.validate.rules) = { ... }
      Specified by:
      getClusterHeaderBytes in interface RouteAction.RequestMirrorPolicyOrBuilder
      Returns:
      The bytes for clusterHeader.
    • setClusterHeader

      public RouteAction.RequestMirrorPolicy.Builder setClusterHeader(String value)
       Only one of ``cluster`` and ``cluster_header`` can be specified.
       Envoy will determine the cluster to route to by reading the value of the
       HTTP header named by cluster_header from the request headers. Only the first value in header is used,
       and no shadow request will happen if the value is not found in headers. Envoy will not wait for
       the shadow cluster to respond before returning the response from the primary cluster.
      
       .. attention::
      
         Internally, Envoy always uses the HTTP/2 ``:authority`` header to represent the HTTP/1
         ``Host`` header. Thus, if attempting to match on ``Host``, match on ``:authority`` instead.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string cluster_header = 5 [(.validate.rules) = { ... }
      Parameters:
      value - The clusterHeader to set.
      Returns:
      This builder for chaining.
    • clearClusterHeader

      public RouteAction.RequestMirrorPolicy.Builder clearClusterHeader()
       Only one of ``cluster`` and ``cluster_header`` can be specified.
       Envoy will determine the cluster to route to by reading the value of the
       HTTP header named by cluster_header from the request headers. Only the first value in header is used,
       and no shadow request will happen if the value is not found in headers. Envoy will not wait for
       the shadow cluster to respond before returning the response from the primary cluster.
      
       .. attention::
      
         Internally, Envoy always uses the HTTP/2 ``:authority`` header to represent the HTTP/1
         ``Host`` header. Thus, if attempting to match on ``Host``, match on ``:authority`` instead.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string cluster_header = 5 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setClusterHeaderBytes

      public RouteAction.RequestMirrorPolicy.Builder setClusterHeaderBytes(com.google.protobuf.ByteString value)
       Only one of ``cluster`` and ``cluster_header`` can be specified.
       Envoy will determine the cluster to route to by reading the value of the
       HTTP header named by cluster_header from the request headers. Only the first value in header is used,
       and no shadow request will happen if the value is not found in headers. Envoy will not wait for
       the shadow cluster to respond before returning the response from the primary cluster.
      
       .. attention::
      
         Internally, Envoy always uses the HTTP/2 ``:authority`` header to represent the HTTP/1
         ``Host`` header. Thus, if attempting to match on ``Host``, match on ``:authority`` instead.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string cluster_header = 5 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for clusterHeader to set.
      Returns:
      This builder for chaining.
    • hasRuntimeFraction

      public boolean hasRuntimeFraction()
       If not specified, all requests to the target cluster will be mirrored.
      
       If specified, this field takes precedence over the ``runtime_key`` field and requests must also
       fall under the percentage of matches indicated by this field.
      
       For some fraction N/D, a random number in the range [0,D) is selected. If the
       number is <= the value of the numerator N, or if the key is not present, the default
       value, the request will be mirrored.
       
      .envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 3;
      Specified by:
      hasRuntimeFraction in interface RouteAction.RequestMirrorPolicyOrBuilder
      Returns:
      Whether the runtimeFraction field is set.
    • getRuntimeFraction

      public RuntimeFractionalPercent getRuntimeFraction()
       If not specified, all requests to the target cluster will be mirrored.
      
       If specified, this field takes precedence over the ``runtime_key`` field and requests must also
       fall under the percentage of matches indicated by this field.
      
       For some fraction N/D, a random number in the range [0,D) is selected. If the
       number is <= the value of the numerator N, or if the key is not present, the default
       value, the request will be mirrored.
       
      .envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 3;
      Specified by:
      getRuntimeFraction in interface RouteAction.RequestMirrorPolicyOrBuilder
      Returns:
      The runtimeFraction.
    • setRuntimeFraction

       If not specified, all requests to the target cluster will be mirrored.
      
       If specified, this field takes precedence over the ``runtime_key`` field and requests must also
       fall under the percentage of matches indicated by this field.
      
       For some fraction N/D, a random number in the range [0,D) is selected. If the
       number is <= the value of the numerator N, or if the key is not present, the default
       value, the request will be mirrored.
       
      .envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 3;
    • setRuntimeFraction

       If not specified, all requests to the target cluster will be mirrored.
      
       If specified, this field takes precedence over the ``runtime_key`` field and requests must also
       fall under the percentage of matches indicated by this field.
      
       For some fraction N/D, a random number in the range [0,D) is selected. If the
       number is <= the value of the numerator N, or if the key is not present, the default
       value, the request will be mirrored.
       
      .envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 3;
    • mergeRuntimeFraction

       If not specified, all requests to the target cluster will be mirrored.
      
       If specified, this field takes precedence over the ``runtime_key`` field and requests must also
       fall under the percentage of matches indicated by this field.
      
       For some fraction N/D, a random number in the range [0,D) is selected. If the
       number is <= the value of the numerator N, or if the key is not present, the default
       value, the request will be mirrored.
       
      .envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 3;
    • clearRuntimeFraction

      public RouteAction.RequestMirrorPolicy.Builder clearRuntimeFraction()
       If not specified, all requests to the target cluster will be mirrored.
      
       If specified, this field takes precedence over the ``runtime_key`` field and requests must also
       fall under the percentage of matches indicated by this field.
      
       For some fraction N/D, a random number in the range [0,D) is selected. If the
       number is <= the value of the numerator N, or if the key is not present, the default
       value, the request will be mirrored.
       
      .envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 3;
    • getRuntimeFractionBuilder

      public RuntimeFractionalPercent.Builder getRuntimeFractionBuilder()
       If not specified, all requests to the target cluster will be mirrored.
      
       If specified, this field takes precedence over the ``runtime_key`` field and requests must also
       fall under the percentage of matches indicated by this field.
      
       For some fraction N/D, a random number in the range [0,D) is selected. If the
       number is <= the value of the numerator N, or if the key is not present, the default
       value, the request will be mirrored.
       
      .envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 3;
    • getRuntimeFractionOrBuilder

      public RuntimeFractionalPercentOrBuilder getRuntimeFractionOrBuilder()
       If not specified, all requests to the target cluster will be mirrored.
      
       If specified, this field takes precedence over the ``runtime_key`` field and requests must also
       fall under the percentage of matches indicated by this field.
      
       For some fraction N/D, a random number in the range [0,D) is selected. If the
       number is <= the value of the numerator N, or if the key is not present, the default
       value, the request will be mirrored.
       
      .envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 3;
      Specified by:
      getRuntimeFractionOrBuilder in interface RouteAction.RequestMirrorPolicyOrBuilder
    • hasTraceSampled

      public boolean hasTraceSampled()
       Specifies whether the trace span for the shadow request should be sampled. If this field is not explicitly set,
       the shadow request will inherit the sampling decision of its parent span. This ensures consistency with the trace
       sampling policy of the original request and prevents oversampling, especially in scenarios where runtime sampling
       is disabled.
       
      .google.protobuf.BoolValue trace_sampled = 4;
      Specified by:
      hasTraceSampled in interface RouteAction.RequestMirrorPolicyOrBuilder
      Returns:
      Whether the traceSampled field is set.
    • getTraceSampled

      public com.google.protobuf.BoolValue getTraceSampled()
       Specifies whether the trace span for the shadow request should be sampled. If this field is not explicitly set,
       the shadow request will inherit the sampling decision of its parent span. This ensures consistency with the trace
       sampling policy of the original request and prevents oversampling, especially in scenarios where runtime sampling
       is disabled.
       
      .google.protobuf.BoolValue trace_sampled = 4;
      Specified by:
      getTraceSampled in interface RouteAction.RequestMirrorPolicyOrBuilder
      Returns:
      The traceSampled.
    • setTraceSampled

      public RouteAction.RequestMirrorPolicy.Builder setTraceSampled(com.google.protobuf.BoolValue value)
       Specifies whether the trace span for the shadow request should be sampled. If this field is not explicitly set,
       the shadow request will inherit the sampling decision of its parent span. This ensures consistency with the trace
       sampling policy of the original request and prevents oversampling, especially in scenarios where runtime sampling
       is disabled.
       
      .google.protobuf.BoolValue trace_sampled = 4;
    • setTraceSampled

      public RouteAction.RequestMirrorPolicy.Builder setTraceSampled(com.google.protobuf.BoolValue.Builder builderForValue)
       Specifies whether the trace span for the shadow request should be sampled. If this field is not explicitly set,
       the shadow request will inherit the sampling decision of its parent span. This ensures consistency with the trace
       sampling policy of the original request and prevents oversampling, especially in scenarios where runtime sampling
       is disabled.
       
      .google.protobuf.BoolValue trace_sampled = 4;
    • mergeTraceSampled

      public RouteAction.RequestMirrorPolicy.Builder mergeTraceSampled(com.google.protobuf.BoolValue value)
       Specifies whether the trace span for the shadow request should be sampled. If this field is not explicitly set,
       the shadow request will inherit the sampling decision of its parent span. This ensures consistency with the trace
       sampling policy of the original request and prevents oversampling, especially in scenarios where runtime sampling
       is disabled.
       
      .google.protobuf.BoolValue trace_sampled = 4;
    • clearTraceSampled

      public RouteAction.RequestMirrorPolicy.Builder clearTraceSampled()
       Specifies whether the trace span for the shadow request should be sampled. If this field is not explicitly set,
       the shadow request will inherit the sampling decision of its parent span. This ensures consistency with the trace
       sampling policy of the original request and prevents oversampling, especially in scenarios where runtime sampling
       is disabled.
       
      .google.protobuf.BoolValue trace_sampled = 4;
    • getTraceSampledBuilder

      public com.google.protobuf.BoolValue.Builder getTraceSampledBuilder()
       Specifies whether the trace span for the shadow request should be sampled. If this field is not explicitly set,
       the shadow request will inherit the sampling decision of its parent span. This ensures consistency with the trace
       sampling policy of the original request and prevents oversampling, especially in scenarios where runtime sampling
       is disabled.
       
      .google.protobuf.BoolValue trace_sampled = 4;
    • getTraceSampledOrBuilder

      public com.google.protobuf.BoolValueOrBuilder getTraceSampledOrBuilder()
       Specifies whether the trace span for the shadow request should be sampled. If this field is not explicitly set,
       the shadow request will inherit the sampling decision of its parent span. This ensures consistency with the trace
       sampling policy of the original request and prevents oversampling, especially in scenarios where runtime sampling
       is disabled.
       
      .google.protobuf.BoolValue trace_sampled = 4;
      Specified by:
      getTraceSampledOrBuilder in interface RouteAction.RequestMirrorPolicyOrBuilder
    • getDisableShadowHostSuffixAppend

      public boolean getDisableShadowHostSuffixAppend()
       Disables appending the ``-shadow`` suffix to the shadowed ``Host`` header.
      
       Defaults to ``false``.
       
      bool disable_shadow_host_suffix_append = 6;
      Specified by:
      getDisableShadowHostSuffixAppend in interface RouteAction.RequestMirrorPolicyOrBuilder
      Returns:
      The disableShadowHostSuffixAppend.
    • setDisableShadowHostSuffixAppend

      public RouteAction.RequestMirrorPolicy.Builder setDisableShadowHostSuffixAppend(boolean value)
       Disables appending the ``-shadow`` suffix to the shadowed ``Host`` header.
      
       Defaults to ``false``.
       
      bool disable_shadow_host_suffix_append = 6;
      Parameters:
      value - The disableShadowHostSuffixAppend to set.
      Returns:
      This builder for chaining.
    • clearDisableShadowHostSuffixAppend

      public RouteAction.RequestMirrorPolicy.Builder clearDisableShadowHostSuffixAppend()
       Disables appending the ``-shadow`` suffix to the shadowed ``Host`` header.
      
       Defaults to ``false``.
       
      bool disable_shadow_host_suffix_append = 6;
      Returns:
      This builder for chaining.
    • getRequestHeadersMutationsList

      public List<HeaderMutation> getRequestHeadersMutationsList()
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
      Specified by:
      getRequestHeadersMutationsList in interface RouteAction.RequestMirrorPolicyOrBuilder
    • getRequestHeadersMutationsCount

      public int getRequestHeadersMutationsCount()
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
      Specified by:
      getRequestHeadersMutationsCount in interface RouteAction.RequestMirrorPolicyOrBuilder
    • getRequestHeadersMutations

      public HeaderMutation getRequestHeadersMutations(int index)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
      Specified by:
      getRequestHeadersMutations in interface RouteAction.RequestMirrorPolicyOrBuilder
    • setRequestHeadersMutations

      public RouteAction.RequestMirrorPolicy.Builder setRequestHeadersMutations(int index, HeaderMutation value)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • setRequestHeadersMutations

      public RouteAction.RequestMirrorPolicy.Builder setRequestHeadersMutations(int index, HeaderMutation.Builder builderForValue)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • addRequestHeadersMutations

      public RouteAction.RequestMirrorPolicy.Builder addRequestHeadersMutations(HeaderMutation value)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • addRequestHeadersMutations

      public RouteAction.RequestMirrorPolicy.Builder addRequestHeadersMutations(int index, HeaderMutation value)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • addRequestHeadersMutations

      public RouteAction.RequestMirrorPolicy.Builder addRequestHeadersMutations(HeaderMutation.Builder builderForValue)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • addRequestHeadersMutations

      public RouteAction.RequestMirrorPolicy.Builder addRequestHeadersMutations(int index, HeaderMutation.Builder builderForValue)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • addAllRequestHeadersMutations

      public RouteAction.RequestMirrorPolicy.Builder addAllRequestHeadersMutations(Iterable<? extends HeaderMutation> values)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • clearRequestHeadersMutations

      public RouteAction.RequestMirrorPolicy.Builder clearRequestHeadersMutations()
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • removeRequestHeadersMutations

      public RouteAction.RequestMirrorPolicy.Builder removeRequestHeadersMutations(int index)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • getRequestHeadersMutationsBuilder

      public HeaderMutation.Builder getRequestHeadersMutationsBuilder(int index)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • getRequestHeadersMutationsOrBuilder

      public HeaderMutationOrBuilder getRequestHeadersMutationsOrBuilder(int index)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
      Specified by:
      getRequestHeadersMutationsOrBuilder in interface RouteAction.RequestMirrorPolicyOrBuilder
    • getRequestHeadersMutationsOrBuilderList

      public List<? extends HeaderMutationOrBuilder> getRequestHeadersMutationsOrBuilderList()
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
      Specified by:
      getRequestHeadersMutationsOrBuilderList in interface RouteAction.RequestMirrorPolicyOrBuilder
    • addRequestHeadersMutationsBuilder

      public HeaderMutation.Builder addRequestHeadersMutationsBuilder()
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • addRequestHeadersMutationsBuilder

      public HeaderMutation.Builder addRequestHeadersMutationsBuilder(int index)
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • getRequestHeadersMutationsBuilderList

      public List<HeaderMutation.Builder> getRequestHeadersMutationsBuilderList()
       Specifies a list of header mutations that should be applied to each mirrored request.
       Header mutations are applied in the order they are specified. For more information, including
       details on header value syntax, see the documentation on :ref:`custom request headers
       <config_http_conn_man_headers_custom_request_headers>`.
       
      repeated .envoy.config.common.mutation_rules.v3.HeaderMutation request_headers_mutations = 7 [(.validate.rules) = { ... }
    • getHostRewriteLiteral

      public String getHostRewriteLiteral()
       Indicates that during mirroring, the host header will be swapped with this value.
       :ref:`disable_shadow_host_suffix_append
       <envoy_v3_api_field_config.route.v3.RouteAction.RequestMirrorPolicy.disable_shadow_host_suffix_append>`
       is implicitly enabled if this field is set.
       
      string host_rewrite_literal = 8 [(.validate.rules) = { ... }
      Specified by:
      getHostRewriteLiteral in interface RouteAction.RequestMirrorPolicyOrBuilder
      Returns:
      The hostRewriteLiteral.
    • getHostRewriteLiteralBytes

      public com.google.protobuf.ByteString getHostRewriteLiteralBytes()
       Indicates that during mirroring, the host header will be swapped with this value.
       :ref:`disable_shadow_host_suffix_append
       <envoy_v3_api_field_config.route.v3.RouteAction.RequestMirrorPolicy.disable_shadow_host_suffix_append>`
       is implicitly enabled if this field is set.
       
      string host_rewrite_literal = 8 [(.validate.rules) = { ... }
      Specified by:
      getHostRewriteLiteralBytes in interface RouteAction.RequestMirrorPolicyOrBuilder
      Returns:
      The bytes for hostRewriteLiteral.
    • setHostRewriteLiteral

      public RouteAction.RequestMirrorPolicy.Builder setHostRewriteLiteral(String value)
       Indicates that during mirroring, the host header will be swapped with this value.
       :ref:`disable_shadow_host_suffix_append
       <envoy_v3_api_field_config.route.v3.RouteAction.RequestMirrorPolicy.disable_shadow_host_suffix_append>`
       is implicitly enabled if this field is set.
       
      string host_rewrite_literal = 8 [(.validate.rules) = { ... }
      Parameters:
      value - The hostRewriteLiteral to set.
      Returns:
      This builder for chaining.
    • clearHostRewriteLiteral

      public RouteAction.RequestMirrorPolicy.Builder clearHostRewriteLiteral()
       Indicates that during mirroring, the host header will be swapped with this value.
       :ref:`disable_shadow_host_suffix_append
       <envoy_v3_api_field_config.route.v3.RouteAction.RequestMirrorPolicy.disable_shadow_host_suffix_append>`
       is implicitly enabled if this field is set.
       
      string host_rewrite_literal = 8 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setHostRewriteLiteralBytes

      public RouteAction.RequestMirrorPolicy.Builder setHostRewriteLiteralBytes(com.google.protobuf.ByteString value)
       Indicates that during mirroring, the host header will be swapped with this value.
       :ref:`disable_shadow_host_suffix_append
       <envoy_v3_api_field_config.route.v3.RouteAction.RequestMirrorPolicy.disable_shadow_host_suffix_append>`
       is implicitly enabled if this field is set.
       
      string host_rewrite_literal = 8 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for hostRewriteLiteral to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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