49
49
*/
50
50
public class ModelApi {
51
51
52
- // [START automl_translation_create_model ]
52
+ // [START automl_translate_create_model ]
53
53
/**
54
54
* Demonstrates using the AutoML client to create a model.
55
55
*
@@ -87,9 +87,9 @@ public static void createModel(
87
87
String .format ("Training operation name: %s" , response .getInitialFuture ().get ().getName ()));
88
88
System .out .println ("Training started..." );
89
89
}
90
- // [END automl_translation_create_model ]
90
+ // [END automl_translate_create_model ]
91
91
92
- // [START automl_translation_list_models ]
92
+ // [START automl_translate_list_models ]
93
93
/**
94
94
* Demonstrates using the AutoML client to list all models.
95
95
*
@@ -128,9 +128,9 @@ public static void listModels(String projectId, String computeRegion, String fil
128
128
System .out .println (String .format ("Model deployment state: %s" , model .getDeploymentState ()));
129
129
}
130
130
}
131
- // [END automl_translation_list_models ]
131
+ // [END automl_translate_list_models ]
132
132
133
- // [START automl_translation_get_model ]
133
+ // [START automl_translate_get_model ]
134
134
/**
135
135
* Demonstrates using the AutoML client to get model details.
136
136
*
@@ -161,9 +161,9 @@ public static void getModel(String projectId, String computeRegion, String model
161
161
System .out .println (String .format ("\t nanos: %s" , model .getCreateTime ().getNanos ()));
162
162
System .out .println (String .format ("Model deployment state: %s" , model .getDeploymentState ()));
163
163
}
164
- // [END automl_translation_get_model ]
164
+ // [END automl_translate_get_model ]
165
165
166
- // [START automl_translation_list_model_evaluations ]
166
+ // [START automl_translate_list_model_evaluations ]
167
167
/**
168
168
* Demonstrates using the AutoML client to list model evaluations.
169
169
*
@@ -195,9 +195,9 @@ public static void listModelEvaluations(
195
195
System .out .println (element );
196
196
}
197
197
}
198
- // [END automl_translation_list_model_evaluations ]
198
+ // [END automl_translate_list_model_evaluations ]
199
199
200
- // [START automl_translation_get_model_evaluation ]
200
+ // [START automl_translate_get_model_evaluation ]
201
201
/**
202
202
* Demonstrates using the AutoML client to get model evaluations.
203
203
*
@@ -222,9 +222,9 @@ public static void getModelEvaluation(
222
222
223
223
System .out .println (response );
224
224
}
225
- // [END automl_translation_get_model_evaluation ]
225
+ // [END automl_translate_get_model_evaluation ]
226
226
227
- // [START automl_translation_delete_model ]
227
+ // [START automl_translate_delete_model ]
228
228
/**
229
229
* Demonstrates using the AutoML client to delete a model.
230
230
*
@@ -246,9 +246,9 @@ public static void deleteModel(String projectId, String computeRegion, String mo
246
246
247
247
System .out .println ("Model deletion started..." );
248
248
}
249
- // [END automl_translation_delete_model ]
249
+ // [END automl_translate_delete_model ]
250
250
251
- // [START automl_translation_get_operation_status ]
251
+ // [START automl_translate_get_operation_status ]
252
252
/**
253
253
* Demonstrates using the AutoML client to get operation status.
254
254
*
@@ -265,7 +265,7 @@ private static void getOperationStatus(String operationFullId) throws IOExceptio
265
265
266
266
System .out .println (String .format ("Operation status: %s" , response ));
267
267
}
268
- // [END automl_translation_get_operation_status ]
268
+ // [END automl_translate_get_operation_status ]
269
269
270
270
public static void main (String [] args ) throws Exception {
271
271
ModelApi modelApi = new ModelApi ();
0 commit comments