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