Class UpstreamHttpProtocolOptions.Builder

    • Method Detail

      • 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<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.GeneratedMessageV3.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

        public UpstreamHttpProtocolOptions 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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>`.
         
        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>`.
         
        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>`.
         
        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.
         
        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.
         
        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.
         
        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.
         
        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.
         
        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.
         
        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.
         
        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.
         
        string override_auto_sni_header = 3 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for overrideAutoSniHeader to set.
        Returns:
        This builder for chaining.
      • mergeUnknownFields

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