function DescriptorProto::setField
Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code>
Parameters
array<\Google\Protobuf\Internal\FieldDescriptorProto>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ DescriptorProto.php, line 135
Class
- DescriptorProto
- Describes a message type.
Namespace
Google\Protobuf\InternalCode
public function setField($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
$this->field = $arr;
return $this;
}