\Google\Photos\Library\V1SimpleMediaItem

A simple media item to be created in Google Photos via an upload token.

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

Summary

Methods
Properties
Constants
__construct()
getUploadToken()
setUploadToken()
getFileName()
setFileName()
No public properties found
No constants found
No protected methods found
$upload_token
$file_name
N/A
No private methods found
No private properties found
N/A

Properties

$upload_token

$upload_token : 

Token identifying the media bytes that have been uploaded to Google.

Generated from protobuf field string upload_token = 1;

Type

$file_name

$file_name : 

File name with extension of the media item. This is shown to the user in Google Photos. The file name specified during the <a href="https://developers.google.com/photos/library/guides/upload-media">byte upload process</a> is ignored if this field is set. The file name, including the file extension, shouldn't be more than 255 characters. This is an optional field.

Generated from protobuf field string file_name = 2;

Type

Methods

__construct()

__construct(array  $data = NULL) 

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type string $upload_token
      Token identifying the media bytes that have been uploaded to Google.
@type string $file_name
      File name with extension of the media item. This is shown to the user in
      Google Photos. The file name specified during the <a
      href="https://developers.google.com/photos/library/guides/upload-media">byte
      upload process</a> is ignored if this field is set. The file name,
      including the file extension, shouldn't be more than 255 characters. This
      is an optional field.

}

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

getUploadToken()

getUploadToken() : string

Token identifying the media bytes that have been uploaded to Google.

Generated from protobuf field string upload_token = 1;

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

string

setUploadToken()

setUploadToken(string  $var) : $this

Token identifying the media bytes that have been uploaded to Google.

Generated from protobuf field string upload_token = 1;

Parameters

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

getFileName()

getFileName() : string

File name with extension of the media item. This is shown to the user in Google Photos. The file name specified during the <a href="https://developers.google.com/photos/library/guides/upload-media">byte upload process</a> is ignored if this field is set. The file name, including the file extension, shouldn't be more than 255 characters. This is an optional field.

Generated from protobuf field string file_name = 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

string

setFileName()

setFileName(string  $var) : $this

File name with extension of the media item. This is shown to the user in Google Photos. The file name specified during the <a href="https://developers.google.com/photos/library/guides/upload-media">byte upload process</a> is ignored if this field is set. The file name, including the file extension, shouldn't be more than 255 characters. This is an optional field.

Generated from protobuf field string file_name = 2;

Parameters

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