Skip to content

Commit

Permalink
chore: prep for sample browser (#357)
Browse files Browse the repository at this point in the history
region tag changes only.
  • Loading branch information
sirtorry authored and Shabirmean committed Nov 18, 2022
1 parent 46bc7dd commit 1af436c
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.beta.automl;

// [START automl_tables_batch_predict]
// [START automl_batch_predict_beta]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.automl.v1beta1.BatchPredictInputConfig;
Expand Down Expand Up @@ -80,3 +81,4 @@ static void batchPredict(String projectId, String modelId, String inputUri, Stri
}
}
// [END automl_batch_predict_beta]
// [END automl_tables_batch_predict]
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.beta.automl;

// [START automl_delete_dataset_beta]
// [START automl_tables_delete_dataset]
import com.google.cloud.automl.v1beta1.AutoMlClient;
import com.google.cloud.automl.v1beta1.DatasetName;
import com.google.protobuf.Empty;
Expand Down Expand Up @@ -46,4 +47,5 @@ static void deleteDataset(String projectId, String datasetId)
}
}
}
// [END automl_tables_delete_dataset]
// [END automl_delete_dataset_beta]
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.beta.automl;

// [START automl_tables_delete_model]
// [START automl_delete_model_beta]
import com.google.cloud.automl.v1beta1.AutoMlClient;
import com.google.cloud.automl.v1beta1.ModelName;
Expand Down Expand Up @@ -52,3 +53,4 @@ static void deleteModel(String projectId, String modelId)
}
}
// [END automl_delete_model_beta]
// [END automl_tables_delete_model]
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.beta.automl;

// [START automl_tables_deploy_model]
// [START automl_deploy_model_beta]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.automl.v1beta1.AutoMlClient;
Expand Down Expand Up @@ -55,3 +56,4 @@ static void deployModel(String projectId, String modelId)
}
}
// [END automl_deploy_model_beta]
// [END automl_tables_deploy_model]
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

// [START automl_video_classification_get_model_evaluation_beta]
// [START automl_video_object_tracking_get_model_evaluation_beta]
// [START automl_tables_get_model_evaluation]
import com.google.cloud.automl.v1beta1.AutoMlClient;
import com.google.cloud.automl.v1beta1.ModelEvaluation;
import com.google.cloud.automl.v1beta1.ModelEvaluationName;
Expand Down Expand Up @@ -69,5 +70,6 @@ static void getModelEvaluation(String projectId, String modelId, String modelEva
}
}
}
// [END automl_video_classification_get_model_evaluation_beta]
// [END automl_tables_get_model_evaluation]
// [END automl_video_object_tracking_get_model_evaluation_beta]
// [END automl_video_classification_get_model_evaluation_beta]
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.beta.automl;

// [START automl_get_operation_status_beta]
// [START automl_tables_get_operation_status]
import com.google.cloud.automl.v1beta1.AutoMlClient;
import com.google.longrunning.Operation;
import java.io.IOException;
Expand Down Expand Up @@ -54,4 +55,5 @@ static void getOperationStatus(String operationFullId) throws IOException {
}
}
}
// [END automl_tables_get_operation_status]
// [END automl_get_operation_status_beta]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.beta.automl;

// [START automl_import_dataset_beta]
// [START automl_import_dataset]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.retrying.RetrySettings;
import com.google.cloud.automl.v1beta1.AutoMlClient;
Expand Down Expand Up @@ -87,4 +87,4 @@ static void importDataset(String projectId, String datasetId, String path)
}
}
}
// [END automl_import_dataset_beta]
// [END automl_import_dataset]
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

// [START automl_video_classification_list_datasets_beta]
// [START automl_video_object_tracking_list_datasets_beta]
// [START automl_tables_list_datasets_beta]
// [START automl_tables_list_datasets]
import com.google.cloud.automl.v1beta1.AutoMlClient;
import com.google.cloud.automl.v1beta1.AutoMlSettings;
import com.google.cloud.automl.v1beta1.Dataset;
Expand Down Expand Up @@ -63,7 +63,7 @@ static void listDatasets(String projectId) throws IOException {
System.out.format("\tnanos: %s%n", dataset.getCreateTime().getNanos());

// [END automl_video_object_tracking_list_datasets_beta]
// [END automl_tables_list_datasets_beta]
// [END automl_tables_list_datasets]
System.out.format(
"Video classification dataset metadata: %s%n",
dataset.getVideoClassificationDatasetMetadata());
Expand All @@ -75,7 +75,7 @@ static void listDatasets(String projectId) throws IOException {
dataset.getVideoObjectTrackingDatasetMetadata());
// [END automl_video_object_tracking_list_datasets_beta]

// [START automl_tables_list_datasets_beta]
// [START automl_tables_list_datasets]
System.out.format("Tables dataset metadata: %s%n", dataset.getTablesDatasetMetadata());

// [START automl_video_classification_list_datasets_beta]
Expand All @@ -86,4 +86,4 @@ static void listDatasets(String projectId) throws IOException {
}
// [END automl_video_classification_list_datasets_beta]
// [END automl_video_object_tracking_list_datasets_beta]
// [END automl_tables_list_datasets_beta]
// [END automl_tables_list_datasets]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.beta.automl;

// [START automl_tables_list_model_evaluations_beta]
// [START automl_tables_list_model_evaluations]
import com.google.cloud.automl.v1beta1.AutoMlClient;
import com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest;
import com.google.cloud.automl.v1beta1.ModelEvaluation;
Expand Down Expand Up @@ -63,4 +63,4 @@ static void listModelEvaluations(String projectId, String modelId) throws IOExce
}
}
}
// [END automl_tables_list_model_evaluations_beta]
// [END automl_tables_list_model_evaluations]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.beta.automl;

// [START automl_tables_list_models]
// [START automl_list_models_beta]

import com.google.cloud.automl.v1beta1.AutoMlClient;
import com.google.cloud.automl.v1beta1.AutoMlSettings;
import com.google.cloud.automl.v1beta1.ListModelsRequest;
Expand Down Expand Up @@ -71,3 +71,4 @@ static void listModels(String projectId) throws IOException {
}
}
// [END automl_list_models_beta]
// [END automl_tables_list_models]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.beta.automl;

// [START automl_tables_batch_predict_bigquery_beta]
// [START automl_tables_batch_predict_bq]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.automl.v1beta1.BatchPredictInputConfig;
import com.google.cloud.automl.v1beta1.BatchPredictOutputConfig;
Expand Down Expand Up @@ -79,4 +79,4 @@ static void batchPredict(String projectId, String modelId, String inputUri, Stri
}
}
}
// [END automl_tables_batch_predict_bigquery_beta]
// [END automl_tables_batch_predict_bq]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.beta.automl;

// [START automl_tables_create_dataset_beta]
// [START automl_tables_create_dataset]
import com.google.cloud.automl.v1beta1.AutoMlClient;
import com.google.cloud.automl.v1beta1.Dataset;
import com.google.cloud.automl.v1beta1.LocationName;
Expand Down Expand Up @@ -60,4 +60,4 @@ static void createDataset(String projectId, String displayName) throws IOExcepti
}
}
}
// [END automl_tables_create_dataset_beta]
// [END automl_tables_create_dataset]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.beta.automl;

// [START automl_tables_create_model_beta]
// [START automl_tables_create_model]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.automl.v1beta1.AutoMlClient;
import com.google.cloud.automl.v1beta1.ColumnSpec;
Expand Down Expand Up @@ -89,4 +89,4 @@ static void createModel(
}
}
}
// [END automl_tables_create_model_beta]
// [END automl_tables_create_model]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.beta.automl;

// [START automl_tables_import_dataset_beta]
// [START automl_tables_import_data]
import com.google.cloud.automl.v1beta1.AutoMlClient;
import com.google.cloud.automl.v1beta1.BigQuerySource;
import com.google.cloud.automl.v1beta1.DatasetName;
Expand Down Expand Up @@ -71,4 +71,4 @@ static void importDataset(String projectId, String datasetId, String path)
}
}
}
// [END automl_tables_import_dataset_beta]
// [END automl_tables_import_data]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.beta.automl;

// [START automl_tables_predict_beta]
// [START automl_tables_predict]
import com.google.cloud.automl.v1beta1.AnnotationPayload;
import com.google.cloud.automl.v1beta1.ExamplePayload;
import com.google.cloud.automl.v1beta1.ModelName;
Expand Down Expand Up @@ -84,4 +84,4 @@ static void predict(String projectId, String modelId, List<Value> values) throws
}
}
}
// [END automl_tables_predict_beta]
// [END automl_tables_predict]
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.beta.automl;

// [START automl_tables_undeploy_model]
// [START automl_undeploy_model_beta]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.automl.v1beta1.AutoMlClient;
Expand Down Expand Up @@ -54,3 +55,4 @@ static void undeployModel(String projectId, String modelId)
}
}
// [END automl_undeploy_model_beta]
// [END automl_tables_undeploy_model]

0 comments on commit 1af436c

Please sign in to comment.