\Google\Photos\Library\V1NewMediaItemResult

Result of creating a new media item.

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

Summary

Methods
Properties
Constants
__construct()
getUploadToken()
setUploadToken()
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
$upload_token
$status
$media_item
N/A

Properties

$upload_token

$upload_token : 

The upload token used to create this new media item.

Generated from protobuf field string upload_token = 1;

Type

$status

$status : 

If an error occurred during the creation of this media item, this field is populated with information related to the error. For details regarding this field, see <a href="#Status">Status</a>.

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

Type

$media_item

$media_item : 

Media item created with the upload token. It's populated if no errors occurred and the media item was created successfully.

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

Type

Methods

__construct()

__construct(array  $data = NULL) 

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type string $upload_token
      The upload token used to create this new media item.
@type \Google\Rpc\Status $status
      If an error occurred during the creation of this media item, this field
      is  populated with information related to the error. For details regarding
      this field, see <a href="#Status">Status</a>.
@type \Google\Photos\Library\V1\MediaItem $media_item
      Media item created with the upload token. It's populated if no errors
      occurred and the media item was created successfully.

}

getUploadToken()

getUploadToken() : string

The upload token used to create this new media item.

Generated from protobuf field string upload_token = 1;

Returns

string

setUploadToken()

setUploadToken(string  $var) : $this

The upload token used to create this new media item.

Generated from protobuf field string upload_token = 1;

Parameters

string $var

Returns

$this

getStatus()

getStatus() : \Google\Rpc\Status

If an error occurred during the creation of this media item, this field is populated with information related to the error. For details regarding this field, see <a href="#Status">Status</a>.

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

Returns

\Google\Rpc\Status

setStatus()

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

If an error occurred during the creation of this media item, this field is populated with information related to the error. For details regarding this field, see <a href="#Status">Status</a>.

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

Parameters

\Google\Rpc\Status $var

Returns

$this

getMediaItem()

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

Media item created with the upload token. It's populated if no errors occurred and the media item was created successfully.

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

Returns

\Google\Photos\Library\V1\MediaItem

setMediaItem()

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

Media item created with the upload token. It's populated if no errors occurred and the media item was created successfully.

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

Parameters

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

Returns

$this