Monitoring/src/V3/UptimeCheckConfig.php
public function setContentMatchers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Monitoring\V3\UptimeCheckConfig\ContentMatcher::class);
        $this->content_matchers = $arr;

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

        return $this;
    }
public function setContentMatchers ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig \ ContentMatcher :: class ) ; $ this -> content_matchers = $ arr ; return $ this ; }
The expected content on the page the check is run against.
Currently, only the first entry in the list is supported, and other entries
will be ignored. The server will look for an exact match of the string in
the page response's content. This field is optional and should only be
specified if a content match is required.

Generated from protobuf field <code>repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;</code>
@param \Google\Cloud\Monitoring\V3\UptimeCheckConfig\ContentMatcher[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The expected content on the page the check is run against . Currently only the first entry in the list is supported and other entries will be ignored . The server will look for an exact match of the string in the page response s content . This field is optional and should only be specified if a content match is required .