BatchController

google.cloud.dataproc.v1. BatchController

Represents a BatchController

Constructor

new BatchController(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new BatchController service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

createBatch(request, callback) → {undefined}

Calls CreateBatch.

Parameters:
Name Type Description
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:
Type Description
undefined

createBatch(request) → {Promise.<google.longrunning.Operation>}

Calls CreateBatch.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.ICreateBatchRequest

CreateBatchRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteBatch(request, callback) → {undefined}

Calls DeleteBatch.

Parameters:
Name Type Description
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:
Type Description
undefined

deleteBatch(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteBatch.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IDeleteBatchRequest

DeleteBatchRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getBatch(request, callback) → {undefined}

Calls GetBatch.

Parameters:
Name Type Description
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:
Type Description
undefined

getBatch(request) → {Promise.<google.cloud.dataproc.v1.Batch>}

Calls GetBatch.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IGetBatchRequest

GetBatchRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dataproc.v1.Batch>

Promise

listBatches(request, callback) → {undefined}

Calls ListBatches.

Parameters:
Name Type Description
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:
Type Description
undefined

listBatches(request) → {Promise.<google.cloud.dataproc.v1.ListBatchesResponse>}

Calls ListBatches.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IListBatchesRequest

ListBatchesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dataproc.v1.ListBatchesResponse>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {BatchController}

Creates new BatchController service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
BatchController

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

Type Definitions

CreateBatchCallback(error, responseopt)

Callback as used by createBatch.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteBatchCallback(error, responseopt)

Callback as used by deleteBatch.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetBatchCallback(error, responseopt)

Callback as used by getBatch.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dataproc.v1.Batch <optional>

Batch

ListBatchesCallback(error, responseopt)

Callback as used by listBatches.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dataproc.v1.ListBatchesResponse <optional>

ListBatchesResponse