java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PerRouteConfig.Builder>
io.envoyproxy.envoy.config.filter.http.dynamic_forward_proxy.v2alpha.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.config.filter.http.dynamic_forward_proxy.v2alpha.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()
    • hasHostRewrite

      public boolean hasHostRewrite()
       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 <envoy_api_field_route.RouteAction.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 is not the desired outcome.
       
      string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }
      Specified by:
      hasHostRewrite in interface PerRouteConfigOrBuilder
      Returns:
      Whether the hostRewrite field is set.
    • getHostRewrite

      public String getHostRewrite()
       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 <envoy_api_field_route.RouteAction.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 is not the desired outcome.
       
      string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }
      Specified by:
      getHostRewrite in interface PerRouteConfigOrBuilder
      Returns:
      The hostRewrite.
    • getHostRewriteBytes

      public com.google.protobuf.ByteString getHostRewriteBytes()
       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 <envoy_api_field_route.RouteAction.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 is not the desired outcome.
       
      string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }
      Specified by:
      getHostRewriteBytes in interface PerRouteConfigOrBuilder
      Returns:
      The bytes for hostRewrite.
    • setHostRewrite

      public PerRouteConfig.Builder setHostRewrite(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 <envoy_api_field_route.RouteAction.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 is not the desired outcome.
       
      string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }
      Parameters:
      value - The hostRewrite to set.
      Returns:
      This builder for chaining.
    • clearHostRewrite

      public PerRouteConfig.Builder clearHostRewrite()
       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 <envoy_api_field_route.RouteAction.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 is not the desired outcome.
       
      string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }
      Returns:
      This builder for chaining.
    • setHostRewriteBytes

      public PerRouteConfig.Builder setHostRewriteBytes(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 <envoy_api_field_route.RouteAction.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 is not the desired outcome.
       
      string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }
      Parameters:
      value - The bytes for hostRewrite to set.
      Returns:
      This builder for chaining.
    • hasAutoHostRewriteHeader

      public boolean hasAutoHostRewriteHeader()
       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_api_field_route.RouteAction.auto_host_rewrite_header>`
       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 is not the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }
      Specified by:
      hasAutoHostRewriteHeader in interface PerRouteConfigOrBuilder
      Returns:
      Whether the autoHostRewriteHeader field is set.
    • getAutoHostRewriteHeader

      public String getAutoHostRewriteHeader()
       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_api_field_route.RouteAction.auto_host_rewrite_header>`
       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 is not the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }
      Specified by:
      getAutoHostRewriteHeader in interface PerRouteConfigOrBuilder
      Returns:
      The autoHostRewriteHeader.
    • getAutoHostRewriteHeaderBytes

      public com.google.protobuf.ByteString getAutoHostRewriteHeaderBytes()
       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_api_field_route.RouteAction.auto_host_rewrite_header>`
       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 is not the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }
      Specified by:
      getAutoHostRewriteHeaderBytes in interface PerRouteConfigOrBuilder
      Returns:
      The bytes for autoHostRewriteHeader.
    • setAutoHostRewriteHeader

      public PerRouteConfig.Builder setAutoHostRewriteHeader(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_api_field_route.RouteAction.auto_host_rewrite_header>`
       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 is not the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }
      Parameters:
      value - The autoHostRewriteHeader to set.
      Returns:
      This builder for chaining.
    • clearAutoHostRewriteHeader

      public PerRouteConfig.Builder clearAutoHostRewriteHeader()
       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_api_field_route.RouteAction.auto_host_rewrite_header>`
       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 is not the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }
      Returns:
      This builder for chaining.
    • setAutoHostRewriteHeaderBytes

      public PerRouteConfig.Builder setAutoHostRewriteHeaderBytes(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_api_field_route.RouteAction.auto_host_rewrite_header>`
       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 is not the desired outcome.
      
       .. note::
      
         If the header appears multiple times only the first value is used.
       
      string auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }
      Parameters:
      value - The bytes for autoHostRewriteHeader 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>