Skip navigation links

@Generated(value="by gapic-generator-java")

Package com.google.cloud.aiplatform.v1

The interfaces provided are listed below, along with usage samples.

See: Description

Package com.google.cloud.aiplatform.v1 Description

The interfaces provided are listed below, along with usage samples.

======================= DatasetServiceClient =======================

Sample for DatasetServiceClient:


 try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
   Dataset response = datasetServiceClient.getDataset(name);
 }
 

======================= EndpointServiceClient =======================

Sample for EndpointServiceClient:


 try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
   EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
   Endpoint response = endpointServiceClient.getEndpoint(name);
 }
 

======================= JobServiceClient =======================

Service Description: A service for creating and managing Vertex AI's jobs.

Sample for JobServiceClient:


 try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   CustomJob customJob = CustomJob.newBuilder().build();
   CustomJob response = jobServiceClient.createCustomJob(parent, customJob);
 }
 

======================= MigrationServiceClient =======================

Service Description: A service that migrates resources from automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.

Sample for MigrationServiceClient:


 try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (MigratableResource element :
       migrationServiceClient.searchMigratableResources(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 

======================= ModelServiceClient =======================

Service Description: A service for managing Vertex AI's machine learning Models.

Sample for ModelServiceClient:


 try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
   Model response = modelServiceClient.getModel(name);
 }
 

======================= PipelineServiceClient =======================

Service Description: A service for creating and managing Vertex AI's pipelines. This includes both `TrainingPipeline` resources (used for AutoML and custom training) and `PipelineJob` resources (used for Vertex Pipelines).

Sample for PipelineServiceClient:


 try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   TrainingPipeline trainingPipeline = TrainingPipeline.newBuilder().build();
   TrainingPipeline response =
       pipelineServiceClient.createTrainingPipeline(parent, trainingPipeline);
 }
 

======================= PredictionServiceClient =======================

Service Description: A service for online predictions and explanations.

Sample for PredictionServiceClient:


 try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
   List<Value> instances = new ArrayList<>();
   Value parameters = Value.newBuilder().build();
   PredictResponse response = predictionServiceClient.predict(endpoint, instances, parameters);
 }
 

======================= SpecialistPoolServiceClient =======================

Service Description: A service for creating and managing Customer SpecialistPools. When customers start Data Labeling jobs, they can reuse/create Specialist Pools to bring their own Specialists to label the data. Customers can add/remove Managers for the Specialist Pool on Cloud console, then Managers will get email notifications to manage Specialists and tasks on CrowdCompute console.

Sample for SpecialistPoolServiceClient:


 try (SpecialistPoolServiceClient specialistPoolServiceClient =
     SpecialistPoolServiceClient.create()) {
   SpecialistPoolName name =
       SpecialistPoolName.of("[PROJECT]", "[LOCATION]", "[SPECIALIST_POOL]");
   SpecialistPool response = specialistPoolServiceClient.getSpecialistPool(name);
 }
 
Skip navigation links

Copyright © 2021 Google LLC. All rights reserved.