// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/monitoring/v3/common.proto

package com.google.monitoring.v3;

/**
 *
 *
 * <pre>
 * The tier of service for a Stackdriver account. Please see the
 * [service tiers documentation](https://cloud.google.com/monitoring/accounts/tiers)
 * for more details.
 * </pre>
 *
 * Protobuf enum {@code google.monitoring.v3.ServiceTier}
 */
public enum ServiceTier implements com.google.protobuf.ProtocolMessageEnum {
  /**
   *
   *
   * <pre>
   * An invalid sentinel value, used to indicate that a tier has not
   * been provided explicitly.
   * </pre>
   *
   * <code>SERVICE_TIER_UNSPECIFIED = 0;</code>
   */
  SERVICE_TIER_UNSPECIFIED(0),
  /**
   *
   *
   * <pre>
   * The Stackdriver Basic tier, a free tier of service that provides basic
   * features, a moderate allotment of logs, and access to built-in metrics.
   * A number of features are not available in this tier. For more details,
   * see [the service tiers documentation](https://cloud.google.com/monitoring/accounts/tiers).
   * </pre>
   *
   * <code>SERVICE_TIER_BASIC = 1;</code>
   */
  SERVICE_TIER_BASIC(1),
  /**
   *
   *
   * <pre>
   * The Stackdriver Premium tier, a higher, more expensive tier of service
   * that provides access to all Stackdriver features, lets you use Stackdriver
   * with AWS accounts, and has a larger allotments for logs and metrics. For
   * more details, see [the service tiers documentation](https://cloud.google.com/monitoring/accounts/tiers).
   * </pre>
   *
   * <code>SERVICE_TIER_PREMIUM = 2;</code>
   */
  SERVICE_TIER_PREMIUM(2),
  UNRECOGNIZED(-1),
  ;

  /**
   *
   *
   * <pre>
   * An invalid sentinel value, used to indicate that a tier has not
   * been provided explicitly.
   * </pre>
   *
   * <code>SERVICE_TIER_UNSPECIFIED = 0;</code>
   */
  public static final int SERVICE_TIER_UNSPECIFIED_VALUE = 0;
  /**
   *
   *
   * <pre>
   * The Stackdriver Basic tier, a free tier of service that provides basic
   * features, a moderate allotment of logs, and access to built-in metrics.
   * A number of features are not available in this tier. For more details,
   * see [the service tiers documentation](https://cloud.google.com/monitoring/accounts/tiers).
   * </pre>
   *
   * <code>SERVICE_TIER_BASIC = 1;</code>
   */
  public static final int SERVICE_TIER_BASIC_VALUE = 1;
  /**
   *
   *
   * <pre>
   * The Stackdriver Premium tier, a higher, more expensive tier of service
   * that provides access to all Stackdriver features, lets you use Stackdriver
   * with AWS accounts, and has a larger allotments for logs and metrics. For
   * more details, see [the service tiers documentation](https://cloud.google.com/monitoring/accounts/tiers).
   * </pre>
   *
   * <code>SERVICE_TIER_PREMIUM = 2;</code>
   */
  public static final int SERVICE_TIER_PREMIUM_VALUE = 2;

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

  /** @deprecated Use {@link #forNumber(int)} instead. */
  @java.lang.Deprecated
  public static ServiceTier valueOf(int value) {
    return forNumber(value);
  }

  public static ServiceTier forNumber(int value) {
    switch (value) {
      case 0:
        return SERVICE_TIER_UNSPECIFIED;
      case 1:
        return SERVICE_TIER_BASIC;
      case 2:
        return SERVICE_TIER_PREMIUM;
      default:
        return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap<ServiceTier> internalGetValueMap() {
    return internalValueMap;
  }

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

  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
    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 com.google.monitoring.v3.CommonProto.getDescriptor().getEnumTypes().get(1);
  }

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

  public static ServiceTier 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 ServiceTier(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:google.monitoring.v3.ServiceTier)
}
