Monitoring/src/V3/ListNotificationChannelDescriptorsResponse.php
public function setChannelDescriptors($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Monitoring\V3\NotificationChannelDescriptor::class);
        $this->channel_descriptors = $arr;

        return $this;
    }
public function setChannelDescriptors($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Monitoring\V3\NotificationChannelDescriptor::class);
        $this->channel_descriptors = $arr;

        return $this;
    }
public function setChannelDescriptors ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Monitoring \ V3 \ NotificationChannelDescriptor :: class ) ; $ this -> channel_descriptors = $ arr ; return $ this ; }
The monitored resource descriptors supported for the specified
project, optionally filtered.

Generated from protobuf field <code>repeated .google.monitoring.v3.NotificationChannelDescriptor channel_descriptors = 1;</code>
@param \Google\Cloud\Monitoring\V3\NotificationChannelDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The monitored resource descriptors supported for the specified project optionally filtered .