function Api::setSyntax
The source syntax of the service.
Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code>
Parameters
int $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Api.php, line 351
Class
- Api
- Api is a light-weight descriptor for an API Interface. Interfaces are also described as "protocol buffer services" in some contexts, such as by the "service" keyword in a .proto file, but they are different from API Services, which…
Namespace
Google\ProtobufCode
public function setSyntax($var) {
GPBUtil::checkEnum($var, \Google\Protobuf\Syntax::class);
$this->syntax = $var;
return $this;
}