function FileDescriptorSet::setFile
Generated from protobuf field <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code>
Parameters
array<\Google\Protobuf\Internal\FileDescriptorProto>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ FileDescriptorSet.php, line 54
Class
- FileDescriptorSet
- The protocol compiler can output a FileDescriptorSet containing the .proto files it parses.
Namespace
Google\Protobuf\InternalCode
public function setFile($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FileDescriptorProto::class);
$this->file = $arr;
return $this;
}