\Google\Photos\Library\V1Filters

Filters that can be applied to a media item search.

If multiple filter options are specified, they're treated as AND with each other.

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

Summary

Methods
Properties
Constants
__construct()
getDateFilter()
setDateFilter()
getContentFilter()
setContentFilter()
getMediaTypeFilter()
setMediaTypeFilter()
getFeatureFilter()
setFeatureFilter()
getIncludeArchivedMedia()
setIncludeArchivedMedia()
getExcludeNonAppCreatedData()
setExcludeNonAppCreatedData()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$date_filter
$content_filter
$media_type_filter
$feature_filter
$include_archived_media
$exclude_non_app_created_data
N/A

Properties

$date_filter

$date_filter : 

Filters the media items based on their creation date.

Generated from protobuf field .google.photos.library.v1.DateFilter date_filter = 1;

Type

$content_filter

$content_filter : 

Filters the media items based on their content.

Generated from protobuf field .google.photos.library.v1.ContentFilter content_filter = 2;

Type

$media_type_filter

$media_type_filter : 

Filters the media items based on the type of media.

Generated from protobuf field .google.photos.library.v1.MediaTypeFilter media_type_filter = 3;

Type

$feature_filter

$feature_filter : 

Filters the media items based on their features.

Generated from protobuf field .google.photos.library.v1.FeatureFilter feature_filter = 7;

Type

$include_archived_media

$include_archived_media : 

If set, the results include media items that the user has archived.

Defaults to false (archived media items aren't included).

Generated from protobuf field bool include_archived_media = 4;

Type

$exclude_non_app_created_data

$exclude_non_app_created_data : 

If set, the results exclude media items that were not created by this app.

Defaults to false (all media items are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is used.

Generated from protobuf field bool exclude_non_app_created_data = 5;

Type

Methods

__construct()

__construct(array  $data = NULL) 

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type \Google\Photos\Library\V1\DateFilter $date_filter
      Filters the media items based on their creation date.
@type \Google\Photos\Library\V1\ContentFilter $content_filter
      Filters the media items based on their content.
@type \Google\Photos\Library\V1\MediaTypeFilter $media_type_filter
      Filters the media items based on the type of media.
@type \Google\Photos\Library\V1\FeatureFilter $feature_filter
      Filters the media items based on their features.
@type bool $include_archived_media
      If set, the results include media items that the user has archived.
      Defaults to false (archived media items aren't included).
@type bool $exclude_non_app_created_data
      If set, the results exclude media items that were not created by this app.
      Defaults to false (all media items are returned). This field is ignored if
      the photoslibrary.readonly.appcreateddata scope is used.

}

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

getDateFilter()

getDateFilter() : \Google\Photos\Library\V1\DateFilter

Filters the media items based on their creation date.

Generated from protobuf field .google.photos.library.v1.DateFilter date_filter = 1;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

\Google\Photos\Library\V1\DateFilter

setDateFilter()

setDateFilter(\Google\Photos\Library\V1\DateFilter  $var) : $this

Filters the media items based on their creation date.

Generated from protobuf field .google.photos.library.v1.DateFilter date_filter = 1;

Parameters

\Google\Photos\Library\V1\DateFilter $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getContentFilter()

getContentFilter() : \Google\Photos\Library\V1\ContentFilter

Filters the media items based on their content.

Generated from protobuf field .google.photos.library.v1.ContentFilter content_filter = 2;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

\Google\Photos\Library\V1\ContentFilter

setContentFilter()

setContentFilter(\Google\Photos\Library\V1\ContentFilter  $var) : $this

Filters the media items based on their content.

Generated from protobuf field .google.photos.library.v1.ContentFilter content_filter = 2;

Parameters

\Google\Photos\Library\V1\ContentFilter $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getMediaTypeFilter()

getMediaTypeFilter() : \Google\Photos\Library\V1\MediaTypeFilter

Filters the media items based on the type of media.

Generated from protobuf field .google.photos.library.v1.MediaTypeFilter media_type_filter = 3;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

\Google\Photos\Library\V1\MediaTypeFilter

setMediaTypeFilter()

setMediaTypeFilter(\Google\Photos\Library\V1\MediaTypeFilter  $var) : $this

Filters the media items based on the type of media.

Generated from protobuf field .google.photos.library.v1.MediaTypeFilter media_type_filter = 3;

Parameters

\Google\Photos\Library\V1\MediaTypeFilter $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getFeatureFilter()

getFeatureFilter() : \Google\Photos\Library\V1\FeatureFilter

Filters the media items based on their features.

Generated from protobuf field .google.photos.library.v1.FeatureFilter feature_filter = 7;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

\Google\Photos\Library\V1\FeatureFilter

setFeatureFilter()

setFeatureFilter(\Google\Photos\Library\V1\FeatureFilter  $var) : $this

Filters the media items based on their features.

Generated from protobuf field .google.photos.library.v1.FeatureFilter feature_filter = 7;

Parameters

\Google\Photos\Library\V1\FeatureFilter $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getIncludeArchivedMedia()

getIncludeArchivedMedia() : boolean

If set, the results include media items that the user has archived.

Defaults to false (archived media items aren't included).

Generated from protobuf field bool include_archived_media = 4;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

boolean

setIncludeArchivedMedia()

setIncludeArchivedMedia(boolean  $var) : $this

If set, the results include media items that the user has archived.

Defaults to false (archived media items aren't included).

Generated from protobuf field bool include_archived_media = 4;

Parameters

boolean $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getExcludeNonAppCreatedData()

getExcludeNonAppCreatedData() : boolean

If set, the results exclude media items that were not created by this app.

Defaults to false (all media items are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is used.

Generated from protobuf field bool exclude_non_app_created_data = 5;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

boolean

setExcludeNonAppCreatedData()

setExcludeNonAppCreatedData(boolean  $var) : $this

If set, the results exclude media items that were not created by this app.

Defaults to false (all media items are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is used.

Generated from protobuf field bool exclude_non_app_created_data = 5;

Parameters

boolean $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.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.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this