AlbumPosition
Especifica uma posição em um álbum.
Representação 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 .
} |
Campos |
position |
enum (PositionType )
Tipo de posição, para um item de mídia ou enriquecimento.
|
Campo de união relative_item . O item ao qual a posição é relativa. Isso só precisa ser definido se o tipo de posição AFTER_MEDIA_ITEM ou AFTER_ENRICHMENT_ITEM estiver sendo usado. relative_item só pode ser de um dos tipos a seguir: |
relativeMediaItemId |
string
O item de mídia ao qual a posição é relativa. Usado apenas quando o tipo de posição é AFTER_MEDIA_ITEM.
|
relativeEnrichmentItemId |
string
O item de aprimoramento ao qual a posição é relativa. Usado somente quando o tipo de posição é AFTER_ENRICHMENT_ITEM.
|
PositionType
Posições possíveis em um álbum.
Enums |
POSITION_TYPE_UNSPECIFIED |
Valor padrão se esse tipo enumerado não estiver definido. |
FIRST_IN_ALBUM |
No início do álbum. |
LAST_IN_ALBUM |
No final do álbum. |
AFTER_MEDIA_ITEM |
Após um item de mídia. |
AFTER_ENRICHMENT_ITEM |
Depois de um item de aprimoramento. |
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-09-12 UTC.
[null,null,["Última atualização 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"]]