$album_id
$album_id :
Identifier of the album where the media items are added. The media items are also added to the user's library. This is an optional field.
Generated from protobuf field string album_id = 1;
Request to create one or more media items in a user's Google Photos library.
If an albumid
is specified, the media items are also added to that album.
albumPosition
is optional and can only be specified if an albumId
is set.
Generated from protobuf message google.photos.library.v1.BatchCreateMediaItemsRequest
$album_position :
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owner of the shared album.
Generated from protobuf field .google.photos.library.v1.AlbumPosition album_position = 4;
__construct(array $data = NULL)
Constructor.
array | $data | { Optional. Data for populating the Message object.
} |
setNewMediaItems(array<mixed,\Google\Photos\Library\V1\NewMediaItem>|\Google\Protobuf\Internal\RepeatedField $var) : $this
List of media items to be created.
Generated from protobuf field repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;
array<mixed,\Google\Photos\Library\V1\NewMediaItem>|\Google\Protobuf\Internal\RepeatedField | $var |
getAlbumPosition() : \Google\Photos\Library\V1\AlbumPosition
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owner of the shared album.
Generated from protobuf field .google.photos.library.v1.AlbumPosition album_position = 4;
setAlbumPosition(\Google\Photos\Library\V1\AlbumPosition $var) : $this
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owner of the shared album.
Generated from protobuf field .google.photos.library.v1.AlbumPosition album_position = 4;
\Google\Photos\Library\V1\AlbumPosition | $var |