AlbumPosition
Określa pozycję w albumie.
Zapis JSON |
{
"position": enum (PositionType ),
// Union field relative_item can be only one of the following:
"relativeMediaItemId": string,
"relativeEnrichmentItemId": string
// End of list of possible types for union field relative_item .
} |
Pola |
position |
enum (PositionType )
Typ pozycji w przypadku elementu multimedialnego lub elementu wzbogacającego.
|
Pole sumy relative_item . Element, do którego odnosi się pozycja. Musi być ona ustawiona tylko wtedy, gdy używasz typu pozycji AFTER_MEDIA_ITEM lub AFTER_ENRICHMENT_ITEM . relative_item może mieć tylko jedną z tych wartości: |
relativeMediaItemId |
string
Element multimedialny, do którego odnosi się ta pozycja. Używany tylko wtedy, gdy typ pozycji to AFTER_MEDIA_ITEM.
|
relativeEnrichmentItemId |
string
Element wzbogacenia, względem którego pozycja jest względna. Używany tylko wtedy, gdy typ pozycji to AFTER_ENRICHMENT_ITEM.
|
PositionType
Możliwe pozycje w albumie.
Wartości w polu enum |
POSITION_TYPE_UNSPECIFIED |
Wartość domyślna, jeśli ta wyliczenie nie zostało ustawione. |
FIRST_IN_ALBUM |
Na początku albumu |
LAST_IN_ALBUM |
Na końcu albumu |
AFTER_MEDIA_ITEM |
Po elemencie multimedialnym. |
AFTER_ENRICHMENT_ITEM |
Po elemencie wzbogacającym. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-12 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-12 UTC."],[[["`AlbumPosition` defines the position of media or enrichment items within a Google Photos album."],["It offers five position types: `POSITION_TYPE_UNSPECIFIED`, `FIRST_IN_ALBUM`, `LAST_IN_ALBUM`, `AFTER_MEDIA_ITEM`, and `AFTER_ENRICHMENT_ITEM`."],["For positions relative to other items (`AFTER_MEDIA_ITEM`, `AFTER_ENRICHMENT_ITEM`), you must specify the ID of the relative media or enrichment item."],["The JSON representation includes the `position` type and, if necessary, the ID of the relative item (`relativeMediaItemId` or `relativeEnrichmentItemId`)."]]],["The content defines how to specify a position within an album using a JSON structure. It uses a `position` field with an enumerated type (`PositionType`) that can be `FIRST_IN_ALBUM`, `LAST_IN_ALBUM`, `AFTER_MEDIA_ITEM`, or `AFTER_ENRICHMENT_ITEM`. If positioning after an item, either `relativeMediaItemId` or `relativeEnrichmentItemId` must be specified in the `relative_item` union field to identify the referenced media or enrichment item.\n"]]