Class protos.google.cloud.dataproc.v1beta2.JobController

Represents a JobController

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dataproc.v1beta2.JobController

Package

@google-cloud/dataproc!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new JobController service.

Parameters
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

Whether responses are length-delimited

Methods

cancelJob(request, callback)

public cancelJob(request: google.cloud.dataproc.v1beta2.ICancelJobRequest, callback: google.cloud.dataproc.v1beta2.JobController.CancelJobCallback): void;

Calls CancelJob.

Parameters
TypeNameDescription
ICancelJobRequestrequest

CancelJobRequest message or plain object

google.cloud.dataproc.v1beta2.JobController.CancelJobCallbackcallback

Node-style callback called with the error, if any, and Job

Returns
TypeDescription
void

cancelJob(request)

public cancelJob(request: google.cloud.dataproc.v1beta2.ICancelJobRequest): Promise<google.cloud.dataproc.v1beta2.Job>;

Calls CancelJob.

Parameter
TypeNameDescription
ICancelJobRequestrequest

CancelJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataproc.v1beta2.Job>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobController;

Creates new JobController service using the specified rpc implementation.

Parameters
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

Whether responses are length-delimited

Returns
TypeDescription
JobController

RPC service. Useful where requests and/or responses are streamed.

deleteJob(request, callback)

public deleteJob(request: google.cloud.dataproc.v1beta2.IDeleteJobRequest, callback: google.cloud.dataproc.v1beta2.JobController.DeleteJobCallback): void;

Calls DeleteJob.

Parameters
TypeNameDescription
google.cloud.dataproc.v1beta2.IDeleteJobRequestrequest

DeleteJobRequest message or plain object

google.cloud.dataproc.v1beta2.JobController.DeleteJobCallbackcallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteJob(request)

public deleteJob(request: google.cloud.dataproc.v1beta2.IDeleteJobRequest): Promise<google.protobuf.Empty>;

Calls DeleteJob.

Parameter
TypeNameDescription
google.cloud.dataproc.v1beta2.IDeleteJobRequestrequest

DeleteJobRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getJob(request, callback)

public getJob(request: google.cloud.dataproc.v1beta2.IGetJobRequest, callback: google.cloud.dataproc.v1beta2.JobController.GetJobCallback): void;

Calls GetJob.

Parameters
TypeNameDescription
google.cloud.dataproc.v1beta2.IGetJobRequestrequest

GetJobRequest message or plain object

google.cloud.dataproc.v1beta2.JobController.GetJobCallbackcallback

Node-style callback called with the error, if any, and Job

Returns
TypeDescription
void

getJob(request)

public getJob(request: google.cloud.dataproc.v1beta2.IGetJobRequest): Promise<google.cloud.dataproc.v1beta2.Job>;

Calls GetJob.

Parameter
TypeNameDescription
google.cloud.dataproc.v1beta2.IGetJobRequestrequest

GetJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataproc.v1beta2.Job>

Promise

listJobs(request, callback)

public listJobs(request: google.cloud.dataproc.v1beta2.IListJobsRequest, callback: google.cloud.dataproc.v1beta2.JobController.ListJobsCallback): void;

Calls ListJobs.

Parameters
TypeNameDescription
IListJobsRequestrequest

ListJobsRequest message or plain object

google.cloud.dataproc.v1beta2.JobController.ListJobsCallbackcallback

Node-style callback called with the error, if any, and ListJobsResponse

Returns
TypeDescription
void

listJobs(request)

public listJobs(request: google.cloud.dataproc.v1beta2.IListJobsRequest): Promise<google.cloud.dataproc.v1beta2.ListJobsResponse>;

Calls ListJobs.

Parameter
TypeNameDescription
IListJobsRequestrequest

ListJobsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataproc.v1beta2.ListJobsResponse>

Promise

submitJob(request, callback)

public submitJob(request: google.cloud.dataproc.v1beta2.ISubmitJobRequest, callback: google.cloud.dataproc.v1beta2.JobController.SubmitJobCallback): void;

Calls SubmitJob.

Parameters
TypeNameDescription
google.cloud.dataproc.v1beta2.ISubmitJobRequestrequest

SubmitJobRequest message or plain object

google.cloud.dataproc.v1beta2.JobController.SubmitJobCallbackcallback

Node-style callback called with the error, if any, and Job

Returns
TypeDescription
void

submitJob(request)

public submitJob(request: google.cloud.dataproc.v1beta2.ISubmitJobRequest): Promise<google.cloud.dataproc.v1beta2.Job>;

Calls SubmitJob.

Parameter
TypeNameDescription
google.cloud.dataproc.v1beta2.ISubmitJobRequestrequest

SubmitJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataproc.v1beta2.Job>

Promise

submitJobAsOperation(request, callback)

public submitJobAsOperation(request: google.cloud.dataproc.v1beta2.ISubmitJobRequest, callback: google.cloud.dataproc.v1beta2.JobController.SubmitJobAsOperationCallback): void;

Calls SubmitJobAsOperation.

Parameters
TypeNameDescription
google.cloud.dataproc.v1beta2.ISubmitJobRequestrequest

SubmitJobRequest message or plain object

google.cloud.dataproc.v1beta2.JobController.SubmitJobAsOperationCallbackcallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

submitJobAsOperation(request)

public submitJobAsOperation(request: google.cloud.dataproc.v1beta2.ISubmitJobRequest): Promise<google.longrunning.Operation>;

Calls SubmitJobAsOperation.

Parameter
TypeNameDescription
google.cloud.dataproc.v1beta2.ISubmitJobRequestrequest

SubmitJobRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateJob(request, callback)

public updateJob(request: google.cloud.dataproc.v1beta2.IUpdateJobRequest, callback: google.cloud.dataproc.v1beta2.JobController.UpdateJobCallback): void;

Calls UpdateJob.

Parameters
TypeNameDescription
IUpdateJobRequestrequest

UpdateJobRequest message or plain object

google.cloud.dataproc.v1beta2.JobController.UpdateJobCallbackcallback

Node-style callback called with the error, if any, and Job

Returns
TypeDescription
void

updateJob(request)

public updateJob(request: google.cloud.dataproc.v1beta2.IUpdateJobRequest): Promise<google.cloud.dataproc.v1beta2.Job>;

Calls UpdateJob.

Parameter
TypeNameDescription
IUpdateJobRequestrequest

UpdateJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataproc.v1beta2.Job>

Promise