GroupingInfo
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
JSON 表現 |
{
"sortIndex": integer,
"groupingId": string
} |
フィールド |
sortIndex |
integer
他のパスとグループ化されている場合にパスを並べ替えるためのインデックス(省略可)。並べ替えインデックスが低いパスは、並べ替えインデックスが高いパスよりも先に表示されます。指定しない場合、値は INT_MAX とみなされます。並べ替えインデックスが同じである 2 つのパスの並べ替え動作は定義されません。
|
groupingId |
string
同じ ID を持つパスを視覚的にまとめてグループ化するための、オプションのグループ化 ID。異なる種類のパスをグループ化することは可能です。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eJSON representation defines the structure for organizing passes within a digital wallet.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esortIndex\u003c/code\u003e is an optional integer field used for ordering passes visually, with lower values appearing first.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egroupingId\u003c/code\u003e is an optional string field enabling visual grouping of passes, potentially of different types, based on shared ID.\u003c/p\u003e\n"]]],["The core content describes a JSON structure for organizing passes. It uses two fields: `sortIndex` (integer) and `groupingId` (string). `sortIndex` determines the display order of passes within a group; lower values appear first, with a default of INT_MAX if unspecified. `groupingId` allows passes with different types to be visually grouped together based on shared IDs. Sorting is undefined for passes with the same `sortIndex`.\n"],null,["# GroupingInfo\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\n| JSON representation |\n|--------------------------------------------------------|\n| ``` { \"sortIndex\": integer, \"groupingId\": string } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `sortIndex` | `integer` Optional index for sorting the passes when they are grouped with other passes. Passes with lower sort index are shown before passes with higher sort index. If unspecified, the value is assumed to be INT_MAX. For two passes with the same sort index, the sorting behavior is undefined. |\n| `groupingId` | `string` Optional grouping ID for grouping the passes with the same ID visually together. Grouping with different types of passes is allowed. |"]]