\Google\Photos\Library\V1ContentFilter

This filter allows you to return media items based on the content type.

It's possible to specify a list of categories to include, and/or a list of categories to exclude. Within each list, the categories are combined with an OR.

The content filter includedContentCategories: [c1, c2, c3] would get media items that contain (c1 OR c2 OR c3).

The content filter excludedContentCategories: [c1, c2, c3] would NOT get media items that contain (c1 OR c2 OR c3).

You can also include some categories while excluding others, as in this example: includedContentCategories: [c1, c2], excludedContentCategories: [c3, c4]

The previous example would get media items that contain (c1 OR c2) AND NOT (c3 OR c4). A category that appears in includedContentategories must not appear in excludedContentCategories.

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

Summary

Methods
Properties
Constants
__construct()
getIncludedContentCategories()
setIncludedContentCategories()
getExcludedContentCategories()
setExcludedContentCategories()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$included_content_categories
$excluded_content_categories
N/A

Properties

$included_content_categories

$included_content_categories : 

The set of categories to be included in the media item search results.

The items in the set are ORed. There's a maximum of 10 includedContentCategories per request.

Generated from protobuf field repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;

Type

$excluded_content_categories

$excluded_content_categories : 

The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.

Generated from protobuf field repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;

Type

Methods

__construct()

__construct(array  $data = NULL) 

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type int[]|\Google\Protobuf\Internal\RepeatedField $included_content_categories
      The set of categories to be included in the media item search results.
      The items in the set are ORed. There's a maximum of 10
      `includedContentCategories` per request.
@type int[]|\Google\Protobuf\Internal\RepeatedField $excluded_content_categories
      The set of categories which are not to be included in the media item search
      results. The items in the set are ORed. There's a maximum of 10
      `excludedContentCategories` per request.

}

getIncludedContentCategories()

getIncludedContentCategories() : \Google\Protobuf\Internal\RepeatedField

The set of categories to be included in the media item search results.

The items in the set are ORed. There's a maximum of 10 includedContentCategories per request.

Generated from protobuf field repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;

Returns

\Google\Protobuf\Internal\RepeatedField

setIncludedContentCategories()

setIncludedContentCategories(array<mixed,integer>|\Google\Protobuf\Internal\RepeatedField  $var) : $this

The set of categories to be included in the media item search results.

The items in the set are ORed. There's a maximum of 10 includedContentCategories per request.

Generated from protobuf field repeated .google.photos.library.v1.ContentCategory included_content_categories = 1;

Parameters

array<mixed,integer>|\Google\Protobuf\Internal\RepeatedField $var

Returns

$this

getExcludedContentCategories()

getExcludedContentCategories() : \Google\Protobuf\Internal\RepeatedField

The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.

Generated from protobuf field repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;

Returns

\Google\Protobuf\Internal\RepeatedField

setExcludedContentCategories()

setExcludedContentCategories(array<mixed,integer>|\Google\Protobuf\Internal\RepeatedField  $var) : $this

The set of categories which are not to be included in the media item search results. The items in the set are ORed. There's a maximum of 10 `excludedContentCategories` per request.

Generated from protobuf field repeated .google.photos.library.v1.ContentCategory excluded_content_categories = 2;

Parameters

array<mixed,integer>|\Google\Protobuf\Internal\RepeatedField $var

Returns

$this