1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * A client to Cloud AutoML API 19 * 20 * <p>The interfaces provided are listed below, along with usage samples. 21 * 22 * <p>======================= PredictionServiceClient ======================= 23 * 24 * <p>Service Description: AutoML Prediction API. 25 * 26 * <p>On any input that is documented to expect a string parameter in snake_case or dash-case, 27 * either of those cases is accepted. 28 * 29 * <p>Sample for PredictionServiceClient: 30 * 31 * <pre>{@code 32 * // This snippet has been automatically generated and should be regarded as a code template only. 33 * // It will require modifications to work: 34 * // - It may require correct/in-range values for request initialization. 35 * // - It may require specifying regional endpoints when creating the service client as shown in 36 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 37 * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { 38 * ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); 39 * ExamplePayload payload = ExamplePayload.newBuilder().build(); 40 * Map<String, String> params = new HashMap<>(); 41 * PredictResponse response = predictionServiceClient.predict(name, payload, params); 42 * } 43 * }</pre> 44 * 45 * <p>======================= AutoMlClient ======================= 46 * 47 * <p>Service Description: AutoML Server API. 48 * 49 * <p>The resource names are assigned by the server. The server never reuses names that it has 50 * created after the resources with those names are deleted. 51 * 52 * <p>An ID of a resource is the last element of the item's resource name. For 53 * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then the id for the item 54 * is `{dataset_id}`. 55 * 56 * <p>Currently the only supported `location_id` is "us-central1". 57 * 58 * <p>On any input that is documented to expect a string parameter in snake_case or dash-case, 59 * either of those cases is accepted. 60 * 61 * <p>Sample for AutoMlClient: 62 * 63 * <pre>{@code 64 * // This snippet has been automatically generated and should be regarded as a code template only. 65 * // It will require modifications to work: 66 * // - It may require correct/in-range values for request initialization. 67 * // - It may require specifying regional endpoints when creating the service client as shown in 68 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 69 * try (AutoMlClient autoMlClient = AutoMlClient.create()) { 70 * DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); 71 * Dataset response = autoMlClient.getDataset(name); 72 * } 73 * }</pre> 74 */ 75 @Generated("by gapic-generator-java") 76 package com.google.cloud.automl.v1; 77 78 import javax.annotation.Generated; 79