code: public Long writeRemoteFileToTable(String datasetName, String tableName)
        throws InterruptedException {
      // [START bigquery_load_table_gcs_json]
      String sourceUri = "gs://cloud-samples-data/bigquery/us-states/us-states.json";
      TableId tableId = TableId.of(datasetName, tableName);
      // Table field definition
      Field[] fields =
          new Field[] {
            Field.of("name", LegacySQLTypeName.STRING),
            Field.of("post_abbr", LegacySQLTypeName.STRING)
          };
      // Table schema definition
      Schema schema = Schema.of(fields);
      LoadJobConfiguration configuration =
          LoadJobConfiguration.builder(tableId, sourceUri)
              .setFormatOptions(FormatOptions.json())
              .setCreateDisposition(CreateDisposition.CREATE_IF_NEEDED)
              .setSchema(schema)
              .build();
      // Load the table
      Job loadJob = bigquery.create(JobInfo.of(configuration));
      loadJob = loadJob.waitFor();
      // Check the table
      System.out.println("State: " + loadJob.getStatus().getState());
      return ((StandardTableDefinition) bigquery.getTable(tableId).getDefinition()).getNumRows();
      // [END bigquery_load_table_gcs_json]
    }
docs: [VARIABLE "my_table_name"]