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;
    }
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;
    }
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 ; }
Filters the types of keys the user wants to include in the list
response. Duplicate key types are not allowed. If no key type
is provided, all keys are returned.

Generated from protobuf field <code>repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2;</code>
@param int[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
Filters the types of keys the user wants to include in the list response . Duplicate key types are not allowed . If no key type is provided all keys are returned .