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