/** * Lists all projects to which you have been granted any project role. * * Create a request for the method "projects.list". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @return the request */ public List list() throws java.io.IOException { List result = new List(); initialize(result); return result; }
/** * Retrieves the results of a query job. * * Create a request for the method "jobs.getQueryResults". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link GetQueryResults#execute()} method to invoke the remote operation. * * @param projectId [Required] Project ID of the query job * @param jobId [Required] Job ID of the query job * @return the request */ public GetQueryResults getQueryResults(java.lang.String projectId, java.lang.String jobId) throws java.io.IOException { GetQueryResults result = new GetQueryResults(projectId, jobId); initialize(result); return result; }
/** * Starts a new asynchronous job. Requires the Can View project role. * * Create a request for the method "jobs.insert". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param projectId Project ID of the project that will be billed for the job * @param content the {@link com.google.api.services.bigquery.model.Job} * @return the request */ public Insert insert(java.lang.String projectId, com.google.api.services.bigquery.model.Job content) throws java.io.IOException { Insert result = new Insert(projectId, content); initialize(result); return result; }
/** * Creates a new empty dataset. * * Create a request for the method "datasets.insert". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param projectId Project ID of the new dataset * @param content the {@link com.google.api.services.bigquery.model.Dataset} * @return the request */ public Insert insert(java.lang.String projectId, com.google.api.services.bigquery.model.Dataset content) throws java.io.IOException { Insert result = new Insert(projectId, content); initialize(result); return result; }
/** * Lists all datasets in the specified project to which you have been granted the READER dataset * role. * * Create a request for the method "datasets.list". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param projectId Project ID of the datasets to be listed * @return the request */ public List list(java.lang.String projectId) throws java.io.IOException { List result = new List(projectId); initialize(result); return result; }
/** * Lists all jobs that you started in the specified project. Job information is available for a six * month period after creation. The job list is sorted in reverse chronological order, by job * creation time. Requires the Can View project role, or the Is Owner project role if you set the * allUsers property. * * Create a request for the method "jobs.list". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param projectId Project ID of the jobs to list * @return the request */ public List list(java.lang.String projectId) throws java.io.IOException { List result = new List(projectId); initialize(result); return result; }
/** * Deletes the table specified by tableId from the dataset. If the table contains data, all the data * will be deleted. * * Create a request for the method "tables.delete". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param projectId Project ID of the table to delete * @param datasetId Dataset ID of the table to delete * @param tableId Table ID of the table to delete * @return the request */ public Delete delete(java.lang.String projectId, java.lang.String datasetId, java.lang.String tableId) throws java.io.IOException { Delete result = new Delete(projectId, datasetId, tableId); initialize(result); return result; }
/** * Returns the dataset specified by datasetID. * * Create a request for the method "datasets.get". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param projectId Project ID of the requested dataset * @param datasetId Dataset ID of the requested dataset * @return the request */ public Get get(java.lang.String projectId, java.lang.String datasetId) throws java.io.IOException { Get result = new Get(projectId, datasetId); initialize(result); return result; }
/** * Lists all tables in the specified dataset. Requires the READER dataset role. * * Create a request for the method "tables.list". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param projectId Project ID of the tables to list * @param datasetId Dataset ID of the tables to list * @return the request */ public List list(java.lang.String projectId, java.lang.String datasetId) throws java.io.IOException { List result = new List(projectId, datasetId); initialize(result); return result; }
/** * Returns the email address of the service account for your project used for interactions with * Google Cloud KMS. * * Create a request for the method "projects.getServiceAccount". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link GetServiceAccount#execute()} method to invoke the remote operation. * * @param projectId Project ID for which the service account is requested. * @return the request */ public GetServiceAccount getServiceAccount(java.lang.String projectId) throws java.io.IOException { GetServiceAccount result = new GetServiceAccount(projectId); initialize(result); return result; }
/** * Streams data into BigQuery one record at a time without needing to run a load job. Requires the * WRITER dataset role. * * Create a request for the method "tabledata.insertAll". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link InsertAll#execute()} method to invoke the remote operation. * * @param projectId Project ID of the destination table. * @param datasetId Dataset ID of the destination table. * @param tableId Table ID of the destination table. * @param content the {@link com.google.api.services.bigquery.model.TableDataInsertAllRequest} * @return the request */ public InsertAll insertAll(java.lang.String projectId, java.lang.String datasetId, java.lang.String tableId, com.google.api.services.bigquery.model.TableDataInsertAllRequest content) throws java.io.IOException { InsertAll result = new InsertAll(projectId, datasetId, tableId, content); initialize(result); return result; }
/** * Updates information in an existing table. The update method replaces the entire table resource, * whereas the patch method only replaces fields that are provided in the submitted table resource. * * Create a request for the method "tables.update". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param projectId Project ID of the table to update * @param datasetId Dataset ID of the table to update * @param tableId Table ID of the table to update * @param content the {@link com.google.api.services.bigquery.model.Table} * @return the request */ public Update update(java.lang.String projectId, java.lang.String datasetId, java.lang.String tableId, com.google.api.services.bigquery.model.Table content) throws java.io.IOException { Update result = new Update(projectId, datasetId, tableId, content); initialize(result); return result; }
/** * Updates information in an existing dataset. The update method replaces the entire dataset * resource, whereas the patch method only replaces fields that are provided in the submitted * dataset resource. * * Create a request for the method "datasets.update". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param projectId Project ID of the dataset being updated * @param datasetId Dataset ID of the dataset being updated * @param content the {@link com.google.api.services.bigquery.model.Dataset} * @return the request */ public Update update(java.lang.String projectId, java.lang.String datasetId, com.google.api.services.bigquery.model.Dataset content) throws java.io.IOException { Update result = new Update(projectId, datasetId, content); initialize(result); return result; }
/** * Runs a BigQuery SQL query synchronously and returns query results if the query completes within a * specified timeout. * * Create a request for the method "jobs.query". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Query#execute()} method to invoke the remote operation. * * @param projectId Project ID of the project billed for the query * @param content the {@link com.google.api.services.bigquery.model.QueryRequest} * @return the request */ public Query query(java.lang.String projectId, com.google.api.services.bigquery.model.QueryRequest content) throws java.io.IOException { Query result = new Query(projectId, content); initialize(result); return result; }
/** * Retrieves table data from a specified set of rows. Requires the READER dataset role. * * Create a request for the method "tabledata.list". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param projectId Project ID of the table to read * @param datasetId Dataset ID of the table to read * @param tableId Table ID of the table to read * @return the request */ public List list(java.lang.String projectId, java.lang.String datasetId, java.lang.String tableId) throws java.io.IOException { List result = new List(projectId, datasetId, tableId); initialize(result); return result; }
/** * Creates a new, empty table in the dataset. * * Create a request for the method "tables.insert". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param projectId Project ID of the new table * @param datasetId Dataset ID of the new table * @param content the {@link com.google.api.services.bigquery.model.Table} * @return the request */ public Insert insert(java.lang.String projectId, java.lang.String datasetId, com.google.api.services.bigquery.model.Table content) throws java.io.IOException { Insert result = new Insert(projectId, datasetId, content); initialize(result); return result; }
/** * Updates information in an existing table. The update method replaces the entire table resource, * whereas the patch method only replaces fields that are provided in the submitted table resource. * This method supports patch semantics. * * Create a request for the method "tables.patch". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param projectId Project ID of the table to update * @param datasetId Dataset ID of the table to update * @param tableId Table ID of the table to update * @param content the {@link com.google.api.services.bigquery.model.Table} * @return the request */ public Patch patch(java.lang.String projectId, java.lang.String datasetId, java.lang.String tableId, com.google.api.services.bigquery.model.Table content) throws java.io.IOException { Patch result = new Patch(projectId, datasetId, tableId, content); initialize(result); return result; }
/** * Gets the specified table resource by table ID. This method does not return the data in the table, * it only returns the table resource, which describes the structure of this table. * * Create a request for the method "tables.get". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param projectId Project ID of the requested table * @param datasetId Dataset ID of the requested table * @param tableId Table ID of the requested table * @return the request */ public Get get(java.lang.String projectId, java.lang.String datasetId, java.lang.String tableId) throws java.io.IOException { Get result = new Get(projectId, datasetId, tableId); initialize(result); return result; }
/** * Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must * delete all its tables, either manually or by specifying deleteContents. Immediately after * deletion, you can create another dataset with the same name. * * Create a request for the method "datasets.delete". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param projectId Project ID of the dataset being deleted * @param datasetId Dataset ID of dataset being deleted * @return the request */ public Delete delete(java.lang.String projectId, java.lang.String datasetId) throws java.io.IOException { Delete result = new Delete(projectId, datasetId); initialize(result); return result; }
/** * Returns information about a specific job. Job information is available for a six month period * after creation. Requires that you're the person who ran the job, or have the Is Owner project * role. * * Create a request for the method "jobs.get". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param projectId [Required] Project ID of the requested job * @param jobId [Required] Job ID of the requested job * @return the request */ public Get get(java.lang.String projectId, java.lang.String jobId) throws java.io.IOException { Get result = new Get(projectId, jobId); initialize(result); return result; }