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