src/Api/Documentation.php
public function setRules($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\DocumentationRule::class);
        $this->rules = $arr;

        return $this;
    }
public function setRules($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\DocumentationRule::class);
        $this->rules = $arr;

        return $this;
    }
A list of documentation rules that apply to individual API elements.
**NOTE:** All service configuration rules follow "last one wins" order.

Generated from protobuf field <code>repeated .google.api.DocumentationRule rules = 3;</code>
@param \Google\Api\DocumentationRule[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this