\Google\Photos\Library\V1MediaMetadata

Metadata for a media item.

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

Summary

Methods
Properties
Constants
__construct()
getCreationTime()
setCreationTime()
getWidth()
setWidth()
getHeight()
setHeight()
getPhoto()
setPhoto()
getVideo()
setVideo()
getMetadata()
No public properties found
No constants found
No protected methods found
$metadata
N/A
No private methods found
$creation_time
$width
$height
N/A

Properties

$metadata

$metadata : 

Type

$creation_time

$creation_time : 

Time when the media item was first created (not when it was uploaded to Google Photos).

Generated from protobuf field .google.protobuf.Timestamp creation_time = 1;

Type

$width

$width : 

Original width (in pixels) of the media item.

Generated from protobuf field int64 width = 2;

Type

$height

$height : 

Original height (in pixels) of the media item.

Generated from protobuf field int64 height = 3;

Type

Methods

__construct()

__construct(array  $data = NULL) 

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type \Google\Protobuf\Timestamp $creation_time
      Time when the media item was first created (not when it was uploaded to
      Google Photos).
@type int|string $width
      Original width (in pixels) of the media item.
@type int|string $height
      Original height (in pixels) of the media item.
@type \Google\Photos\Library\V1\Photo $photo
      Metadata for a photo media type.
@type \Google\Photos\Library\V1\Video $video
      Metadata for a video media type.

}

getCreationTime()

getCreationTime() : \Google\Protobuf\Timestamp

Time when the media item was first created (not when it was uploaded to Google Photos).

Generated from protobuf field .google.protobuf.Timestamp creation_time = 1;

Returns

\Google\Protobuf\Timestamp

setCreationTime()

setCreationTime(\Google\Protobuf\Timestamp  $var) : $this

Time when the media item was first created (not when it was uploaded to Google Photos).

Generated from protobuf field .google.protobuf.Timestamp creation_time = 1;

Parameters

\Google\Protobuf\Timestamp $var

Returns

$this

getWidth()

getWidth() : integer|string

Original width (in pixels) of the media item.

Generated from protobuf field int64 width = 2;

Returns

integer|string

setWidth()

setWidth(integer|string  $var) : $this

Original width (in pixels) of the media item.

Generated from protobuf field int64 width = 2;

Parameters

integer|string $var

Returns

$this

getHeight()

getHeight() : integer|string

Original height (in pixels) of the media item.

Generated from protobuf field int64 height = 3;

Returns

integer|string

setHeight()

setHeight(integer|string  $var) : $this

Original height (in pixels) of the media item.

Generated from protobuf field int64 height = 3;

Parameters

integer|string $var

Returns

$this

getPhoto()

getPhoto() : \Google\Photos\Library\V1\Photo

Metadata for a photo media type.

Generated from protobuf field .google.photos.library.v1.Photo photo = 6;

Returns

\Google\Photos\Library\V1\Photo

setPhoto()

setPhoto(\Google\Photos\Library\V1\Photo  $var) : $this

Metadata for a photo media type.

Generated from protobuf field .google.photos.library.v1.Photo photo = 6;

Parameters

\Google\Photos\Library\V1\Photo $var

Returns

$this

getVideo()

getVideo() : \Google\Photos\Library\V1\Video

Metadata for a video media type.

Generated from protobuf field .google.photos.library.v1.Video video = 7;

Returns

\Google\Photos\Library\V1\Video

setVideo()

setVideo(\Google\Photos\Library\V1\Video  $var) : $this

Metadata for a video media type.

Generated from protobuf field .google.photos.library.v1.Video video = 7;

Parameters

\Google\Photos\Library\V1\Video $var

Returns

$this

getMetadata()

getMetadata() : string

Returns

string