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

public static final class PerRouteConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PerRouteConfig.Builder> implements PerRouteConfigOrBuilder
 Per route Configuration for the dynamic forward proxy HTTP filter.
 
Protobuf type envoy.extensions.filters.http.dynamic_forward_proxy.v3.PerRouteConfig
  • 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<PerRouteConfig.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public PerRouteConfig.Builder mergeFrom(PerRouteConfig other)
    • isInitialized

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

      public PerRouteConfig.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<PerRouteConfig.Builder>
      Throws:
      IOException
    • getHostRewriteSpecifierCase

      public PerRouteConfig.HostRewriteSpecifierCase getHostRewriteSpecifierCase()
      Specified by:
      getHostRewriteSpecifierCase in interface PerRouteConfigOrBuilder
    • clearHostRewriteSpecifier

      public PerRouteConfig.Builder clearHostRewriteSpecifier()
    • hasHostRewriteLiteral

      public boolean hasHostRewriteLiteral()
       Indicates that before DNS lookup, the host header will be swapped with
       this value. If not set or empty, the original host header value
       will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
       
      string host_rewrite_literal = 1;
      Specified by:
      hasHostRewriteLiteral in interface PerRouteConfigOrBuilder
      Returns:
      Whether the hostRewriteLiteral field is set.
    • getHostRewriteLiteral

      public String getHostRewriteLiteral()
       Indicates that before DNS lookup, the host header will be swapped with
       this value. If not set or empty, the original host header value
       will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
       
      string host_rewrite_literal = 1;
      Specified by:
      getHostRewriteLiteral in interface PerRouteConfigOrBuilder
      Returns:
      The hostRewriteLiteral.
    • getHostRewriteLiteralBytes

      public com.google.protobuf.ByteString getHostRewriteLiteralBytes()
       Indicates that before DNS lookup, the host header will be swapped with
       this value. If not set or empty, the original host header value
       will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
       
      string host_rewrite_literal = 1;
      Specified by:
      getHostRewriteLiteralBytes in interface PerRouteConfigOrBuilder
      Returns:
      The bytes for hostRewriteLiteral.
    • setHostRewriteLiteral

      public PerRouteConfig.Builder setHostRewriteLiteral(String value)
       Indicates that before DNS lookup, the host header will be swapped with
       this value. If not set or empty, the original host header value
       will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
       
      string host_rewrite_literal = 1;
      Parameters:
      value - The hostRewriteLiteral to set.
      Returns:
      This builder for chaining.
    • clearHostRewriteLiteral

      public PerRouteConfig.Builder clearHostRewriteLiteral()
       Indicates that before DNS lookup, the host header will be swapped with
       this value. If not set or empty, the original host header value
       will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
       
      string host_rewrite_literal = 1;
      Returns:
      This builder for chaining.
    • setHostRewriteLiteralBytes

      public PerRouteConfig.Builder setHostRewriteLiteralBytes(com.google.protobuf.ByteString value)
       Indicates that before DNS lookup, the host header will be swapped with
       this value. If not set or empty, the original host header value
       will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
       
      string host_rewrite_literal = 1;
      Parameters:
      value - The bytes for hostRewriteLiteral to set.
      Returns:
      This builder for chaining.
    • hasHostRewriteHeader

      public boolean hasHostRewriteHeader()
       Indicates that before DNS lookup, the host header will be swapped with
       the value of this header. If not set or empty, the original host header
       value will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string host_rewrite_header = 2;
      Specified by:
      hasHostRewriteHeader in interface PerRouteConfigOrBuilder
      Returns:
      Whether the hostRewriteHeader field is set.
    • getHostRewriteHeader

      public String getHostRewriteHeader()
       Indicates that before DNS lookup, the host header will be swapped with
       the value of this header. If not set or empty, the original host header
       value will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string host_rewrite_header = 2;
      Specified by:
      getHostRewriteHeader in interface PerRouteConfigOrBuilder
      Returns:
      The hostRewriteHeader.
    • getHostRewriteHeaderBytes

      public com.google.protobuf.ByteString getHostRewriteHeaderBytes()
       Indicates that before DNS lookup, the host header will be swapped with
       the value of this header. If not set or empty, the original host header
       value will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string host_rewrite_header = 2;
      Specified by:
      getHostRewriteHeaderBytes in interface PerRouteConfigOrBuilder
      Returns:
      The bytes for hostRewriteHeader.
    • setHostRewriteHeader

      public PerRouteConfig.Builder setHostRewriteHeader(String value)
       Indicates that before DNS lookup, the host header will be swapped with
       the value of this header. If not set or empty, the original host header
       value will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string host_rewrite_header = 2;
      Parameters:
      value - The hostRewriteHeader to set.
      Returns:
      This builder for chaining.
    • clearHostRewriteHeader

      public PerRouteConfig.Builder clearHostRewriteHeader()
       Indicates that before DNS lookup, the host header will be swapped with
       the value of this header. If not set or empty, the original host header
       value will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string host_rewrite_header = 2;
      Returns:
      This builder for chaining.
    • setHostRewriteHeaderBytes

      public PerRouteConfig.Builder setHostRewriteHeaderBytes(com.google.protobuf.ByteString value)
       Indicates that before DNS lookup, the host header will be swapped with
       the value of this header. If not set or empty, the original host header
       value will be used and no rewrite will happen.
      
       .. note::
      
         This rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with
         :ref:`HCM host rewrite header <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>` given that
         the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host
         header forwarding which might not be the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string host_rewrite_header = 2;
      Parameters:
      value - The bytes for hostRewriteHeader to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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