\Google\Photos\Library\V1BatchCreateMediaItemsRequest

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

Summary

Methods
Properties
Constants
__construct()
getAlbumId()
setAlbumId()
getNewMediaItems()
setNewMediaItems()
getAlbumPosition()
setAlbumPosition()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$album_id
$new_media_items
$album_position
N/A

Properties

$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;

Type

$new_media_items

$new_media_items : 

List of media items to be created.

Generated from protobuf field repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;

Type

$album_position

$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;

Type

Methods

__construct()

__construct(array  $data = NULL) 

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type string $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.
@type \Google\Photos\Library\V1\NewMediaItem[]|\Google\Protobuf\Internal\RepeatedField $new_media_items
      List of media items to be created.
@type \Google\Photos\Library\V1\AlbumPosition $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.

}

getAlbumId()

getAlbumId() : string

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;

Returns

string

setAlbumId()

setAlbumId(string  $var) : $this

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;

Parameters

string $var

Returns

$this

getNewMediaItems()

getNewMediaItems() : \Google\Protobuf\Internal\RepeatedField

List of media items to be created.

Generated from protobuf field repeated .google.photos.library.v1.NewMediaItem new_media_items = 2;

Returns

\Google\Protobuf\Internal\RepeatedField

setNewMediaItems()

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;

Parameters

array<mixed,\Google\Photos\Library\V1\NewMediaItem>|\Google\Protobuf\Internal\RepeatedField $var

Returns

$this

getAlbumPosition()

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;

Returns

\Google\Photos\Library\V1\AlbumPosition

setAlbumPosition()

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;

Parameters

\Google\Photos\Library\V1\AlbumPosition $var

Returns

$this