\Google\Photos\TypesMediaMetadata

Metadata for a media item.

Generated from protobuf message google.photos.types.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
$creation_time
$width
$height
$metadata
N/A
No private methods found
No private properties found
N/A

Properties

$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

$metadata

$metadata : 

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\Types\Photo $photo
      Metadata for a photo media type.
@type \Google\Photos\Types\Video $video
      Metadata for a video media type.

}

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

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;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

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
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getWidth()

getWidth() : integer|string

Original width (in pixels) of the media item.

Generated from protobuf field int64 width = 2;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

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
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getHeight()

getHeight() : integer|string

Original height (in pixels) of the media item.

Generated from protobuf field int64 height = 3;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

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
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getPhoto()

getPhoto() : \Google\Photos\Types\Photo

Metadata for a photo media type.

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

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

\Google\Photos\Types\Photo

setPhoto()

setPhoto(\Google\Photos\Types\Photo  $var) : $this

Metadata for a photo media type.

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

Parameters

\Google\Photos\Types\Photo $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getVideo()

getVideo() : \Google\Photos\Types\Video

Metadata for a video media type.

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

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

\Google\Photos\Types\Video

setVideo()

setVideo(\Google\Photos\Types\Video  $var) : $this

Metadata for a video media type.

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

Parameters

\Google\Photos\Types\Video $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getMetadata()

getMetadata() : string

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

string