Class protos.google.cloud.discoveryengine.v1beta.SearchTuningService (1.6.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
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): SearchTuningService;

Creates new SearchTuningService 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
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
NameDescription
request ITrainCustomModelRequest

TrainCustomModelRequest message or plain object

callback TrainCustomModelCallback

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

Returns
TypeDescription
void

trainCustomModel(request)

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

Calls TrainCustomModel.

Parameter
NameDescription
request ITrainCustomModelRequest

TrainCustomModelRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise