com.google.api.services.bigquery.model.JobConfigurationTableCopy

Here are the examples of the java api class com.google.api.services.bigquery.model.JobConfigurationTableCopy taken from open source projects.

1. CopyJobConfiguration#toPb()

View license
@Override
com.google.api.services.bigquery.model.JobConfiguration toPb() {
    JobConfigurationTableCopy configurationPb = new JobConfigurationTableCopy();
    configurationPb.setDestinationTable(destinationTable.toPb());
    if (sourceTables.size() == 1) {
        configurationPb.setSourceTable(sourceTables.get(0).toPb());
    } else {
        configurationPb.setSourceTables(Lists.transform(sourceTables, TableId.TO_PB_FUNCTION));
    }
    if (createDisposition != null) {
        configurationPb.setCreateDisposition(createDisposition.toString());
    }
    if (writeDisposition != null) {
        configurationPb.setWriteDisposition(writeDisposition.toString());
    }
    return new com.google.api.services.bigquery.model.JobConfiguration().setCopy(configurationPb);
}