\Google\Photos\Library\V1MediaItemResult

Result of retrieving a media item.

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

Summary

Methods
Properties
Constants
__construct()
getStatus()
setStatus()
getMediaItem()
setMediaItem()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$status
$media_item
N/A

Properties

$status

$status : 

If an error occurred while accessing this media item, this field is populated with information related to the error. For details regarding this field, see [Status][google.rpc.Status].

Generated from protobuf field .google.rpc.Status status = 1;

Type

$media_item

$media_item : 

Media item retrieved from the user's library. It's populated if no errors occurred and the media item was fetched successfully.

Generated from protobuf field .google.photos.library.v1.MediaItem media_item = 2;

Type

Methods

__construct()

__construct(array  $data = NULL) 

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type \Google\Rpc\Status $status
      If an error occurred while accessing this media item, this field
      is populated with information related to the error. For details regarding
      this field, see [Status][google.rpc.Status].
@type \Google\Photos\Library\V1\MediaItem $media_item
      Media item retrieved from the user's library. It's populated if no errors
      occurred and the media item was fetched successfully.

}

getStatus()

getStatus() : \Google\Rpc\Status

If an error occurred while accessing this media item, this field is populated with information related to the error. For details regarding this field, see [Status][google.rpc.Status].

Generated from protobuf field .google.rpc.Status status = 1;

Returns

\Google\Rpc\Status

setStatus()

setStatus(\Google\Rpc\Status  $var) : $this

If an error occurred while accessing this media item, this field is populated with information related to the error. For details regarding this field, see [Status][google.rpc.Status].

Generated from protobuf field .google.rpc.Status status = 1;

Parameters

\Google\Rpc\Status $var

Returns

$this

getMediaItem()

getMediaItem() : \Google\Photos\Library\V1\MediaItem

Media item retrieved from the user's library. It's populated if no errors occurred and the media item was fetched successfully.

Generated from protobuf field .google.photos.library.v1.MediaItem media_item = 2;

Returns

\Google\Photos\Library\V1\MediaItem

setMediaItem()

setMediaItem(\Google\Photos\Library\V1\MediaItem  $var) : $this

Media item retrieved from the user's library. It's populated if no errors occurred and the media item was fetched successfully.

Generated from protobuf field .google.photos.library.v1.MediaItem media_item = 2;

Parameters

\Google\Photos\Library\V1\MediaItem $var

Returns

$this