function FileDescriptorProto::setWeakDependency
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
Generated from protobuf field <code>repeated int32 weak_dependency = 11;</code>
Parameters
array<int>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ FileDescriptorProto.php, line 282
Class
- FileDescriptorProto
- Describes a complete .proto file.
Namespace
Google\Protobuf\InternalCode
public function setWeakDependency($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
$this->weak_dependency = $arr;
return $this;
}