\Google\Photos\Library\V1UpdateMediaItemRequest

Request to update a media item in Google Photos.

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

Summary

Methods
Properties
Constants
__construct()
getMediaItem()
setMediaItem()
getUpdateMask()
setUpdateMask()
No public properties found
No constants found
No protected methods found
$media_item
$update_mask
N/A
No private methods found
No private properties found
N/A

Properties

$media_item

$media_item

Required. The [MediaItem][google.photos.types.MediaItem] to update.

The media item's id field is used to identify the media item to be updated. The media item's description field is used to set the new media item description.

Generated from protobuf field .google.photos.types.MediaItem media_item = 1 [(.google.api.field_behavior) = REQUIRED];

$update_mask

$update_mask

Indicate what fields in the provided media item to update.

The only valid value is description.

Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;

Methods

__construct()

__construct(array  $data = NULL) : mixed

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type \Google\Photos\Types\MediaItem $media_item
      Required. The [MediaItem][google.photos.types.MediaItem] to update.
      The media item's `id` field is used to identify the media item to be
      updated.
      The media item's `description` field is used to set the new media item
      description.
@type \Google\Protobuf\FieldMask $update_mask
      Indicate what fields in the provided media item to update.
      The only valid value is `description`.

}

Returns

mixed

getMediaItem()

getMediaItem() : \Google\Photos\Types\MediaItem

Required. The [MediaItem][google.photos.types.MediaItem] to update.

The media item's id field is used to identify the media item to be updated. The media item's description field is used to set the new media item description.

Generated from protobuf field .google.photos.types.MediaItem media_item = 1 [(.google.api.field_behavior) = REQUIRED];

Returns

\Google\Photos\Types\MediaItem

setMediaItem()

setMediaItem(\Google\Photos\Types\MediaItem  $var) : $this

Required. The [MediaItem][google.photos.types.MediaItem] to update.

The media item's id field is used to identify the media item to be updated. The media item's description field is used to set the new media item description.

Generated from protobuf field .google.photos.types.MediaItem media_item = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters

\Google\Photos\Types\MediaItem $var

Returns

$this

getUpdateMask()

getUpdateMask() : \Google\Protobuf\FieldMask

Indicate what fields in the provided media item to update.

The only valid value is description.

Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;

Returns

\Google\Protobuf\FieldMask

setUpdateMask()

setUpdateMask(\Google\Protobuf\FieldMask  $var) : $this

Indicate what fields in the provided media item to update.

The only valid value is description.

Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;

Parameters

\Google\Protobuf\FieldMask $var

Returns

$this