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

io.envoyproxy.envoy.extensions.clusters.common.dns.v3.DnsLookupFamily Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/extensions/clusters/common/dns/v3/dns.proto

// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.extensions.clusters.common.dns.v3;

/**
 * Protobuf enum {@code envoy.extensions.clusters.common.dns.v3.DnsLookupFamily}
 */
public enum DnsLookupFamily
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * UNSPECIFIED = 0;
   */
  UNSPECIFIED(0),
  /**
   * AUTO = 1;
   */
  AUTO(1),
  /**
   * V4_ONLY = 2;
   */
  V4_ONLY(2),
  /**
   * V6_ONLY = 3;
   */
  V6_ONLY(3),
  /**
   * V4_PREFERRED = 4;
   */
  V4_PREFERRED(4),
  /**
   * ALL = 5;
   */
  ALL(5),
  UNRECOGNIZED(-1),
  ;

  /**
   * UNSPECIFIED = 0;
   */
  public static final int UNSPECIFIED_VALUE = 0;
  /**
   * AUTO = 1;
   */
  public static final int AUTO_VALUE = 1;
  /**
   * V4_ONLY = 2;
   */
  public static final int V4_ONLY_VALUE = 2;
  /**
   * V6_ONLY = 3;
   */
  public static final int V6_ONLY_VALUE = 3;
  /**
   * V4_PREFERRED = 4;
   */
  public static final int V4_PREFERRED_VALUE = 4;
  /**
   * ALL = 5;
   */
  public static final int ALL_VALUE = 5;


  public final int getNumber() {
    if (this == UNRECOGNIZED) {
      throw new java.lang.IllegalArgumentException(
          "Can't get the number of an unknown enum value.");
    }
    return value;
  }

  /**
   * @param value The numeric wire value of the corresponding enum entry.
   * @return The enum associated with the given numeric wire value.
   * @deprecated Use {@link #forNumber(int)} instead.
   */
  @java.lang.Deprecated
  public static DnsLookupFamily valueOf(int value) {
    return forNumber(value);
  }

  /**
   * @param value The numeric wire value of the corresponding enum entry.
   * @return The enum associated with the given numeric wire value.
   */
  public static DnsLookupFamily forNumber(int value) {
    switch (value) {
      case 0: return UNSPECIFIED;
      case 1: return AUTO;
      case 2: return V4_ONLY;
      case 3: return V6_ONLY;
      case 4: return V4_PREFERRED;
      case 5: return ALL;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      DnsLookupFamily> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public DnsLookupFamily findValueByNumber(int number) {
            return DnsLookupFamily.forNumber(number);
          }
        };

  public final com.google.protobuf.Descriptors.EnumValueDescriptor
      getValueDescriptor() {
    if (this == UNRECOGNIZED) {
      throw new java.lang.IllegalStateException(
          "Can't get the descriptor of an unrecognized enum value.");
    }
    return getDescriptor().getValues().get(ordinal());
  }
  public final com.google.protobuf.Descriptors.EnumDescriptor
      getDescriptorForType() {
    return getDescriptor();
  }
  public static final com.google.protobuf.Descriptors.EnumDescriptor
      getDescriptor() {
    return io.envoyproxy.envoy.extensions.clusters.common.dns.v3.DnsProto.getDescriptor().getEnumTypes().get(0);
  }

  private static final DnsLookupFamily[] VALUES = values();

  public static DnsLookupFamily valueOf(
      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    if (desc.getType() != getDescriptor()) {
      throw new java.lang.IllegalArgumentException(
        "EnumValueDescriptor is not for this type.");
    }
    if (desc.getIndex() == -1) {
      return UNRECOGNIZED;
    }
    return VALUES[desc.getIndex()];
  }

  private final int value;

  private DnsLookupFamily(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:envoy.extensions.clusters.common.dns.v3.DnsLookupFamily)
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy