function DescriptorProto::setReservedName
Reserved field names, which may not be used by fields in the same message. A given name may only be reserved once.
Generated from protobuf field <code>repeated string reserved_name = 10;</code>
Parameters
array<string>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ DescriptorProto.php, line 327
Class
- DescriptorProto
- Describes a message type.
Namespace
Google\Protobuf\InternalCode
public function setReservedName($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->reserved_name = $arr;
return $this;
}