function MessageOptions::setNoStandardDescriptorAccessor
Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name. This is meant to make migration from proto1 easier; new code should avoid fields named "descriptor".
Generated from protobuf field <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code>
Parameters
bool $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ MessageOptions.php, line 263
Class
- MessageOptions
- Generated from protobuf message <code>google.protobuf.MessageOptions</code>
Namespace
Google\Protobuf\InternalCode
public function setNoStandardDescriptorAccessor($var) {
GPBUtil::checkBool($var);
$this->no_standard_descriptor_accessor = $var;
return $this;
}