AlbumPosition
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 .
} |
필드 |
position |
enum (PositionType )
미디어 또는 보강 항목의 게재위치 유형입니다.
|
통합 필드 relative_item . 위치의 상대적인 항목입니다. 위치 유형 AFTER_MEDIA_ITEM 또는 AFTER_ENRICHMENT_ITEM 를 사용하는 경우에만 설정해야 합니다. relative_item 은 다음 중 하나여야 합니다. |
relativeMediaItemId |
string
위치의 상대 미디어 항목입니다. 위치 유형이 after_MEDIA_ITEM인 경우에만 사용됩니다.
|
relativeEnrichmentItemId |
string
위치의 상대적인 보강 항목입니다. 위치 유형이 after_ENRICHMENT_ITEM인 경우에만 사용됩니다.
|
PositionType
열거형 |
POSITION_TYPE_UNSPECIFIED |
이 열거형이 설정되지 않은 경우 기본값입니다. |
FIRST_IN_ALBUM |
앨범 시작 부분 |
LAST_IN_ALBUM |
앨범 끝 |
AFTER_MEDIA_ITEM |
미디어 항목 뒤 |
AFTER_ENRICHMENT_ITEM |
보강 항목 이후 |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-09-12(UTC)
[null,null,["최종 업데이트: 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"]]