Represents a BatchController
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dataproc.v1.BatchControllerPackage
@google-cloud/dataprocConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new BatchController service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | 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 |
void |
createBatch(request)
public createBatch(request: google.cloud.dataproc.v1.ICreateBatchRequest): Promise<google.longrunning.Operation>;
Calls CreateBatch.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dataproc.v1.ICreateBatchRequest
CreateBatchRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | 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 |
void |
deleteBatch(request)
public deleteBatch(request: google.cloud.dataproc.v1.IDeleteBatchRequest): Promise<google.protobuf.Empty>;
Calls DeleteBatch.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dataproc.v1.IDeleteBatchRequest
DeleteBatchRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | 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 |
void |
getBatch(request)
public getBatch(request: google.cloud.dataproc.v1.IGetBatchRequest): Promise<google.cloud.dataproc.v1.Batch>;
Calls GetBatch.
Parameter | |
---|---|
Name | 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)
public listBatches(request: google.cloud.dataproc.v1.IListBatchesRequest, callback: google.cloud.dataproc.v1.BatchController.ListBatchesCallback): void;
Calls ListBatches.
Parameters | |
---|---|
Name | 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 |
void |
listBatches(request)
public listBatches(request: google.cloud.dataproc.v1.IListBatchesRequest): Promise<google.cloud.dataproc.v1.ListBatchesResponse>;
Calls ListBatches.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dataproc.v1.IListBatchesRequest
ListBatchesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataproc.v1.ListBatchesResponse> | Promise |