Class UpstreamHttpProtocolOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UpstreamHttpProtocolOptions.Builder>
com.google.protobuf.GeneratedMessage.Builder<UpstreamHttpProtocolOptions.Builder>
io.envoyproxy.envoy.config.core.v3.UpstreamHttpProtocolOptions.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, UpstreamHttpProtocolOptionsOrBuilder, Cloneable
Enclosing class:
UpstreamHttpProtocolOptions

public static final class UpstreamHttpProtocolOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpstreamHttpProtocolOptions.Builder> implements UpstreamHttpProtocolOptionsOrBuilder
Protobuf type envoy.config.core.v3.UpstreamHttpProtocolOptions
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
    private boolean
     
    private int
     
    private Object
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
    private
    Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    private void
     
     
    Automatic validate upstream presented certificate for new upstream connections based on the downstream HTTP host/authority header or any other arbitrary header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>` is set, as seen by the :ref:`router filter <config_http_filters_router>`.
    Set transport socket `SNI <https://en.wikipedia.org/wiki/Server_Name_Indication>`_ for new upstream connections based on the downstream HTTP host/authority header or any other arbitrary header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>` is set, as seen by the :ref:`router filter <config_http_filters_router>`.
    An optional alternative to the host/authority header to be used for setting the SNI value.
    boolean
    Automatic validate upstream presented certificate for new upstream connections based on the downstream HTTP host/authority header or any other arbitrary header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>` is set, as seen by the :ref:`router filter <config_http_filters_router>`.
    boolean
    Set transport socket `SNI <https://en.wikipedia.org/wiki/Server_Name_Indication>`_ for new upstream connections based on the downstream HTTP host/authority header or any other arbitrary header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>` is set, as seen by the :ref:`router filter <config_http_filters_router>`.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    An optional alternative to the host/authority header to be used for setting the SNI value.
    com.google.protobuf.ByteString
    An optional alternative to the host/authority header to be used for setting the SNI value.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    setAutoSanValidation(boolean value)
    Automatic validate upstream presented certificate for new upstream connections based on the downstream HTTP host/authority header or any other arbitrary header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>` is set, as seen by the :ref:`router filter <config_http_filters_router>`.
    setAutoSni(boolean value)
    Set transport socket `SNI <https://en.wikipedia.org/wiki/Server_Name_Indication>`_ for new upstream connections based on the downstream HTTP host/authority header or any other arbitrary header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>` is set, as seen by the :ref:`router filter <config_http_filters_router>`.
    An optional alternative to the host/authority header to be used for setting the SNI value.
    setOverrideAutoSniHeaderBytes(com.google.protobuf.ByteString value)
    An optional alternative to the host/authority header to be used for setting the SNI value.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • bitField0_

      private int bitField0_
    • autoSni_

      private boolean autoSni_
    • autoSanValidation_

      private boolean autoSanValidation_
    • overrideAutoSniHeader_

      private Object overrideAutoSniHeader_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UpstreamHttpProtocolOptions.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.GeneratedMessage.Builder<UpstreamHttpProtocolOptions.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.GeneratedMessage.Builder<UpstreamHttpProtocolOptions.Builder>
    • getDefaultInstanceForType

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

      private void buildPartial0(UpstreamHttpProtocolOptions result)
    • mergeFrom

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

    • isInitialized

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

      public UpstreamHttpProtocolOptions.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<UpstreamHttpProtocolOptions.Builder>
      Throws:
      IOException
    • getAutoSni

      public boolean getAutoSni()
       Set transport socket `SNI <https://en.wikipedia.org/wiki/Server_Name_Indication>`_ for new
       upstream connections based on the downstream HTTP host/authority header or any other arbitrary
       header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>`
       is set, as seen by the :ref:`router filter <config_http_filters_router>`.
       Does nothing if a filter before the http router filter sets the corresponding metadata.
       
      bool auto_sni = 1;
      Specified by:
      getAutoSni in interface UpstreamHttpProtocolOptionsOrBuilder
      Returns:
      The autoSni.
    • setAutoSni

      public UpstreamHttpProtocolOptions.Builder setAutoSni(boolean value)
       Set transport socket `SNI <https://en.wikipedia.org/wiki/Server_Name_Indication>`_ for new
       upstream connections based on the downstream HTTP host/authority header or any other arbitrary
       header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>`
       is set, as seen by the :ref:`router filter <config_http_filters_router>`.
       Does nothing if a filter before the http router filter sets the corresponding metadata.
       
      bool auto_sni = 1;
      Parameters:
      value - The autoSni to set.
      Returns:
      This builder for chaining.
    • clearAutoSni

      public UpstreamHttpProtocolOptions.Builder clearAutoSni()
       Set transport socket `SNI <https://en.wikipedia.org/wiki/Server_Name_Indication>`_ for new
       upstream connections based on the downstream HTTP host/authority header or any other arbitrary
       header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>`
       is set, as seen by the :ref:`router filter <config_http_filters_router>`.
       Does nothing if a filter before the http router filter sets the corresponding metadata.
       
      bool auto_sni = 1;
      Returns:
      This builder for chaining.
    • getAutoSanValidation

      public boolean getAutoSanValidation()
       Automatic validate upstream presented certificate for new upstream connections based on the
       downstream HTTP host/authority header or any other arbitrary header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>`
       is set, as seen by the :ref:`router filter <config_http_filters_router>`.
       This field is intended to be set with ``auto_sni`` field.
       Does nothing if a filter before the http router filter sets the corresponding metadata.
       
      bool auto_san_validation = 2;
      Specified by:
      getAutoSanValidation in interface UpstreamHttpProtocolOptionsOrBuilder
      Returns:
      The autoSanValidation.
    • setAutoSanValidation

      public UpstreamHttpProtocolOptions.Builder setAutoSanValidation(boolean value)
       Automatic validate upstream presented certificate for new upstream connections based on the
       downstream HTTP host/authority header or any other arbitrary header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>`
       is set, as seen by the :ref:`router filter <config_http_filters_router>`.
       This field is intended to be set with ``auto_sni`` field.
       Does nothing if a filter before the http router filter sets the corresponding metadata.
       
      bool auto_san_validation = 2;
      Parameters:
      value - The autoSanValidation to set.
      Returns:
      This builder for chaining.
    • clearAutoSanValidation

      public UpstreamHttpProtocolOptions.Builder clearAutoSanValidation()
       Automatic validate upstream presented certificate for new upstream connections based on the
       downstream HTTP host/authority header or any other arbitrary header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>`
       is set, as seen by the :ref:`router filter <config_http_filters_router>`.
       This field is intended to be set with ``auto_sni`` field.
       Does nothing if a filter before the http router filter sets the corresponding metadata.
       
      bool auto_san_validation = 2;
      Returns:
      This builder for chaining.
    • getOverrideAutoSniHeader

      public String getOverrideAutoSniHeader()
       An optional alternative to the host/authority header to be used for setting the SNI value.
       It should be a valid downstream HTTP header, as seen by the
       :ref:`router filter <config_http_filters_router>`.
       If unset, host/authority header will be used for populating the SNI. If the specified header
       is not found or the value is empty, host/authority header will be used instead.
       This field is intended to be set with ``auto_sni`` and/or ``auto_san_validation`` fields.
       If none of these fields are set then setting this would be a no-op.
       Does nothing if a filter before the http router filter sets the corresponding metadata.
       
      string override_auto_sni_header = 3 [(.validate.rules) = { ... }
      Specified by:
      getOverrideAutoSniHeader in interface UpstreamHttpProtocolOptionsOrBuilder
      Returns:
      The overrideAutoSniHeader.
    • getOverrideAutoSniHeaderBytes

      public com.google.protobuf.ByteString getOverrideAutoSniHeaderBytes()
       An optional alternative to the host/authority header to be used for setting the SNI value.
       It should be a valid downstream HTTP header, as seen by the
       :ref:`router filter <config_http_filters_router>`.
       If unset, host/authority header will be used for populating the SNI. If the specified header
       is not found or the value is empty, host/authority header will be used instead.
       This field is intended to be set with ``auto_sni`` and/or ``auto_san_validation`` fields.
       If none of these fields are set then setting this would be a no-op.
       Does nothing if a filter before the http router filter sets the corresponding metadata.
       
      string override_auto_sni_header = 3 [(.validate.rules) = { ... }
      Specified by:
      getOverrideAutoSniHeaderBytes in interface UpstreamHttpProtocolOptionsOrBuilder
      Returns:
      The bytes for overrideAutoSniHeader.
    • setOverrideAutoSniHeader

      public UpstreamHttpProtocolOptions.Builder setOverrideAutoSniHeader(String value)
       An optional alternative to the host/authority header to be used for setting the SNI value.
       It should be a valid downstream HTTP header, as seen by the
       :ref:`router filter <config_http_filters_router>`.
       If unset, host/authority header will be used for populating the SNI. If the specified header
       is not found or the value is empty, host/authority header will be used instead.
       This field is intended to be set with ``auto_sni`` and/or ``auto_san_validation`` fields.
       If none of these fields are set then setting this would be a no-op.
       Does nothing if a filter before the http router filter sets the corresponding metadata.
       
      string override_auto_sni_header = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The overrideAutoSniHeader to set.
      Returns:
      This builder for chaining.
    • clearOverrideAutoSniHeader

      public UpstreamHttpProtocolOptions.Builder clearOverrideAutoSniHeader()
       An optional alternative to the host/authority header to be used for setting the SNI value.
       It should be a valid downstream HTTP header, as seen by the
       :ref:`router filter <config_http_filters_router>`.
       If unset, host/authority header will be used for populating the SNI. If the specified header
       is not found or the value is empty, host/authority header will be used instead.
       This field is intended to be set with ``auto_sni`` and/or ``auto_san_validation`` fields.
       If none of these fields are set then setting this would be a no-op.
       Does nothing if a filter before the http router filter sets the corresponding metadata.
       
      string override_auto_sni_header = 3 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setOverrideAutoSniHeaderBytes

      public UpstreamHttpProtocolOptions.Builder setOverrideAutoSniHeaderBytes(com.google.protobuf.ByteString value)
       An optional alternative to the host/authority header to be used for setting the SNI value.
       It should be a valid downstream HTTP header, as seen by the
       :ref:`router filter <config_http_filters_router>`.
       If unset, host/authority header will be used for populating the SNI. If the specified header
       is not found or the value is empty, host/authority header will be used instead.
       This field is intended to be set with ``auto_sni`` and/or ``auto_san_validation`` fields.
       If none of these fields are set then setting this would be a no-op.
       Does nothing if a filter before the http router filter sets the corresponding metadata.
       
      string override_auto_sni_header = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for overrideAutoSniHeader to set.
      Returns:
      This builder for chaining.