\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];

Type

$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;

Type

Methods

__construct()

__construct(array  $data = NULL) 

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`.

}

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

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];

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\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
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

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;

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\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
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