public function setOneofEnum($var) { GPBUtil::checkEnum($var, \Foo\TestEnum::class); $this->writeOneof(66, $var); }
public function setJstype($var) { GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldOptions_JSType::class); $this->jstype = $var; $this->has_jstype = true; }