\Google\Photos\Library\V1MediaItem

Representation of a media item (such as a photo or video) in Google Photos.

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

Summary

Methods
Properties
Constants
__construct()
getId()
setId()
getDescription()
setDescription()
getProductUrl()
setProductUrl()
getBaseUrl()
setBaseUrl()
getMimeType()
setMimeType()
getMediaMetadata()
setMediaMetadata()
getContributorInfo()
setContributorInfo()
getFilename()
setFilename()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$id
$description
$product_url
$base_url
$mime_type
$media_metadata
$contributor_info
$filename
N/A

Properties

$id

$id : 

Identifier for the media item. This is a persistent identifier that can be used between sessions to identify this media item.

Generated from protobuf field string id = 1;

Type

$description

$description : 

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

Generated from protobuf field string description = 2;

Type

$product_url

$product_url : 

Google Photos URL for the media item. This link is available to the user only if they're signed in.

Generated from protobuf field string product_url = 3;

Type

$base_url

$base_url : 

A URL to the media item's bytes. This shouldn't be used directly to access the media item. For example, `'=w2048-h1024'` will set the dimensions of a media item of type photo to have a width of 2048 px and height of 1024 px.

Generated from protobuf field string base_url = 4;

Type

$mime_type

$mime_type : 

MIME type of the media item. For example, `image/jpeg`.

Generated from protobuf field string mime_type = 5;

Type

$media_metadata

$media_metadata : 

Metadata related to the media item, such as, height, width, or creation time.

Generated from protobuf field .google.photos.library.v1.MediaMetadata media_metadata = 6;

Type

$contributor_info

$contributor_info : 

Information about the user who created this media item.

Generated from protobuf field .google.photos.library.v1.ContributorInfo contributor_info = 7;

Type

$filename

$filename : 

Filename of the media item. This is shown to the user in the item's info section in the Google Photos app.

Generated from protobuf field string filename = 8;

Type

Methods

__construct()

__construct(array  $data = NULL) 

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type string $id
      Identifier for the media item. This is a persistent identifier that can be
      used between sessions to identify this media item.
@type string $description
      Description of the media item. This is shown to the user in the item's
      info section in the Google Photos app.
@type string $product_url
      Google Photos URL for the media item. This link is available to
      the user only if they're signed in.
@type string $base_url
      A URL to the media item's bytes. This shouldn't be used directly to access
      the media item. For example, `'=w2048-h1024'` will set the dimensions of a
      media item of type photo to have a width of 2048 px and height of 1024 px.
@type string $mime_type
      MIME type of the media item. For example, `image/jpeg`.
@type \Google\Photos\Library\V1\MediaMetadata $media_metadata
      Metadata related to the media item, such as, height, width, or
      creation time.
@type \Google\Photos\Library\V1\ContributorInfo $contributor_info
      Information about the user who created this media item.
@type string $filename
      Filename of the media item. This is shown to the user in the item's info
      section in the Google Photos app.

}

getId()

getId() : string

Identifier for the media item. This is a persistent identifier that can be used between sessions to identify this media item.

Generated from protobuf field string id = 1;

Returns

string

setId()

setId(string  $var) : $this

Identifier for the media item. This is a persistent identifier that can be used between sessions to identify this media item.

Generated from protobuf field string id = 1;

Parameters

string $var

Returns

$this

getDescription()

getDescription() : string

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

Generated from protobuf field string description = 2;

Returns

string

setDescription()

setDescription(string  $var) : $this

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

Generated from protobuf field string description = 2;

Parameters

string $var

Returns

$this

getProductUrl()

getProductUrl() : string

Google Photos URL for the media item. This link is available to the user only if they're signed in.

Generated from protobuf field string product_url = 3;

Returns

string

setProductUrl()

setProductUrl(string  $var) : $this

Google Photos URL for the media item. This link is available to the user only if they're signed in.

Generated from protobuf field string product_url = 3;

Parameters

string $var

Returns

$this

getBaseUrl()

getBaseUrl() : string

A URL to the media item's bytes. This shouldn't be used directly to access the media item. For example, `'=w2048-h1024'` will set the dimensions of a media item of type photo to have a width of 2048 px and height of 1024 px.

Generated from protobuf field string base_url = 4;

Returns

string

setBaseUrl()

setBaseUrl(string  $var) : $this

A URL to the media item's bytes. This shouldn't be used directly to access the media item. For example, `'=w2048-h1024'` will set the dimensions of a media item of type photo to have a width of 2048 px and height of 1024 px.

Generated from protobuf field string base_url = 4;

Parameters

string $var

Returns

$this

getMimeType()

getMimeType() : string

MIME type of the media item. For example, `image/jpeg`.

Generated from protobuf field string mime_type = 5;

Returns

string

setMimeType()

setMimeType(string  $var) : $this

MIME type of the media item. For example, `image/jpeg`.

Generated from protobuf field string mime_type = 5;

Parameters

string $var

Returns

$this

getMediaMetadata()

getMediaMetadata() : \Google\Photos\Library\V1\MediaMetadata

Metadata related to the media item, such as, height, width, or creation time.

Generated from protobuf field .google.photos.library.v1.MediaMetadata media_metadata = 6;

Returns

\Google\Photos\Library\V1\MediaMetadata

setMediaMetadata()

setMediaMetadata(\Google\Photos\Library\V1\MediaMetadata  $var) : $this

Metadata related to the media item, such as, height, width, or creation time.

Generated from protobuf field .google.photos.library.v1.MediaMetadata media_metadata = 6;

Parameters

\Google\Photos\Library\V1\MediaMetadata $var

Returns

$this

getContributorInfo()

getContributorInfo() : \Google\Photos\Library\V1\ContributorInfo

Information about the user who created this media item.

Generated from protobuf field .google.photos.library.v1.ContributorInfo contributor_info = 7;

Returns

\Google\Photos\Library\V1\ContributorInfo

setContributorInfo()

setContributorInfo(\Google\Photos\Library\V1\ContributorInfo  $var) : $this

Information about the user who created this media item.

Generated from protobuf field .google.photos.library.v1.ContributorInfo contributor_info = 7;

Parameters

\Google\Photos\Library\V1\ContributorInfo $var

Returns

$this

getFilename()

getFilename() : string

Filename of the media item. This is shown to the user in the item's info section in the Google Photos app.

Generated from protobuf field string filename = 8;

Returns

string

setFilename()

setFilename(string  $var) : $this

Filename of the media item. This is shown to the user in the item's info section in the Google Photos app.

Generated from protobuf field string filename = 8;

Parameters

string $var

Returns

$this