4949 */
5050public class ModelApi {
5151
52- // [START automl_translation_create_model ]
52+ // [START automl_translate_create_model ]
5353 /**
5454 * Demonstrates using the AutoML client to create a model.
5555 *
@@ -87,9 +87,9 @@ public static void createModel(
8787 String .format ("Training operation name: %s" , response .getInitialFuture ().get ().getName ()));
8888 System .out .println ("Training started..." );
8989 }
90- // [END automl_translation_create_model ]
90+ // [END automl_translate_create_model ]
9191
92- // [START automl_translation_list_models ]
92+ // [START automl_translate_list_models ]
9393 /**
9494 * Demonstrates using the AutoML client to list all models.
9595 *
@@ -128,9 +128,9 @@ public static void listModels(String projectId, String computeRegion, String fil
128128 System .out .println (String .format ("Model deployment state: %s" , model .getDeploymentState ()));
129129 }
130130 }
131- // [END automl_translation_list_models ]
131+ // [END automl_translate_list_models ]
132132
133- // [START automl_translation_get_model ]
133+ // [START automl_translate_get_model ]
134134 /**
135135 * Demonstrates using the AutoML client to get model details.
136136 *
@@ -161,9 +161,9 @@ public static void getModel(String projectId, String computeRegion, String model
161161 System .out .println (String .format ("\t nanos: %s" , model .getCreateTime ().getNanos ()));
162162 System .out .println (String .format ("Model deployment state: %s" , model .getDeploymentState ()));
163163 }
164- // [END automl_translation_get_model ]
164+ // [END automl_translate_get_model ]
165165
166- // [START automl_translation_list_model_evaluations ]
166+ // [START automl_translate_list_model_evaluations ]
167167 /**
168168 * Demonstrates using the AutoML client to list model evaluations.
169169 *
@@ -195,9 +195,9 @@ public static void listModelEvaluations(
195195 System .out .println (element );
196196 }
197197 }
198- // [END automl_translation_list_model_evaluations ]
198+ // [END automl_translate_list_model_evaluations ]
199199
200- // [START automl_translation_get_model_evaluation ]
200+ // [START automl_translate_get_model_evaluation ]
201201 /**
202202 * Demonstrates using the AutoML client to get model evaluations.
203203 *
@@ -222,9 +222,9 @@ public static void getModelEvaluation(
222222
223223 System .out .println (response );
224224 }
225- // [END automl_translation_get_model_evaluation ]
225+ // [END automl_translate_get_model_evaluation ]
226226
227- // [START automl_translation_delete_model ]
227+ // [START automl_translate_delete_model ]
228228 /**
229229 * Demonstrates using the AutoML client to delete a model.
230230 *
@@ -246,9 +246,9 @@ public static void deleteModel(String projectId, String computeRegion, String mo
246246
247247 System .out .println ("Model deletion started..." );
248248 }
249- // [END automl_translation_delete_model ]
249+ // [END automl_translate_delete_model ]
250250
251- // [START automl_translation_get_operation_status ]
251+ // [START automl_translate_get_operation_status ]
252252 /**
253253 * Demonstrates using the AutoML client to get operation status.
254254 *
@@ -265,7 +265,7 @@ private static void getOperationStatus(String operationFullId) throws IOExceptio
265265
266266 System .out .println (String .format ("Operation status: %s" , response ));
267267 }
268- // [END automl_translation_get_operation_status ]
268+ // [END automl_translate_get_operation_status ]
269269
270270 public static void main (String [] args ) throws Exception {
271271 ModelApi modelApi = new ModelApi ();
0 commit comments