public function setFields($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Field::class);
        $this->fields = $arr;

        return $this;
    }
public function setFields($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Field::class);
        $this->fields = $arr;

        return $this;
    }
public function setFields ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Protobuf \ Field :: class ) ; $ this -> fields = $ arr ; return $ this ; }
The list of fields.

Generated from protobuf field <code>repeated .google.protobuf.Field fields = 2;</code>
@param \Google\Protobuf\Field[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The list of fields .