async function transferViaManifest() {
    const createRequest = {
      transferJob: {
        projectId,
        transferSpec: {
          sourceAgentPoolName,
          posixDataSource: {
            rootDirectory,
          },
          gcsDataSink: {bucketName: gcsSinkBucket},
          transferManifest: {
            location: manifestLocation,
          },
        },
        status: 'ENABLED',
      },
    };

    // Runs the request and creates the job
    const [transferJob] = await client.createTransferJob(createRequest);

    const runRequest = {
      jobName: transferJob.name,
      projectId: projectId,
    };

    await client.runTransferJob(runRequest);

    console.log(
      `Created and ran a transfer job from '${rootDirectory}' to '${gcsSinkBucket}' using manifest \`${manifestLocation}\` with name ${transferJob.name}`
    );
  }
Creates a request to transfer from the local file system to the sink bucket