function EnumDescriptorProto::setReservedName
Reserved enum value names, which may not be reused. A given name may only be reserved once.
Generated from protobuf field <code>repeated string reserved_name = 5;</code>
Parameters
array<string>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ EnumDescriptorProto.php, line 207
Class
- EnumDescriptorProto
- Describes an enum type.
Namespace
Google\Protobuf\InternalCode
public function setReservedName($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->reserved_name = $arr;
return $this;
}