function FileDescriptorProto::setDependency
Names of files imported by this file.
Generated from protobuf field <code>repeated string dependency = 3;</code>
Parameters
array<string>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ FileDescriptorProto.php, line 228
Class
- FileDescriptorProto
- Describes a complete .proto file.
Namespace
Google\Protobuf\InternalCode
public function setDependency($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->dependency = $arr;
return $this;
}