Class protos.google.cloud.discoveryengine.v1beta.SearchTuningService (1.7.0)

Represents a SearchTuningService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.SearchTuningService

Package

@google-cloud/discoveryengine

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

trainCustomModel(request, callback)

public trainCustomModel(request: google.cloud.discoveryengine.v1beta.ITrainCustomModelRequest, callback: google.cloud.discoveryengine.v1beta.SearchTuningService.TrainCustomModelCallback): void;

Calls TrainCustomModel.

Parameters
Name Description
request ITrainCustomModelRequest

TrainCustomModelRequest message or plain object

callback TrainCustomModelCallback

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

Returns
Type Description
void

trainCustomModel(request)

public trainCustomModel(request: google.cloud.discoveryengine.v1beta.ITrainCustomModelRequest): Promise<google.longrunning.Operation>;

Calls TrainCustomModel.

Parameter
Name Description
request ITrainCustomModelRequest

TrainCustomModelRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise