\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()
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
$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

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

}

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;

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

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;

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

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;

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

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;

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

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;

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

Returns

$this