Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
error_reason.proto808 linesDownload Raw Back to api
1// Copyright 2026 Google LLC2//3// Licensed under the Apache License, Version 2.0 (the "License");4// you may not use this file except in compliance with the License.5// You may obtain a copy of the License at6//7//     http://www.apache.org/licenses/LICENSE-2.08//9// Unless required by applicable law or agreed to in writing, software10// distributed under the License is distributed on an "AS IS" BASIS,11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12// See the License for the specific language governing permissions and13// limitations under the License.14 15syntax = "proto3";16 17package google.api;18 19option go_package = "google.golang.org/genproto/googleapis/api/error_reason;error_reason";20option java_multiple_files = true;21option java_outer_classname = "ErrorReasonProto";22option java_package = "com.google.api";23option objc_class_prefix = "GAPI";24 25// Defines the supported values for `google.rpc.ErrorInfo.reason` for the26// `googleapis.com` error domain. This error domain is reserved for [Service27// Infrastructure](https://cloud.google.com/service-infrastructure/docs/overview).28// For each error info of this domain, the metadata key "service" refers to the29// logical identifier of an API service, such as "pubsub.googleapis.com". The30// "consumer" refers to the entity that consumes an API Service. It typically is31// a Google project that owns the client application or the server resource,32// such as "projects/123". Other metadata keys are specific to each error33// reason. For more information, see the definition of the specific error34// reason.35enum ErrorReason {36  // Do not use this default value.37  ERROR_REASON_UNSPECIFIED = 0;38 39  // The request is calling a disabled service for a consumer.40  //41  // Example of an ErrorInfo when the consumer "projects/123" contacting42  // "pubsub.googleapis.com" service which is disabled:43  //44  //     { "reason": "SERVICE_DISABLED",45  //       "domain": "googleapis.com",46  //       "metadata": {47  //         "consumer": "projects/123",48  //         "service": "pubsub.googleapis.com"49  //       }50  //     }51  //52  // This response indicates the "pubsub.googleapis.com" has been disabled in53  // "projects/123".54  SERVICE_DISABLED = 1;55 56  // The request whose associated billing account is disabled.57  //58  // Example of an ErrorInfo when the consumer "projects/123" fails to contact59  // "pubsub.googleapis.com" service because the associated billing account is60  // disabled:61  //62  //     { "reason": "BILLING_DISABLED",63  //       "domain": "googleapis.com",64  //       "metadata": {65  //         "consumer": "projects/123",66  //         "service": "pubsub.googleapis.com"67  //       }68  //     }69  //70  // This response indicates the billing account associated has been disabled.71  BILLING_DISABLED = 2;72 73  // The request is denied because the provided [API74  // key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It75  // may be in a bad format, cannot be found, or has been expired).76  //77  // Example of an ErrorInfo when the request is contacting78  // "storage.googleapis.com" service with an invalid API key:79  //80  //     { "reason": "API_KEY_INVALID",81  //       "domain": "googleapis.com",82  //       "metadata": {83  //         "service": "storage.googleapis.com",84  //       }85  //     }86  API_KEY_INVALID = 3;87 88  // The request is denied because it violates [API key API89  // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions).90  //91  // Example of an ErrorInfo when the consumer "projects/123" fails to call the92  // "storage.googleapis.com" service because this service is restricted in the93  // API key:94  //95  //     { "reason": "API_KEY_SERVICE_BLOCKED",96  //       "domain": "googleapis.com",97  //       "metadata": {98  //         "consumer": "projects/123",99  //         "service": "storage.googleapis.com"100  //       }101  //     }102  API_KEY_SERVICE_BLOCKED = 4;103 104  // The request is denied because it violates [API key HTTP105  // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).106  //107  // Example of an ErrorInfo when the consumer "projects/123" fails to call108  // "storage.googleapis.com" service because the http referrer of the request109  // violates API key HTTP restrictions:110  //111  //     { "reason": "API_KEY_HTTP_REFERRER_BLOCKED",112  //       "domain": "googleapis.com",113  //       "metadata": {114  //         "consumer": "projects/123",115  //         "service": "storage.googleapis.com",116  //       }117  //     }118  API_KEY_HTTP_REFERRER_BLOCKED = 7;119 120  // The request is denied because it violates [API key IP address121  // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).122  //123  // Example of an ErrorInfo when the consumer "projects/123" fails to call124  // "storage.googleapis.com" service because the caller IP of the request125  // violates API key IP address restrictions:126  //127  //     { "reason": "API_KEY_IP_ADDRESS_BLOCKED",128  //       "domain": "googleapis.com",129  //       "metadata": {130  //         "consumer": "projects/123",131  //         "service": "storage.googleapis.com",132  //       }133  //     }134  API_KEY_IP_ADDRESS_BLOCKED = 8;135 136  // The request is denied because it violates [API key Android application137  // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).138  //139  // Example of an ErrorInfo when the consumer "projects/123" fails to call140  // "storage.googleapis.com" service because the request from the Android apps141  // violates the API key Android application restrictions:142  //143  //     { "reason": "API_KEY_ANDROID_APP_BLOCKED",144  //       "domain": "googleapis.com",145  //       "metadata": {146  //         "consumer": "projects/123",147  //         "service": "storage.googleapis.com"148  //       }149  //     }150  API_KEY_ANDROID_APP_BLOCKED = 9;151 152  // The request is denied because it violates [API key iOS application153  // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).154  //155  // Example of an ErrorInfo when the consumer "projects/123" fails to call156  // "storage.googleapis.com" service because the request from the iOS apps157  // violates the API key iOS application restrictions:158  //159  //     { "reason": "API_KEY_IOS_APP_BLOCKED",160  //       "domain": "googleapis.com",161  //       "metadata": {162  //         "consumer": "projects/123",163  //         "service": "storage.googleapis.com"164  //       }165  //     }166  API_KEY_IOS_APP_BLOCKED = 13;167 168  // The request is denied because there is not enough rate quota for the169  // consumer.170  //171  // Example of an ErrorInfo when the consumer "projects/123" fails to contact172  // "pubsub.googleapis.com" service because consumer's rate quota usage has173  // reached the maximum value set for the quota limit174  // "ReadsPerMinutePerProject" on the quota metric175  // "pubsub.googleapis.com/read_requests":176  //177  //     { "reason": "RATE_LIMIT_EXCEEDED",178  //       "domain": "googleapis.com",179  //       "metadata": {180  //         "consumer": "projects/123",181  //         "service": "pubsub.googleapis.com",182  //         "quota_metric": "pubsub.googleapis.com/read_requests",183  //         "quota_limit": "ReadsPerMinutePerProject"184  //       }185  //     }186  //187  // Example of an ErrorInfo when the consumer "projects/123" checks quota on188  // the service "dataflow.googleapis.com" and hits the organization quota189  // limit "DefaultRequestsPerMinutePerOrganization" on the metric190  // "dataflow.googleapis.com/default_requests".191  //192  //     { "reason": "RATE_LIMIT_EXCEEDED",193  //       "domain": "googleapis.com",194  //       "metadata": {195  //         "consumer": "projects/123",196  //         "service": "dataflow.googleapis.com",197  //         "quota_metric": "dataflow.googleapis.com/default_requests",198  //         "quota_limit": "DefaultRequestsPerMinutePerOrganization"199  //       }200  //     }201  RATE_LIMIT_EXCEEDED = 5;202 203  // The request is denied because there is not enough resource quota for the204  // consumer.205  //206  // Example of an ErrorInfo when the consumer "projects/123" fails to contact207  // "compute.googleapis.com" service because consumer's resource quota usage208  // has reached the maximum value set for the quota limit "VMsPerProject"209  // on the quota metric "compute.googleapis.com/vms":210  //211  //     { "reason": "RESOURCE_QUOTA_EXCEEDED",212  //       "domain": "googleapis.com",213  //       "metadata": {214  //         "consumer": "projects/123",215  //         "service": "compute.googleapis.com",216  //         "quota_metric": "compute.googleapis.com/vms",217  //         "quota_limit": "VMsPerProject"218  //       }219  //     }220  //221  // Example of an ErrorInfo when the consumer "projects/123" checks resource222  // quota on the service "dataflow.googleapis.com" and hits the organization223  // quota limit "jobs-per-organization" on the metric224  // "dataflow.googleapis.com/job_count".225  //226  //     { "reason": "RESOURCE_QUOTA_EXCEEDED",227  //       "domain": "googleapis.com",228  //       "metadata": {229  //         "consumer": "projects/123",230  //         "service": "dataflow.googleapis.com",231  //         "quota_metric": "dataflow.googleapis.com/job_count",232  //         "quota_limit": "jobs-per-organization"233  //       }234  //     }235  RESOURCE_QUOTA_EXCEEDED = 6;236 237  // The request whose associated billing account address is in a tax restricted238  // location, violates the local tax restrictions when creating resources in239  // the restricted region.240  //241  // Example of an ErrorInfo when creating the Cloud Storage Bucket in the242  // container "projects/123" under a tax restricted region243  // "locations/asia-northeast3":244  //245  //     { "reason": "LOCATION_TAX_POLICY_VIOLATED",246  //       "domain": "googleapis.com",247  //       "metadata": {248  //         "consumer": "projects/123",249  //         "service": "storage.googleapis.com",250  //         "location": "locations/asia-northeast3"251  //       }252  //     }253  //254  // This response indicates creating the Cloud Storage Bucket in255  // "locations/asia-northeast3" violates the location tax restriction.256  LOCATION_TAX_POLICY_VIOLATED = 10;257 258  // The request is denied because the caller does not have required permission259  // on the user project "projects/123" or the user project is invalid. For more260  // information, check the [userProject System261  // Parameters](https://cloud.google.com/apis/docs/system-parameters).262  //263  // Example of an ErrorInfo when the caller is calling Cloud Storage service264  // with insufficient permissions on the user project:265  //266  //     { "reason": "USER_PROJECT_DENIED",267  //       "domain": "googleapis.com",268  //       "metadata": {269  //         "consumer": "projects/123",270  //         "service": "storage.googleapis.com"271  //       }272  //     }273  USER_PROJECT_DENIED = 11;274 275  // The request is denied because the consumer "projects/123" is suspended due276  // to Terms of Service(Tos) violations. Check [Project suspension277  // guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines)278  // for more information.279  //280  // Example of an ErrorInfo when calling Cloud Storage service with the281  // suspended consumer "projects/123":282  //283  //     { "reason": "CONSUMER_SUSPENDED",284  //       "domain": "googleapis.com",285  //       "metadata": {286  //         "consumer": "projects/123",287  //         "service": "storage.googleapis.com"288  //       }289  //     }290  CONSUMER_SUSPENDED = 12;291 292  // The request is denied because the associated consumer is invalid. It may be293  // in a bad format, cannot be found, or have been deleted.294  //295  // Example of an ErrorInfo when calling Cloud Storage service with the296  // invalid consumer "projects/123":297  //298  //     { "reason": "CONSUMER_INVALID",299  //       "domain": "googleapis.com",300  //       "metadata": {301  //         "consumer": "projects/123",302  //         "service": "storage.googleapis.com"303  //       }304  //     }305  CONSUMER_INVALID = 14;306 307  // The request is denied because it violates [VPC Service308  // Controls](https://cloud.google.com/vpc-service-controls/docs/overview).309  // The 'uid' field is a random generated identifier that customer can use it310  // to search the audit log for a request rejected by VPC Service Controls. For311  // more information, please refer [VPC Service Controls312  // Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id)313  //314  // Example of an ErrorInfo when the consumer "projects/123" fails to call315  // Cloud Storage service because the request is prohibited by the VPC Service316  // Controls.317  //318  //     { "reason": "SECURITY_POLICY_VIOLATED",319  //       "domain": "googleapis.com",320  //       "metadata": {321  //         "uid": "123456789abcde",322  //         "consumer": "projects/123",323  //         "service": "storage.googleapis.com"324  //       }325  //     }326  SECURITY_POLICY_VIOLATED = 15;327 328  // The request is denied because the provided access token has expired.329  //330  // Example of an ErrorInfo when the request is calling Cloud Storage service331  // with an expired access token:332  //333  //     { "reason": "ACCESS_TOKEN_EXPIRED",334  //       "domain": "googleapis.com",335  //       "metadata": {336  //         "service": "storage.googleapis.com",337  //         "method": "google.storage.v1.Storage.GetObject"338  //       }339  //     }340  ACCESS_TOKEN_EXPIRED = 16;341 342  // The request is denied because the provided access token doesn't have at343  // least one of the acceptable scopes required for the API. Please check344  // [OAuth 2.0 Scopes for Google345  // APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for346  // the list of the OAuth 2.0 scopes that you might need to request to access347  // the API.348  //349  // Example of an ErrorInfo when the request is calling Cloud Storage service350  // with an access token that is missing required scopes:351  //352  //     { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",353  //       "domain": "googleapis.com",354  //       "metadata": {355  //         "service": "storage.googleapis.com",356  //         "method": "google.storage.v1.Storage.GetObject"357  //       }358  //     }359  ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17;360 361  // The request is denied because the account associated with the provided362  // access token is in an invalid state, such as disabled or deleted.363  // For more information, see https://cloud.google.com/docs/authentication.364  //365  // Warning: For privacy reasons, the server may not be able to disclose the366  // email address for some accounts. The client MUST NOT depend on the367  // availability of the `email` attribute.368  //369  // Example of an ErrorInfo when the request is to the Cloud Storage API with370  // an access token that is associated with a disabled or deleted [service371  // account](http://cloud/iam/docs/service-accounts):372  //373  //     { "reason": "ACCOUNT_STATE_INVALID",374  //       "domain": "googleapis.com",375  //       "metadata": {376  //         "service": "storage.googleapis.com",377  //         "method": "google.storage.v1.Storage.GetObject",378  //         "email": "user@123.iam.gserviceaccount.com"379  //       }380  //     }381  ACCOUNT_STATE_INVALID = 18;382 383  // The request is denied because the type of the provided access token is not384  // supported by the API being called.385  //386  // Example of an ErrorInfo when the request is to the Cloud Storage API with387  // an unsupported token type.388  //389  //     { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",390  //       "domain": "googleapis.com",391  //       "metadata": {392  //         "service": "storage.googleapis.com",393  //         "method": "google.storage.v1.Storage.GetObject"394  //       }395  //     }396  ACCESS_TOKEN_TYPE_UNSUPPORTED = 19;397 398  // The request is denied because the request doesn't have any authentication399  // credentials. For more information regarding the supported authentication400  // strategies for Google Cloud APIs, see401  // https://cloud.google.com/docs/authentication.402  //403  // Example of an ErrorInfo when the request is to the Cloud Storage API404  // without any authentication credentials.405  //406  //     { "reason": "CREDENTIALS_MISSING",407  //       "domain": "googleapis.com",408  //       "metadata": {409  //         "service": "storage.googleapis.com",410  //         "method": "google.storage.v1.Storage.GetObject"411  //       }412  //     }413  CREDENTIALS_MISSING = 20;414 415  // The request is denied because the provided project owning the resource416  // which acts as the [API417  // consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is418  // invalid. It may be in a bad format or empty.419  //420  // Example of an ErrorInfo when the request is to the Cloud Functions API,421  // but the offered resource project in the request in a bad format which can't422  // perform the ListFunctions method.423  //424  //     { "reason": "RESOURCE_PROJECT_INVALID",425  //       "domain": "googleapis.com",426  //       "metadata": {427  //         "service": "cloudfunctions.googleapis.com",428  //         "method":429  //         "google.cloud.functions.v1.CloudFunctionsService.ListFunctions"430  //       }431  //     }432  RESOURCE_PROJECT_INVALID = 21;433 434  // The request is denied because the provided session cookie is missing,435  // invalid or failed to decode.436  //437  // Example of an ErrorInfo when the request is calling Cloud Storage service438  // with a SID cookie which can't be decoded.439  //440  //     { "reason": "SESSION_COOKIE_INVALID",441  //       "domain": "googleapis.com",442  //       "metadata": {443  //         "service": "storage.googleapis.com",444  //         "method": "google.storage.v1.Storage.GetObject",445  //         "cookie": "SID"446  //       }447  //     }448  SESSION_COOKIE_INVALID = 23;449 450  // The request is denied because the user is from a Google Workspace customer451  // that blocks their users from accessing a particular service.452  //453  // Example scenario: https://support.google.com/a/answer/9197205?hl=en454  //455  // Example of an ErrorInfo when access to Google Cloud Storage service is456  // blocked by the Google Workspace administrator:457  //458  //     { "reason": "USER_BLOCKED_BY_ADMIN",459  //       "domain": "googleapis.com",460  //       "metadata": {461  //         "service": "storage.googleapis.com",462  //         "method": "google.storage.v1.Storage.GetObject",463  //       }464  //     }465  USER_BLOCKED_BY_ADMIN = 24;466 467  // The request is denied because the resource service usage is restricted468  // by administrators according to the organization policy constraint.469  // For more information see470  // https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.471  //472  // Example of an ErrorInfo when access to Google Cloud Storage service is473  // restricted by Resource Usage Restriction policy:474  //475  //     { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",476  //       "domain": "googleapis.com",477  //       "metadata": {478  //         "consumer": "projects/project-123",479  //         "service": "storage.googleapis.com"480  //       }481  //     }482  RESOURCE_USAGE_RESTRICTION_VIOLATED = 25;483 484  // Unimplemented. Do not use.485  //486  // The request is denied because it contains unsupported system parameters in487  // URL query parameters or HTTP headers. For more information,488  // see https://cloud.google.com/apis/docs/system-parameters489  //490  // Example of an ErrorInfo when access "pubsub.googleapis.com" service with491  // a request header of "x-goog-user-ip":492  //493  //     { "reason": "SYSTEM_PARAMETER_UNSUPPORTED",494  //       "domain": "googleapis.com",495  //       "metadata": {496  //         "service": "pubsub.googleapis.com"497  //         "parameter": "x-goog-user-ip"498  //       }499  //     }500  SYSTEM_PARAMETER_UNSUPPORTED = 26;501 502  // The request is denied because it violates Org Restriction: the requested503  // resource does not belong to allowed organizations specified in504  // "X-Goog-Allowed-Resources" header.505  //506  // Example of an ErrorInfo when accessing a GCP resource that is restricted by507  // Org Restriction for "pubsub.googleapis.com" service.508  //509  // {510  //   reason: "ORG_RESTRICTION_VIOLATION"511  //   domain: "googleapis.com"512  //   metadata {513  //     "consumer":"projects/123456"514  //     "service": "pubsub.googleapis.com"515  //   }516  // }517  ORG_RESTRICTION_VIOLATION = 27;518 519  // The request is denied because "X-Goog-Allowed-Resources" header is in a bad520  // format.521  //522  // Example of an ErrorInfo when523  // accessing "pubsub.googleapis.com" service with an invalid524  // "X-Goog-Allowed-Resources" request header.525  //526  // {527  //   reason: "ORG_RESTRICTION_HEADER_INVALID"528  //   domain: "googleapis.com"529  //   metadata {530  //     "consumer":"projects/123456"531  //     "service": "pubsub.googleapis.com"532  //   }533  // }534  ORG_RESTRICTION_HEADER_INVALID = 28;535 536  // Unimplemented. Do not use.537  //538  // The request is calling a service that is not visible to the consumer.539  //540  // Example of an ErrorInfo when the consumer "projects/123" contacting541  //  "pubsub.googleapis.com" service which is not visible to the consumer.542  //543  //     { "reason": "SERVICE_NOT_VISIBLE",544  //       "domain": "googleapis.com",545  //       "metadata": {546  //         "consumer": "projects/123",547  //         "service": "pubsub.googleapis.com"548  //       }549  //     }550  //551  // This response indicates the "pubsub.googleapis.com" is not visible to552  // "projects/123" (or it may not exist).553  SERVICE_NOT_VISIBLE = 29;554 555  // The request is related to a project for which GCP access is suspended.556  //557  // Example of an ErrorInfo when the consumer "projects/123" fails to contact558  // "pubsub.googleapis.com" service because GCP access is suspended:559  //560  //     { "reason": "GCP_SUSPENDED",561  //       "domain": "googleapis.com",562  //       "metadata": {563  //         "consumer": "projects/123",564  //         "service": "pubsub.googleapis.com"565  //       }566  //     }567  //568  // This response indicates the associated GCP account has been suspended.569  GCP_SUSPENDED = 30;570 571  // The request violates the location policies when creating resources in572  // the restricted region.573  //574  // Example of an ErrorInfo when creating the Cloud Storage Bucket by575  // "projects/123" for service storage.googleapis.com:576  //577  //     { "reason": "LOCATION_POLICY_VIOLATED",578  //       "domain": "googleapis.com",579  //       "metadata": {580  //         "consumer": "projects/123",581  //         "service": "storage.googleapis.com",582  //       }583  //     }584  //585  // This response indicates creating the Cloud Storage Bucket in586  // "locations/asia-northeast3" violates at least one location policy.587  // The troubleshooting guidance is provided in the Help links.588  LOCATION_POLICY_VIOLATED = 31;589 590  // The request is denied because origin request header is missing.591  //592  // Example of an ErrorInfo when593  // accessing "pubsub.googleapis.com" service with an empty "Origin" request594  // header.595  //596  // {597  //   reason: "MISSING_ORIGIN"598  //   domain: "googleapis.com"599  //   metadata {600  //     "consumer":"projects/123456"601  //     "service": "pubsub.googleapis.com"602  //   }603  // }604  MISSING_ORIGIN = 33;605 606  // The request is denied because the request contains more than one credential607  // type that are individually acceptable, but not together. The customer608  // should retry their request with only one set of credentials.609  //610  // Example of an ErrorInfo when611  // accessing "pubsub.googleapis.com" service with overloaded credentials.612  //613  // {614  //   reason: "OVERLOADED_CREDENTIALS"615  //   domain: "googleapis.com"616  //   metadata {617  //     "consumer":"projects/123456"618  //     "service": "pubsub.googleapis.com"619  //   }620  // }621  OVERLOADED_CREDENTIALS = 34;622 623  // The request whose associated location violates the location org policy624  // restrictions when creating resources in the restricted region.625  //626  // Example of an ErrorInfo when creating the Cloud Storage Bucket in the627  // container "projects/123" under a restricted region628  // "locations/asia-northeast3":629  //630  //     {631  //       "reason": "LOCATION_ORG_POLICY_VIOLATED",632  //       "domain": "googleapis.com",633  //       "metadata": {634  //         "resource": "projects/123",635  //         "location": "locations/asia-northeast3"636  //       }637  //     }638  //639  // This response indicates creating the Cloud Storage Bucket in640  // "locations/asia-northeast3" violates the location org policy restriction.641  LOCATION_ORG_POLICY_VIOLATED = 35;642 643  // The request is denied because it access data of regulated customers using644  // TLS 1.0 and 1.1.645  //646  // Example of an ErrorInfo when accessing a GCP resource "projects/123" that647  // is restricted by TLS Version Restriction for "pubsub.googleapis.com"648  // service.649  //650  //     {651  //       "reason": "TLS_ORG_POLICY_VIOLATED",652  //       "domain": "googleapis.com",653  //       "metadata": {654  //         "service": "pubsub.googleapis.com"655  //         "resource": "projects/123",656  //         "policyName": "constraints/gcp.restrictTLSVersion",657  //         "tlsVersion": "TLS_VERSION_1"658  //       }659  //     }660  TLS_ORG_POLICY_VIOLATED = 36;661 662  // The request is denied because the associated project has exceeded the663  // emulator quota limit.664  //665  // Example of an ErrorInfo when the associated "projects/123" has exceeded the666  // emulator quota limit.667  //668  //     {669  //       "reason": "EMULATOR_QUOTA_EXCEEDED",670  //       "domain": "googleapis.com",671  //       "metadata": {672  //           "service": "pubsub.googleapis.com"673  //           "consumer": "projects/123"674  //        }675  //     }676  EMULATOR_QUOTA_EXCEEDED = 38;677 678  // The request is denied because the associated application credential header679  // is invalid for an Android applications.680  //681  // Example of an ErrorInfo when the request from an Android application to the682  // "pubsub.googleapis.com" with an invalid application credential header.683  //684  //     {685  //       "reason": "CREDENTIAL_ANDROID_APP_INVALID",686  //       "domain": "googleapis.com",687  //       "metadata": {688  //           "service": "pubsub.googleapis.com"689  //        }690  //     }691  CREDENTIAL_ANDROID_APP_INVALID = 39;692 693  // The request is denied because IAM permission on resource is denied.694  //695  // Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list`696  // is denied on resource `projects/123`.697  //698  //     {699  //       "reason": "IAM_PERMISSION_DENIED",700  //       "domain": "googleapis.com",701  //       "metadata": {702  //           "resource": "projects/123"703  //           "permission": "aiplatform.datasets.list"704  //        }705  //     }706  IAM_PERMISSION_DENIED = 41;707 708  // The request is denied because it contains the invalid JWT token.709  //710  // Example of an ErrorInfo when the request contains an invalid JWT token for711  // service `storage.googleapis.com`.712  //713  //     {714  //       "reason": "JWT_TOKEN_INVALID",715  //       "domain": "googleapis.com",716  //       "metadata": {717  //           "service": "storage.googleapis.com"718  //        }719  //     }720  JWT_TOKEN_INVALID = 42;721 722  // The request is denied because it contains credential with type that is723  // unsupported.724  //725  // Example of an ErrorInfo when the request contains an unsupported credential726  // type for service `storage.googleapis.com`.727  //728  //     {729  //       "reason": "CREDENTIAL_TYPE_UNSUPPORTED",730  //       "domain": "googleapis.com",731  //       "metadata": {732  //           "service": "storage.googleapis.com"733  //        }734  //     }735  CREDENTIAL_TYPE_UNSUPPORTED = 43;736 737  // The request is denied because it contains unsupported account type.738  //739  // Example of an ErrorInfo when the request contains an unsupported account740  // type for service `storage.googleapis.com`.741  //742  //     {743  //       "reason": "ACCOUNT_TYPE_UNSUPPORTED",744  //       "domain": "googleapis.com",745  //       "metadata": {746  //           "service": "storage.googleapis.com"747  //        }748  //     }749  ACCOUNT_TYPE_UNSUPPORTED = 44;750 751  // The request is denied because the API endpoint is restricted by752  // administrators according to the organization policy constraint.753  // For more information see754  // https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage.755  //756  // Example of an ErrorInfo when access to Google Cloud Storage service is757  // restricted by Restrict Endpoint Usage policy:758  //759  //     {760  //       "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED",761  //       "domain": "googleapis.com/policies/endpointUsageRestriction",762  //       "metadata": {763  //         "policy_name": "constraints/gcp.restrictEndpointUsage",764  //         "checked_value": "storage.googleapis.com"765  //         "consumer": "organization/123"766  //         "service": "storage.googleapis.com"767  //        }768  //     }769  ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45;770 771  // The request is denied because the TLS Cipher Suite is restricted by772  // administrators according to the organization policy constraint.773  // For more information see774  // https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites775  //776  // Example of an ErrorInfo when access to Google Cloud BigQuery service is777  // restricted by Restrict TLS Cipher Suites policy:778  //779  //     {780  //       "reason": "TLS_CIPHER_RESTRICTION_VIOLATED",781  //       "domain": "googleapis.com/policies/tlsCipherRestriction",782  //       "metadata": {783  //         "policy_name": "constraints/gcp.restrictTLSCipherSuites",784  //         "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256785  //         "consumer": "organization/123"786  //         "service": "bigquery.googleapis.com"787  //        }788  //     }789  TLS_CIPHER_RESTRICTION_VIOLATED = 46;790 791  // The request is denied because the MCP activation check fails.792  //793  // Example of an ErrorInfo when the container "projects/123" contacting794  // "pubsub.googleapis.com" service which is disabled by MCP:795  //796  //     { "reason": "MCP_SERVER_DISABLED",797  //       "domain": "googleapis.com",798  //       "metadata": {799  //         "consumer": "projects/123",800  //         "service": "pubsub.googleapis.com"801  //       }802  //     }803  //804  // This response indicates the "pubsub.googleapis.com" has been disabled in805  // "projects/123" for MCP.806  MCP_SERVER_DISABLED = 47;807}808 
codekingpro/portable-devtools · Team Ai