Class protos.google.cloud.discoveryengine.v1.EngineService (1.6.0)

Represents an EngineService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1.EngineService

Package

@google-cloud/discoveryengine

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new EngineService 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): EngineService;

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

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

createEngine(request, callback)

public createEngine(request: google.cloud.discoveryengine.v1.ICreateEngineRequest, callback: google.cloud.discoveryengine.v1.EngineService.CreateEngineCallback): void;

Calls CreateEngine.

Parameters
NameDescription
request ICreateEngineRequest

CreateEngineRequest message or plain object

callback CreateEngineCallback

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

Returns
TypeDescription
void

createEngine(request)

public createEngine(request: google.cloud.discoveryengine.v1.ICreateEngineRequest): Promise<google.longrunning.Operation>;

Calls CreateEngine.

Parameter
NameDescription
request ICreateEngineRequest

CreateEngineRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteEngine(request, callback)

public deleteEngine(request: google.cloud.discoveryengine.v1.IDeleteEngineRequest, callback: google.cloud.discoveryengine.v1.EngineService.DeleteEngineCallback): void;

Calls DeleteEngine.

Parameters
NameDescription
request IDeleteEngineRequest

DeleteEngineRequest message or plain object

callback DeleteEngineCallback

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

Returns
TypeDescription
void

deleteEngine(request)

public deleteEngine(request: google.cloud.discoveryengine.v1.IDeleteEngineRequest): Promise<google.longrunning.Operation>;

Calls DeleteEngine.

Parameter
NameDescription
request IDeleteEngineRequest

DeleteEngineRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getEngine(request, callback)

public getEngine(request: google.cloud.discoveryengine.v1.IGetEngineRequest, callback: google.cloud.discoveryengine.v1.EngineService.GetEngineCallback): void;

Calls GetEngine.

Parameters
NameDescription
request IGetEngineRequest

GetEngineRequest message or plain object

callback GetEngineCallback

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

Returns
TypeDescription
void

getEngine(request)

public getEngine(request: google.cloud.discoveryengine.v1.IGetEngineRequest): Promise<google.cloud.discoveryengine.v1.Engine>;

Calls GetEngine.

Parameter
NameDescription
request IGetEngineRequest

GetEngineRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1.Engine>

Promise

listEngines(request, callback)

public listEngines(request: google.cloud.discoveryengine.v1.IListEnginesRequest, callback: google.cloud.discoveryengine.v1.EngineService.ListEnginesCallback): void;

Calls ListEngines.

Parameters
NameDescription
request IListEnginesRequest

ListEnginesRequest message or plain object

callback ListEnginesCallback

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

Returns
TypeDescription
void

listEngines(request)

public listEngines(request: google.cloud.discoveryengine.v1.IListEnginesRequest): Promise<google.cloud.discoveryengine.v1.ListEnginesResponse>;

Calls ListEngines.

Parameter
NameDescription
request IListEnginesRequest

ListEnginesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1.ListEnginesResponse>

Promise

updateEngine(request, callback)

public updateEngine(request: google.cloud.discoveryengine.v1.IUpdateEngineRequest, callback: google.cloud.discoveryengine.v1.EngineService.UpdateEngineCallback): void;

Calls UpdateEngine.

Parameters
NameDescription
request IUpdateEngineRequest

UpdateEngineRequest message or plain object

callback UpdateEngineCallback

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

Returns
TypeDescription
void

updateEngine(request)

public updateEngine(request: google.cloud.discoveryengine.v1.IUpdateEngineRequest): Promise<google.cloud.discoveryengine.v1.Engine>;

Calls UpdateEngine.

Parameter
NameDescription
request IUpdateEngineRequest

UpdateEngineRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1.Engine>

Promise