Class protos.google.cloud.dataproc.v1beta2.JobController (2.5.0)

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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

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
NameDescription
request google.cloud.dataproc.v1beta2.ICancelJobRequest

CancelJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.CancelJobCallback

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
NameDescription
request google.cloud.dataproc.v1beta2.ICancelJobRequest

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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

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
NameDescription
request google.cloud.dataproc.v1beta2.IDeleteJobRequest

DeleteJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.DeleteJobCallback

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
NameDescription
request google.cloud.dataproc.v1beta2.IDeleteJobRequest

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
NameDescription
request IGetJobRequest

GetJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.GetJobCallback

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
NameDescription
request IGetJobRequest

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
NameDescription
request IListJobsRequest

ListJobsRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.ListJobsCallback

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
NameDescription
request IListJobsRequest

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
NameDescription
request google.cloud.dataproc.v1beta2.ISubmitJobRequest

SubmitJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.SubmitJobCallback

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
NameDescription
request google.cloud.dataproc.v1beta2.ISubmitJobRequest

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
NameDescription
request google.cloud.dataproc.v1beta2.ISubmitJobRequest

SubmitJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.SubmitJobAsOperationCallback

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
NameDescription
request google.cloud.dataproc.v1beta2.ISubmitJobRequest

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
NameDescription
request IUpdateJobRequest

UpdateJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.UpdateJobCallback

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
NameDescription
request IUpdateJobRequest

UpdateJobRequest message or plain object

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

Promise