Enum Status
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ステータスステータス コードを表す列挙型。
Google Chat アプリでのみ使用できます。Google Workspace アドオンには使用できません。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。例:
CardService.Status.OK
プロパティ
プロパティ | タイプ | 説明 |
OK | Enum | HTTP マッピング: 200 OK |
CANCELLED | Enum | HTTP マッピング: 499 クライアントのクローズ リクエスト |
UNKNOWN | Enum | 不明なエラーが発生しました。HTTP マッピング: 500 内部サーバーエラー |
INVALID_ARGUMENT | Enum | クライアントが無効な引数を指定しました。HTTP マッピング: 400 不正なリクエスト |
DEADLINE_EXCEEDED | Enum | HTTP マッピング: 504 ゲートウェイ タイムアウト |
NOT_FOUND | Enum | HTTP マッピング: 404 見つかりません |
ALREADY_EXISTS | Enum | クライアントが作成しようとしたエンティティはすでに存在します。HTTP マッピング: 409 競合 |
PERMISSION_DENIED | Enum | HTTP マッピング: 403 禁止です |
UNAUTHENTICATED | Enum | HTTP マッピング: 401 権限なし |
RESOURCE_EXHAUSTED | Enum | HTTP マッピング: 429 リクエストが多すぎます |
FAILED_PRECONDITION | Enum | システムがオペレーションの実行に必要な状態ではないため、オペレーションが拒否されました。HTTP マッピング: 400 不正なリクエスト |
ABORTED | Enum | オペレーションは、通常、シーケンサー チェックの失敗、またはトランザクションの中止などの同時実行の問題のために中止されています。HTTP マッピング: 409 競合 |
OUT_OF_RANGE | Enum | オペレーションが有効な範囲を超えて試行されました。HTTP マッピング: 400 不正なリクエスト |
UNIMPLEMENTED | Enum | HTTP マッピング: 501 実装されていません |
INTERNAL | Enum | 内部エラー。これは、基盤となるシステムで予期される一部の不変条件が満たされていないことを意味します。このエラーコードは深刻なエラーのために予約されています。HTTP マッピング: 500 内部サーバーエラー |
UNAVAILABLE | Enum | HTTP マッピング: 503 サービスを利用できません |
DATA_LOSS | Enum | 復元できないデータ損失またはデータ破損。HTTP マッピング: 500 内部サーバーエラー。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003e\u003ccode\u003eStatus\u003c/code\u003e is an enum representing status codes, specifically for Google Chat apps and not Google Workspace Add-ons.\u003c/p\u003e\n"],["\u003cp\u003eTo use a \u003ccode\u003eStatus\u003c/code\u003e enum value, call it using the format \u003ccode\u003eCardService.Status.[Property Name]\u003c/code\u003e, like \u003ccode\u003eCardService.Status.OK\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eStatus\u003c/code\u003e property corresponds to an HTTP status code, such as \u003ccode\u003eOK\u003c/code\u003e mapping to 200 OK and \u003ccode\u003eNOT_FOUND\u003c/code\u003e to 404 Not Found.\u003c/p\u003e\n"],["\u003cp\u003eThe provided table lists all available \u003ccode\u003eStatus\u003c/code\u003e properties along with their types and corresponding HTTP mappings for various error conditions.\u003c/p\u003e\n"]]],[],null,["# Enum Status\n\nStatus\n\nAn enum that represents the status code.\n\nOnly available for Google Chat apps. Not available for Google Workspace add-ons.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.Status.OK`. \n\n### Properties\n\n| Property | Type | Description |\n|-----------------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `OK` | `Enum` | HTTP Mapping: 200 OK |\n| `CANCELLED` | `Enum` | HTTP Mapping: 499 Client Closed Request |\n| `UNKNOWN` | `Enum` | Unknown error. HTTP Mapping: 500 Internal Server Error |\n| `INVALID_ARGUMENT` | `Enum` | The client specified an invalid argument. HTTP Mapping: 400 Bad Request |\n| `DEADLINE_EXCEEDED` | `Enum` | HTTP Mapping: 504 Gateway Timeout |\n| `NOT_FOUND` | `Enum` | HTTP Mapping: 404 Not Found |\n| `ALREADY_EXISTS` | `Enum` | The entity that a client attempted to create already exists. HTTP Mapping: 409 Conflict |\n| `PERMISSION_DENIED` | `Enum` | HTTP Mapping: 403 Forbidden |\n| `UNAUTHENTICATED` | `Enum` | HTTP Mapping: 401 Unauthorized |\n| `RESOURCE_EXHAUSTED` | `Enum` | HTTP Mapping: 429 Too Many Requests |\n| `FAILED_PRECONDITION` | `Enum` | The operation was rejected because the system is not in a state required for the operation's execution. HTTP Mapping: 400 Bad Request |\n| `ABORTED` | `Enum` | The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort. HTTP Mapping: 409 Conflict |\n| `OUT_OF_RANGE` | `Enum` | The operation was attempted past the valid range. HTTP Mapping: 400 Bad Request |\n| `UNIMPLEMENTED` | `Enum` | HTTP Mapping: 501 Not Implemented |\n| `INTERNAL` | `Enum` | Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors. HTTP Mapping: 500 Internal Server Error |\n| `UNAVAILABLE` | `Enum` | HTTP Mapping: 503 Service Unavailable |\n| `DATA_LOSS` | `Enum` | Unrecoverable data loss or corruption. HTTP Mapping: 500 Internal Server Error. |"]]