Class AutoMlGrpc.AutoMlStub

  • Enclosing class:
    AutoMlGrpc

    public static final class AutoMlGrpc.AutoMlStub
    extends io.grpc.stub.AbstractAsyncStub<AutoMlGrpc.AutoMlStub>
    A stub to allow clients to do asynchronous rpc calls to service AutoMl.
     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.
     
    • Method Detail

      • createDataset

        public void createDataset​(CreateDatasetRequest request,
                                  io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
         Creates a dataset.
         
      • getDataset

        public void getDataset​(GetDatasetRequest request,
                               io.grpc.stub.StreamObserver<Dataset> responseObserver)
         Gets a dataset.
         
      • updateDataset

        public void updateDataset​(UpdateDatasetRequest request,
                                  io.grpc.stub.StreamObserver<Dataset> responseObserver)
         Updates a dataset.
         
      • deleteDataset

        public void deleteDataset​(DeleteDatasetRequest request,
                                  io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
         Deletes a dataset and all of its contents.
         Returns empty response in the
         [response][google.longrunning.Operation.response] field when it completes,
         and `delete_details` in the
         [metadata][google.longrunning.Operation.metadata] field.
         
      • importData

        public void importData​(ImportDataRequest request,
                               io.grpc.stub.StreamObserver<com.google.longrunning.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][google.cloud.automl.v1.InputConfig.params]
             parameter must be explicitly set.
         Returns an empty response in the
         [response][google.longrunning.Operation.response] field when it completes.
         
      • exportData

        public void exportData​(ExportDataRequest request,
                               io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
         Exports dataset's data to the provided output location.
         Returns an empty response in the
         [response][google.longrunning.Operation.response] field when it completes.
         
      • createModel

        public void createModel​(CreateModelRequest request,
                                io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
         Creates a model.
         Returns a Model in the [response][google.longrunning.Operation.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.
         
      • getModel

        public void getModel​(GetModelRequest request,
                             io.grpc.stub.StreamObserver<Model> responseObserver)
         Gets a model.
         
      • deleteModel

        public void deleteModel​(DeleteModelRequest request,
                                io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
         Deletes a model.
         Returns `google.protobuf.Empty` in the
         [response][google.longrunning.Operation.response] field when it completes,
         and `delete_details` in the
         [metadata][google.longrunning.Operation.metadata] field.
         
      • updateModel

        public void updateModel​(UpdateModelRequest request,
                                io.grpc.stub.StreamObserver<Model> responseObserver)
         Updates a model.
         
      • deployModel

        public void deployModel​(DeployModelRequest request,
                                io.grpc.stub.StreamObserver<com.google.longrunning.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][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.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][google.longrunning.Operation.response] field when it completes.
         
      • undeployModel

        public void undeployModel​(UndeployModelRequest request,
                                  io.grpc.stub.StreamObserver<com.google.longrunning.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][google.longrunning.Operation.response] field when it completes.
         
      • exportModel

        public void exportModel​(ExportModelRequest request,
                                io.grpc.stub.StreamObserver<com.google.longrunning.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][google.cloud.automl.v1.ModelExportOutputConfig].
         Returns an empty response in the
         [response][google.longrunning.Operation.response] field when it completes.