function FileOptions::setDeprecated
Is this file deprecated? Depending on the target platform, this can emit Deprecated annotations for everything in the file, or it will be completely ignored; in the very least, this is a formalization for deprecating files.
Generated from protobuf field <code>optional bool deprecated = 23 [default = false];</code>
Parameters
bool $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ FileOptions.php, line 757
Class
- FileOptions
- Generated from protobuf message <code>google.protobuf.FileOptions</code>
Namespace
Google\Protobuf\InternalCode
public function setDeprecated($var) {
GPBUtil::checkBool($var);
$this->deprecated = $var;
return $this;
}