def METHOD_NAME(value):
    """Verifies protocol is supported"""
    if value not in ('rest', 'grpc'):
        raise argparse.ArgumentError("Protocol name {} does not match 'rest' or 'grpc'.".
                                     format(value))
    return value