\Google\Photos\Library\V1NewMediaItem

New media item that's created in a user's Google Photos account.

Generated from protobuf message google.photos.library.v1.NewMediaItem

Summary

Methods
Properties
Constants
__construct()
getDescription()
setDescription()
getSimpleMediaItem()
setSimpleMediaItem()
getNewMediaItemType()
No public properties found
No constants found
No protected methods found
$description
$new_media_item_type
N/A
No private methods found
No private properties found
N/A

Properties

$description

$description

Description of the media item. This will be shown to the user in the item's info section in the Google Photos app.

This string shouldn't be more than 1000 characters.

Generated from protobuf field string description = 1;

$new_media_item_type

$new_media_item_type

Methods

__construct()

__construct(array  $data = NULL) : mixed

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type string $description
      Description of the media item. This will be shown to the user in the item's
      info section in the Google Photos app.
      This string shouldn't be more than 1000 characters.
@type \Google\Photos\Library\V1\SimpleMediaItem $simple_media_item
      A new media item that has been uploaded via the included `uploadToken`.

}

Returns

mixed

getDescription()

getDescription() : string

Description of the media item. This will be shown to the user in the item's info section in the Google Photos app.

This string shouldn't be more than 1000 characters.

Generated from protobuf field string description = 1;

Returns

string

setDescription()

setDescription(string  $var) : $this

Description of the media item. This will be shown to the user in the item's info section in the Google Photos app.

This string shouldn't be more than 1000 characters.

Generated from protobuf field string description = 1;

Parameters

string $var

Returns

$this

getSimpleMediaItem()

getSimpleMediaItem() : \Google\Photos\Library\V1\SimpleMediaItem

A new media item that has been uploaded via the included `uploadToken`.

Generated from protobuf field .google.photos.library.v1.SimpleMediaItem simple_media_item = 2;

Returns

\Google\Photos\Library\V1\SimpleMediaItem

setSimpleMediaItem()

setSimpleMediaItem(\Google\Photos\Library\V1\SimpleMediaItem  $var) : $this

A new media item that has been uploaded via the included `uploadToken`.

Generated from protobuf field .google.photos.library.v1.SimpleMediaItem simple_media_item = 2;

Parameters

\Google\Photos\Library\V1\SimpleMediaItem $var

Returns

$this

getNewMediaItemType()

getNewMediaItemType() : string

Returns

string