\Google\Photos\Library\V1MediaTypeFilter

This filter defines the type of media items to be returned, for example, videos or photos. All the specified media types are treated as an OR when used together.

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

Summary

Methods
Properties
Constants
__construct()
getMediaTypes()
setMediaTypes()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$media_types
N/A

Properties

$media_types

$media_types : 

The types of media items to be included. This field should be populated with only one media type. If you specify multiple media types, it results in an error.

Generated from protobuf field repeated .google.photos.library.v1.MediaTypeFilter.MediaType media_types = 1;

Type

Methods

__construct()

__construct(array  $data = NULL) 

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type int[]|\Google\Protobuf\Internal\RepeatedField $media_types
      The types of media items to be included. This field should be populated
      with only one media type. If you specify multiple media types, it results
      in an error.

}

getMediaTypes()

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

The types of media items to be included. This field should be populated with only one media type. If you specify multiple media types, it results in an error.

Generated from protobuf field repeated .google.photos.library.v1.MediaTypeFilter.MediaType media_types = 1;

Returns

\Google\Protobuf\Internal\RepeatedField

setMediaTypes()

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

The types of media items to be included. This field should be populated with only one media type. If you specify multiple media types, it results in an error.

Generated from protobuf field repeated .google.photos.library.v1.MediaTypeFilter.MediaType media_types = 1;

Parameters

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

Returns

$this