function FileDescriptorProto::setExtension
Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code>
Parameters
array<\Google\Protobuf\Internal\FieldDescriptorProto>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ FileDescriptorProto.php, line 374
Class
- FileDescriptorProto
- Describes a complete .proto file.
Namespace
Google\Protobuf\InternalCode
public function setExtension($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
$this->extension = $arr;
return $this;
}