public function setSyntax($var)
    {
        GPBUtil::checkString($var, True);
        $this->syntax = $var;
        $this->has_syntax = true;

        return $this;
    }
public function setSyntax($var)
    {
        GPBUtil::checkString($var, True);
        $this->syntax = $var;
        $this->has_syntax = true;

        return $this;
    }
public function setSyntax ( $ var ) { GPBUtil :: checkString ( $ var , True ) ; $ this -> syntax = $ var ; $ this -> has_syntax = true ; return $ this ; }
The syntax of the proto file.
The supported values are "proto2" and "proto3".

Generated from protobuf field <code>optional string syntax = 12;</code>
@param string $var
@return $this
The syntax of the proto file . The supported values are proto2 and proto3 .