/** * 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 the bigquery server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * <p> * This method should be used for uploading media content. * </p> * * @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} media metadata or {@code null} if none * @param mediaContent The media HTTP content or {@code null} if none. * @return the request * @throws java.io.IOException if the initialization of the request fails */ public Insert insert(java.lang.String projectId, com.google.api.services.bigquery.model.Job content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { Insert result = new Insert(projectId, content, mediaContent); 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; }