Class MaxMindConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MaxMindConfigOrBuilder, Cloneable
Enclosing class:
MaxMindConfig

public static final class MaxMindConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder> implements MaxMindConfigOrBuilder
 [#next-free-field: 7]
 
Protobuf type envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig
  • 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<MaxMindConfig.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public MaxMindConfig.Builder mergeFrom(MaxMindConfig other)
    • isInitialized

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

      public MaxMindConfig.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<MaxMindConfig.Builder>
      Throws:
      IOException
    • getCityDbPath

      public String getCityDbPath()
       Full file path to the MaxMind city database, e.g., ``/etc/GeoLite2-City.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       
      string city_db_path = 1 [(.validate.rules) = { ... }
      Specified by:
      getCityDbPath in interface MaxMindConfigOrBuilder
      Returns:
      The cityDbPath.
    • getCityDbPathBytes

      public com.google.protobuf.ByteString getCityDbPathBytes()
       Full file path to the MaxMind city database, e.g., ``/etc/GeoLite2-City.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       
      string city_db_path = 1 [(.validate.rules) = { ... }
      Specified by:
      getCityDbPathBytes in interface MaxMindConfigOrBuilder
      Returns:
      The bytes for cityDbPath.
    • setCityDbPath

      public MaxMindConfig.Builder setCityDbPath(String value)
       Full file path to the MaxMind city database, e.g., ``/etc/GeoLite2-City.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       
      string city_db_path = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The cityDbPath to set.
      Returns:
      This builder for chaining.
    • clearCityDbPath

      public MaxMindConfig.Builder clearCityDbPath()
       Full file path to the MaxMind city database, e.g., ``/etc/GeoLite2-City.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       
      string city_db_path = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setCityDbPathBytes

      public MaxMindConfig.Builder setCityDbPathBytes(com.google.protobuf.ByteString value)
       Full file path to the MaxMind city database, e.g., ``/etc/GeoLite2-City.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       
      string city_db_path = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for cityDbPath to set.
      Returns:
      This builder for chaining.
    • getAsnDbPath

      public String getAsnDbPath()
       Full file path to the MaxMind ASN database, e.g., ``/etc/GeoLite2-ASN.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       When this is defined, the ASN information will always be fetched from the ``asn_db``.
       
      string asn_db_path = 2 [(.validate.rules) = { ... }
      Specified by:
      getAsnDbPath in interface MaxMindConfigOrBuilder
      Returns:
      The asnDbPath.
    • getAsnDbPathBytes

      public com.google.protobuf.ByteString getAsnDbPathBytes()
       Full file path to the MaxMind ASN database, e.g., ``/etc/GeoLite2-ASN.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       When this is defined, the ASN information will always be fetched from the ``asn_db``.
       
      string asn_db_path = 2 [(.validate.rules) = { ... }
      Specified by:
      getAsnDbPathBytes in interface MaxMindConfigOrBuilder
      Returns:
      The bytes for asnDbPath.
    • setAsnDbPath

      public MaxMindConfig.Builder setAsnDbPath(String value)
       Full file path to the MaxMind ASN database, e.g., ``/etc/GeoLite2-ASN.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       When this is defined, the ASN information will always be fetched from the ``asn_db``.
       
      string asn_db_path = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The asnDbPath to set.
      Returns:
      This builder for chaining.
    • clearAsnDbPath

      public MaxMindConfig.Builder clearAsnDbPath()
       Full file path to the MaxMind ASN database, e.g., ``/etc/GeoLite2-ASN.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       When this is defined, the ASN information will always be fetched from the ``asn_db``.
       
      string asn_db_path = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setAsnDbPathBytes

      public MaxMindConfig.Builder setAsnDbPathBytes(com.google.protobuf.ByteString value)
       Full file path to the MaxMind ASN database, e.g., ``/etc/GeoLite2-ASN.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       When this is defined, the ASN information will always be fetched from the ``asn_db``.
       
      string asn_db_path = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for asnDbPath to set.
      Returns:
      This builder for chaining.
    • getAnonDbPath

      public String getAnonDbPath()
       Full file path to the MaxMind Anonymous IP database, e.g., ``/etc/GeoIP2-Anonymous-IP.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       
      string anon_db_path = 3 [(.validate.rules) = { ... }
      Specified by:
      getAnonDbPath in interface MaxMindConfigOrBuilder
      Returns:
      The anonDbPath.
    • getAnonDbPathBytes

      public com.google.protobuf.ByteString getAnonDbPathBytes()
       Full file path to the MaxMind Anonymous IP database, e.g., ``/etc/GeoIP2-Anonymous-IP.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       
      string anon_db_path = 3 [(.validate.rules) = { ... }
      Specified by:
      getAnonDbPathBytes in interface MaxMindConfigOrBuilder
      Returns:
      The bytes for anonDbPath.
    • setAnonDbPath

      public MaxMindConfig.Builder setAnonDbPath(String value)
       Full file path to the MaxMind Anonymous IP database, e.g., ``/etc/GeoIP2-Anonymous-IP.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       
      string anon_db_path = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The anonDbPath to set.
      Returns:
      This builder for chaining.
    • clearAnonDbPath

      public MaxMindConfig.Builder clearAnonDbPath()
       Full file path to the MaxMind Anonymous IP database, e.g., ``/etc/GeoIP2-Anonymous-IP.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       
      string anon_db_path = 3 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setAnonDbPathBytes

      public MaxMindConfig.Builder setAnonDbPathBytes(com.google.protobuf.ByteString value)
       Full file path to the MaxMind Anonymous IP database, e.g., ``/etc/GeoIP2-Anonymous-IP.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       
      string anon_db_path = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for anonDbPath to set.
      Returns:
      This builder for chaining.
    • getIspDbPath

      public String getIspDbPath()
       Full file path to the MaxMind ISP database, e.g., ``/etc/GeoLite2-ISP.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       If ``asn_db_path`` is not defined, ASN information will be fetched from
       ``isp_db`` instead.
       
      string isp_db_path = 5 [(.validate.rules) = { ... }
      Specified by:
      getIspDbPath in interface MaxMindConfigOrBuilder
      Returns:
      The ispDbPath.
    • getIspDbPathBytes

      public com.google.protobuf.ByteString getIspDbPathBytes()
       Full file path to the MaxMind ISP database, e.g., ``/etc/GeoLite2-ISP.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       If ``asn_db_path`` is not defined, ASN information will be fetched from
       ``isp_db`` instead.
       
      string isp_db_path = 5 [(.validate.rules) = { ... }
      Specified by:
      getIspDbPathBytes in interface MaxMindConfigOrBuilder
      Returns:
      The bytes for ispDbPath.
    • setIspDbPath

      public MaxMindConfig.Builder setIspDbPath(String value)
       Full file path to the MaxMind ISP database, e.g., ``/etc/GeoLite2-ISP.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       If ``asn_db_path`` is not defined, ASN information will be fetched from
       ``isp_db`` instead.
       
      string isp_db_path = 5 [(.validate.rules) = { ... }
      Parameters:
      value - The ispDbPath to set.
      Returns:
      This builder for chaining.
    • clearIspDbPath

      public MaxMindConfig.Builder clearIspDbPath()
       Full file path to the MaxMind ISP database, e.g., ``/etc/GeoLite2-ISP.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       If ``asn_db_path`` is not defined, ASN information will be fetched from
       ``isp_db`` instead.
       
      string isp_db_path = 5 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setIspDbPathBytes

      public MaxMindConfig.Builder setIspDbPathBytes(com.google.protobuf.ByteString value)
       Full file path to the MaxMind ISP database, e.g., ``/etc/GeoLite2-ISP.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
       If ``asn_db_path`` is not defined, ASN information will be fetched from
       ``isp_db`` instead.
       
      string isp_db_path = 5 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for ispDbPath to set.
      Returns:
      This builder for chaining.
    • getCountryDbPath

      public String getCountryDbPath()
       Full file path to the MaxMind Country database, e.g., ``/etc/GeoLite2-Country.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
      
       If ``country_db_path`` is not specified, country information will be fetched from
       ``city_db`` if ``city_db`` is configured.
       
      string country_db_path = 6 [(.validate.rules) = { ... }
      Specified by:
      getCountryDbPath in interface MaxMindConfigOrBuilder
      Returns:
      The countryDbPath.
    • getCountryDbPathBytes

      public com.google.protobuf.ByteString getCountryDbPathBytes()
       Full file path to the MaxMind Country database, e.g., ``/etc/GeoLite2-Country.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
      
       If ``country_db_path`` is not specified, country information will be fetched from
       ``city_db`` if ``city_db`` is configured.
       
      string country_db_path = 6 [(.validate.rules) = { ... }
      Specified by:
      getCountryDbPathBytes in interface MaxMindConfigOrBuilder
      Returns:
      The bytes for countryDbPath.
    • setCountryDbPath

      public MaxMindConfig.Builder setCountryDbPath(String value)
       Full file path to the MaxMind Country database, e.g., ``/etc/GeoLite2-Country.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
      
       If ``country_db_path`` is not specified, country information will be fetched from
       ``city_db`` if ``city_db`` is configured.
       
      string country_db_path = 6 [(.validate.rules) = { ... }
      Parameters:
      value - The countryDbPath to set.
      Returns:
      This builder for chaining.
    • clearCountryDbPath

      public MaxMindConfig.Builder clearCountryDbPath()
       Full file path to the MaxMind Country database, e.g., ``/etc/GeoLite2-Country.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
      
       If ``country_db_path`` is not specified, country information will be fetched from
       ``city_db`` if ``city_db`` is configured.
       
      string country_db_path = 6 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setCountryDbPathBytes

      public MaxMindConfig.Builder setCountryDbPathBytes(com.google.protobuf.ByteString value)
       Full file path to the MaxMind Country database, e.g., ``/etc/GeoLite2-Country.mmdb``.
       Database file is expected to have ``.mmdb`` extension.
      
       If ``country_db_path`` is not specified, country information will be fetched from
       ``city_db`` if ``city_db`` is configured.
       
      string country_db_path = 6 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for countryDbPath to set.
      Returns:
      This builder for chaining.
    • hasCommonProviderConfig

      public boolean hasCommonProviderConfig()
       Common provider configuration that specifies which geolocation headers will be populated with geolocation data.
       
      .envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig common_provider_config = 4 [(.validate.rules) = { ... }
      Specified by:
      hasCommonProviderConfig in interface MaxMindConfigOrBuilder
      Returns:
      Whether the commonProviderConfig field is set.
    • getCommonProviderConfig

      public CommonGeoipProviderConfig getCommonProviderConfig()
       Common provider configuration that specifies which geolocation headers will be populated with geolocation data.
       
      .envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig common_provider_config = 4 [(.validate.rules) = { ... }
      Specified by:
      getCommonProviderConfig in interface MaxMindConfigOrBuilder
      Returns:
      The commonProviderConfig.
    • setCommonProviderConfig

      public MaxMindConfig.Builder setCommonProviderConfig(CommonGeoipProviderConfig value)
       Common provider configuration that specifies which geolocation headers will be populated with geolocation data.
       
      .envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig common_provider_config = 4 [(.validate.rules) = { ... }
    • setCommonProviderConfig

      public MaxMindConfig.Builder setCommonProviderConfig(CommonGeoipProviderConfig.Builder builderForValue)
       Common provider configuration that specifies which geolocation headers will be populated with geolocation data.
       
      .envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig common_provider_config = 4 [(.validate.rules) = { ... }
    • mergeCommonProviderConfig

      public MaxMindConfig.Builder mergeCommonProviderConfig(CommonGeoipProviderConfig value)
       Common provider configuration that specifies which geolocation headers will be populated with geolocation data.
       
      .envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig common_provider_config = 4 [(.validate.rules) = { ... }
    • clearCommonProviderConfig

      public MaxMindConfig.Builder clearCommonProviderConfig()
       Common provider configuration that specifies which geolocation headers will be populated with geolocation data.
       
      .envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig common_provider_config = 4 [(.validate.rules) = { ... }
    • getCommonProviderConfigBuilder

      public CommonGeoipProviderConfig.Builder getCommonProviderConfigBuilder()
       Common provider configuration that specifies which geolocation headers will be populated with geolocation data.
       
      .envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig common_provider_config = 4 [(.validate.rules) = { ... }
    • getCommonProviderConfigOrBuilder

      public CommonGeoipProviderConfigOrBuilder getCommonProviderConfigOrBuilder()
       Common provider configuration that specifies which geolocation headers will be populated with geolocation data.
       
      .envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig common_provider_config = 4 [(.validate.rules) = { ... }
      Specified by:
      getCommonProviderConfigOrBuilder in interface MaxMindConfigOrBuilder
    • setUnknownFields

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

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