public TaskDef getTaskDef(String taskType) {
        Preconditions.checkArgument(StringUtils.isNotBlank(taskType), "Task type cannot be blank");
        return protoMapper.fromProto(
                stub.getTask(
                                MetadataServicePb.GetTaskRequest.newBuilder()
                                        .setTaskType(taskType)
                                        .build())
                        .getTask());
    }
Retrieve the task definition of a given task type

@param taskType type of task for which to retrieve the definition
@return Task Definition for the given task type
grpc-client/src/main/java/com/netflix/conductor/client/grpc/MetadataClient.java