Class AutoMlGrpc.AutoMlStub (2.3.5)

public static final class AutoMlGrpc.AutoMlStub extends AbstractAsyncStub<AutoMlGrpc.AutoMlStub>

AutoML Server API. The resource names are assigned by the server. The server never reuses names that it has created after the resources with those names are deleted. An ID of a resource is the last element of the item's resource name. For projects/{project_id}/locations/{location_id}/datasets/{dataset_id}, then the id for the item is {dataset_id}. Currently the only supported location_id is "us-central1". On any input that is documented to expect a string parameter in snake_case or dash-case, either of those cases is accepted.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > AutoMlGrpc.AutoMlStub

Methods

build(Channel channel, CallOptions callOptions)

protected AutoMlGrpc.AutoMlStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
AutoMlGrpc.AutoMlStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createDataset(CreateDatasetRequest request, StreamObserver<Operation> responseObserver)

public void createDataset(CreateDatasetRequest request, StreamObserver<Operation> responseObserver)

Creates a dataset.

Parameters
NameDescription
requestCreateDatasetRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

createModel(CreateModelRequest request, StreamObserver<Operation> responseObserver)

public void createModel(CreateModelRequest request, StreamObserver<Operation> responseObserver)

Creates a model. Returns a Model in the response field when it completes. When you create a model, several model evaluations are created for it: a global evaluation, and one evaluation for each annotation spec.

Parameters
NameDescription
requestCreateModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteDataset(DeleteDatasetRequest request, StreamObserver<Operation> responseObserver)

public void deleteDataset(DeleteDatasetRequest request, StreamObserver<Operation> responseObserver)

Deletes a dataset and all of its contents. Returns empty response in the response field when it completes, and delete_details in the metadata field.

Parameters
NameDescription
requestDeleteDatasetRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteModel(DeleteModelRequest request, StreamObserver<Operation> responseObserver)

public void deleteModel(DeleteModelRequest request, StreamObserver<Operation> responseObserver)

Deletes a model. Returns google.protobuf.Empty in the response field when it completes, and delete_details in the metadata field.

Parameters
NameDescription
requestDeleteModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deployModel(DeployModelRequest request, StreamObserver<Operation> responseObserver)

public void deployModel(DeployModelRequest request, StreamObserver<Operation> responseObserver)

Deploys a model. If a model is already deployed, deploying it with the same parameters has no effect. Deploying with different parametrs (as e.g. changing node_number) will reset the deployment state without pausing the model's availability. Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage deployment automatically. Returns an empty response in the response field when it completes.

Parameters
NameDescription
requestDeployModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

exportData(ExportDataRequest request, StreamObserver<Operation> responseObserver)

public void exportData(ExportDataRequest request, StreamObserver<Operation> responseObserver)

Exports dataset's data to the provided output location. Returns an empty response in the response field when it completes.

Parameters
NameDescription
requestExportDataRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

exportModel(ExportModelRequest request, StreamObserver<Operation> responseObserver)

public void exportModel(ExportModelRequest request, StreamObserver<Operation> responseObserver)

Exports a trained, "export-able", model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in ModelExportOutputConfig. Returns an empty response in the response field when it completes.

Parameters
NameDescription
requestExportModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getAnnotationSpec(GetAnnotationSpecRequest request, StreamObserver<AnnotationSpec> responseObserver)

public void getAnnotationSpec(GetAnnotationSpecRequest request, StreamObserver<AnnotationSpec> responseObserver)

Gets an annotation spec.

Parameters
NameDescription
requestGetAnnotationSpecRequest
responseObserverio.grpc.stub.StreamObserver<AnnotationSpec>

getDataset(GetDatasetRequest request, StreamObserver<Dataset> responseObserver)

public void getDataset(GetDatasetRequest request, StreamObserver<Dataset> responseObserver)

Gets a dataset.

Parameters
NameDescription
requestGetDatasetRequest
responseObserverio.grpc.stub.StreamObserver<Dataset>

getModel(GetModelRequest request, StreamObserver<Model> responseObserver)

public void getModel(GetModelRequest request, StreamObserver<Model> responseObserver)

Gets a model.

Parameters
NameDescription
requestGetModelRequest
responseObserverio.grpc.stub.StreamObserver<Model>

getModelEvaluation(GetModelEvaluationRequest request, StreamObserver<ModelEvaluation> responseObserver)

public void getModelEvaluation(GetModelEvaluationRequest request, StreamObserver<ModelEvaluation> responseObserver)

Gets a model evaluation.

Parameters
NameDescription
requestGetModelEvaluationRequest
responseObserverio.grpc.stub.StreamObserver<ModelEvaluation>

importData(ImportDataRequest request, StreamObserver<Operation> responseObserver)

public void importData(ImportDataRequest request, StreamObserver<Operation> responseObserver)

Imports data into a dataset. For Tables this method can only be called on an empty Dataset. For Tables:

  • A schema_inference_version parameter must be explicitly set. Returns an empty response in the response field when it completes.
Parameters
NameDescription
requestImportDataRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

listDatasets(ListDatasetsRequest request, StreamObserver<ListDatasetsResponse> responseObserver)

public void listDatasets(ListDatasetsRequest request, StreamObserver<ListDatasetsResponse> responseObserver)

Lists datasets in a project.

Parameters
NameDescription
requestListDatasetsRequest
responseObserverio.grpc.stub.StreamObserver<ListDatasetsResponse>

listModelEvaluations(ListModelEvaluationsRequest request, StreamObserver<ListModelEvaluationsResponse> responseObserver)

public void listModelEvaluations(ListModelEvaluationsRequest request, StreamObserver<ListModelEvaluationsResponse> responseObserver)

Lists model evaluations.

Parameters
NameDescription
requestListModelEvaluationsRequest
responseObserverio.grpc.stub.StreamObserver<ListModelEvaluationsResponse>

listModels(ListModelsRequest request, StreamObserver<ListModelsResponse> responseObserver)

public void listModels(ListModelsRequest request, StreamObserver<ListModelsResponse> responseObserver)

Lists models.

Parameters
NameDescription
requestListModelsRequest
responseObserverio.grpc.stub.StreamObserver<ListModelsResponse>

undeployModel(UndeployModelRequest request, StreamObserver<Operation> responseObserver)

public void undeployModel(UndeployModelRequest request, StreamObserver<Operation> responseObserver)

Undeploys a model. If the model is not deployed this method has no effect. Only applicable for Text Classification, Image Object Detection and Tables; all other domains manage deployment automatically. Returns an empty response in the response field when it completes.

Parameters
NameDescription
requestUndeployModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateDataset(UpdateDatasetRequest request, StreamObserver<Dataset> responseObserver)

public void updateDataset(UpdateDatasetRequest request, StreamObserver<Dataset> responseObserver)

Updates a dataset.

Parameters
NameDescription
requestUpdateDatasetRequest
responseObserverio.grpc.stub.StreamObserver<Dataset>

updateModel(UpdateModelRequest request, StreamObserver<Model> responseObserver)

public void updateModel(UpdateModelRequest request, StreamObserver<Model> responseObserver)

Updates a model.

Parameters
NameDescription
requestUpdateModelRequest
responseObserverio.grpc.stub.StreamObserver<Model>