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