\Google\Photos\Library\V1PhotosLibraryResourceFactory

Summary

Methods
Properties
Constants
album()
newMediaItem()
newMediaItemWithDescription()
newMediaItemWithFileName()
newMediaItemWithDescriptionAndFileName()
albumPositionAfterMediaItem()
albumPositionAfterEnrichmentItem()
newEnrichmentItemWithText()
newEnrichmentItemWithLocation()
newEnrichmentItemWithMap()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

album()

album(string  $title) : \Google\Photos\Types\Album

Returns an {@link Album} with the title set to the given string.

Parameters

string $title

Returns

\Google\Photos\Types\Album

newMediaItem()

newMediaItem(string  $uploadToken) : \Google\Photos\Library\V1\NewMediaItem

Returns a {@link NewMediaItem} containing a {@link SimpleMediaItem} with the given upload token.

Parameters

string $uploadToken

Returns

\Google\Photos\Library\V1\NewMediaItem

newMediaItemWithDescription()

newMediaItemWithDescription(string  $uploadToken, string  $description) : \Google\Photos\Library\V1\NewMediaItem

Returns a {@link NewMediaItem} with the given description and a {@link SimpleMediaItem} with the given upload token.

Parameters

string $uploadToken
string $description

Returns

\Google\Photos\Library\V1\NewMediaItem

newMediaItemWithFileName()

newMediaItemWithFileName(string  $uploadToken, string  $fileName) : \Google\Photos\Library\V1\NewMediaItem

Returns a {@link NewMediaItem} with the given fileName and a {@link SimpleMediaItem} with the given upload token.

Parameters

string $uploadToken
string $fileName

Returns

\Google\Photos\Library\V1\NewMediaItem

newMediaItemWithDescriptionAndFileName()

newMediaItemWithDescriptionAndFileName(string  $uploadToken, string  $description, string  $fileName) : \Google\Photos\Library\V1\NewMediaItem

Returns a {@link NewMediaItem} with the given description and a {@link SimpleMediaItem} with the given upload token and fileName.

Parameters

string $uploadToken
string $description
string $fileName

Returns

\Google\Photos\Library\V1\NewMediaItem

albumPositionAfterMediaItem()

albumPositionAfterMediaItem(string  $mediaItemId) : \Google\Photos\Library\V1\AlbumPosition

Returns an {@link AlbumPosition} describing the position after the given media item.

Parameters

string $mediaItemId

Returns

\Google\Photos\Library\V1\AlbumPosition

albumPositionAfterEnrichmentItem()

albumPositionAfterEnrichmentItem(string  $enrichmentItemId) : \Google\Photos\Library\V1\AlbumPosition

Returns an {@link AlbumPosition} describing the position after the given enrichment item.

Parameters

string $enrichmentItemId

Returns

\Google\Photos\Library\V1\AlbumPosition

newEnrichmentItemWithText()

newEnrichmentItemWithText(string  $text) : \Google\Photos\Library\V1\NewEnrichmentItem

Returns a {@link NewEnrichmentItem} containing a {@link TextEnrichment} with the provided text.

Parameters

string $text

Returns

\Google\Photos\Library\V1\NewEnrichmentItem

newEnrichmentItemWithLocation()

newEnrichmentItemWithLocation(\Google\Photos\Library\V1\Location  $location) : \Google\Photos\Library\V1\NewEnrichmentItem

Returns a {@link NewEnrichmentItem} containing a {@link LocationEnrichment} with the given location.

Parameters

\Google\Photos\Library\V1\Location $location

Returns

\Google\Photos\Library\V1\NewEnrichmentItem

newEnrichmentItemWithMap()

newEnrichmentItemWithMap(\Google\Photos\Library\V1\Location  $origin, \Google\Photos\Library\V1\Location  $destination) : \Google\Photos\Library\V1\NewEnrichmentItem

Returns {@link NewEnrichmentItem} containing a {@link MapEnrichment} with the given origin and destination.

Parameters

\Google\Photos\Library\V1\Location $origin
\Google\Photos\Library\V1\Location $destination

Returns

\Google\Photos\Library\V1\NewEnrichmentItem