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

commonMain.protokt.v1.google.api.error_reason.kt Maven / Gradle / Ivy

// Generated by protokt version 1.0.0-alpha.8. Do not modify.
// Source: google/api/error_reason.proto
@file:Suppress("DEPRECATION")

package protokt.v1.google.api

import protokt.v1.KtEnum
import protokt.v1.KtEnumDeserializer
import kotlin.Int
import kotlin.String
import kotlin.Suppress

public sealed class ErrorReason(
  override val `value`: Int,
  override val name: String
) : KtEnum() {
  public object ERROR_REASON_UNSPECIFIED : ErrorReason(0, "ERROR_REASON_UNSPECIFIED")

  public object SERVICE_DISABLED : ErrorReason(1, "SERVICE_DISABLED")

  public object BILLING_DISABLED : ErrorReason(2, "BILLING_DISABLED")

  public object API_KEY_INVALID : ErrorReason(3, "API_KEY_INVALID")

  public object API_KEY_SERVICE_BLOCKED : ErrorReason(4, "API_KEY_SERVICE_BLOCKED")

  public object API_KEY_HTTP_REFERRER_BLOCKED : ErrorReason(7, "API_KEY_HTTP_REFERRER_BLOCKED")

  public object API_KEY_IP_ADDRESS_BLOCKED : ErrorReason(8, "API_KEY_IP_ADDRESS_BLOCKED")

  public object API_KEY_ANDROID_APP_BLOCKED : ErrorReason(9, "API_KEY_ANDROID_APP_BLOCKED")

  public object API_KEY_IOS_APP_BLOCKED : ErrorReason(13, "API_KEY_IOS_APP_BLOCKED")

  public object RATE_LIMIT_EXCEEDED : ErrorReason(5, "RATE_LIMIT_EXCEEDED")

  public object RESOURCE_QUOTA_EXCEEDED : ErrorReason(6, "RESOURCE_QUOTA_EXCEEDED")

  public object LOCATION_TAX_POLICY_VIOLATED : ErrorReason(10, "LOCATION_TAX_POLICY_VIOLATED")

  public object USER_PROJECT_DENIED : ErrorReason(11, "USER_PROJECT_DENIED")

  public object CONSUMER_SUSPENDED : ErrorReason(12, "CONSUMER_SUSPENDED")

  public object CONSUMER_INVALID : ErrorReason(14, "CONSUMER_INVALID")

  public object SECURITY_POLICY_VIOLATED : ErrorReason(15, "SECURITY_POLICY_VIOLATED")

  public object ACCESS_TOKEN_EXPIRED : ErrorReason(16, "ACCESS_TOKEN_EXPIRED")

  public object ACCESS_TOKEN_SCOPE_INSUFFICIENT : ErrorReason(17, "ACCESS_TOKEN_SCOPE_INSUFFICIENT")

  public object ACCOUNT_STATE_INVALID : ErrorReason(18, "ACCOUNT_STATE_INVALID")

  public object ACCESS_TOKEN_TYPE_UNSUPPORTED : ErrorReason(19, "ACCESS_TOKEN_TYPE_UNSUPPORTED")

  public object CREDENTIALS_MISSING : ErrorReason(20, "CREDENTIALS_MISSING")

  public object RESOURCE_PROJECT_INVALID : ErrorReason(21, "RESOURCE_PROJECT_INVALID")

  public object SESSION_COOKIE_INVALID : ErrorReason(23, "SESSION_COOKIE_INVALID")

  public object USER_BLOCKED_BY_ADMIN : ErrorReason(24, "USER_BLOCKED_BY_ADMIN")

  public object RESOURCE_USAGE_RESTRICTION_VIOLATED : ErrorReason(
      25,
      "RESOURCE_USAGE_RESTRICTION_VIOLATED"
    )

  public object SYSTEM_PARAMETER_UNSUPPORTED : ErrorReason(26, "SYSTEM_PARAMETER_UNSUPPORTED")

  public object ORG_RESTRICTION_VIOLATION : ErrorReason(27, "ORG_RESTRICTION_VIOLATION")

  public object ORG_RESTRICTION_HEADER_INVALID : ErrorReason(28, "ORG_RESTRICTION_HEADER_INVALID")

  public object SERVICE_NOT_VISIBLE : ErrorReason(29, "SERVICE_NOT_VISIBLE")

  public object GCP_SUSPENDED : ErrorReason(30, "GCP_SUSPENDED")

  public class UNRECOGNIZED(
    `value`: Int
  ) : ErrorReason(value, "UNRECOGNIZED")

  public companion object Deserializer : KtEnumDeserializer {
    override fun from(`value`: Int): ErrorReason =
      when (value) {
        0 -> ERROR_REASON_UNSPECIFIED
        1 -> SERVICE_DISABLED
        2 -> BILLING_DISABLED
        3 -> API_KEY_INVALID
        4 -> API_KEY_SERVICE_BLOCKED
        7 -> API_KEY_HTTP_REFERRER_BLOCKED
        8 -> API_KEY_IP_ADDRESS_BLOCKED
        9 -> API_KEY_ANDROID_APP_BLOCKED
        13 -> API_KEY_IOS_APP_BLOCKED
        5 -> RATE_LIMIT_EXCEEDED
        6 -> RESOURCE_QUOTA_EXCEEDED
        10 -> LOCATION_TAX_POLICY_VIOLATED
        11 -> USER_PROJECT_DENIED
        12 -> CONSUMER_SUSPENDED
        14 -> CONSUMER_INVALID
        15 -> SECURITY_POLICY_VIOLATED
        16 -> ACCESS_TOKEN_EXPIRED
        17 -> ACCESS_TOKEN_SCOPE_INSUFFICIENT
        18 -> ACCOUNT_STATE_INVALID
        19 -> ACCESS_TOKEN_TYPE_UNSUPPORTED
        20 -> CREDENTIALS_MISSING
        21 -> RESOURCE_PROJECT_INVALID
        23 -> SESSION_COOKIE_INVALID
        24 -> USER_BLOCKED_BY_ADMIN
        25 -> RESOURCE_USAGE_RESTRICTION_VIOLATED
        26 -> SYSTEM_PARAMETER_UNSUPPORTED
        27 -> ORG_RESTRICTION_VIOLATION
        28 -> ORG_RESTRICTION_HEADER_INVALID
        29 -> SERVICE_NOT_VISIBLE
        30 -> GCP_SUSPENDED
        else -> UNRECOGNIZED(value)
      }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy