$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;
Representation of a media item (such as a photo or video) in Google Photos.
Generated from protobuf message google.photos.types.MediaItem
$base_url :
A URL to the media item's bytes. This shouldn't be used as is. Parameters should be appended to this URL before use. See the [developer documentation](https://developers.google.com/photos/library/guides/access-media-items#base-urls) for a complete list of supported parameters. 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;
__construct(array $data = NULL)
Constructor.
array | $data | { Optional. Data for populating the Message object.
} |
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;
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;
string | $var |
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;
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;
string | $var |
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;
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;
string | $var |
getBaseUrl() : string
A URL to the media item's bytes. This shouldn't be used as is. Parameters should be appended to this URL before use. See the [developer documentation](https://developers.google.com/photos/library/guides/access-media-items#base-urls) for a complete list of supported parameters. 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;
setBaseUrl(string $var) : $this
A URL to the media item's bytes. This shouldn't be used as is. Parameters should be appended to this URL before use. See the [developer documentation](https://developers.google.com/photos/library/guides/access-media-items#base-urls) for a complete list of supported parameters. 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;
string | $var |
getMimeType() : string
MIME type of the media item. For example, `image/jpeg`.
Generated from protobuf field string mime_type = 5;
setMimeType(string $var) : $this
MIME type of the media item. For example, `image/jpeg`.
Generated from protobuf field string mime_type = 5;
string | $var |
getMediaMetadata() : \Google\Photos\Types\MediaMetadata
Metadata related to the media item, such as, height, width, or creation time.
Generated from protobuf field .google.photos.types.MediaMetadata media_metadata = 6;
setMediaMetadata(\Google\Photos\Types\MediaMetadata $var) : $this
Metadata related to the media item, such as, height, width, or creation time.
Generated from protobuf field .google.photos.types.MediaMetadata media_metadata = 6;
\Google\Photos\Types\MediaMetadata | $var |
getContributorInfo() : \Google\Photos\Types\ContributorInfo
Information about the user who created this media item.
Generated from protobuf field .google.photos.types.ContributorInfo contributor_info = 7;
setContributorInfo(\Google\Photos\Types\ContributorInfo $var) : $this
Information about the user who created this media item.
Generated from protobuf field .google.photos.types.ContributorInfo contributor_info = 7;
\Google\Photos\Types\ContributorInfo | $var |
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;
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;
string | $var |