code: public long writeToTable(String datasetName, String tableName, String csvData)
        throws IOException, InterruptedException, TimeoutException {
      // [START ]
      TableId tableId = TableId.of(datasetName, tableName);
      WriteChannelConfiguration writeChannelConfiguration =
          WriteChannelConfiguration.newBuilder(tableId).setFormatOptions(FormatOptions.csv()).build();
      TableDataWriteChannel writer = bigquery.writer(writeChannelConfiguration);
      // Write data to writer
      try {
        writer.write(ByteBuffer.wrap(csvData.getBytes(Charsets.UTF_8)));
      } finally {
        writer.close();
      }
      // Get load job
      Job job = writer.getJob();
      job = job.waitFor();
      LoadStatistics stats = job.getStatistics();
      return stats.getOutputRows();
      // [END ]
    }
docs: [VARIABLE "StringValue1\nStringValue2\n"]