Class protos.google.cloud.discoveryengine.v1alpha.SearchTuningService (1.10.0)

Represents a SearchTuningService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1alpha.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.

listCustomModels(request, callback)

public listCustomModels(request: google.cloud.discoveryengine.v1alpha.IListCustomModelsRequest, callback: google.cloud.discoveryengine.v1alpha.SearchTuningService.ListCustomModelsCallback): void;

Calls ListCustomModels.

Parameters
Name Description
request IListCustomModelsRequest

ListCustomModelsRequest message or plain object

callback ListCustomModelsCallback

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

Returns
Type Description
void

listCustomModels(request)

public listCustomModels(request: google.cloud.discoveryengine.v1alpha.IListCustomModelsRequest): Promise<google.cloud.discoveryengine.v1alpha.ListCustomModelsResponse>;

Calls ListCustomModels.

Parameter
Name Description
request IListCustomModelsRequest

ListCustomModelsRequest message or plain object

Returns
Type Description
Promise<google.cloud.discoveryengine.v1alpha.ListCustomModelsResponse>

Promise

trainCustomModel(request, callback)

public trainCustomModel(request: google.cloud.discoveryengine.v1alpha.ITrainCustomModelRequest, callback: google.cloud.discoveryengine.v1alpha.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.v1alpha.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