All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/extensions/geoip_providers/maxmind/v3/maxmind.proto

package io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3;

/**
 * Protobuf type {@code envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig}
 */
public final class MaxMindConfig extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig)
    MaxMindConfigOrBuilder {
private static final long serialVersionUID = 0L;
  // Use MaxMindConfig.newBuilder() to construct.
  private MaxMindConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private MaxMindConfig() {
    cityDbPath_ = "";
    ispDbPath_ = "";
    anonDbPath_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new MaxMindConfig();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private MaxMindConfig(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            cityDbPath_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            ispDbPath_ = s;
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();

            anonDbPath_ = s;
            break;
          }
          case 34: {
            io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig.Builder subBuilder = null;
            if (commonProviderConfig_ != null) {
              subBuilder = commonProviderConfig_.toBuilder();
            }
            commonProviderConfig_ = input.readMessage(io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(commonProviderConfig_);
              commonProviderConfig_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxmindProto.internal_static_envoy_extensions_geoip_providers_maxmind_v3_MaxMindConfig_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxmindProto.internal_static_envoy_extensions_geoip_providers_maxmind_v3_MaxMindConfig_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig.class, io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig.Builder.class);
  }

  public static final int CITY_DB_PATH_FIELD_NUMBER = 1;
  private volatile java.lang.Object cityDbPath_;
  /**
   * 
   * 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) = { ... } * @return The cityDbPath. */ @java.lang.Override public java.lang.String getCityDbPath() { java.lang.Object ref = cityDbPath_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cityDbPath_ = s; return s; } } /** *
   * 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) = { ... } * @return The bytes for cityDbPath. */ @java.lang.Override public com.google.protobuf.ByteString getCityDbPathBytes() { java.lang.Object ref = cityDbPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cityDbPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ISP_DB_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object ispDbPath_; /** *
   * 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) = { ... } * @return The ispDbPath. */ @java.lang.Override public java.lang.String getIspDbPath() { java.lang.Object ref = ispDbPath_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ispDbPath_ = s; return s; } } /** *
   * 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) = { ... } * @return The bytes for ispDbPath. */ @java.lang.Override public com.google.protobuf.ByteString getIspDbPathBytes() { java.lang.Object ref = ispDbPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ispDbPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ANON_DB_PATH_FIELD_NUMBER = 3; private volatile java.lang.Object anonDbPath_; /** *
   * 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) = { ... } * @return The anonDbPath. */ @java.lang.Override public java.lang.String getAnonDbPath() { java.lang.Object ref = anonDbPath_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); anonDbPath_ = s; return s; } } /** *
   * 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) = { ... } * @return The bytes for anonDbPath. */ @java.lang.Override public com.google.protobuf.ByteString getAnonDbPathBytes() { java.lang.Object ref = anonDbPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); anonDbPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMMON_PROVIDER_CONFIG_FIELD_NUMBER = 4; private io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig commonProviderConfig_; /** *
   * 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) = { ... } * @return Whether the commonProviderConfig field is set. */ @java.lang.Override public boolean hasCommonProviderConfig() { return commonProviderConfig_ != null; } /** *
   * 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) = { ... } * @return The commonProviderConfig. */ @java.lang.Override public io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig getCommonProviderConfig() { return commonProviderConfig_ == null ? io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig.getDefaultInstance() : commonProviderConfig_; } /** *
   * 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) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfigOrBuilder getCommonProviderConfigOrBuilder() { return getCommonProviderConfig(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cityDbPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cityDbPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ispDbPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ispDbPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(anonDbPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, anonDbPath_); } if (commonProviderConfig_ != null) { output.writeMessage(4, getCommonProviderConfig()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cityDbPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cityDbPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ispDbPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ispDbPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(anonDbPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, anonDbPath_); } if (commonProviderConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCommonProviderConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig)) { return super.equals(obj); } io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig other = (io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig) obj; if (!getCityDbPath() .equals(other.getCityDbPath())) return false; if (!getIspDbPath() .equals(other.getIspDbPath())) return false; if (!getAnonDbPath() .equals(other.getAnonDbPath())) return false; if (hasCommonProviderConfig() != other.hasCommonProviderConfig()) return false; if (hasCommonProviderConfig()) { if (!getCommonProviderConfig() .equals(other.getCommonProviderConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CITY_DB_PATH_FIELD_NUMBER; hash = (53 * hash) + getCityDbPath().hashCode(); hash = (37 * hash) + ISP_DB_PATH_FIELD_NUMBER; hash = (53 * hash) + getIspDbPath().hashCode(); hash = (37 * hash) + ANON_DB_PATH_FIELD_NUMBER; hash = (53 * hash) + getAnonDbPath().hashCode(); if (hasCommonProviderConfig()) { hash = (37 * hash) + COMMON_PROVIDER_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getCommonProviderConfig().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig) io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxmindProto.internal_static_envoy_extensions_geoip_providers_maxmind_v3_MaxMindConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxmindProto.internal_static_envoy_extensions_geoip_providers_maxmind_v3_MaxMindConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig.class, io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig.Builder.class); } // Construct using io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); cityDbPath_ = ""; ispDbPath_ = ""; anonDbPath_ = ""; if (commonProviderConfigBuilder_ == null) { commonProviderConfig_ = null; } else { commonProviderConfig_ = null; commonProviderConfigBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxmindProto.internal_static_envoy_extensions_geoip_providers_maxmind_v3_MaxMindConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig build() { io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig buildPartial() { io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig result = new io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig(this); result.cityDbPath_ = cityDbPath_; result.ispDbPath_ = ispDbPath_; result.anonDbPath_ = anonDbPath_; if (commonProviderConfigBuilder_ == null) { result.commonProviderConfig_ = commonProviderConfig_; } else { result.commonProviderConfig_ = commonProviderConfigBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig) { return mergeFrom((io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig other) { if (other == io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig.getDefaultInstance()) return this; if (!other.getCityDbPath().isEmpty()) { cityDbPath_ = other.cityDbPath_; onChanged(); } if (!other.getIspDbPath().isEmpty()) { ispDbPath_ = other.ispDbPath_; onChanged(); } if (!other.getAnonDbPath().isEmpty()) { anonDbPath_ = other.anonDbPath_; onChanged(); } if (other.hasCommonProviderConfig()) { mergeCommonProviderConfig(other.getCommonProviderConfig()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object cityDbPath_ = ""; /** *
     * 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) = { ... } * @return The cityDbPath. */ public java.lang.String getCityDbPath() { java.lang.Object ref = cityDbPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cityDbPath_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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) = { ... } * @return The bytes for cityDbPath. */ public com.google.protobuf.ByteString getCityDbPathBytes() { java.lang.Object ref = cityDbPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cityDbPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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) = { ... } * @param value The cityDbPath to set. * @return This builder for chaining. */ public Builder setCityDbPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cityDbPath_ = value; onChanged(); return this; } /** *
     * 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) = { ... } * @return This builder for chaining. */ public Builder clearCityDbPath() { cityDbPath_ = getDefaultInstance().getCityDbPath(); onChanged(); return this; } /** *
     * 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) = { ... } * @param value The bytes for cityDbPath to set. * @return This builder for chaining. */ public Builder setCityDbPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cityDbPath_ = value; onChanged(); return this; } private java.lang.Object ispDbPath_ = ""; /** *
     * 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) = { ... } * @return The ispDbPath. */ public java.lang.String getIspDbPath() { java.lang.Object ref = ispDbPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ispDbPath_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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) = { ... } * @return The bytes for ispDbPath. */ public com.google.protobuf.ByteString getIspDbPathBytes() { java.lang.Object ref = ispDbPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ispDbPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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) = { ... } * @param value The ispDbPath to set. * @return This builder for chaining. */ public Builder setIspDbPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ispDbPath_ = value; onChanged(); return this; } /** *
     * 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) = { ... } * @return This builder for chaining. */ public Builder clearIspDbPath() { ispDbPath_ = getDefaultInstance().getIspDbPath(); onChanged(); return this; } /** *
     * 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) = { ... } * @param value The bytes for ispDbPath to set. * @return This builder for chaining. */ public Builder setIspDbPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ispDbPath_ = value; onChanged(); return this; } private java.lang.Object anonDbPath_ = ""; /** *
     * 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) = { ... } * @return The anonDbPath. */ public java.lang.String getAnonDbPath() { java.lang.Object ref = anonDbPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); anonDbPath_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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) = { ... } * @return The bytes for anonDbPath. */ public com.google.protobuf.ByteString getAnonDbPathBytes() { java.lang.Object ref = anonDbPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); anonDbPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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) = { ... } * @param value The anonDbPath to set. * @return This builder for chaining. */ public Builder setAnonDbPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } anonDbPath_ = value; onChanged(); return this; } /** *
     * 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) = { ... } * @return This builder for chaining. */ public Builder clearAnonDbPath() { anonDbPath_ = getDefaultInstance().getAnonDbPath(); onChanged(); return this; } /** *
     * 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) = { ... } * @param value The bytes for anonDbPath to set. * @return This builder for chaining. */ public Builder setAnonDbPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); anonDbPath_ = value; onChanged(); return this; } private io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig commonProviderConfig_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig, io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig.Builder, io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfigOrBuilder> commonProviderConfigBuilder_; /** *
     * 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) = { ... } * @return Whether the commonProviderConfig field is set. */ public boolean hasCommonProviderConfig() { return commonProviderConfigBuilder_ != null || commonProviderConfig_ != null; } /** *
     * 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) = { ... } * @return The commonProviderConfig. */ public io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig getCommonProviderConfig() { if (commonProviderConfigBuilder_ == null) { return commonProviderConfig_ == null ? io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig.getDefaultInstance() : commonProviderConfig_; } else { return commonProviderConfigBuilder_.getMessage(); } } /** *
     * 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) = { ... } */ public Builder setCommonProviderConfig(io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig value) { if (commonProviderConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commonProviderConfig_ = value; onChanged(); } else { commonProviderConfigBuilder_.setMessage(value); } return this; } /** *
     * 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) = { ... } */ public Builder setCommonProviderConfig( io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig.Builder builderForValue) { if (commonProviderConfigBuilder_ == null) { commonProviderConfig_ = builderForValue.build(); onChanged(); } else { commonProviderConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * 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) = { ... } */ public Builder mergeCommonProviderConfig(io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig value) { if (commonProviderConfigBuilder_ == null) { if (commonProviderConfig_ != null) { commonProviderConfig_ = io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig.newBuilder(commonProviderConfig_).mergeFrom(value).buildPartial(); } else { commonProviderConfig_ = value; } onChanged(); } else { commonProviderConfigBuilder_.mergeFrom(value); } return this; } /** *
     * 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) = { ... } */ public Builder clearCommonProviderConfig() { if (commonProviderConfigBuilder_ == null) { commonProviderConfig_ = null; onChanged(); } else { commonProviderConfig_ = null; commonProviderConfigBuilder_ = null; } return this; } /** *
     * 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) = { ... } */ public io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig.Builder getCommonProviderConfigBuilder() { onChanged(); return getCommonProviderConfigFieldBuilder().getBuilder(); } /** *
     * 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) = { ... } */ public io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfigOrBuilder getCommonProviderConfigOrBuilder() { if (commonProviderConfigBuilder_ != null) { return commonProviderConfigBuilder_.getMessageOrBuilder(); } else { return commonProviderConfig_ == null ? io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig.getDefaultInstance() : commonProviderConfig_; } } /** *
     * 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) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig, io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig.Builder, io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfigOrBuilder> getCommonProviderConfigFieldBuilder() { if (commonProviderConfigBuilder_ == null) { commonProviderConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig, io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfig.Builder, io.envoyproxy.envoy.extensions.geoip_providers.common.v3.CommonGeoipProviderConfigOrBuilder>( getCommonProviderConfig(), getParentForChildren(), isClean()); commonProviderConfig_ = null; } return commonProviderConfigBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig) } // @@protoc_insertion_point(class_scope:envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig) private static final io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig(); } public static io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MaxMindConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MaxMindConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy