Class MaxMindConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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
Protobuf typeenvoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MaxMindConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MaxMindConfigbuild()MaxMindConfigbuildPartial()MaxMindConfig.Builderclear()MaxMindConfig.BuilderclearAnonDbPath()Full file path to the Maxmind anonymous IP database, e.g.MaxMindConfig.BuilderclearCityDbPath()Full file path to the Maxmind city database, e.g.MaxMindConfig.BuilderclearCommonProviderConfig()Common provider configuration that specifies which geolocation headers will be populated with geolocation data.MaxMindConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MaxMindConfig.BuilderclearIspDbPath()Full file path to the Maxmind ASN database, e.g.MaxMindConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MaxMindConfig.Builderclone()StringgetAnonDbPath()Full file path to the Maxmind anonymous IP database, e.g.com.google.protobuf.ByteStringgetAnonDbPathBytes()Full file path to the Maxmind anonymous IP database, e.g.StringgetCityDbPath()Full file path to the Maxmind city database, e.g.com.google.protobuf.ByteStringgetCityDbPathBytes()Full file path to the Maxmind city database, e.g.CommonGeoipProviderConfiggetCommonProviderConfig()Common provider configuration that specifies which geolocation headers will be populated with geolocation data.CommonGeoipProviderConfig.BuildergetCommonProviderConfigBuilder()Common provider configuration that specifies which geolocation headers will be populated with geolocation data.CommonGeoipProviderConfigOrBuildergetCommonProviderConfigOrBuilder()Common provider configuration that specifies which geolocation headers will be populated with geolocation data.MaxMindConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetIspDbPath()Full file path to the Maxmind ASN database, e.g.com.google.protobuf.ByteStringgetIspDbPathBytes()Full file path to the Maxmind ASN database, e.g.booleanhasCommonProviderConfig()Common provider configuration that specifies which geolocation headers will be populated with geolocation data.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MaxMindConfig.BuildermergeCommonProviderConfig(CommonGeoipProviderConfig value)Common provider configuration that specifies which geolocation headers will be populated with geolocation data.MaxMindConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MaxMindConfig.BuildermergeFrom(com.google.protobuf.Message other)MaxMindConfig.BuildermergeFrom(MaxMindConfig other)MaxMindConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MaxMindConfig.BuildersetAnonDbPath(String value)Full file path to the Maxmind anonymous IP database, e.g.MaxMindConfig.BuildersetAnonDbPathBytes(com.google.protobuf.ByteString value)Full file path to the Maxmind anonymous IP database, e.g.MaxMindConfig.BuildersetCityDbPath(String value)Full file path to the Maxmind city database, e.g.MaxMindConfig.BuildersetCityDbPathBytes(com.google.protobuf.ByteString value)Full file path to the Maxmind city database, e.g.MaxMindConfig.BuildersetCommonProviderConfig(CommonGeoipProviderConfig value)Common provider configuration that specifies which geolocation headers will be populated with geolocation data.MaxMindConfig.BuildersetCommonProviderConfig(CommonGeoipProviderConfig.Builder builderForValue)Common provider configuration that specifies which geolocation headers will be populated with geolocation data.MaxMindConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MaxMindConfig.BuildersetIspDbPath(String value)Full file path to the Maxmind ASN database, e.g.MaxMindConfig.BuildersetIspDbPathBytes(com.google.protobuf.ByteString value)Full file path to the Maxmind ASN database, e.g.MaxMindConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)MaxMindConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
-
clear
public MaxMindConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
-
getDefaultInstanceForType
public MaxMindConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MaxMindConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MaxMindConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MaxMindConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
-
setField
public MaxMindConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
-
clearField
public MaxMindConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
-
clearOneof
public MaxMindConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
-
setRepeatedField
public MaxMindConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
-
addRepeatedField
public MaxMindConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
-
mergeFrom
public MaxMindConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MaxMindConfig.Builder>
-
mergeFrom
public MaxMindConfig.Builder mergeFrom(MaxMindConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getCityDbPathin interfaceMaxMindConfigOrBuilder- 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:
getCityDbPathBytesin interfaceMaxMindConfigOrBuilder- 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:
getIspDbPathin interfaceMaxMindConfigOrBuilder- 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:
getIspDbPathBytesin interfaceMaxMindConfigOrBuilder- 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:
getAnonDbPathin interfaceMaxMindConfigOrBuilder- 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:
getAnonDbPathBytesin interfaceMaxMindConfigOrBuilder- 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:
hasCommonProviderConfigin interfaceMaxMindConfigOrBuilder- 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:
getCommonProviderConfigin interfaceMaxMindConfigOrBuilder- 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:
getCommonProviderConfigOrBuilderin interfaceMaxMindConfigOrBuilder
-
setUnknownFields
public final MaxMindConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
-
mergeUnknownFields
public final MaxMindConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MaxMindConfig.Builder>
-
-