\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;

Methods

__construct()

__construct(array  $data = NULL) : mixed

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.

}

Returns

mixed

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(int[]|\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

int[]|\Google\Protobuf\Internal\RepeatedField $var

Returns

$this