Class protos.google.cloud.automl.v1.AutoMl

Represents an AutoMl

Inheritance

$protobuf.rpc.Service > protos.google.cloud.automl.v1.AutoMl

Package

@google-cloud/automl

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createDataset(request, callback)

public createDataset(request: google.cloud.automl.v1.ICreateDatasetRequest, callback: google.cloud.automl.v1.AutoMl.CreateDatasetCallback): void;

Calls CreateDataset.

Parameters
NameDescription
request google.cloud.automl.v1.ICreateDatasetRequest

CreateDatasetRequest message or plain object

callback google.cloud.automl.v1.AutoMl.CreateDatasetCallback

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

Returns
TypeDescription
void

createDataset(request)

public createDataset(request: google.cloud.automl.v1.ICreateDatasetRequest): Promise<google.longrunning.Operation>;

Calls CreateDataset.

Parameter
NameDescription
request google.cloud.automl.v1.ICreateDatasetRequest

CreateDatasetRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

createModel(request, callback)

public createModel(request: google.cloud.automl.v1.ICreateModelRequest, callback: google.cloud.automl.v1.AutoMl.CreateModelCallback): void;

Calls CreateModel.

Parameters
NameDescription
request ICreateModelRequest

CreateModelRequest message or plain object

callback google.cloud.automl.v1.AutoMl.CreateModelCallback

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

Returns
TypeDescription
void

createModel(request)

public createModel(request: google.cloud.automl.v1.ICreateModelRequest): Promise<google.longrunning.Operation>;

Calls CreateModel.

Parameter
NameDescription
request ICreateModelRequest

CreateModelRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteDataset(request, callback)

public deleteDataset(request: google.cloud.automl.v1.IDeleteDatasetRequest, callback: google.cloud.automl.v1.AutoMl.DeleteDatasetCallback): void;

Calls DeleteDataset.

Parameters
NameDescription
request IDeleteDatasetRequest

DeleteDatasetRequest message or plain object

callback google.cloud.automl.v1.AutoMl.DeleteDatasetCallback

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

Returns
TypeDescription
void

deleteDataset(request)

public deleteDataset(request: google.cloud.automl.v1.IDeleteDatasetRequest): Promise<google.longrunning.Operation>;

Calls DeleteDataset.

Parameter
NameDescription
request IDeleteDatasetRequest

DeleteDatasetRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteModel(request, callback)

public deleteModel(request: google.cloud.automl.v1.IDeleteModelRequest, callback: google.cloud.automl.v1.AutoMl.DeleteModelCallback): void;

Calls DeleteModel.

Parameters
NameDescription
request IDeleteModelRequest

DeleteModelRequest message or plain object

callback google.cloud.automl.v1.AutoMl.DeleteModelCallback

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

Returns
TypeDescription
void

deleteModel(request)

public deleteModel(request: google.cloud.automl.v1.IDeleteModelRequest): Promise<google.longrunning.Operation>;

Calls DeleteModel.

Parameter
NameDescription
request IDeleteModelRequest

DeleteModelRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deployModel(request, callback)

public deployModel(request: google.cloud.automl.v1.IDeployModelRequest, callback: google.cloud.automl.v1.AutoMl.DeployModelCallback): void;

Calls DeployModel.

Parameters
NameDescription
request IDeployModelRequest

DeployModelRequest message or plain object

callback google.cloud.automl.v1.AutoMl.DeployModelCallback

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

Returns
TypeDescription
void

deployModel(request)

public deployModel(request: google.cloud.automl.v1.IDeployModelRequest): Promise<google.longrunning.Operation>;

Calls DeployModel.

Parameter
NameDescription
request IDeployModelRequest

DeployModelRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

exportData(request, callback)

public exportData(request: google.cloud.automl.v1.IExportDataRequest, callback: google.cloud.automl.v1.AutoMl.ExportDataCallback): void;

Calls ExportData.

Parameters
NameDescription
request IExportDataRequest

ExportDataRequest message or plain object

callback google.cloud.automl.v1.AutoMl.ExportDataCallback

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

Returns
TypeDescription
void

exportData(request)

public exportData(request: google.cloud.automl.v1.IExportDataRequest): Promise<google.longrunning.Operation>;

Calls ExportData.

Parameter
NameDescription
request IExportDataRequest

ExportDataRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

exportModel(request, callback)

public exportModel(request: google.cloud.automl.v1.IExportModelRequest, callback: google.cloud.automl.v1.AutoMl.ExportModelCallback): void;

Calls ExportModel.

Parameters
NameDescription
request IExportModelRequest

ExportModelRequest message or plain object

callback google.cloud.automl.v1.AutoMl.ExportModelCallback

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

Returns
TypeDescription
void

exportModel(request)

public exportModel(request: google.cloud.automl.v1.IExportModelRequest): Promise<google.longrunning.Operation>;

Calls ExportModel.

Parameter
NameDescription
request IExportModelRequest

ExportModelRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getAnnotationSpec(request, callback)

public getAnnotationSpec(request: google.cloud.automl.v1.IGetAnnotationSpecRequest, callback: google.cloud.automl.v1.AutoMl.GetAnnotationSpecCallback): void;

Calls GetAnnotationSpec.

Parameters
NameDescription
request IGetAnnotationSpecRequest

GetAnnotationSpecRequest message or plain object

callback google.cloud.automl.v1.AutoMl.GetAnnotationSpecCallback

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

Returns
TypeDescription
void

getAnnotationSpec(request)

public getAnnotationSpec(request: google.cloud.automl.v1.IGetAnnotationSpecRequest): Promise<google.cloud.automl.v1.AnnotationSpec>;

Calls GetAnnotationSpec.

Parameter
NameDescription
request IGetAnnotationSpecRequest

GetAnnotationSpecRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.automl.v1.AnnotationSpec>

Promise

getDataset(request, callback)

public getDataset(request: google.cloud.automl.v1.IGetDatasetRequest, callback: google.cloud.automl.v1.AutoMl.GetDatasetCallback): void;

Calls GetDataset.

Parameters
NameDescription
request IGetDatasetRequest

GetDatasetRequest message or plain object

callback google.cloud.automl.v1.AutoMl.GetDatasetCallback

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

Returns
TypeDescription
void

getDataset(request)

public getDataset(request: google.cloud.automl.v1.IGetDatasetRequest): Promise<google.cloud.automl.v1.Dataset>;

Calls GetDataset.

Parameter
NameDescription
request IGetDatasetRequest

GetDatasetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.automl.v1.Dataset>

Promise

getModel(request, callback)

public getModel(request: google.cloud.automl.v1.IGetModelRequest, callback: google.cloud.automl.v1.AutoMl.GetModelCallback): void;

Calls GetModel.

Parameters
NameDescription
request IGetModelRequest

GetModelRequest message or plain object

callback google.cloud.automl.v1.AutoMl.GetModelCallback

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

Returns
TypeDescription
void

getModel(request)

public getModel(request: google.cloud.automl.v1.IGetModelRequest): Promise<google.cloud.automl.v1.Model>;

Calls GetModel.

Parameter
NameDescription
request IGetModelRequest

GetModelRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.automl.v1.Model>

Promise

getModelEvaluation(request, callback)

public getModelEvaluation(request: google.cloud.automl.v1.IGetModelEvaluationRequest, callback: google.cloud.automl.v1.AutoMl.GetModelEvaluationCallback): void;

Calls GetModelEvaluation.

Parameters
NameDescription
request IGetModelEvaluationRequest

GetModelEvaluationRequest message or plain object

callback google.cloud.automl.v1.AutoMl.GetModelEvaluationCallback

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

Returns
TypeDescription
void

getModelEvaluation(request)

public getModelEvaluation(request: google.cloud.automl.v1.IGetModelEvaluationRequest): Promise<google.cloud.automl.v1.ModelEvaluation>;

Calls GetModelEvaluation.

Parameter
NameDescription
request IGetModelEvaluationRequest

GetModelEvaluationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.automl.v1.ModelEvaluation>

Promise

importData(request, callback)

public importData(request: google.cloud.automl.v1.IImportDataRequest, callback: google.cloud.automl.v1.AutoMl.ImportDataCallback): void;

Calls ImportData.

Parameters
NameDescription
request IImportDataRequest

ImportDataRequest message or plain object

callback google.cloud.automl.v1.AutoMl.ImportDataCallback

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

Returns
TypeDescription
void

importData(request)

public importData(request: google.cloud.automl.v1.IImportDataRequest): Promise<google.longrunning.Operation>;

Calls ImportData.

Parameter
NameDescription
request IImportDataRequest

ImportDataRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

listDatasets(request, callback)

public listDatasets(request: google.cloud.automl.v1.IListDatasetsRequest, callback: google.cloud.automl.v1.AutoMl.ListDatasetsCallback): void;

Calls ListDatasets.

Parameters
NameDescription
request IListDatasetsRequest

ListDatasetsRequest message or plain object

callback google.cloud.automl.v1.AutoMl.ListDatasetsCallback

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

Returns
TypeDescription
void

listDatasets(request)

public listDatasets(request: google.cloud.automl.v1.IListDatasetsRequest): Promise<google.cloud.automl.v1.ListDatasetsResponse>;

Calls ListDatasets.

Parameter
NameDescription
request IListDatasetsRequest

ListDatasetsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.automl.v1.ListDatasetsResponse>

Promise

listModelEvaluations(request, callback)

public listModelEvaluations(request: google.cloud.automl.v1.IListModelEvaluationsRequest, callback: google.cloud.automl.v1.AutoMl.ListModelEvaluationsCallback): void;

Calls ListModelEvaluations.

Parameters
NameDescription
request IListModelEvaluationsRequest

ListModelEvaluationsRequest message or plain object

callback google.cloud.automl.v1.AutoMl.ListModelEvaluationsCallback

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

Returns
TypeDescription
void

listModelEvaluations(request)

public listModelEvaluations(request: google.cloud.automl.v1.IListModelEvaluationsRequest): Promise<google.cloud.automl.v1.ListModelEvaluationsResponse>;

Calls ListModelEvaluations.

Parameter
NameDescription
request IListModelEvaluationsRequest

ListModelEvaluationsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.automl.v1.ListModelEvaluationsResponse>

Promise

listModels(request, callback)

public listModels(request: google.cloud.automl.v1.IListModelsRequest, callback: google.cloud.automl.v1.AutoMl.ListModelsCallback): void;

Calls ListModels.

Parameters
NameDescription
request IListModelsRequest

ListModelsRequest message or plain object

callback google.cloud.automl.v1.AutoMl.ListModelsCallback

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

Returns
TypeDescription
void

listModels(request)

public listModels(request: google.cloud.automl.v1.IListModelsRequest): Promise<google.cloud.automl.v1.ListModelsResponse>;

Calls ListModels.

Parameter
NameDescription
request IListModelsRequest

ListModelsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.automl.v1.ListModelsResponse>

Promise

undeployModel(request, callback)

public undeployModel(request: google.cloud.automl.v1.IUndeployModelRequest, callback: google.cloud.automl.v1.AutoMl.UndeployModelCallback): void;

Calls UndeployModel.

Parameters
NameDescription
request IUndeployModelRequest

UndeployModelRequest message or plain object

callback google.cloud.automl.v1.AutoMl.UndeployModelCallback

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

Returns
TypeDescription
void

undeployModel(request)

public undeployModel(request: google.cloud.automl.v1.IUndeployModelRequest): Promise<google.longrunning.Operation>;

Calls UndeployModel.

Parameter
NameDescription
request IUndeployModelRequest

UndeployModelRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateDataset(request, callback)

public updateDataset(request: google.cloud.automl.v1.IUpdateDatasetRequest, callback: google.cloud.automl.v1.AutoMl.UpdateDatasetCallback): void;

Calls UpdateDataset.

Parameters
NameDescription
request IUpdateDatasetRequest

UpdateDatasetRequest message or plain object

callback google.cloud.automl.v1.AutoMl.UpdateDatasetCallback

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

Returns
TypeDescription
void

updateDataset(request)

public updateDataset(request: google.cloud.automl.v1.IUpdateDatasetRequest): Promise<google.cloud.automl.v1.Dataset>;

Calls UpdateDataset.

Parameter
NameDescription
request IUpdateDatasetRequest

UpdateDatasetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.automl.v1.Dataset>

Promise

updateModel(request, callback)

public updateModel(request: google.cloud.automl.v1.IUpdateModelRequest, callback: google.cloud.automl.v1.AutoMl.UpdateModelCallback): void;

Calls UpdateModel.

Parameters
NameDescription
request google.cloud.automl.v1.IUpdateModelRequest

UpdateModelRequest message or plain object

callback google.cloud.automl.v1.AutoMl.UpdateModelCallback

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

Returns
TypeDescription
void

updateModel(request)

public updateModel(request: google.cloud.automl.v1.IUpdateModelRequest): Promise<google.cloud.automl.v1.Model>;

Calls UpdateModel.

Parameter
NameDescription
request google.cloud.automl.v1.IUpdateModelRequest

UpdateModelRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.automl.v1.Model>

Promise