Class protos.google.cloud.dataproc.v1.BatchController (4.3.1)

Represents a BatchController

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dataproc.v1.BatchController

Package

@google-cloud/dataproc

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new BatchController service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new BatchController 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
BatchController

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

createBatch(request, callback)

public createBatch(request: google.cloud.dataproc.v1.ICreateBatchRequest, callback: google.cloud.dataproc.v1.BatchController.CreateBatchCallback): void;

Calls CreateBatch.

Parameters
NameDescription
request google.cloud.dataproc.v1.ICreateBatchRequest

CreateBatchRequest message or plain object

callback google.cloud.dataproc.v1.BatchController.CreateBatchCallback

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

Returns
TypeDescription
void

createBatch(request)

public createBatch(request: google.cloud.dataproc.v1.ICreateBatchRequest): Promise<google.longrunning.Operation>;

Calls CreateBatch.

Parameter
NameDescription
request google.cloud.dataproc.v1.ICreateBatchRequest

CreateBatchRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteBatch(request, callback)

public deleteBatch(request: google.cloud.dataproc.v1.IDeleteBatchRequest, callback: google.cloud.dataproc.v1.BatchController.DeleteBatchCallback): void;

Calls DeleteBatch.

Parameters
NameDescription
request google.cloud.dataproc.v1.IDeleteBatchRequest

DeleteBatchRequest message or plain object

callback google.cloud.dataproc.v1.BatchController.DeleteBatchCallback

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

Returns
TypeDescription
void

deleteBatch(request)

public deleteBatch(request: google.cloud.dataproc.v1.IDeleteBatchRequest): Promise<google.protobuf.Empty>;

Calls DeleteBatch.

Parameter
NameDescription
request google.cloud.dataproc.v1.IDeleteBatchRequest

DeleteBatchRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getBatch(request, callback)

public getBatch(request: google.cloud.dataproc.v1.IGetBatchRequest, callback: google.cloud.dataproc.v1.BatchController.GetBatchCallback): void;

Calls GetBatch.

Parameters
NameDescription
request google.cloud.dataproc.v1.IGetBatchRequest

GetBatchRequest message or plain object

callback google.cloud.dataproc.v1.BatchController.GetBatchCallback

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

Returns
TypeDescription
void

getBatch(request)

public getBatch(request: google.cloud.dataproc.v1.IGetBatchRequest): Promise<google.cloud.dataproc.v1.Batch>;

Calls GetBatch.

Parameter
NameDescription
request google.cloud.dataproc.v1.IGetBatchRequest

GetBatchRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataproc.v1.Batch>

Promise

listBatches(request, callback)

public listBatches(request: google.cloud.dataproc.v1.IListBatchesRequest, callback: google.cloud.dataproc.v1.BatchController.ListBatchesCallback): void;

Calls ListBatches.

Parameters
NameDescription
request google.cloud.dataproc.v1.IListBatchesRequest

ListBatchesRequest message or plain object

callback google.cloud.dataproc.v1.BatchController.ListBatchesCallback

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

Returns
TypeDescription
void

listBatches(request)

public listBatches(request: google.cloud.dataproc.v1.IListBatchesRequest): Promise<google.cloud.dataproc.v1.ListBatchesResponse>;

Calls ListBatches.

Parameter
NameDescription
request google.cloud.dataproc.v1.IListBatchesRequest

ListBatchesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataproc.v1.ListBatchesResponse>

Promise