function FileDescriptorProto::setSyntax
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
Generated from protobuf field <code>optional string syntax = 12;</code>
Parameters
string $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ FileDescriptorProto.php, line 488
Class
- FileDescriptorProto
- Describes a complete .proto file.
Namespace
Google\Protobuf\InternalCode
public function setSyntax($var) {
GPBUtil::checkString($var, True);
$this->syntax = $var;
return $this;
}