public function setKeyTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Iam\Admin\V1\ListServiceAccountKeysRequest\KeyType::class);
        $this->key_types = $arr;

        return $this;
    }