| 1 |
// Copyright 2026 Google LLC |
| 2 |
// |
| 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 at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// 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 and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.26.0 |
| 18 |
// protoc v4.24.4 |
| 19 |
// source: google/api/error_reason.proto |
| 20 |
|
| 21 |
package error_reason |
| 22 |
|
| 23 |
import ( |
| 24 |
reflect "reflect" |
| 25 |
sync "sync" |
| 26 |
|
| 27 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 28 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
// Verify that this generated code is sufficiently up-to-date. |
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 36 |
) |
| 37 |
|
| 38 |
// Defines the supported values for `google.rpc.ErrorInfo.reason` for the |
| 39 |
// `googleapis.com` error domain. This error domain is reserved for [Service |
| 40 |
// Infrastructure](https://cloud.google.com/service-infrastructure/docs/overview). |
| 41 |
// For each error info of this domain, the metadata key "service" refers to the |
| 42 |
// logical identifier of an API service, such as "pubsub.googleapis.com". The |
| 43 |
// "consumer" refers to the entity that consumes an API Service. It typically is |
| 44 |
// a Google project that owns the client application or the server resource, |
| 45 |
// such as "projects/123". Other metadata keys are specific to each error |
| 46 |
// reason. For more information, see the definition of the specific error |
| 47 |
// reason. |
| 48 |
type ErrorReason int32 |
| 49 |
|
| 50 |
const ( |
| 51 |
// Do not use this default value. |
| 52 |
ErrorReason_ERROR_REASON_UNSPECIFIED ErrorReason = 0 |
| 53 |
// The request is calling a disabled service for a consumer. |
| 54 |
// |
| 55 |
// Example of an ErrorInfo when the consumer "projects/123" contacting |
| 56 |
// "pubsub.googleapis.com" service which is disabled: |
| 57 |
// |
| 58 |
// { "reason": "SERVICE_DISABLED", |
| 59 |
// "domain": "googleapis.com", |
| 60 |
// "metadata": { |
| 61 |
// "consumer": "projects/123", |
| 62 |
// "service": "pubsub.googleapis.com" |
| 63 |
// } |
| 64 |
// } |
| 65 |
// |
| 66 |
// This response indicates the "pubsub.googleapis.com" has been disabled in |
| 67 |
// "projects/123". |
| 68 |
ErrorReason_SERVICE_DISABLED ErrorReason = 1 |
| 69 |
// The request whose associated billing account is disabled. |
| 70 |
// |
| 71 |
// Example of an ErrorInfo when the consumer "projects/123" fails to contact |
| 72 |
// "pubsub.googleapis.com" service because the associated billing account is |
| 73 |
// disabled: |
| 74 |
// |
| 75 |
// { "reason": "BILLING_DISABLED", |
| 76 |
// "domain": "googleapis.com", |
| 77 |
// "metadata": { |
| 78 |
// "consumer": "projects/123", |
| 79 |
// "service": "pubsub.googleapis.com" |
| 80 |
// } |
| 81 |
// } |
| 82 |
// |
| 83 |
// This response indicates the billing account associated has been disabled. |
| 84 |
ErrorReason_BILLING_DISABLED ErrorReason = 2 |
| 85 |
// The request is denied because the provided [API |
| 86 |
// key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It |
| 87 |
// may be in a bad format, cannot be found, or has been expired). |
| 88 |
// |
| 89 |
// Example of an ErrorInfo when the request is contacting |
| 90 |
// "storage.googleapis.com" service with an invalid API key: |
| 91 |
// |
| 92 |
// { "reason": "API_KEY_INVALID", |
| 93 |
// "domain": "googleapis.com", |
| 94 |
// "metadata": { |
| 95 |
// "service": "storage.googleapis.com", |
| 96 |
// } |
| 97 |
// } |
| 98 |
ErrorReason_API_KEY_INVALID ErrorReason = 3 |
| 99 |
// The request is denied because it violates [API key API |
| 100 |
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions). |
| 101 |
// |
| 102 |
// Example of an ErrorInfo when the consumer "projects/123" fails to call the |
| 103 |
// "storage.googleapis.com" service because this service is restricted in the |
| 104 |
// API key: |
| 105 |
// |
| 106 |
// { "reason": "API_KEY_SERVICE_BLOCKED", |
| 107 |
// "domain": "googleapis.com", |
| 108 |
// "metadata": { |
| 109 |
// "consumer": "projects/123", |
| 110 |
// "service": "storage.googleapis.com" |
| 111 |
// } |
| 112 |
// } |
| 113 |
ErrorReason_API_KEY_SERVICE_BLOCKED ErrorReason = 4 |
| 114 |
// The request is denied because it violates [API key HTTP |
| 115 |
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions). |
| 116 |
// |
| 117 |
// Example of an ErrorInfo when the consumer "projects/123" fails to call |
| 118 |
// "storage.googleapis.com" service because the http referrer of the request |
| 119 |
// violates API key HTTP restrictions: |
| 120 |
// |
| 121 |
// { "reason": "API_KEY_HTTP_REFERRER_BLOCKED", |
| 122 |
// "domain": "googleapis.com", |
| 123 |
// "metadata": { |
| 124 |
// "consumer": "projects/123", |
| 125 |
// "service": "storage.googleapis.com", |
| 126 |
// } |
| 127 |
// } |
| 128 |
ErrorReason_API_KEY_HTTP_REFERRER_BLOCKED ErrorReason = 7 |
| 129 |
// The request is denied because it violates [API key IP address |
| 130 |
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). |
| 131 |
// |
| 132 |
// Example of an ErrorInfo when the consumer "projects/123" fails to call |
| 133 |
// "storage.googleapis.com" service because the caller IP of the request |
| 134 |
// violates API key IP address restrictions: |
| 135 |
// |
| 136 |
// { "reason": "API_KEY_IP_ADDRESS_BLOCKED", |
| 137 |
// "domain": "googleapis.com", |
| 138 |
// "metadata": { |
| 139 |
// "consumer": "projects/123", |
| 140 |
// "service": "storage.googleapis.com", |
| 141 |
// } |
| 142 |
// } |
| 143 |
ErrorReason_API_KEY_IP_ADDRESS_BLOCKED ErrorReason = 8 |
| 144 |
// The request is denied because it violates [API key Android application |
| 145 |
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). |
| 146 |
// |
| 147 |
// Example of an ErrorInfo when the consumer "projects/123" fails to call |
| 148 |
// "storage.googleapis.com" service because the request from the Android apps |
| 149 |
// violates the API key Android application restrictions: |
| 150 |
// |
| 151 |
// { "reason": "API_KEY_ANDROID_APP_BLOCKED", |
| 152 |
// "domain": "googleapis.com", |
| 153 |
// "metadata": { |
| 154 |
// "consumer": "projects/123", |
| 155 |
// "service": "storage.googleapis.com" |
| 156 |
// } |
| 157 |
// } |
| 158 |
ErrorReason_API_KEY_ANDROID_APP_BLOCKED ErrorReason = 9 |
| 159 |
// The request is denied because it violates [API key iOS application |
| 160 |
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). |
| 161 |
// |
| 162 |
// Example of an ErrorInfo when the consumer "projects/123" fails to call |
| 163 |
// "storage.googleapis.com" service because the request from the iOS apps |
| 164 |
// violates the API key iOS application restrictions: |
| 165 |
// |
| 166 |
// { "reason": "API_KEY_IOS_APP_BLOCKED", |
| 167 |
// "domain": "googleapis.com", |
| 168 |
// "metadata": { |
| 169 |
// "consumer": "projects/123", |
| 170 |
// "service": "storage.googleapis.com" |
| 171 |
// } |
| 172 |
// } |
| 173 |
ErrorReason_API_KEY_IOS_APP_BLOCKED ErrorReason = 13 |
| 174 |
// The request is denied because there is not enough rate quota for the |
| 175 |
// consumer. |
| 176 |
// |
| 177 |
// Example of an ErrorInfo when the consumer "projects/123" fails to contact |
| 178 |
// "pubsub.googleapis.com" service because consumer's rate quota usage has |
| 179 |
// reached the maximum value set for the quota limit |
| 180 |
// "ReadsPerMinutePerProject" on the quota metric |
| 181 |
// "pubsub.googleapis.com/read_requests": |
| 182 |
// |
| 183 |
// { "reason": "RATE_LIMIT_EXCEEDED", |
| 184 |
// "domain": "googleapis.com", |
| 185 |
// "metadata": { |
| 186 |
// "consumer": "projects/123", |
| 187 |
// "service": "pubsub.googleapis.com", |
| 188 |
// "quota_metric": "pubsub.googleapis.com/read_requests", |
| 189 |
// "quota_limit": "ReadsPerMinutePerProject" |
| 190 |
// } |
| 191 |
// } |
| 192 |
// |
| 193 |
// Example of an ErrorInfo when the consumer "projects/123" checks quota on |
| 194 |
// the service "dataflow.googleapis.com" and hits the organization quota |
| 195 |
// limit "DefaultRequestsPerMinutePerOrganization" on the metric |
| 196 |
// "dataflow.googleapis.com/default_requests". |
| 197 |
// |
| 198 |
// { "reason": "RATE_LIMIT_EXCEEDED", |
| 199 |
// "domain": "googleapis.com", |
| 200 |
// "metadata": { |
| 201 |
// "consumer": "projects/123", |
| 202 |
// "service": "dataflow.googleapis.com", |
| 203 |
// "quota_metric": "dataflow.googleapis.com/default_requests", |
| 204 |
// "quota_limit": "DefaultRequestsPerMinutePerOrganization" |
| 205 |
// } |
| 206 |
// } |
| 207 |
ErrorReason_RATE_LIMIT_EXCEEDED ErrorReason = 5 |
| 208 |
// The request is denied because there is not enough resource quota for the |
| 209 |
// consumer. |
| 210 |
// |
| 211 |
// Example of an ErrorInfo when the consumer "projects/123" fails to contact |
| 212 |
// "compute.googleapis.com" service because consumer's resource quota usage |
| 213 |
// has reached the maximum value set for the quota limit "VMsPerProject" |
| 214 |
// on the quota metric "compute.googleapis.com/vms": |
| 215 |
// |
| 216 |
// { "reason": "RESOURCE_QUOTA_EXCEEDED", |
| 217 |
// "domain": "googleapis.com", |
| 218 |
// "metadata": { |
| 219 |
// "consumer": "projects/123", |
| 220 |
// "service": "compute.googleapis.com", |
| 221 |
// "quota_metric": "compute.googleapis.com/vms", |
| 222 |
// "quota_limit": "VMsPerProject" |
| 223 |
// } |
| 224 |
// } |
| 225 |
// |
| 226 |
// Example of an ErrorInfo when the consumer "projects/123" checks resource |
| 227 |
// quota on the service "dataflow.googleapis.com" and hits the organization |
| 228 |
// quota limit "jobs-per-organization" on the metric |
| 229 |
// "dataflow.googleapis.com/job_count". |
| 230 |
// |
| 231 |
// { "reason": "RESOURCE_QUOTA_EXCEEDED", |
| 232 |
// "domain": "googleapis.com", |
| 233 |
// "metadata": { |
| 234 |
// "consumer": "projects/123", |
| 235 |
// "service": "dataflow.googleapis.com", |
| 236 |
// "quota_metric": "dataflow.googleapis.com/job_count", |
| 237 |
// "quota_limit": "jobs-per-organization" |
| 238 |
// } |
| 239 |
// } |
| 240 |
ErrorReason_RESOURCE_QUOTA_EXCEEDED ErrorReason = 6 |
| 241 |
// The request whose associated billing account address is in a tax restricted |
| 242 |
// location, violates the local tax restrictions when creating resources in |
| 243 |
// the restricted region. |
| 244 |
// |
| 245 |
// Example of an ErrorInfo when creating the Cloud Storage Bucket in the |
| 246 |
// container "projects/123" under a tax restricted region |
| 247 |
// "locations/asia-northeast3": |
| 248 |
// |
| 249 |
// { "reason": "LOCATION_TAX_POLICY_VIOLATED", |
| 250 |
// "domain": "googleapis.com", |
| 251 |
// "metadata": { |
| 252 |
// "consumer": "projects/123", |
| 253 |
// "service": "storage.googleapis.com", |
| 254 |
// "location": "locations/asia-northeast3" |
| 255 |
// } |
| 256 |
// } |
| 257 |
// |
| 258 |
// This response indicates creating the Cloud Storage Bucket in |
| 259 |
// "locations/asia-northeast3" violates the location tax restriction. |
| 260 |
ErrorReason_LOCATION_TAX_POLICY_VIOLATED ErrorReason = 10 |
| 261 |
// The request is denied because the caller does not have required permission |
| 262 |
// on the user project "projects/123" or the user project is invalid. For more |
| 263 |
// information, check the [userProject System |
| 264 |
// Parameters](https://cloud.google.com/apis/docs/system-parameters). |
| 265 |
// |
| 266 |
// Example of an ErrorInfo when the caller is calling Cloud Storage service |
| 267 |
// with insufficient permissions on the user project: |
| 268 |
// |
| 269 |
// { "reason": "USER_PROJECT_DENIED", |
| 270 |
// "domain": "googleapis.com", |
| 271 |
// "metadata": { |
| 272 |
// "consumer": "projects/123", |
| 273 |
// "service": "storage.googleapis.com" |
| 274 |
// } |
| 275 |
// } |
| 276 |
ErrorReason_USER_PROJECT_DENIED ErrorReason = 11 |
| 277 |
// The request is denied because the consumer "projects/123" is suspended due |
| 278 |
// to Terms of Service(Tos) violations. Check [Project suspension |
| 279 |
// guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines) |
| 280 |
// for more information. |
| 281 |
// |
| 282 |
// Example of an ErrorInfo when calling Cloud Storage service with the |
| 283 |
// suspended consumer "projects/123": |
| 284 |
// |
| 285 |
// { "reason": "CONSUMER_SUSPENDED", |
| 286 |
// "domain": "googleapis.com", |
| 287 |
// "metadata": { |
| 288 |
// "consumer": "projects/123", |
| 289 |
// "service": "storage.googleapis.com" |
| 290 |
// } |
| 291 |
// } |
| 292 |
ErrorReason_CONSUMER_SUSPENDED ErrorReason = 12 |
| 293 |
// The request is denied because the associated consumer is invalid. It may be |
| 294 |
// in a bad format, cannot be found, or have been deleted. |
| 295 |
// |
| 296 |
// Example of an ErrorInfo when calling Cloud Storage service with the |
| 297 |
// invalid consumer "projects/123": |
| 298 |
// |
| 299 |
// { "reason": "CONSUMER_INVALID", |
| 300 |
// "domain": "googleapis.com", |
| 301 |
// "metadata": { |
| 302 |
// "consumer": "projects/123", |
| 303 |
// "service": "storage.googleapis.com" |
| 304 |
// } |
| 305 |
// } |
| 306 |
ErrorReason_CONSUMER_INVALID ErrorReason = 14 |
| 307 |
// The request is denied because it violates [VPC Service |
| 308 |
// Controls](https://cloud.google.com/vpc-service-controls/docs/overview). |
| 309 |
// The 'uid' field is a random generated identifier that customer can use it |
| 310 |
// to search the audit log for a request rejected by VPC Service Controls. For |
| 311 |
// more information, please refer [VPC Service Controls |
| 312 |
// 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 call |
| 315 |
// Cloud Storage service because the request is prohibited by the VPC Service |
| 316 |
// 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 |
ErrorReason_SECURITY_POLICY_VIOLATED ErrorReason = 15 |
| 327 |
// The request is denied because the provided access token has expired. |
| 328 |
// |
| 329 |
// Example of an ErrorInfo when the request is calling Cloud Storage service |
| 330 |
// with an expired access token: |
| 331 |
// |
| 332 |
// { "reason": "ACCESS_TOKEN_EXPIRED", |
| 333 |
// "domain": "googleapis.com", |
| 334 |
// "metadata": { |
| 335 |
// "service": "storage.googleapis.com", |
| 336 |
// "method": "google.storage.v1.Storage.GetObject" |
| 337 |
// } |
| 338 |
// } |
| 339 |
ErrorReason_ACCESS_TOKEN_EXPIRED ErrorReason = 16 |
| 340 |
// The request is denied because the provided access token doesn't have at |
| 341 |
// least one of the acceptable scopes required for the API. Please check |
| 342 |
// [OAuth 2.0 Scopes for Google |
| 343 |
// APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for |
| 344 |
// the list of the OAuth 2.0 scopes that you might need to request to access |
| 345 |
// the API. |
| 346 |
// |
| 347 |
// Example of an ErrorInfo when the request is calling Cloud Storage service |
| 348 |
// with an access token that is missing required scopes: |
| 349 |
// |
| 350 |
// { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT", |
| 351 |
// "domain": "googleapis.com", |
| 352 |
// "metadata": { |
| 353 |
// "service": "storage.googleapis.com", |
| 354 |
// "method": "google.storage.v1.Storage.GetObject" |
| 355 |
// } |
| 356 |
// } |
| 357 |
ErrorReason_ACCESS_TOKEN_SCOPE_INSUFFICIENT ErrorReason = 17 |
| 358 |
// The request is denied because the account associated with the provided |
| 359 |
// access token is in an invalid state, such as disabled or deleted. |
| 360 |
// For more information, see https://cloud.google.com/docs/authentication. |
| 361 |
// |
| 362 |
// Warning: For privacy reasons, the server may not be able to disclose the |
| 363 |
// email address for some accounts. The client MUST NOT depend on the |
| 364 |
// availability of the `email` attribute. |
| 365 |
// |
| 366 |
// Example of an ErrorInfo when the request is to the Cloud Storage API with |
| 367 |
// an access token that is associated with a disabled or deleted [service |
| 368 |
// account](http://cloud/iam/docs/service-accounts): |
| 369 |
// |
| 370 |
// { "reason": "ACCOUNT_STATE_INVALID", |
| 371 |
// "domain": "googleapis.com", |
| 372 |
// "metadata": { |
| 373 |
// "service": "storage.googleapis.com", |
| 374 |
// "method": "google.storage.v1.Storage.GetObject", |
| 375 |
// "email": "[email protected]" |
| 376 |
// } |
| 377 |
// } |
| 378 |
ErrorReason_ACCOUNT_STATE_INVALID ErrorReason = 18 |
| 379 |
// The request is denied because the type of the provided access token is not |
| 380 |
// supported by the API being called. |
| 381 |
// |
| 382 |
// Example of an ErrorInfo when the request is to the Cloud Storage API with |
| 383 |
// an unsupported token type. |
| 384 |
// |
| 385 |
// { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED", |
| 386 |
// "domain": "googleapis.com", |
| 387 |
// "metadata": { |
| 388 |
// "service": "storage.googleapis.com", |
| 389 |
// "method": "google.storage.v1.Storage.GetObject" |
| 390 |
// } |
| 391 |
// } |
| 392 |
ErrorReason_ACCESS_TOKEN_TYPE_UNSUPPORTED ErrorReason = 19 |
| 393 |
// The request is denied because the request doesn't have any authentication |
| 394 |
// credentials. For more information regarding the supported authentication |
| 395 |
// strategies for Google Cloud APIs, see |
| 396 |
// https://cloud.google.com/docs/authentication. |
| 397 |
// |
| 398 |
// Example of an ErrorInfo when the request is to the Cloud Storage API |
| 399 |
// without any authentication credentials. |
| 400 |
// |
| 401 |
// { "reason": "CREDENTIALS_MISSING", |
| 402 |
// "domain": "googleapis.com", |
| 403 |
// "metadata": { |
| 404 |
// "service": "storage.googleapis.com", |
| 405 |
// "method": "google.storage.v1.Storage.GetObject" |
| 406 |
// } |
| 407 |
// } |
| 408 |
ErrorReason_CREDENTIALS_MISSING ErrorReason = 20 |
| 409 |
// The request is denied because the provided project owning the resource |
| 410 |
// which acts as the [API |
| 411 |
// consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is |
| 412 |
// invalid. It may be in a bad format or empty. |
| 413 |
// |
| 414 |
// Example of an ErrorInfo when the request is to the Cloud Functions API, |
| 415 |
// but the offered resource project in the request in a bad format which can't |
| 416 |
// perform the ListFunctions method. |
| 417 |
// |
| 418 |
// { "reason": "RESOURCE_PROJECT_INVALID", |
| 419 |
// "domain": "googleapis.com", |
| 420 |
// "metadata": { |
| 421 |
// "service": "cloudfunctions.googleapis.com", |
| 422 |
// "method": |
| 423 |
// "google.cloud.functions.v1.CloudFunctionsService.ListFunctions" |
| 424 |
// } |
| 425 |
// } |
| 426 |
ErrorReason_RESOURCE_PROJECT_INVALID ErrorReason = 21 |
| 427 |
// The request is denied because the provided session cookie is missing, |
| 428 |
// invalid or failed to decode. |
| 429 |
// |
| 430 |
// Example of an ErrorInfo when the request is calling Cloud Storage service |
| 431 |
// with a SID cookie which can't be decoded. |
| 432 |
// |
| 433 |
// { "reason": "SESSION_COOKIE_INVALID", |
| 434 |
// "domain": "googleapis.com", |
| 435 |
// "metadata": { |
| 436 |
// "service": "storage.googleapis.com", |
| 437 |
// "method": "google.storage.v1.Storage.GetObject", |
| 438 |
// "cookie": "SID" |
| 439 |
// } |
| 440 |
// } |
| 441 |
ErrorReason_SESSION_COOKIE_INVALID ErrorReason = 23 |
| 442 |
// The request is denied because the user is from a Google Workspace customer |
| 443 |
// that blocks their users from accessing a particular service. |
| 444 |
// |
| 445 |
// Example scenario: https://support.google.com/a/answer/9197205?hl=en |
| 446 |
// |
| 447 |
// Example of an ErrorInfo when access to Google Cloud Storage service is |
| 448 |
// blocked by the Google Workspace administrator: |
| 449 |
// |
| 450 |
// { "reason": "USER_BLOCKED_BY_ADMIN", |
| 451 |
// "domain": "googleapis.com", |
| 452 |
// "metadata": { |
| 453 |
// "service": "storage.googleapis.com", |
| 454 |
// "method": "google.storage.v1.Storage.GetObject", |
| 455 |
// } |
| 456 |
// } |
| 457 |
ErrorReason_USER_BLOCKED_BY_ADMIN ErrorReason = 24 |
| 458 |
// The request is denied because the resource service usage is restricted |
| 459 |
// by administrators according to the organization policy constraint. |
| 460 |
// For more information see |
| 461 |
// https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services. |
| 462 |
// |
| 463 |
// Example of an ErrorInfo when access to Google Cloud Storage service is |
| 464 |
// restricted by Resource Usage Restriction policy: |
| 465 |
// |
| 466 |
// { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED", |
| 467 |
// "domain": "googleapis.com", |
| 468 |
// "metadata": { |
| 469 |
// "consumer": "projects/project-123", |
| 470 |
// "service": "storage.googleapis.com" |
| 471 |
// } |
| 472 |
// } |
| 473 |
ErrorReason_RESOURCE_USAGE_RESTRICTION_VIOLATED ErrorReason = 25 |
| 474 |
// Unimplemented. Do not use. |
| 475 |
// |
| 476 |
// The request is denied because it contains unsupported system parameters in |
| 477 |
// URL query parameters or HTTP headers. For more information, |
| 478 |
// see https://cloud.google.com/apis/docs/system-parameters |
| 479 |
// |
| 480 |
// Example of an ErrorInfo when access "pubsub.googleapis.com" service with |
| 481 |
// a request header of "x-goog-user-ip": |
| 482 |
// |
| 483 |
// { "reason": "SYSTEM_PARAMETER_UNSUPPORTED", |
| 484 |
// "domain": "googleapis.com", |
| 485 |
// "metadata": { |
| 486 |
// "service": "pubsub.googleapis.com" |
| 487 |
// "parameter": "x-goog-user-ip" |
| 488 |
// } |
| 489 |
// } |
| 490 |
ErrorReason_SYSTEM_PARAMETER_UNSUPPORTED ErrorReason = 26 |
| 491 |
// The request is denied because it violates Org Restriction: the requested |
| 492 |
// resource does not belong to allowed organizations specified in |
| 493 |
// "X-Goog-Allowed-Resources" header. |
| 494 |
// |
| 495 |
// Example of an ErrorInfo when accessing a GCP resource that is restricted by |
| 496 |
// Org Restriction for "pubsub.googleapis.com" service. |
| 497 |
// |
| 498 |
// { |
| 499 |
// reason: "ORG_RESTRICTION_VIOLATION" |
| 500 |
// domain: "googleapis.com" |
| 501 |
// metadata { |
| 502 |
// "consumer":"projects/123456" |
| 503 |
// "service": "pubsub.googleapis.com" |
| 504 |
// } |
| 505 |
// } |
| 506 |
ErrorReason_ORG_RESTRICTION_VIOLATION ErrorReason = 27 |
| 507 |
// The request is denied because "X-Goog-Allowed-Resources" header is in a bad |
| 508 |
// format. |
| 509 |
// |
| 510 |
// Example of an ErrorInfo when |
| 511 |
// accessing "pubsub.googleapis.com" service with an invalid |
| 512 |
// "X-Goog-Allowed-Resources" request header. |
| 513 |
// |
| 514 |
// { |
| 515 |
// reason: "ORG_RESTRICTION_HEADER_INVALID" |
| 516 |
// domain: "googleapis.com" |
| 517 |
// metadata { |
| 518 |
// "consumer":"projects/123456" |
| 519 |
// "service": "pubsub.googleapis.com" |
| 520 |
// } |
| 521 |
// } |
| 522 |
ErrorReason_ORG_RESTRICTION_HEADER_INVALID ErrorReason = 28 |
| 523 |
// Unimplemented. Do not use. |
| 524 |
// |
| 525 |
// The request is calling a service that is not visible to the consumer. |
| 526 |
// |
| 527 |
// Example of an ErrorInfo when the consumer "projects/123" contacting |
| 528 |
// |
| 529 |
// "pubsub.googleapis.com" service which is not visible to the consumer. |
| 530 |
// |
| 531 |
// { "reason": "SERVICE_NOT_VISIBLE", |
| 532 |
// "domain": "googleapis.com", |
| 533 |
// "metadata": { |
| 534 |
// "consumer": "projects/123", |
| 535 |
// "service": "pubsub.googleapis.com" |
| 536 |
// } |
| 537 |
// } |
| 538 |
// |
| 539 |
// This response indicates the "pubsub.googleapis.com" is not visible to |
| 540 |
// "projects/123" (or it may not exist). |
| 541 |
ErrorReason_SERVICE_NOT_VISIBLE ErrorReason = 29 |
| 542 |
// The request is related to a project for which GCP access is suspended. |
| 543 |
// |
| 544 |
// Example of an ErrorInfo when the consumer "projects/123" fails to contact |
| 545 |
// "pubsub.googleapis.com" service because GCP access is suspended: |
| 546 |
// |
| 547 |
// { "reason": "GCP_SUSPENDED", |
| 548 |
// "domain": "googleapis.com", |
| 549 |
// "metadata": { |
| 550 |
// "consumer": "projects/123", |
| 551 |
// "service": "pubsub.googleapis.com" |
| 552 |
// } |
| 553 |
// } |
| 554 |
// |
| 555 |
// This response indicates the associated GCP account has been suspended. |
| 556 |
ErrorReason_GCP_SUSPENDED ErrorReason = 30 |
| 557 |
// The request violates the location policies when creating resources in |
| 558 |
// the restricted region. |
| 559 |
// |
| 560 |
// Example of an ErrorInfo when creating the Cloud Storage Bucket by |
| 561 |
// "projects/123" for service storage.googleapis.com: |
| 562 |
// |
| 563 |
// { "reason": "LOCATION_POLICY_VIOLATED", |
| 564 |
// "domain": "googleapis.com", |
| 565 |
// "metadata": { |
| 566 |
// "consumer": "projects/123", |
| 567 |
// "service": "storage.googleapis.com", |
| 568 |
// } |
| 569 |
// } |
| 570 |
// |
| 571 |
// This response indicates creating the Cloud Storage Bucket in |
| 572 |
// "locations/asia-northeast3" violates at least one location policy. |
| 573 |
// The troubleshooting guidance is provided in the Help links. |
| 574 |
ErrorReason_LOCATION_POLICY_VIOLATED ErrorReason = 31 |
| 575 |
// The request is denied because origin request header is missing. |
| 576 |
// |
| 577 |
// Example of an ErrorInfo when |
| 578 |
// accessing "pubsub.googleapis.com" service with an empty "Origin" request |
| 579 |
// header. |
| 580 |
// |
| 581 |
// { |
| 582 |
// reason: "MISSING_ORIGIN" |
| 583 |
// domain: "googleapis.com" |
| 584 |
// metadata { |
| 585 |
// "consumer":"projects/123456" |
| 586 |
// "service": "pubsub.googleapis.com" |
| 587 |
// } |
| 588 |
// } |
| 589 |
ErrorReason_MISSING_ORIGIN ErrorReason = 33 |
| 590 |
// The request is denied because the request contains more than one credential |
| 591 |
// type that are individually acceptable, but not together. The customer |
| 592 |
// should retry their request with only one set of credentials. |
| 593 |
// |
| 594 |
// Example of an ErrorInfo when |
| 595 |
// accessing "pubsub.googleapis.com" service with overloaded credentials. |
| 596 |
// |
| 597 |
// { |
| 598 |
// reason: "OVERLOADED_CREDENTIALS" |
| 599 |
// domain: "googleapis.com" |
| 600 |
// metadata { |
| 601 |
// "consumer":"projects/123456" |
| 602 |
// "service": "pubsub.googleapis.com" |
| 603 |
// } |
| 604 |
// } |
| 605 |
ErrorReason_OVERLOADED_CREDENTIALS ErrorReason = 34 |
| 606 |
// The request whose associated location violates the location org policy |
| 607 |
// restrictions when creating resources in the restricted region. |
| 608 |
// |
| 609 |
// Example of an ErrorInfo when creating the Cloud Storage Bucket in the |
| 610 |
// container "projects/123" under a restricted region |
| 611 |
// "locations/asia-northeast3": |
| 612 |
// |
| 613 |
// { |
| 614 |
// "reason": "LOCATION_ORG_POLICY_VIOLATED", |
| 615 |
// "domain": "googleapis.com", |
| 616 |
// "metadata": { |
| 617 |
// "resource": "projects/123", |
| 618 |
// "location": "locations/asia-northeast3" |
| 619 |
// } |
| 620 |
// } |
| 621 |
// |
| 622 |
// This response indicates creating the Cloud Storage Bucket in |
| 623 |
// "locations/asia-northeast3" violates the location org policy restriction. |
| 624 |
ErrorReason_LOCATION_ORG_POLICY_VIOLATED ErrorReason = 35 |
| 625 |
// The request is denied because it access data of regulated customers using |
| 626 |
// TLS 1.0 and 1.1. |
| 627 |
// |
| 628 |
// Example of an ErrorInfo when accessing a GCP resource "projects/123" that |
| 629 |
// is restricted by TLS Version Restriction for "pubsub.googleapis.com" |
| 630 |
// service. |
| 631 |
// |
| 632 |
// { |
| 633 |
// "reason": "TLS_ORG_POLICY_VIOLATED", |
| 634 |
// "domain": "googleapis.com", |
| 635 |
// "metadata": { |
| 636 |
// "service": "pubsub.googleapis.com" |
| 637 |
// "resource": "projects/123", |
| 638 |
// "policyName": "constraints/gcp.restrictTLSVersion", |
| 639 |
// "tlsVersion": "TLS_VERSION_1" |
| 640 |
// } |
| 641 |
// } |
| 642 |
ErrorReason_TLS_ORG_POLICY_VIOLATED ErrorReason = 36 |
| 643 |
// The request is denied because the associated project has exceeded the |
| 644 |
// emulator quota limit. |
| 645 |
// |
| 646 |
// Example of an ErrorInfo when the associated "projects/123" has exceeded the |
| 647 |
// emulator quota limit. |
| 648 |
// |
| 649 |
// { |
| 650 |
// "reason": "EMULATOR_QUOTA_EXCEEDED", |
| 651 |
// "domain": "googleapis.com", |
| 652 |
// "metadata": { |
| 653 |
// "service": "pubsub.googleapis.com" |
| 654 |
// "consumer": "projects/123" |
| 655 |
// } |
| 656 |
// } |
| 657 |
ErrorReason_EMULATOR_QUOTA_EXCEEDED ErrorReason = 38 |
| 658 |
// The request is denied because the associated application credential header |
| 659 |
// is invalid for an Android applications. |
| 660 |
// |
| 661 |
// Example of an ErrorInfo when the request from an Android application to the |
| 662 |
// "pubsub.googleapis.com" with an invalid application credential header. |
| 663 |
// |
| 664 |
// { |
| 665 |
// "reason": "CREDENTIAL_ANDROID_APP_INVALID", |
| 666 |
// "domain": "googleapis.com", |
| 667 |
// "metadata": { |
| 668 |
// "service": "pubsub.googleapis.com" |
| 669 |
// } |
| 670 |
// } |
| 671 |
ErrorReason_CREDENTIAL_ANDROID_APP_INVALID ErrorReason = 39 |
| 672 |
// The request is denied because IAM permission on resource is denied. |
| 673 |
// |
| 674 |
// Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list` |
| 675 |
// is denied on resource `projects/123`. |
| 676 |
// |
| 677 |
// { |
| 678 |
// "reason": "IAM_PERMISSION_DENIED", |
| 679 |
// "domain": "googleapis.com", |
| 680 |
// "metadata": { |
| 681 |
// "resource": "projects/123" |
| 682 |
// "permission": "aiplatform.datasets.list" |
| 683 |
// } |
| 684 |
// } |
| 685 |
ErrorReason_IAM_PERMISSION_DENIED ErrorReason = 41 |
| 686 |
// The request is denied because it contains the invalid JWT token. |
| 687 |
// |
| 688 |
// Example of an ErrorInfo when the request contains an invalid JWT token for |
| 689 |
// service `storage.googleapis.com`. |
| 690 |
// |
| 691 |
// { |
| 692 |
// "reason": "JWT_TOKEN_INVALID", |
| 693 |
// "domain": "googleapis.com", |
| 694 |
// "metadata": { |
| 695 |
// "service": "storage.googleapis.com" |
| 696 |
// } |
| 697 |
// } |
| 698 |
ErrorReason_JWT_TOKEN_INVALID ErrorReason = 42 |
| 699 |
// The request is denied because it contains credential with type that is |
| 700 |
// unsupported. |
| 701 |
// |
| 702 |
// Example of an ErrorInfo when the request contains an unsupported credential |
| 703 |
// type for service `storage.googleapis.com`. |
| 704 |
// |
| 705 |
// { |
| 706 |
// "reason": "CREDENTIAL_TYPE_UNSUPPORTED", |
| 707 |
// "domain": "googleapis.com", |
| 708 |
// "metadata": { |
| 709 |
// "service": "storage.googleapis.com" |
| 710 |
// } |
| 711 |
// } |
| 712 |
ErrorReason_CREDENTIAL_TYPE_UNSUPPORTED ErrorReason = 43 |
| 713 |
// The request is denied because it contains unsupported account type. |
| 714 |
// |
| 715 |
// Example of an ErrorInfo when the request contains an unsupported account |
| 716 |
// type for service `storage.googleapis.com`. |
| 717 |
// |
| 718 |
// { |
| 719 |
// "reason": "ACCOUNT_TYPE_UNSUPPORTED", |
| 720 |
// "domain": "googleapis.com", |
| 721 |
// "metadata": { |
| 722 |
// "service": "storage.googleapis.com" |
| 723 |
// } |
| 724 |
// } |
| 725 |
ErrorReason_ACCOUNT_TYPE_UNSUPPORTED ErrorReason = 44 |
| 726 |
// The request is denied because the API endpoint is restricted by |
| 727 |
// administrators according to the organization policy constraint. |
| 728 |
// For more information see |
| 729 |
// https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage. |
| 730 |
// |
| 731 |
// Example of an ErrorInfo when access to Google Cloud Storage service is |
| 732 |
// restricted by Restrict Endpoint Usage policy: |
| 733 |
// |
| 734 |
// { |
| 735 |
// "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED", |
| 736 |
// "domain": "googleapis.com/policies/endpointUsageRestriction", |
| 737 |
// "metadata": { |
| 738 |
// "policy_name": "constraints/gcp.restrictEndpointUsage", |
| 739 |
// "checked_value": "storage.googleapis.com" |
| 740 |
// "consumer": "organization/123" |
| 741 |
// "service": "storage.googleapis.com" |
| 742 |
// } |
| 743 |
// } |
| 744 |
ErrorReason_ENDPOINT_USAGE_RESTRICTION_VIOLATED ErrorReason = 45 |
| 745 |
// The request is denied because the TLS Cipher Suite is restricted by |
| 746 |
// administrators according to the organization policy constraint. |
| 747 |
// For more information see |
| 748 |
// https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites |
| 749 |
// |
| 750 |
// Example of an ErrorInfo when access to Google Cloud BigQuery service is |
| 751 |
// restricted by Restrict TLS Cipher Suites policy: |
| 752 |
// |
| 753 |
// { |
| 754 |
// "reason": "TLS_CIPHER_RESTRICTION_VIOLATED", |
| 755 |
// "domain": "googleapis.com/policies/tlsCipherRestriction", |
| 756 |
// "metadata": { |
| 757 |
// "policy_name": "constraints/gcp.restrictTLSCipherSuites", |
| 758 |
// "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 |
| 759 |
// "consumer": "organization/123" |
| 760 |
// "service": "bigquery.googleapis.com" |
| 761 |
// } |
| 762 |
// } |
| 763 |
ErrorReason_TLS_CIPHER_RESTRICTION_VIOLATED ErrorReason = 46 |
| 764 |
// The request is denied because the MCP activation check fails. |
| 765 |
// |
| 766 |
// Example of an ErrorInfo when the container "projects/123" contacting |
| 767 |
// "pubsub.googleapis.com" service which is disabled by MCP: |
| 768 |
// |
| 769 |
// { "reason": "MCP_SERVER_DISABLED", |
| 770 |
// "domain": "googleapis.com", |
| 771 |
// "metadata": { |
| 772 |
// "consumer": "projects/123", |
| 773 |
// "service": "pubsub.googleapis.com" |
| 774 |
// } |
| 775 |
// } |
| 776 |
// |
| 777 |
// This response indicates the "pubsub.googleapis.com" has been disabled in |
| 778 |
// "projects/123" for MCP. |
| 779 |
ErrorReason_MCP_SERVER_DISABLED ErrorReason = 47 |
| 780 |
) |
| 781 |
|
| 782 |
// Enum value maps for ErrorReason. |
| 783 |
var ( |
| 784 |
ErrorReason_name = map[int32]string{ |
| 785 |
0: "ERROR_REASON_UNSPECIFIED", |
| 786 |
1: "SERVICE_DISABLED", |
| 787 |
2: "BILLING_DISABLED", |
| 788 |
3: "API_KEY_INVALID", |
| 789 |
4: "API_KEY_SERVICE_BLOCKED", |
| 790 |
7: "API_KEY_HTTP_REFERRER_BLOCKED", |
| 791 |
8: "API_KEY_IP_ADDRESS_BLOCKED", |
| 792 |
9: "API_KEY_ANDROID_APP_BLOCKED", |
| 793 |
13: "API_KEY_IOS_APP_BLOCKED", |
| 794 |
5: "RATE_LIMIT_EXCEEDED", |
| 795 |
6: "RESOURCE_QUOTA_EXCEEDED", |
| 796 |
10: "LOCATION_TAX_POLICY_VIOLATED", |
| 797 |
11: "USER_PROJECT_DENIED", |
| 798 |
12: "CONSUMER_SUSPENDED", |
| 799 |
14: "CONSUMER_INVALID", |
| 800 |
15: "SECURITY_POLICY_VIOLATED", |
| 801 |
16: "ACCESS_TOKEN_EXPIRED", |
| 802 |
17: "ACCESS_TOKEN_SCOPE_INSUFFICIENT", |
| 803 |
18: "ACCOUNT_STATE_INVALID", |
| 804 |
19: "ACCESS_TOKEN_TYPE_UNSUPPORTED", |
| 805 |
20: "CREDENTIALS_MISSING", |
| 806 |
21: "RESOURCE_PROJECT_INVALID", |
| 807 |
23: "SESSION_COOKIE_INVALID", |
| 808 |
24: "USER_BLOCKED_BY_ADMIN", |
| 809 |
25: "RESOURCE_USAGE_RESTRICTION_VIOLATED", |
| 810 |
26: "SYSTEM_PARAMETER_UNSUPPORTED", |
| 811 |
27: "ORG_RESTRICTION_VIOLATION", |
| 812 |
28: "ORG_RESTRICTION_HEADER_INVALID", |
| 813 |
29: "SERVICE_NOT_VISIBLE", |
| 814 |
30: "GCP_SUSPENDED", |
| 815 |
31: "LOCATION_POLICY_VIOLATED", |
| 816 |
33: "MISSING_ORIGIN", |
| 817 |
34: "OVERLOADED_CREDENTIALS", |
| 818 |
35: "LOCATION_ORG_POLICY_VIOLATED", |
| 819 |
36: "TLS_ORG_POLICY_VIOLATED", |
| 820 |
38: "EMULATOR_QUOTA_EXCEEDED", |
| 821 |
39: "CREDENTIAL_ANDROID_APP_INVALID", |
| 822 |
41: "IAM_PERMISSION_DENIED", |
| 823 |
42: "JWT_TOKEN_INVALID", |
| 824 |
43: "CREDENTIAL_TYPE_UNSUPPORTED", |
| 825 |
44: "ACCOUNT_TYPE_UNSUPPORTED", |
| 826 |
45: "ENDPOINT_USAGE_RESTRICTION_VIOLATED", |
| 827 |
46: "TLS_CIPHER_RESTRICTION_VIOLATED", |
| 828 |
47: "MCP_SERVER_DISABLED", |
| 829 |
} |
| 830 |
ErrorReason_value = map[string]int32{ |
| 831 |
"ERROR_REASON_UNSPECIFIED": 0, |
| 832 |
"SERVICE_DISABLED": 1, |
| 833 |
"BILLING_DISABLED": 2, |
| 834 |
"API_KEY_INVALID": 3, |
| 835 |
"API_KEY_SERVICE_BLOCKED": 4, |
| 836 |
"API_KEY_HTTP_REFERRER_BLOCKED": 7, |
| 837 |
"API_KEY_IP_ADDRESS_BLOCKED": 8, |
| 838 |
"API_KEY_ANDROID_APP_BLOCKED": 9, |
| 839 |
"API_KEY_IOS_APP_BLOCKED": 13, |
| 840 |
"RATE_LIMIT_EXCEEDED": 5, |
| 841 |
"RESOURCE_QUOTA_EXCEEDED": 6, |
| 842 |
"LOCATION_TAX_POLICY_VIOLATED": 10, |
| 843 |
"USER_PROJECT_DENIED": 11, |
| 844 |
"CONSUMER_SUSPENDED": 12, |
| 845 |
"CONSUMER_INVALID": 14, |
| 846 |
"SECURITY_POLICY_VIOLATED": 15, |
| 847 |
"ACCESS_TOKEN_EXPIRED": 16, |
| 848 |
"ACCESS_TOKEN_SCOPE_INSUFFICIENT": 17, |
| 849 |
"ACCOUNT_STATE_INVALID": 18, |
| 850 |
"ACCESS_TOKEN_TYPE_UNSUPPORTED": 19, |
| 851 |
"CREDENTIALS_MISSING": 20, |
| 852 |
"RESOURCE_PROJECT_INVALID": 21, |
| 853 |
"SESSION_COOKIE_INVALID": 23, |
| 854 |
"USER_BLOCKED_BY_ADMIN": 24, |
| 855 |
"RESOURCE_USAGE_RESTRICTION_VIOLATED": 25, |
| 856 |
"SYSTEM_PARAMETER_UNSUPPORTED": 26, |
| 857 |
"ORG_RESTRICTION_VIOLATION": 27, |
| 858 |
"ORG_RESTRICTION_HEADER_INVALID": 28, |
| 859 |
"SERVICE_NOT_VISIBLE": 29, |
| 860 |
"GCP_SUSPENDED": 30, |
| 861 |
"LOCATION_POLICY_VIOLATED": 31, |
| 862 |
"MISSING_ORIGIN": 33, |
| 863 |
"OVERLOADED_CREDENTIALS": 34, |
| 864 |
"LOCATION_ORG_POLICY_VIOLATED": 35, |
| 865 |
"TLS_ORG_POLICY_VIOLATED": 36, |
| 866 |
"EMULATOR_QUOTA_EXCEEDED": 38, |
| 867 |
"CREDENTIAL_ANDROID_APP_INVALID": 39, |
| 868 |
"IAM_PERMISSION_DENIED": 41, |
| 869 |
"JWT_TOKEN_INVALID": 42, |
| 870 |
"CREDENTIAL_TYPE_UNSUPPORTED": 43, |
| 871 |
"ACCOUNT_TYPE_UNSUPPORTED": 44, |
| 872 |
"ENDPOINT_USAGE_RESTRICTION_VIOLATED": 45, |
| 873 |
"TLS_CIPHER_RESTRICTION_VIOLATED": 46, |
| 874 |
"MCP_SERVER_DISABLED": 47, |
| 875 |
} |
| 876 |
) |
| 877 |
|
| 878 |
func (x ErrorReason) Enum() *ErrorReason { |
| 879 |
p := new(ErrorReason) |
| 880 |
*p = x |
| 881 |
return p |
| 882 |
} |
| 883 |
|
| 884 |
func (x ErrorReason) String() string { |
| 885 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 886 |
} |
| 887 |
|
| 888 |
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor { |
| 889 |
return file_google_api_error_reason_proto_enumTypes[0].Descriptor() |
| 890 |
} |
| 891 |
|
| 892 |
func (ErrorReason) Type() protoreflect.EnumType { |
| 893 |
return &file_google_api_error_reason_proto_enumTypes[0] |
| 894 |
} |
| 895 |
|
| 896 |
func (x ErrorReason) Number() protoreflect.EnumNumber { |
| 897 |
return protoreflect.EnumNumber(x) |
| 898 |
} |
| 899 |
|
| 900 |
// Deprecated: Use ErrorReason.Descriptor instead. |
| 901 |
func (ErrorReason) EnumDescriptor() ([]byte, []int) { |
| 902 |
return file_google_api_error_reason_proto_rawDescGZIP(), []int{0} |
| 903 |
} |
| 904 |
|
| 905 |
var File_google_api_error_reason_proto protoreflect.FileDescriptor |
| 906 |
|
| 907 |
var file_google_api_error_reason_proto_rawDesc = []byte{ |
| 908 |
0x0a, 0x1d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x72, 0x72, |
| 909 |
0x6f, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, |
| 910 |
0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2a, 0x92, 0x0a, 0x0a, 0x0b, |
| 911 |
0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x18, 0x45, |
| 912 |
0x52, 0x52, 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, |
| 913 |
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x52, |
| 914 |
0x56, 0x49, 0x43, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, |
| 915 |
0x14, 0x0a, 0x10, 0x42, 0x49, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, |
| 916 |
0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x50, 0x49, 0x5f, 0x4b, 0x45, 0x59, |
| 917 |
0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x50, |
| 918 |
0x49, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x42, 0x4c, |
| 919 |
0x4f, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x04, 0x12, 0x21, 0x0a, 0x1d, 0x41, 0x50, 0x49, 0x5f, 0x4b, |
| 920 |
0x45, 0x59, 0x5f, 0x48, 0x54, 0x54, 0x50, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x52, 0x45, 0x52, |
| 921 |
0x5f, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x07, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x50, |
| 922 |
0x49, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x49, 0x50, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, |
| 923 |
0x5f, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x08, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x50, |
| 924 |
0x49, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x41, 0x4e, 0x44, 0x52, 0x4f, 0x49, 0x44, 0x5f, 0x41, 0x50, |
| 925 |
0x50, 0x5f, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x41, |
| 926 |
0x50, 0x49, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x49, 0x4f, 0x53, 0x5f, 0x41, 0x50, 0x50, 0x5f, 0x42, |
| 927 |
0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x0d, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x41, 0x54, 0x45, |
| 928 |
0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, |
| 929 |
0x05, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x51, 0x55, |
| 930 |
0x4f, 0x54, 0x41, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x06, 0x12, 0x20, |
| 931 |
0x0a, 0x1c, 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x41, 0x58, 0x5f, 0x50, |
| 932 |
0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x56, 0x49, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x0a, |
| 933 |
0x12, 0x17, 0x0a, 0x13, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, |
| 934 |
0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x0b, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x4e, |
| 935 |
0x53, 0x55, 0x4d, 0x45, 0x52, 0x5f, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x45, 0x44, 0x10, |
| 936 |
0x0c, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x4e, 0x53, 0x55, 0x4d, 0x45, 0x52, 0x5f, 0x49, 0x4e, |
| 937 |
0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x0e, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x45, 0x43, 0x55, 0x52, |
| 938 |
0x49, 0x54, 0x59, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x56, 0x49, 0x4f, 0x4c, 0x41, |
| 939 |
0x54, 0x45, 0x44, 0x10, 0x0f, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, |
| 940 |
0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x44, 0x10, 0x10, 0x12, |
| 941 |
0x23, 0x0a, 0x1f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, |
| 942 |
0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, |
| 943 |
0x4e, 0x54, 0x10, 0x11, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, |
| 944 |
0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x12, 0x12, |
| 945 |
0x21, 0x0a, 0x1d, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, |
| 946 |
0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, |
| 947 |
0x10, 0x13, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, |
| 948 |
0x53, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x10, 0x14, 0x12, 0x1c, 0x0a, 0x18, 0x52, |
| 949 |
0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, |
| 950 |
0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x15, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x45, 0x53, |
| 951 |
0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4f, 0x4b, 0x49, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, |
| 952 |
0x4c, 0x49, 0x44, 0x10, 0x17, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x42, 0x4c, |
| 953 |
0x4f, 0x43, 0x4b, 0x45, 0x44, 0x5f, 0x42, 0x59, 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x18, |
| 954 |
0x12, 0x27, 0x0a, 0x23, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x53, 0x41, |
| 955 |
0x47, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, |
| 956 |
0x49, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x19, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x59, 0x53, |
| 957 |
0x54, 0x45, 0x4d, 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x5f, 0x55, 0x4e, |
| 958 |
0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x1a, 0x12, 0x1d, 0x0a, 0x19, 0x4f, |
| 959 |
0x52, 0x47, 0x5f, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, |
| 960 |
0x49, 0x4f, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x1b, 0x12, 0x22, 0x0a, 0x1e, 0x4f, 0x52, |
| 961 |
0x47, 0x5f, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, |
| 962 |
0x41, 0x44, 0x45, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x1c, 0x12, 0x17, |
| 963 |
0x0a, 0x13, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x56, 0x49, |
| 964 |
0x53, 0x49, 0x42, 0x4c, 0x45, 0x10, 0x1d, 0x12, 0x11, 0x0a, 0x0d, 0x47, 0x43, 0x50, 0x5f, 0x53, |
| 965 |
0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x1e, 0x12, 0x1c, 0x0a, 0x18, 0x4c, 0x4f, |
| 966 |
0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x56, 0x49, |
| 967 |
0x4f, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x1f, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x49, 0x53, 0x53, |
| 968 |
0x49, 0x4e, 0x47, 0x5f, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x10, 0x21, 0x12, 0x1a, 0x0a, 0x16, |
| 969 |
0x4f, 0x56, 0x45, 0x52, 0x4c, 0x4f, 0x41, 0x44, 0x45, 0x44, 0x5f, 0x43, 0x52, 0x45, 0x44, 0x45, |
| 970 |
0x4e, 0x54, 0x49, 0x41, 0x4c, 0x53, 0x10, 0x22, 0x12, 0x20, 0x0a, 0x1c, 0x4c, 0x4f, 0x43, 0x41, |
| 971 |
0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x52, 0x47, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, |
| 972 |
0x56, 0x49, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x23, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x4c, |
| 973 |
0x53, 0x5f, 0x4f, 0x52, 0x47, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x56, 0x49, 0x4f, |
| 974 |
0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x24, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x4d, 0x55, 0x4c, 0x41, |
| 975 |
0x54, 0x4f, 0x52, 0x5f, 0x51, 0x55, 0x4f, 0x54, 0x41, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, |
| 976 |
0x45, 0x44, 0x10, 0x26, 0x12, 0x22, 0x0a, 0x1e, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, |
| 977 |
0x41, 0x4c, 0x5f, 0x41, 0x4e, 0x44, 0x52, 0x4f, 0x49, 0x44, 0x5f, 0x41, 0x50, 0x50, 0x5f, 0x49, |
| 978 |
0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x27, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x41, 0x4d, 0x5f, |
| 979 |
0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, |
| 980 |
0x44, 0x10, 0x29, 0x12, 0x15, 0x0a, 0x11, 0x4a, 0x57, 0x54, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, |
| 981 |
0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x2a, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x52, |
| 982 |
0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, |
| 983 |
0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x2b, 0x12, 0x1c, 0x0a, 0x18, 0x41, |
| 984 |
0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x55, |
| 985 |
0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x2c, 0x12, 0x27, 0x0a, 0x23, 0x45, 0x4e, 0x44, |
| 986 |
0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x55, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x54, |
| 987 |
0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x49, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x44, |
| 988 |
0x10, 0x2d, 0x12, 0x23, 0x0a, 0x1f, 0x54, 0x4c, 0x53, 0x5f, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, |
| 989 |
0x5f, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x49, 0x4f, |
| 990 |
0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x2e, 0x12, 0x17, 0x0a, 0x13, 0x4d, 0x43, 0x50, 0x5f, 0x53, |
| 991 |
0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x2f, |
| 992 |
0x42, 0x70, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, |
| 993 |
0x70, 0x69, 0x42, 0x10, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x50, |
| 994 |
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, |
| 995 |
0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, |
| 996 |
0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, |
| 997 |
0x69, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3b, 0x65, |
| 998 |
0x72, 0x72, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0xa2, 0x02, 0x04, 0x47, 0x41, |
| 999 |
0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 1000 |
} |
| 1001 |
|
| 1002 |
var ( |
| 1003 |
file_google_api_error_reason_proto_rawDescOnce sync.Once |
| 1004 |
file_google_api_error_reason_proto_rawDescData = file_google_api_error_reason_proto_rawDesc |
| 1005 |
) |
| 1006 |
|
| 1007 |
func file_google_api_error_reason_proto_rawDescGZIP() []byte { |
| 1008 |
file_google_api_error_reason_proto_rawDescOnce.Do(func() { |
| 1009 |
file_google_api_error_reason_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_error_reason_proto_rawDescData) |
| 1010 |
}) |
| 1011 |
return file_google_api_error_reason_proto_rawDescData |
| 1012 |
} |
| 1013 |
|
| 1014 |
var file_google_api_error_reason_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 1015 |
var file_google_api_error_reason_proto_goTypes = []interface{}{ |
| 1016 |
(ErrorReason)(0), // 0: google.api.ErrorReason |
| 1017 |
} |
| 1018 |
var file_google_api_error_reason_proto_depIdxs = []int32{ |
| 1019 |
0, // [0:0] is the sub-list for method output_type |
| 1020 |
0, // [0:0] is the sub-list for method input_type |
| 1021 |
0, // [0:0] is the sub-list for extension type_name |
| 1022 |
0, // [0:0] is the sub-list for extension extendee |
| 1023 |
0, // [0:0] is the sub-list for field type_name |
| 1024 |
} |
| 1025 |
|
| 1026 |
func init() { file_google_api_error_reason_proto_init() } |
| 1027 |
func file_google_api_error_reason_proto_init() { |
| 1028 |
if File_google_api_error_reason_proto != nil { |
| 1029 |
return |
| 1030 |
} |
| 1031 |
type x struct{} |
| 1032 |
out := protoimpl.TypeBuilder{ |
| 1033 |
File: protoimpl.DescBuilder{ |
| 1034 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 1035 |
RawDescriptor: file_google_api_error_reason_proto_rawDesc, |
| 1036 |
NumEnums: 1, |
| 1037 |
NumMessages: 0, |
| 1038 |
NumExtensions: 0, |
| 1039 |
NumServices: 0, |
| 1040 |
}, |
| 1041 |
GoTypes: file_google_api_error_reason_proto_goTypes, |
| 1042 |
DependencyIndexes: file_google_api_error_reason_proto_depIdxs, |
| 1043 |
EnumInfos: file_google_api_error_reason_proto_enumTypes, |
| 1044 |
}.Build() |
| 1045 |
File_google_api_error_reason_proto = out.File |
| 1046 |
file_google_api_error_reason_proto_rawDesc = nil |
| 1047 |
file_google_api_error_reason_proto_goTypes = nil |
| 1048 |
file_google_api_error_reason_proto_depIdxs = nil |
| 1049 |
} |