Class 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
    Protobuf type envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig
    • 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<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>
      • 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.
      • getIspDbPath

        public String getIspDbPath()
         Full file path to the Maxmind ASN database, e.g. /etc/GeoLite2-ASN.mmdb.
         Database file is expected to have .mmdb extension.
         
        string isp_db_path = 2 [(.validate.rules) = { ... }
        Specified by:
        getIspDbPath in interface MaxMindConfigOrBuilder
        Returns:
        The ispDbPath.
      • getIspDbPathBytes

        public com.google.protobuf.ByteString getIspDbPathBytes()
         Full file path to the Maxmind ASN database, e.g. /etc/GeoLite2-ASN.mmdb.
         Database file is expected to have .mmdb extension.
         
        string isp_db_path = 2 [(.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 ASN database, e.g. /etc/GeoLite2-ASN.mmdb.
         Database file is expected to have .mmdb extension.
         
        string isp_db_path = 2 [(.validate.rules) = { ... }
        Parameters:
        value - The ispDbPath to set.
        Returns:
        This builder for chaining.
      • clearIspDbPath

        public MaxMindConfig.Builder clearIspDbPath()
         Full file path to the Maxmind ASN database, e.g. /etc/GeoLite2-ASN.mmdb.
         Database file is expected to have .mmdb extension.
         
        string isp_db_path = 2 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setIspDbPathBytes

        public MaxMindConfig.Builder setIspDbPathBytes​(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.
         
        string isp_db_path = 2 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for ispDbPath 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.
      • 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) = { ... }
      • 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>